/* ============================================================
   ESTRAGEO — Light Tech Rebuild (v4 · "Antigravity-like")
   Blanco amplio · teal protagonista + spark magenta
   Modo claro por defecto · oscuro opcional [data-theme="dark"]
   Marca: #009285 teal · #ff00f5 magenta · #20b3c2 cyan
   ============================================================ */

/* ========== TOKENS ========== */
:root {
  --c1: #009285;   /* teal — el color de marca protagonista */
  --c2: #ff00f5;   /* magenta — el "spark", solo toques */
  --c3: #20b3c2;   /* cyan */

  --accent:     #009285;
  --accent-2:   #007a6f;   /* teal más profundo (hover/estados) */
  --accent-3:   #00b3a2;   /* teal más vivo */
  --spark:      #ff00f5;

  --bg:         #ffffff;
  --bg-alt:     #f6f8f9;
  --surface:    #ffffff;
  --surface-2:  #f2f5f6;
  --line:       #e7eaee;
  --line-2:     #d7dce2;

  --ink:        #0b1220;   /* casi negro, ligero azul */
  --ink-2:      #26303f;
  --text:       #1a2230;
  --text-muted: #5c6675;
  --text-faint: #97a0ad;

  /* gradiente de marca: mayoría teal con remate magenta (el "toque") */
  /* Degradado de marca OFICIAL: lineal 90º · #009285 → #ff00f5 → #20b3c2 */
  --grad:       linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  --grad-soft:  linear-gradient(90deg, var(--c1), var(--c2), var(--c3));

  --shadow-sm:  0 1px 2px rgba(11,18,32,0.04), 0 2px 8px rgba(11,18,32,0.05);
  --shadow:     0 6px 18px rgba(11,18,32,0.06), 0 16px 40px rgba(11,18,32,0.07);
  --shadow-lg:  0 12px 34px rgba(11,18,32,0.09), 0 34px 74px rgba(11,18,32,0.12);
  --shadow-teal:0 18px 44px rgba(0,146,133,0.16), 0 8px 22px rgba(0,146,133,0.10);

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --topbar-h:   70px;
  --section-py: 116px;
  --maxw:       1180px;
}

[data-theme="dark"] {
  --accent:     #17b3a2;
  --accent-2:   #0f8f82;
  --accent-3:   #2fd1bd;
  --spark:      #ff3df9;

  --bg:         #0a0d13;
  --bg-alt:     #0e121a;
  --surface:    #10141d;
  --surface-2:  #161b26;
  --line:       rgba(255,255,255,0.09);
  --line-2:     rgba(255,255,255,0.16);

  --ink:        #ffffff;
  --ink-2:      #e8ecf2;
  --text:       rgba(255,255,255,0.90);
  --text-muted: rgba(255,255,255,0.56);
  --text-faint: rgba(255,255,255,0.34);

  /* mismo degradado de marca oficial que en claro (teal → magenta → cyan) */
  --grad:       linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  --grad-soft:  linear-gradient(90deg, var(--c1), var(--c2), var(--c3));

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow:     0 10px 34px rgba(0,0,0,0.46);
  --shadow-lg:  0 22px 60px rgba(0,0,0,0.56);
  --shadow-teal:0 20px 54px rgba(0,179,162,0.18);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--topbar-h) + 14px);
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.62;
  font-size: 16px;
  transition: background 400ms ease, color 400ms ease;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
em { font-style: italic; }
::selection { background: rgba(0,146,133,0.16); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ========== FONDO AMBIENT (glow sutil, sin puntos) ========== */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 80% -6%, rgba(0,146,133,0.10), transparent 60%),
    radial-gradient(50% 40% at 6% 2%, rgba(255,0,245,0.05), transparent 55%);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(60% 45% at 80% -6%, rgba(0,179,162,0.16), transparent 60%),
    radial-gradient(50% 40% at 6% 2%, rgba(255,61,249,0.08), transparent 55%);
}

/* ========== LAYOUT ========== */
main { position: relative; z-index: 1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* ========== TIPOGRAFÍA ========== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink); text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.sub { margin-top: 18px; color: var(--text-muted); font-size: 1.08rem; max-width: 56ch; line-height: 1.6; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-note { margin-top: 14px; font-size: 0.94rem; font-weight: 700; color: var(--accent); font-style: italic; }

.section-header { margin-bottom: 60px; max-width: 720px; }
.section-header .sub { max-width: 600px; }

/* ========== BOTONES ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; color: #fff;
  transition: transform 200ms ease, box-shadow 300ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: var(--shadow-lg); }
.btn-primary::after {
  content: ""; position: absolute; top: -60%; left: -80%; width: 55%; height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 620ms ease; opacity: 0;
}
.btn-primary:hover::after { left: 150%; opacity: 1; }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); box-shadow: var(--shadow); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.86rem; }
.btn-full { width: 100%; }

/* ========== LOGO (wordmark) ========== */
.nav-logo, .footer-logo { height: auto; opacity: 0.95; transition: opacity 240ms ease, filter 260ms ease; }
.nav-logo   { width: 146px; }
.footer-logo{ width: 172px; }
.nav-brand:hover .nav-logo, .footer-logo:hover { opacity: 1; }
/* El wordmark son las letras con el degradado de marca (teal→magenta→cyan):
   se ve bien en claro y en oscuro, así que NO se aplica ningún filtro. */

/* ========== TOPBAR ========== */
.topbar {
  position: sticky; top: 0; z-index: 100; height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background 300ms ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: var(--topbar-h); max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.nav-brand { display: flex; align-items: center; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta { display: inline-flex; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 300ms ease;
}
.theme-toggle:hover { transform: scale(1.08); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.theme-icon { font-size: 1.2rem; position: absolute; transition: opacity 280ms ease, transform 280ms ease; }
.theme-icon--light { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-icon--dark  { opacity: 0; transform: scale(0.4) rotate(-90deg); }
[data-theme="dark"] .theme-icon--light { opacity: 0; transform: scale(0.4) rotate(90deg); }
[data-theme="dark"] .theme-icon--dark  { opacity: 1; transform: scale(1) rotate(0deg); }

/* Hamburguesa */
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color 240ms ease;
}
.menu-toggle span { display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 260ms ease, opacity 200ms ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ========== HERO ========== */
.hero { min-height: calc(100vh - var(--topbar-h)); display: flex; align-items: center; padding: 64px 24px; position: relative; }
.hero-grid { max-width: var(--maxw); width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { text-align: left; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line-2); background: var(--surface);
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--accent); box-shadow: 0 0 0 4px rgba(0,146,133,0.14); animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(0,146,133,0.16); } 50% { box-shadow: 0 0 0 7px rgba(0,146,133,0.04); } }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 600;
  line-height: 1.02; letter-spacing: -0.035em; color: var(--ink);
  margin: 24px 0 22px; max-width: 15ch;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted); line-height: 1.62; max-width: 540px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 26px; }
.hero-caps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-caps li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--line); background: var(--surface); padding: 8px 15px; border-radius: 999px;
}
.hero-caps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--grad); }

/* Panel derecho: maqueta de "respuesta de IA" */
.hero-visual { position: relative; display: flex; justify-content: center; }
.answer-glow {
  position: absolute; inset: -14% -8%; z-index: 0; border-radius: 40px; pointer-events: none;
  background:
    radial-gradient(58% 58% at 68% 24%, rgba(0,146,133,0.22), transparent 70%),
    radial-gradient(54% 54% at 26% 82%, rgba(32,179,194,0.18), transparent 70%),
    radial-gradient(46% 46% at 82% 92%, rgba(255,0,245,0.14), transparent 70%);
  filter: blur(34px); animation: float-glow 16s ease-in-out infinite alternate;
}
@keyframes float-glow { 0% { transform: translate3d(-1.5%,-1%,0) scale(1); } 100% { transform: translate3d(2%,1.5%,0) scale(1.07); } }

.answer-card {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 22px 22px 20px; box-shadow: var(--shadow-lg);
  animation: card-float 7s ease-in-out infinite;
}
@keyframes card-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.answer-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.answer-avatar { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 1rem; background: var(--grad-soft); box-shadow: var(--shadow-sm); }
.answer-app { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.94rem; }
.answer-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.72rem; font-weight: 600; color: var(--accent-2); }
.answer-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(0,146,133,0.16); animation: dot-pulse 2s ease-in-out infinite; }
.answer-q { font-size: 0.92rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; margin-bottom: 15px; }
.answer-q b { color: var(--ink); font-weight: 600; }
.answer-body { font-size: 1.04rem; line-height: 1.62; color: var(--text); }
.answer-brand { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.answer-cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.answer-cite { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cite-chip { font-size: 0.76rem; font-weight: 500; color: var(--text-muted); border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
.cite-chip--brand { color: var(--accent-2); border-color: rgba(0,146,133,0.35); background: rgba(0,146,133,0.06); }

/* ========== TRUST / MARQUEE ========== */
.trust { padding: 30px 0 10px; position: relative; z-index: 1; }
.trust-label { text-align: center; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); margin-bottom: 24px; padding: 0 24px; }
.marquee-outer {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 46s linear infinite; }
.marquee-outer:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ai-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 260ms ease;
  white-space: nowrap;
}
.ai-chip:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.ai-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.ai-icon img { width: 20px; height: 20px; object-fit: contain; }
.ai-icon--dark { background: #0d0d12; border-color: #0d0d12; }

/* ========== ¿QUÉ ES GEO? ========== */
.geo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.geo-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 380ms ease;
}
.geo-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.geo-card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.geo-card p { color: var(--text-muted); }
.geo-card p + p { margin-top: 10px; }
.geo-card strong { color: var(--ink); font-weight: 600; }
.transform-row { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.transform-from { color: var(--text-muted); font-size: 0.95rem; }
.transform-arrow { font-size: 1.3rem; color: var(--accent); font-weight: 800; }
.transform-to { color: var(--ink); font-weight: 700; font-size: 1.02rem; }

/* ========== SERVICIO — 2 FASES ========== */
.phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.phase-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 38px 34px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 320ms ease, border-color 320ms ease, box-shadow 420ms ease;
  position: relative; overflow: hidden;
}
.phase-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); opacity: 0; transition: opacity 320ms ease; }
.phase-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.phase-card:hover::before { opacity: 1; }
.phase-card--exec { background: var(--bg); }
.phase-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase-num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.phase-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-2); border: 1px solid rgba(0,146,133,0.35); background: rgba(0,146,133,0.06); border-radius: 999px; padding: 5px 13px; white-space: nowrap; }
.phase-tag--soft { color: var(--text-muted); border-color: var(--line-2); background: transparent; }
.phase-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.phase-desc { color: var(--text-muted); font-size: 1.02rem; }
.phase-card .check-list { flex: 1 1 auto; }
.phase-card .btn { margin-top: 12px; }

/* ========== CHECK LIST ========== */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-muted); font-size: 0.96rem; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ========== TIMELINE (Método) ========== */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 110px 40px 1fr; gap: 8px; }
.tl-left { display: flex; justify-content: flex-end; padding-top: 2px; }
.tl-badge { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; white-space: nowrap; height: fit-content; }
.tl-line { position: relative; }
.tl-line::before { content: ""; position: absolute; top: 5px; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; background: var(--line-2); }
.tl-line--last::before { bottom: 6px; }
.tl-dot { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid transparent; background-image: linear-gradient(var(--bg), var(--bg)), var(--grad); background-origin: border-box; background-clip: content-box, border-box; }
.tl-right { padding: 0 0 44px 8px; }
.tl-right h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.tl-right p { color: var(--text-muted); margin-bottom: 12px; }
.tl-stage + .tl-stage { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }

/* ========== RESULTADOS ========== */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.result-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
  transition: transform 300ms ease, box-shadow 380ms ease, border-color 300ms ease;
}
.result-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.result-card--mid { border-color: rgba(0,146,133,0.30); box-shadow: var(--shadow); }
.result-day { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 20px; display: flex; align-items: baseline; gap: 8px; }
.result-day span { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color 240ms ease, box-shadow 300ms ease; }
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform 260ms ease, opacity 260ms ease; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { color: var(--text-muted); max-width: 68ch; }

/* ========== CONTACTO ========== */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-left .h2 { margin-top: 4px; }
.contact-perks { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-perks li { display: flex; gap: 14px; align-items: flex-start; }
.perk-icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.9rem; background: var(--accent); }
.contact-perks strong { color: var(--ink); font-weight: 700; }
.contact-perks p { color: var(--text-muted); font-size: 0.94rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.form input[type="text"], .form input[type="email"] {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 0.96rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form input::placeholder { color: var(--text-faint); }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,146,133,0.12); }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--text-muted); }
.form-consent input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form-consent a { color: var(--accent-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-feedback { font-size: 0.9rem; min-height: 1em; }
.form-feedback.is-error { color: #d1004f; }
.form-feedback.is-info  { color: var(--accent-2); }

/* ========== FOOTER ========== */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: var(--bg-alt); position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 200ms ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { color: var(--text-faint); font-size: 0.82rem; width: 100%; }
.footer-updated { color: var(--text-faint); }

/* ========== PÁGINAS LEGALES ========== */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--topbar-h) + 44px) 24px 96px; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); margin-bottom: 6px;
}
.legal h2 {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin: 36px 0 10px;
}
.legal p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.65; }
.legal ul { list-style: none; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 9px; }
.legal ul li { position: relative; padding-left: 20px; color: var(--text-muted); line-height: 1.55; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-2); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal .legal-updated { color: var(--text-faint); font-size: 0.9rem; margin: 0 0 30px; }
.legal .legal-note {
  margin-top: 34px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-muted); font-size: 0.92rem;
}
.legal .legal-back { display: inline-block; margin-top: 34px; font-weight: 600; color: var(--accent-2); }
.legal .legal-back:hover { color: var(--accent); }

/* ========== REVEAL ========== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.7,0.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { justify-content: flex-start; }
  .answer-card { max-width: 460px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .geo-grid, .results-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  :root { --section-py: 80px; --topbar-h: 64px; }
  .nav-links {
    position: fixed; inset: var(--topbar-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 20px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 240ms ease, transform 240ms ease;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-headline { letter-spacing: -0.02em; }
  .tl-item { grid-template-columns: 82px 30px 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  body::before, .answer-glow, .answer-card { animation: none; }
}
