/* Affix landing v2 — presencia física: headline monumental (Anton) sobre
   atmósfera en movimiento, bloques de color contundentes. Tokens del producto. */

/* Anton self-hosted: browsers con bloqueadores (Comet) cortan Google Fonts
   y el monumental caía a una fuente ancha que rompía el encuadre. */
@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #0A2540;
  --navy-deep: #061A2E;
  --indigo: #635BFF;
  --snow: #F6F9FC;
  --mist: #E3E8EE;
  --danger: #DF1B41;
  --warning: #F5A623;
  --success: #30B277;
  --muted: #64748B;
  --subtle: #94A3B8;
  --monu: "Anton", Impact, sans-serif;
  --body: "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--navy); background: #fff; line-height: 1.6; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* tipografía monumental */
.monu { font-family: var(--monu); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
.monu-s { font-family: var(--monu); font-weight: 400; text-transform: uppercase; line-height: .96; font-size: clamp(34px, 4.6vw, 62px); margin-bottom: 28px; }
.monu-m { font-family: var(--monu); font-weight: 400; text-transform: uppercase; line-height: .94; font-size: clamp(48px, 7vw, 96px); margin-bottom: 20px; }
.monu-h { font-family: var(--monu); font-size: clamp(56px, 7vw, 104px); color: var(--indigo); line-height: 1; }

/* ── nav: fondo siempre presente para ser legible sobre cualquier sección ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: rgba(6,26,46,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-in { display: flex; align-items: center; gap: 28px; padding: 14px 28px; }
.logo { font-weight: 700; font-size: 26px; color: #fff; letter-spacing: -0.02em; mix-blend-mode: normal; }
.logo-s { font-size: 20px; }
.nav-links { display: flex; gap: 22px; margin-right: auto; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.pillbtn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14.5px; text-decoration: none; border-radius: 999px; padding: 11px 22px; transition: transform .15s ease, opacity .15s, background .15s; }
.pillbtn:hover { transform: scale(1.03); }
.pillbtn-light { background: #fff; color: var(--navy); }
.pillbtn-dark { background: var(--navy-deep); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.pillbtn-solid { background: var(--indigo); color: #fff; }
.pillbtn-outline { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.pillbtn-lg { padding: 16px 34px; font-size: 16.5px; }

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px 24px 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 90% at 20% 10%, #12365C 0%, transparent 55%),
  radial-gradient(110% 80% at 85% 85%, #23407A 0%, transparent 50%),
  var(--navy-deep); }
.hero-bg::after { content: ""; position: absolute; inset: -50%; background:
  radial-gradient(60% 45% at 60% 40%, rgba(99,91,255,.28) 0%, transparent 60%);
  animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(5%, 4%) scale(1.08); } }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg video.on { opacity: .5; }
.hero-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,46,.55) 0%, rgba(6,26,46,.35) 45%, rgba(6,26,46,.82) 100%); }
.hero-in { position: relative; max-width: 1200px; }
.hero-what { display: inline-block; font-size: clamp(13px, 1.3vw, 16px); font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 9px 20px; margin-bottom: 30px; backdrop-filter: blur(6px); }
.hero-what strong { color: var(--warning); }
.hero .monu { font-size: clamp(64px, 11.5vw, 190px); color: #fff; text-shadow: 0 4px 60px rgba(0,0,0,.35); }
.monu-line { display: block; overflow: hidden; }
.monu-line > span { display: inline-block; transform: translateY(110%); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.monu-line:nth-child(2) > span { animation-delay: .12s; }
.monu-line:nth-child(3) > span { animation-delay: .24s; color: var(--warning); }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub { color: rgba(255,255,255,.85); font-size: clamp(16px, 1.6vw, 20px); max-width: 56ch; margin: 28px auto 32px; font-weight: 500; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-kicker { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.55); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 0 24px; }

/* ── postura (navy) ── */
.postura { background: var(--navy); color: #fff; }
.postura .wrap { padding: 110px 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.postura .eyebrow { color: rgba(255,255,255,.45); }
.eyebrow-inv { color: rgba(255,255,255,.55); }
.claim { font-size: clamp(24px, 3vw, 40px); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; max-width: 30ch; margin-bottom: 36px; color: rgba(255,255,255,.65); }
.claim em { font-style: normal; color: var(--warning); }
.claim-hit { color: #fff; }
.claim-hit strong { color: var(--indigo); background: #fff; padding: 0 10px; }

/* ── una mañana ── */
.manana { background: var(--snow); }
.manana .wrap { padding: 110px 24px 90px; }
.momento { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 44px 0; border-top: 1px solid var(--mist); align-items: start; }
.momento h3 { font-size: 21px; margin-bottom: 10px; }
.momento-body > p { color: var(--muted); font-size: 16.5px; max-width: 64ch; }

.digest { background: #fff; border: 1px solid var(--mist); border-radius: 12px; box-shadow: 0 32px 70px -30px rgba(10,37,64,.35); padding: 22px; max-width: 480px; margin-top: 24px; }
.digest-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.digest-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); flex-shrink: 0; }
.digest-from { font-weight: 700; font-size: 14px; }
.digest-time { font-size: 12.5px; color: var(--subtle); }
.digest-foot { font-size: 12.5px; color: var(--subtle); margin-top: 12px; }
.pcard { border: 1px solid var(--mist); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; }
.pcard p { font-size: 13px; color: var(--muted); }
.pcard-ai { color: var(--indigo) !important; margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--indigo); }
.pill { font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-rojo { background: rgba(223,27,65,.1); color: var(--danger); }
.pill-amarillo { background: rgba(245,166,35,.16); color: #B87A0D; }
.sema-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; border: 1px solid var(--mist); border-radius: 10px; padding: 14px 20px; margin-top: 22px; max-width: 560px; font-size: 14.5px; background: #fff; box-shadow: 0 16px 40px -22px rgba(10,37,64,.3); }
.sema-name { font-weight: 600; margin-right: auto; }
.gap { color: var(--danger); }

/* ── con dientes (indigo) ── */
.dientes { background: var(--indigo); color: #fff; }
.dientes-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; padding-top: 110px; padding-bottom: 110px; align-items: center; }
.dientes-p { color: rgba(255,255,255,.85); font-size: 17px; margin-bottom: 16px; max-width: 54ch; }
.dientes-p strong { color: #fff; }
.ciclo { list-style: none; display: flex; flex-direction: column; }
.ciclo li { display: flex; align-items: center; gap: 16px; padding: 17px 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); font-size: 15px; font-weight: 600; }
.ciclo li + li { border-top: 0; }
.ciclo li:first-child { border-radius: 10px 10px 0 0; }
.ciclo li:last-child { border-radius: 0 0 10px 10px; background: var(--navy-deep); border-color: var(--navy-deep); }
.ciclo-n { color: var(--warning); font-weight: 700; }

/* ── contraste ── */
.contraste .wrap { padding: 110px 24px; }
.contraste-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
.contraste-grid h3 { font-size: 13px; letter-spacing: .1em; margin-bottom: 14px; }
.contraste-grid p { color: var(--muted); font-size: 17px; max-width: 52ch; }
.antes h3 { color: var(--subtle); }
.despues { border-left: 4px solid var(--success); padding-left: 30px; }
.despues h3 { color: var(--success); }
.remate { margin-top: 72px; margin-bottom: 0; }

/* ── final + foot ── */
.final { background: var(--navy); color: #fff; }
.final-in { padding: 130px 24px; text-align: center; }
.final p { color: rgba(255,255,255,.65); max-width: 52ch; margin: 0 auto 40px; font-size: 17px; }
.foot { background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 13.5px; }
.foot .logo { color: var(--indigo); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 30px; padding-bottom: 30px; flex-wrap: wrap; }
.foot a { color: rgba(255,255,255,.8); text-decoration: none; }

/* ── motion ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .monu-line > span { animation: none; transform: none; }
  .hero-bg::after { animation: none; }
  .hero-bg video { display: none; }
}
:focus-visible { outline: 2px solid var(--warning); outline-offset: 2px; }

/* ── responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .pillbtn-dark { display: none; }
  .hero { padding-top: 90px; }
  .hero .monu { font-size: clamp(52px, 14.5vw, 96px); }
  .momento { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
  .monu-h { font-size: 44px; }
  .dientes-grid, .contraste-grid { grid-template-columns: 1fr; gap: 32px; }
  .dientes-grid { padding-top: 72px; padding-bottom: 72px; }
  .postura .wrap, .manana .wrap, .contraste .wrap { padding-top: 72px; padding-bottom: 72px; }
  .final-in { padding: 88px 24px; }
  .despues { border-left: 0; padding-left: 0; border-top: 4px solid var(--success); padding-top: 22px; }
  .remate { margin-top: 48px; }
}
