/* ============================================
   Jose Lugo — GDPR AI Consulting
   style.css — Shared styles (DE + EN)
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Constrain all SVGs — prevent blowup */
svg:not(.unconstrained) {
  max-width: 100%;
  max-height: 100%;
  flex-shrink: 0;
  overflow: visible;
}

:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f3a;
  --bg-card: #132244;
  --blue-primary: #1a365d;
  --blue-accent: #3b82f6;
  --blue-light: #60a5fa;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --gold: #d4a853;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --section-pad: 100px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--white-90);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: #2563eb;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-20);
}

.btn-secondary:hover {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo:hover {
  color: var(--white);
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-accent), var(--blue-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--white-70);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-toggle {
  padding: 4px 12px;
  border: 1px solid var(--white-20);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-70);
  transition: all var(--transition);
}

.lang-toggle:hover {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
}

.lang-toggle::after {
  display: none;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--blue-accent);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
  transition: all var(--transition);
}

.nav-cta:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.nav-cta::after {
  display: none;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-10), transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-accent);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--white-70);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white-10);
  border: 1px solid var(--white-10);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white-70);
  backdrop-filter: blur(4px);
}

.trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--white-10);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 22, 40, 0.6));
  pointer-events: none;
}

.hero-canvas-wrapper {
  position: relative;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  overflow: hidden;
}

.hero-canvas-wrapper canvas {
  width: 100%;
  height: 100%;
}

/* ---------- Section: Problem ---------- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-10), transparent);
}

.problem {
  background: var(--bg-secondary);
}

.problem .container {
  max-width: 800px;
}

.problem-lead {
  font-size: 1.15rem;
  color: var(--white-70);
  margin-bottom: 36px;
  font-style: italic;
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--white-90);
  line-height: 1.6;
}

.problem-list li .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.problem-list li .icon svg {
  width: 14px;
  height: 14px;
  color: #ef4444;
}

/* ---------- Section: Solutions ---------- */
.solutions-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  color: var(--white-70);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.solution-card:hover {
  border-color: var(--blue-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.solution-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-accent);
}

.solution-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.solution-card .card-headline {
  font-size: 1rem;
  color: var(--white-70);
  margin-bottom: 20px;
  line-height: 1.5;
}

.solution-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.solution-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--white-70);
  line-height: 1.5;
}

.solution-card ul li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue-accent);
  margin-top: 2px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--white-10);
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-light);
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ---------- Section: How It Works ---------- */
.how-it-works {
  background: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 60px;
}

/* Connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-light), var(--blue-accent));
  opacity: 0.4;
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-accent);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  font-size: 0.95rem;
  color: var(--white-70);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Section: About / Why Jose ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.about-photo {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--white-10);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  aspect-ratio: 3 / 4;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.about-title {
  color: var(--blue-accent);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.credential-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--white-90);
}

.credential-list li svg {
  width: 20px;
  height: 20px;
  color: var(--blue-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.8;
  border-left: 3px solid var(--blue-accent);
  padding-left: 20px;
}

/* ---------- Section: Trust Signals ---------- */
.trust-section {
  background: var(--bg-secondary);
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.trust-signal {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  transition: all var(--transition);
  min-width: 260px;
}

.trust-signal:hover {
  border-color: var(--blue-accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.trust-signal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-signal-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue-accent);
}

.trust-signal span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white-90);
}

/* ---------- Section: Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.final-cta h2 {
  margin-bottom: 16px;
  position: relative;
}

.final-cta .cta-sub {
  font-size: 1.15rem;
  color: var(--white-70);
  margin-bottom: 40px;
  position: relative;
}

.final-cta .btn {
  position: relative;
  font-size: 1.1rem;
  padding: 16px 40px;
}

.cal-embed {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  min-height: 500px;
}

.cal-embed iframe {
  border-radius: 12px;
  min-height: 500px;
}

.cta-contact {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--white-50);
  position: relative;
}

.cta-contact a {
  color: var(--white-70);
  transition: color var(--transition);
}

.cta-contact a:hover {
  color: var(--blue-accent);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--white-10);
  padding: 48px 0 32px;
  background: var(--bg-primary);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--white-50);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--blue-accent);
  color: var(--white);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--white-10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--white-50);
}

.footer-legal {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--white-50);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}

/* ---------- Scroll animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ---------- Mobile nav overlay ---------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  display: flex;
  opacity: 1;
}

.nav-overlay a {
  font-size: 1.3rem;
  color: var(--white-90);
  font-weight: 600;
  text-decoration: none;
}

.nav-overlay a:hover {
  color: var(--blue-accent);
}

.nav-overlay .btn {
  margin-top: 16px;
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-close svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 0;
    margin-bottom: 20px;
  }

  .hero-image-wrapper {
    width: 280px;
    height: 340px;
  }

  .hero-canvas-wrapper {
    width: 300px;
    height: 300px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .trust-badges {
    justify-content: center;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-paragraph {
    border-left: none;
    padding-left: 0;
    text-align: left;
  }

  .credential-list li {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero-image-wrapper {
    width: 220px;
    height: 270px;
  }

  .solutions-grid {
    gap: 20px;
  }

  .solution-card {
    padding: 28px 22px;
  }

  .trust-grid {
    flex-direction: column;
    align-items: center;
  }

  .trust-signal {
    width: 100%;
    max-width: 400px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 56px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .step-number {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
