
  /* ---- A11y / SEO: texto solo para lectores de pantalla y buscadores ---- */
  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* ---- BRAND FONTS (self-hosted, misma tipografía que la app) ---- */
  @font-face {
    font-family: 'CabinetGrotesk';
    src: url('fonts/CabinetGrotesk_Complete/Fonts/WEB/fonts/CabinetGrotesk-Regular.woff2') format('woff2');
    font-weight: 400; font-display: swap; font-style: normal;
  }
  @font-face {
    font-family: 'CabinetGrotesk';
    src: url('fonts/CabinetGrotesk_Complete/Fonts/WEB/fonts/CabinetGrotesk-Medium.woff2') format('woff2');
    font-weight: 500; font-display: swap; font-style: normal;
  }
  @font-face {
    font-family: 'CabinetGrotesk';
    src: url('fonts/CabinetGrotesk_Complete/Fonts/WEB/fonts/CabinetGrotesk-Bold.woff2') format('woff2');
    font-weight: 700; font-display: swap; font-style: normal;
  }
  @font-face {
    font-family: 'CabinetGrotesk';
    src: url('fonts/CabinetGrotesk_Complete/Fonts/WEB/fonts/CabinetGrotesk-Extrabold.woff2') format('woff2');
    font-weight: 800; font-display: swap; font-style: normal;
  }
  @font-face {
    font-family: 'Sentient';
    src: url('fonts/Sentient_Complete/Fonts/WEB/fonts/Sentient-Regular.woff2') format('woff2');
    font-weight: 400; font-display: swap; font-style: normal;
  }
  @font-face {
    font-family: 'Sentient';
    src: url('fonts/Sentient_Complete/Fonts/WEB/fonts/Sentient-Medium.woff2') format('woff2');
    font-weight: 500; font-display: swap; font-style: normal;
  }
  @font-face {
    font-family: 'Sentient';
    src: url('fonts/Sentient_Complete/Fonts/WEB/fonts/Sentient-Italic.woff2') format('woff2');
    font-weight: 400; font-display: swap; font-style: italic;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    /* Paleta real de Elia (tomada de webapp/src/styles/main.css) */
    --bg:           #f7f7f7;
    --bg-deep:      #e8e8e8;
    --card:         #ffffff;
    --border:       #e0e0e0;
    --text:         #333333;
    --text-dim:     #5e5e5e;
    --text-muted:   #8a8a8a;
    --black:        #1c1c1c;

    --green:        #5cb25d;
    --green-dim:    rgba(92,178,93,0.12);
    --gold:         #e0b400;
    --gold-dim:     rgba(255,217,74,0.16);
    --blue:         #6c8cff;
    --blue-dim:     rgba(108,140,255,0.12);
    --purple:       #b388ff;
    --purple-dim:   rgba(179,136,255,0.12);
    --accent:       #fd5b88;
    --accent-light: #ffb7a2;
    --accent-dim:   rgba(253,91,136,0.10);
    --accent-cta:   linear-gradient(135deg, #ffb7a2 0%, #fd5b88 100%);

    --radius:       20px;
    --radius-sm:    12px;
    --shadow:       0 1px 3px rgba(28,28,28,.05), 0 4px 20px rgba(28,28,28,.06);
    --shadow-h:     0 8px 30px rgba(28,28,28,.10);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'CabinetGrotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .serif { font-family: 'Sentient', Georgia, serif; }

  /* ---- NAV ---- */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(247,247,247,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.35s ease, box-shadow 0.3s ease;
  }

  /* El header solo aparece al hacer scroll (oculto arriba del todo) */
  nav.nav-hidden { transform: translateY(-100%); }

  .nav-logo { font-family: 'Sentient', Georgia, serif; font-weight: 500; font-size: 22px; color: #1c1c1c; letter-spacing: -0.5px; text-decoration: none; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .nav-links a:hover { color: var(--text); }
  .nav-links .btn-cta { color: #fff !important; line-height: 1.2; }

  .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--accent-cta);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'CabinetGrotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(253,91,136,0.28);
    transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .btn-cta:hover { opacity: 0.92; box-shadow: 0 6px 20px rgba(253,91,136,0.38); transform: translateY(-1px); }

  .btn-cta.lg { padding: 16px 34px; font-size: 16px; border-radius: 100px; }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: rgba(255,255,255,0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--text);
    border: 1.5px solid var(--black);
    border-radius: 100px;
    font-family: 'CabinetGrotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .btn-ghost:hover { background: rgba(255,255,255,0.75); }

  .btn-cta svg, .btn-ghost svg { transition: transform 0.2s ease; }
  .btn-cta:hover svg { transform: translateX(3px); }

  /* ---- HERO ---- */
  /* El espacio sobrante se acumula ARRIBA de la captura, no debajo (antes
     justify-content:center lo repartía a ambos lados y abría un hueco entre
     la captura y la trust-bar). La captura muere siempre pegada al borde. */
  .hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 96px 24px 0;   /* sin padding inferior: la captura muere en el borde */
    position: relative;
    overflow: hidden;
  }

  /* ---- AURORA: gradiente de marca con grano detrás del titular ---- */
  /* Los focos de color son gradientes radiales, no divs con blur(): mismo
     difuminado, sin el coste de repintado de varias capas filtradas. */
  .aurora {
    position: absolute;
    inset: 0 0 auto 0;
    height: 820px;
    pointer-events: none;
    background:
      radial-gradient(46% 48% at 14% 30%, rgba(253,91,136,0.62) 0%, rgba(253,91,136,0) 100%),
      radial-gradient(44% 46% at 40% 12%, rgba(108,140,255,0.55) 0%, rgba(108,140,255,0) 100%),
      radial-gradient(48% 50% at 88% 26%, rgba(255,183,162,0.85) 0%, rgba(255,183,162,0) 100%),
      radial-gradient(42% 44% at 62% 44%, rgba(179,136,255,0.50) 0%, rgba(179,136,255,0) 100%),
      radial-gradient(38% 40% at 74% 6%,  rgba(253,91,136,0.40) 0%, rgba(253,91,136,0) 100%);
  }

  /* el grano es lo que separa un degradado de plantilla de una pieza diseñada */
  .aurora .grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.9;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  }

  /* funde el color hacia el fondo de la página: sin corte duro */
  .aurora::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(247,247,247,0) 42%, rgba(247,247,247,0.8) 76%, #f7f7f7 100%);
  }

  /* el contenido va por encima del lienzo de color */
  .hero > *:not(.aurora) { position: relative; z-index: 2; }

  /* Logo sobre el titular (estilo Codex: marca encima del hero) */
  .hero-logo {
    height: 46px;
    width: auto;
    margin-bottom: 22px;
    display: block;
  }

  /* en gris: sobre el lienzo, el rosa competía con el titular. El acento
     queda reservado a la itálica del h1 y al CTA. */
  .hero-eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 3px rgba(28,28,28,0.28);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .hero-eyebrow::before, .hero-eyebrow::after {
    content: '';
    width: 26px; height: 1px;
    background: rgba(255,255,255,0.5);
  }

  .hero h1 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    max-width: 760px;
    margin-bottom: 22px;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--accent);
  }

  .hero p {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-dim);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 36px;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-sub {
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-muted);
  }

  /* ---- HERO VISUAL — captura de la app asomando (estilo Codex) ---- */
  /* margin-top:auto absorbe el sobrante del min-height y clava la captura
     al fondo; el padding mantiene la separación mínima con el CTA. */
  .hero-visual {
    margin: auto auto 0;
    padding-top: 76px;
    width: 100%;
    max-width: 1020px;
  }

  .app-shot {
    max-height: 420px;          /* la captura "asoma": se corta por abajo */
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-bottom: none;
    box-shadow: 0 -1px 0 rgba(255,255,255,0.6) inset, 0 24px 80px rgba(28,28,28,0.16);
    background: var(--card);
  }

  .app-shot img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ---- TRUST BAR ---- */
  .trust-bar {
    padding: 90px 24px 100px;
    border-top: 1px solid var(--border);
    background: var(--card);
  }

  .trust-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
  }

  .trust-item img { width: 15px; height: 15px; opacity: 0.65; }

  /* ---- SECTIONS ---- */
  section { padding: 110px 24px; }
  .container { max-width: 1080px; margin: 0 auto; }

  .section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
  }

  .section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1px;
    line-height: 1.2;
  }

  /* ---- FEATURE CARDS ---- */
  .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 42px 38px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
  }

  .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

  .feature-card.green { background: var(--green-dim); }
  .feature-card.gold { background: var(--gold-dim); }
  .feature-card.blue { background: var(--blue-dim); }
  .feature-card.purple { background: var(--purple-dim); }
  .feature-card.dark { background: var(--black); color: #f5f5f5; }

  .feature-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
  }
  .feature-icon img { width: 22px; height: 22px; }

  .green .feature-icon { background: #fff; }
  .gold .feature-icon { background: #fff; }
  .blue .feature-icon { background: #fff; }
  .purple .feature-icon { background: #fff; }
  .dark .feature-icon { background: rgba(255,255,255,0.1); }
  .dark .feature-icon img { filter: invert(1) brightness(2); }

  .feature-card h3 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
    line-height: 1.25;
  }

  .feature-card p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 8px;
  }
  .dark p { color: rgba(245,245,245,0.7); }

  .feature-card p:last-of-type { margin-bottom: 0; }

  .feature-card .highlight { font-weight: 700; color: var(--text); }
  .dark .highlight { color: #fff; }

  .feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

  .feature-tag {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: rgba(255,255,255,0.7);
    color: var(--text);
  }
  .dark .feature-tag { background: rgba(255,255,255,0.1); color: #fff; }

  /* ---- WIDE CARD (chat) ---- */
  .feature-card.wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .feature-card.wide .feature-visual {
    display: flex; align-items: center; justify-content: center;
  }

  .chat-mockup {
    width: 100%;
    max-width: 340px;
    background: #262626;
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  }

  .chat-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 88%;
  }

  .chat-bubble.user {
    background: var(--accent-cta);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    font-weight: 500;
  }

  .chat-bubble.elia {
    background: #3a3a3a;
    color: #e8e8e8;
    border-bottom-left-radius: 4px;
  }

  .chat-bubble.elia .elia-name {
    font-weight: 700;
    font-size: 11px;
    color: var(--accent-light);
    display: block;
    margin-bottom: 4px;
  }
  .chat-bubble.elia .elia-src {
    display: block; margin-top: 7px;
    font-size: 11px; color: rgba(232,232,232,0.55); font-weight: 600;
  }

  /* ---- WHY / DIFERENCIACIÓN (split: texto + verdict card) ---- */
  #por-que .container { max-width: 1260px; }
  .why-split {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 56px;
    align-items: center;
  }
  .why-text h2 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -1px;
    line-height: 1.18;
    margin-bottom: 18px;
  }
  .why-text > p {
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .why-text .lead { color: var(--text); font-weight: 600; }
  .why-qs { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .why-qs li {
    display: flex; align-items: center; gap: 12px;
    font-size: 16px; font-weight: 600; color: var(--text);
  }
  .why-qs li::before {
    content: '';
    width: 20px; height: 20px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-cta);
    box-shadow: 0 2px 8px rgba(253,91,136,0.28);
  }

  /* ---- VERDICT CARD (ejemplo real) ---- */
  .verdict {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-h);
  }
  .verdict-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px; margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
  }
  .verdict-head .doc { font-weight: 700; font-size: 15px; color: var(--text); }
  .verdict-head .amount { font-weight: 700; font-size: 15px; color: var(--text-dim); }
  .verdict-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 0; border-bottom: 1px solid var(--border); gap: 16px;
  }
  .verdict-row:last-of-type { border-bottom: none; }
  .verdict-label { color: var(--text-muted); font-size: 13px; font-weight: 600; flex-shrink: 0; }
  .verdict-value { font-weight: 700; font-size: 14.5px; color: var(--text); text-align: right; }
  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 100px;
    font-size: 12.5px; font-weight: 700;
  }
  .badge.alta { background: var(--green-dim); color: #3a8a3b; }
  .verdict-source {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 12.5px; color: var(--text-muted);
    display: flex; align-items: center; gap: 7px;
  }
  .verdict-source img { width: 13px; height: 13px; opacity: 0.6; }

  /* ---- A CIEGAS (miedos) ---- */
  .ciegas { background: var(--black); }
  .ciegas .container { max-width: 720px; text-align: center; }
  .ciegas .section-eyebrow { color: var(--accent-light); }
  .ciegas-q {
    font-family: 'Sentient', serif;
    font-style: italic;
    font-size: clamp(22px, 3.4vw, 32px);
    line-height: 1.35;
    color: #f5f5f5;
    margin-bottom: 10px;
  }
  .ciegas-q.dim { color: rgba(245,245,245,0.45); }
  .ciegas-resolve {
    margin-top: 34px;
    font-size: 17px;
    color: rgba(245,245,245,0.8);
    line-height: 1.6;
  }
  .ciegas-resolve strong { color: #fff; font-weight: 700; }

  /* ---- SHOWCASE (filas de feature con captura real) ---- */
  #producto .container { max-width: 1260px; }
  .showcase-row {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 56px;
    align-items: center;
    margin-bottom: 100px;
  }
  .showcase-row.reverse { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }
  .showcase-row:last-child { margin-bottom: 0; }
  .showcase-row.reverse .showcase-visual { order: -1; }

  .showcase-text .section-eyebrow { text-align: left; }
  .showcase-text h3 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.6px;
    line-height: 1.18;
    margin-bottom: 14px;
  }
  .showcase-text p { color: var(--text-dim); font-size: 16px; line-height: 1.62; margin-bottom: 10px; }
  .showcase-text p:last-of-type { margin-bottom: 0; }
  .showcase-text .highlight { color: var(--text); font-weight: 700; }
  .showcase-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .showcase-tags span {
    padding: 6px 14px; border-radius: 100px;
    font-size: 12px; font-weight: 700;
    background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  }

  .shot-frame {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28,28,28,0.14);
    background: var(--card);
  }
  .shot-frame img { width: 100%; height: auto; display: block; }

  /* placeholder para capturas que aún faltan */
  .shot-pending {
    border: 2px dashed var(--border);
    border-radius: 16px;
    min-height: 280px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center; padding: 32px;
    color: var(--text-muted); background: var(--card);
  }
  .shot-pending .cam { font-size: 26px; opacity: 0.5; margin-bottom: 6px; }
  .shot-pending strong { color: var(--text-dim); font-size: 14px; font-weight: 700; }
  .shot-pending span { font-size: 12.5px; }

  /* ---- MOCKUP CUOTA / SEGURIDAD SOCIAL (tramos RETA) ---- */
  .rc-mock {
    --rc-orange: #f5a623;
    --rc-pay:    #cfc9c1;
    --rc-idle:   #e6e6e6;
    padding: 20px 22px 22px;
    font-size: 13px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
  }

  .rc-tabs {
    display: flex; justify-content: center; gap: 40px;
    border-bottom: 1px solid var(--border);
    margin: 0 -22px 20px; padding: 0 22px 12px;
  }
  .rc-tab { font-size: 14px; font-weight: 600; color: var(--text-muted); position: relative; padding-bottom: 12px; }
  .rc-tab.active { color: var(--text); }
  .rc-tab.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; border-radius: 2px; background: var(--accent);
  }

  .rc-table-wrap { overflow-x: auto; }
  .rc-table {
    width: 100%; border-collapse: collapse;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .rc-table th {
    font-size: 10px; font-weight: 700; letter-spacing: .3px;
    color: var(--text-muted); text-align: right;
    padding: 4px 6px 10px; text-transform: uppercase;
  }
  .rc-table td {
    font-size: 12px; text-align: right; color: var(--text-dim);
    padding: 9px 6px; border-top: 1px solid var(--border);
  }
  .rc-table .rc-yr { text-align: left; padding-left: 2px; }
  .rc-table th.rc-yr, .rc-table th.rc-tot { }
  .rc-table td.rc-yr { color: var(--text-dim); font-weight: 500; }
  .rc-table td.rc-cur { color: var(--text); font-weight: 800; }
  .rc-table .rc-tot { padding-right: 2px; font-weight: 700; }
  .rc-table td.rc-dim { color: var(--text-muted); opacity: .55; }
  .rc-table td.rc-neg { color: var(--accent); font-weight: 800; }

  .rc-add {
    margin: 14px 0 4px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 16px; border: 1px solid var(--border); border-radius: 100px;
    background: var(--card); color: var(--text-dim);
    font-family: inherit; font-size: 12px; font-weight: 600;
  }

  .rc-panel {
    margin-top: 18px;
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--card); padding: 18px;
  }
  .rc-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
  .rc-panel-title { font-family: 'Sentient', serif; font-weight: 500; font-size: 16px; letter-spacing: -.3px; color: var(--text); }
  .rc-panel-tramo { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); }
  .rc-panel-tramo strong { color: var(--text); font-weight: 700; }
  .rc-panel-sub { font-size: 12.5px; color: var(--text-dim); }
  .rc-panel-sub strong { color: var(--text); font-weight: 700; }
  .rc-panel-year { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

  .rc-chart {
    display: flex; align-items: flex-end; gap: 4px;
    height: 150px; margin: 30px 0 8px;
  }
  .rc-bar { flex: 1; height: var(--h); display: flex; align-items: flex-end; position: relative; }
  .rc-fill { width: 100%; height: 100%; border-radius: 4px 4px 0 0; background: var(--rc-idle); }
  .rc-fill.rc-pay  { background: var(--rc-pay); }
  .rc-fill.rc-real { background: var(--accent); }
  .rc-fill.rc-est  { background: var(--rc-orange); }
  .rc-tag {
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    font-size: 9.5px; font-weight: 700; line-height: 1.15; text-align: center; white-space: nowrap;
  }
  .rc-tag-real { color: var(--accent); }
  .rc-tag-est  { color: var(--rc-orange); }

  .rc-axis, .rc-axis-ends { display: flex; gap: 4px; }
  .rc-axis span {
    flex: 1; text-align: center; font-size: 10px; color: var(--text-muted); font-variant-numeric: tabular-nums;
  }
  .rc-axis .rc-x-real { color: var(--accent); font-weight: 700; }
  .rc-axis .rc-x-est  { color: var(--rc-orange); font-weight: 700; }
  .rc-axis-ends { justify-content: space-between; margin-top: 4px; }
  .rc-axis-ends span { font-size: 10px; color: var(--text-muted); }

  .rc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
  .rc-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); }
  .rc-dot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
  .rc-d-real { background: var(--accent); }
  .rc-d-est  { background: var(--rc-orange); }
  .rc-d-pay  { background: var(--rc-pay); }

  .rc-divider { height: 1px; background: var(--border); margin: 16px 0; }

  .rc-foot { display: flex; align-items: center; gap: 14px; }
  .rc-cta {
    flex-shrink: 0;
    padding: 11px 20px; border: none; border-radius: 100px;
    background: var(--black); color: #fff;
    font-family: inherit; font-size: 13px; font-weight: 600;
  }
  .rc-warn { display: flex; align-items: flex-start; gap: 8px; }
  .rc-warn-ico {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-dim); font-size: 13px;
  }
  .rc-warn p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
  .rc-warn strong { color: var(--text); font-weight: 700; }
  .rc-note { margin-top: 14px; font-size: 10.5px; color: var(--text-muted); line-height: 1.5; }

  @media (max-width: 560px) {
    .rc-mock { padding: 16px; }
    .rc-foot { flex-direction: column; align-items: stretch; }
    .rc-cta { align-self: flex-start; }
  }

  /* ---- HOW IT WORKS ---- */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
  }

  .step {
    text-align: center;
    padding: 0 12px;
  }

  .step-num {
    width: 40px; height: 40px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Sentient', serif;
    font-size: 17px;
    font-weight: 500;
  }

  .step h3 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
  }

  .step p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
  }

  /* ---- MODELOS STRIP ---- */
  .modelos-section { padding-top: 0; }
  .modelos-strip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 44px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
  }

  .modelos-text { flex: 1; min-width: 220px; }
  .modelos-text h2,
  .modelos-text h3 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
  }
  .modelos-text p { color: var(--text-dim); font-size: 14.5px; }

  .modelos-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 2;
  }

  .modelo-pill {
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--bg-deep);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
  }

  /* ---- VERIFACTU URGENCIA ---- */
  .verifactu-section { padding-top: 0; }
  .verifactu-strip {
    background: var(--gold-dim);
    border: 1px solid rgba(224,180,0,0.25);
    border-radius: var(--radius);
    padding: 28px 36px;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  }
  .verifactu-strip .vf-badge {
    font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
    text-transform: uppercase; color: #a37f00;
    background: rgba(255,255,255,0.7); padding: 6px 12px; border-radius: 100px;
  }
  .verifactu-strip p { flex: 1; min-width: 240px; font-size: 15.5px; color: var(--text); font-weight: 600; }
  .verifactu-strip p span { color: var(--text-dim); font-weight: 400; }

  /* ---- CTA FINAL ---- */
  .cta-section {
    text-align: center;
    padding: 100px 24px 120px;
    position: relative;
  }

  .cta-section h2 {
    font-family: 'Sentient', serif;
    font-weight: 500;
    font-size: clamp(30px, 4.5vw, 50px);
    letter-spacing: -1px;
    line-height: 1.18;
    margin-bottom: 16px;
  }

  .cta-section p {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 36px;
  }

  /* ---- API SEED (footer) ---- */
  .api-seed {
    padding: 44px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
  }
  .api-seed p { font-size: 14px; color: var(--text-dim); }
  .api-seed a { color: var(--accent); font-weight: 700; text-decoration: none; }
  .api-seed a:hover { text-decoration: underline; }

  /* ---- FOOTER ---- */
  footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  footer img { height: 16px; opacity: 0.5; }

  footer p {
    font-size: 13px;
    color: var(--text-muted);
  }

  /* ---- ANIMATIONS ---- */
  .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }

  /* ---- PAGINACIÓN LATERAL (puntos verticales) ---- */
  .section-dots {
    position: fixed;
    right: 22px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    align-items: center;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
  }
  .section-dots a {
    width: 8px; height: 8px;
    border-radius: 100px;
    background: rgba(28,28,28,0.20);
    transition: height 0.35s ease, background 0.35s ease;
  }
  .section-dots a:hover { background: rgba(28,28,28,0.45); }
  .section-dots a.active { height: 26px; background: var(--accent); }

  /* ---- RESPONSIVE ---- */
  @media (max-width: 860px) {
    .section-dots { display: none; }
    .nav-links a:not(.btn-cta) { display: none; }
    section { padding: 80px 20px; }
    .features { grid-template-columns: 1fr; }
    .feature-card.wide { grid-template-columns: 1fr; }
    .why-split { grid-template-columns: 1fr; gap: 36px; }
    .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
    .showcase-row.reverse .showcase-visual { order: 0; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 72px 20px 0; min-height: unset; }
    .hero-logo { height: 38px; }
    .aurora { height: 620px; }
    .hero-visual { padding-top: 48px; }
    .app-shot { max-height: 230px; border-radius: 12px 12px 0 0; }
    .trust-bar { padding: 60px 20px 70px; }
    .modelos-strip { flex-direction: column; align-items: flex-start; }
    .verifactu-strip { padding: 24px; }
  }

  /* ============================================================
     POLISH — animaciones v2 (entrada hero, aurora viva, sheen,
     reveal escalonado, micro-interacciones). Todo se anula bajo
     prefers-reduced-motion (bloque al final).
     ============================================================ */

  /* ---- Entrada del hero al cargar (escalonada, sin JS) ---- */
  @keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-logo,
  .hero h1,
  .hero-eyebrow,
  .hero p,
  .hero-actions {
    animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero-logo    { animation-delay: 0.05s; }
  .hero h1      { animation-delay: 0.15s; }
  .hero-eyebrow { animation-delay: 0.26s; }
  .hero p       { animation-delay: 0.34s; }
  .hero-actions { animation-delay: 0.44s; }

  /* ---- Aurora viva: deriva y respiración muy lentas ---- */
  @keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-1.5%, 1.2%, 0) scale(1.05); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
  }
  .aurora {
    animation: auroraDrift 24s ease-in-out infinite;
    will-change: transform;
  }
  /* el grano titila apenas, para que el color "viva" */
  @keyframes grainBreathe { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
  .aurora .grain { animation: grainBreathe 8s ease-in-out infinite; }

  /* ---- Sheen: barrido de luz al pasar por los CTA ---- */
  .btn-cta { position: relative; overflow: hidden; }
  .btn-cta > * { position: relative; z-index: 1; }
  .btn-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    transform: skewX(-22deg);
    pointer-events: none;
  }
  @keyframes sheen { to { left: 150%; } }
  .btn-cta:hover::after { animation: sheen 0.85s ease; }

  /* ---- Reveal escalonado de hijos (trust, pills) ---- */
  .stagger > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .stagger.visible > * { opacity: 1; transform: none; }
  .stagger.visible > *:nth-child(1)  { transition-delay: 0.04s; }
  .stagger.visible > *:nth-child(2)  { transition-delay: 0.09s; }
  .stagger.visible > *:nth-child(3)  { transition-delay: 0.14s; }
  .stagger.visible > *:nth-child(4)  { transition-delay: 0.19s; }
  .stagger.visible > *:nth-child(5)  { transition-delay: 0.24s; }
  .stagger.visible > *:nth-child(6)  { transition-delay: 0.29s; }
  .stagger.visible > *:nth-child(7)  { transition-delay: 0.34s; }
  .stagger.visible > *:nth-child(8)  { transition-delay: 0.39s; }

  /* ---- Micro-interacciones ---- */
  .trust-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(0,0,0,0.10);
  }

  .modelo-pill { transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease; }
  .modelo-pill:hover { transform: translateY(-2px); background: var(--accent-dim); color: var(--accent); }

  .showcase-tags span,
  .feature-tag { transition: transform 0.18s ease; }
  .showcase-tags span:hover,
  .feature-tag:hover { transform: translateY(-2px); }

  .nav-logo { transition: opacity 0.2s ease; }
  .nav-logo:hover { opacity: 0.7; }

  /* foco visible del formulario (accesibilidad + pulido) */
  #waitlist-form input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  #waitlist-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }

  /* ---- Chat mockup: indicador de escritura antes de la respuesta ---- */
  .typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
  }
  .typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(232,232,232,0.6);
    animation: typingDot 1.2s infinite ease-in-out both;
  }
  .typing span:nth-child(2) { animation-delay: 0.18s; }
  .typing span:nth-child(3) { animation-delay: 0.36s; }
  @keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1;   }
  }
  /* la respuesta de Elia entra tras el typing (la controla main.js) */
  .chat-bubble.elia.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .chat-bubble.elia.reveal.shown { opacity: 1; transform: none; }

  /* ---- Respeto absoluto a quien pide menos movimiento ---- */
  @media (prefers-reduced-motion: reduce) {
    .hero-logo, .hero h1, .hero-eyebrow, .hero p, .hero-actions { animation: none; }
    .aurora, .aurora .grain { animation: none; }
    .btn-cta:hover::after { animation: none; }
    .fade-up { opacity: 1 !important; transform: none !important; transition: none; }
    .stagger > * { opacity: 1 !important; transform: none !important; transition: none; }
    .chat-bubble.elia.reveal { opacity: 1 !important; transform: none !important; }
    .typing span { animation: none; }
    html { scroll-behavior: auto; }
  }
