/* ============================================================
   YayosChat — landing v2
   Identidad conservada: azul/verde/crema del logo y del paisaje.
   ============================================================ */
/* Tipografías alojadas en nuestro servidor (sin pedir nada a Google). Subconjunto latino: cubre español. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-stretch: 100%; font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --azul: #3a8dde;          /* marca: ilustración y formas grandes */
  --azul-accion: #2a6fbe;   /* botones y enlaces (5.1:1 con texto blanco) */
  --azul-noche: #1e3c6e;    /* títulos y tinta */
  --noche-bg: #16294d;      /* única sección oscura (video) */
  --verde: #7ccb73;
  --verde-texto: #2f7a3b;
  --crema: #f8f4ec;
  --papel: #fffdf9;
  --sol: #ffe59a;
  --coral: #f2907e;
  --rojo: #e5544f;
  --tinta: #203a62;
  --suave: #46586f;
  --linea: rgba(30, 60, 110, 0.14);
  --f-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--azul-accion); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--azul-noche); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
section[id] { scroll-margin-top: 72px; }

.h2 {
  margin: 0; color: var(--azul-noche);
  font: 800 clamp(1.9rem, 4.2vw, 3rem) / 1.05 var(--f-display);
  letter-spacing: -0.03em; text-wrap: balance;
}
.h2--light { color: #fff; }
.h3 { margin: 0 0 16px; font: 700 1.25rem / 1.2 var(--f-display); letter-spacing: -0.02em; color: var(--azul-noche); }

/* ---------- Botones y enlaces ---------- */
.btn {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  font: 700 1rem / 1 var(--f-body);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary { background: var(--azul-accion); color: #fff; box-shadow: 0 10px 22px -8px rgba(42, 111, 190, 0.55); }
.btn--primary:hover { background: #245fa3; }
.btn--ghost { background: var(--papel); color: var(--azul-accion); border-color: rgba(42, 111, 190, 0.35); }
.btn--ghost:hover { border-color: var(--azul-accion); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.link-quiet {
  color: var(--azul-accion); font-weight: 700; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: rgba(42, 111, 190, 0.35);
}
.link-quiet:hover { text-decoration-color: var(--azul-accion); }
.link-inline { color: var(--azul-accion); font-weight: 700; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 236, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--linea);
}
.nav__in { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 46px; height: auto; }
.brand__word { font: 800 1.5rem / 1 var(--f-display); letter-spacing: -0.03em; }
.brand__yayos { color: #4a9be0; }
.brand__chat { color: #6dbe68; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  white-space: nowrap; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; color: var(--suave);
}
.nav__links a:hover { background: rgba(30, 60, 110, 0.07); color: var(--azul-noche); }
.nav__cta { display: flex; align-items: center; gap: 16px; }

/* ---------- Héroe ---------- */
.hero {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__title {
  margin: 0 0 22px; color: var(--azul-noche);
  font: 800 clamp(2.6rem, 6.2vw, 5rem) / 0.98 var(--f-display);
  letter-spacing: -0.04em; text-wrap: balance;
}
.hero__lead { margin: 0; max-width: 34em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--suave); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero__actions--center { justify-content: center; }
.hero__note { margin: 20px 0 0; color: var(--suave); font-weight: 600; }

.hero__art { position: relative; }
.stage {
  position: relative; aspect-ratio: 16 / 10; border-radius: 44px; overflow: hidden; isolation: isolate;
  background: #dcecf7; box-shadow: 0 34px 60px -30px rgba(22, 41, 77, 0.38);
}
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Avatares ilustrados */
.av { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg, #bfe0ff); }
.av svg { width: 100%; height: 100%; }

/* Tablet */
.tablet { position: relative; }
.tablet__bezel { background: #1e3c6e; border-radius: 3.4cqw; padding: 1.4cqw; box-shadow: inset 0 0 0 0.25cqw rgba(255, 255, 255, 0.12); }
.tablet__screen { position: relative; aspect-ratio: 4 / 3; border-radius: 2.2cqw; overflow: hidden; background: linear-gradient(180deg, #cfe9ff 0%, #eaf6e6 100%); }
.t-layer { position: absolute; inset: 0; }
.t-idle { display: flex; flex-direction: column; align-items: center; padding: 3.2cqw 2.4cqw 0; }
.t-title { margin: 0 0 2.6cqw; text-align: center; color: var(--azul-noche); font: 800 max(11px, 2.5cqw) / 1.1 var(--f-display); letter-spacing: -0.02em; }
.t-grid { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw 1.6cqw; }
.t-c { display: flex; flex-direction: column; align-items: center; gap: 0.8cqw; }
.t-c .av { max-width: 11.5cqw; border: 0.5cqw solid #fff; box-shadow: 0 0.6cqw 1.6cqw rgba(30, 60, 110, 0.2); }
.t-name { text-align: center; color: var(--azul-noche); font: 800 max(8px, 1.7cqw) / 1.1 var(--f-body); }

.phone { position: relative; }
.phone__bezel { background: #1e3c6e; border-radius: 4.6cqw; padding: 1cqw; }
.phone__screen { position: relative; aspect-ratio: 9 / 19; border-radius: 3.7cqw; overflow: hidden; background: #16294d; }


.stage @keyframes k-dots { 0%, 23% { opacity: 0; } 27%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }


.stage__pause {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 249, 0.92); color: var(--azul-noche);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(22, 41, 77, 0.2);
}
.stage__pause-icon { width: 18px; height: 18px; }

/* ---------- Por qué nació ---------- */
.story { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 120px); }
.story__intro { max-width: 34em; margin: 18px 0 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--suave); }
.frames { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.frame--drop { margin-top: clamp(0px, 4vw, 56px); }
.frame__fig { margin: 0; }
.frame__art { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 8 / 5; }
.frame__art > img { width: 100%; height: 100%; object-fit: cover; }
.frame__cap { margin-top: 16px; color: var(--suave); line-height: 1.5; }
.frame__t { display: block; margin-bottom: 6px; color: var(--azul-noche); font: 700 1.2rem / 1.2 var(--f-display); letter-spacing: -0.02em; }

/* ---------- Video (maqueta con guion animado) ---------- */
.film { background: var(--noche-bg); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.film :focus-visible { outline-color: var(--sol); }
.film__in { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.film__lead { margin: 18px 0 0; max-width: 26em; color: rgba(255, 255, 255, 0.8); font-size: 1.15rem; }
.film__player { position: relative; }
.film__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0e1b34; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; background: #0e1b34; }

/* ---------- Cómo funciona ---------- */
.how { background: var(--papel); padding: clamp(56px, 8vw, 112px) 0; border-block: 1px solid var(--linea); }
.how__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "title stage" "steps stage"; grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 6vw, 80px); align-items: start;
}
.how__title { grid-area: title; }
.how__intro { margin: 16px 0 28px; color: var(--suave); }
.steps { grid-area: steps; list-style: none; margin: 0; padding: 0; }
.step {
  width: 100%; display: flex; gap: 18px; text-align: left; padding: 20px 8px 20px 0;
  border: 0; border-top: 1px solid var(--linea); border-radius: 0; background: none;
  font: inherit; color: inherit; cursor: pointer;
}
.steps li:last-child .step { border-bottom: 1px solid var(--linea); }
.step__n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e6eef8; color: var(--azul-noche); font: 800 1.15rem / 1 var(--f-display); transition: background-color 0.2s, color 0.2s; }
.step__b { display: grid; gap: 4px; }
.step__t { color: var(--azul-noche); font: 700 1.25rem / 1.2 var(--f-display); letter-spacing: -0.02em; }
.step__d { color: var(--suave); font-size: 1rem; }
.step.is-on .step__n { background: var(--azul-accion); color: #fff; }
.how__stage { grid-area: stage; position: sticky; top: 96px; }
.mini { position: relative; aspect-ratio: 1.08 / 1; border-radius: 36px; overflow: hidden; isolation: isolate; container-type: inline-size; background: linear-gradient(180deg, #d8edff, #f4f9ea 65%, #e1f2e0); }
.mini::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/yayos_scenic_landscape.svg") 50% 100% / cover no-repeat; }
.scene { position: absolute; inset: 0; }
.scene.is-on { animation: k-scene 0.35s ease; }
@keyframes k-scene { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.phone--mini { position: absolute; left: 50%; top: 50%; width: 36cqw; transform: translate(-50%, -50%) rotate(2deg); filter: drop-shadow(0 2cqw 2.4cqw rgba(22, 41, 77, 0.3)); }
.tablet--mini { position: absolute; left: 8%; top: 22%; width: 64cqw; transform: rotate(-2deg); filter: drop-shadow(0 2cqw 2.4cqw rgba(22, 41, 77, 0.3)); }
.phone--scan { left: auto; top: auto; right: 6%; bottom: 8%; width: 26cqw; transform: rotate(4deg); }

.app { display: flex; flex-direction: column; padding-bottom: 4cqw; background: #fffdf9; }
.app__bar { margin: 0; padding: 5cqw 3cqw 2cqw; background: #eaf4ff; color: var(--azul-noche); font: 800 max(10px, 2.6cqw) / 1 var(--f-display); }
.app__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1.4cqw; color: var(--suave); }
.app__heart { width: 8cqw; height: 8cqw; color: var(--coral); }
.app__hint { margin: 0; font: 600 max(9px, 1.9cqw) / 1.2 var(--f-body); }
.app__btn { margin: 0 3cqw; padding: 2.4cqw 0; border-radius: 999px; background: var(--azul-accion); color: #fff; text-align: center; font: 700 max(9px, 2cqw) / 1 var(--f-body); }
.app__btn--green { background: #2f8f46; }
.app__list { flex: 1; list-style: none; margin: 0; padding: 2cqw 3cqw; display: grid; align-content: start; gap: 2cqw; }
.app__row { display: flex; align-items: center; gap: 2cqw; }
.av--sm { flex: none; width: 7cqw; }
.app__name { flex: 1; color: var(--azul-noche); font: 700 max(9px, 2cqw) / 1.1 var(--f-body); }
.chip { padding: 0.8cqw 1.6cqw; border-radius: 999px; background: #e8f5e5; color: var(--verde-texto); font: 700 max(7px, 1.4cqw) / 1 var(--f-body); }
.qr { display: grid; justify-items: center; align-content: center; gap: 2cqw; background: #f4f9ea; }
.qr__t { margin: 0; padding: 0 4cqw; text-align: center; color: var(--azul-noche); font: 800 max(10px, 2.4cqw) / 1.1 var(--f-display); }
.qr__code { width: 24cqw; height: 24cqw; padding: 1.4cqw; border-radius: 2cqw; background: #fff; box-shadow: 0 0.8cqw 2cqw rgba(22, 41, 77, 0.2); }
.app--scan { background: #0e1b34; }
.app--scan .app__bar { background: transparent; color: #fff; }
.scan-frame { flex: 1; margin: 3cqw; border-radius: 2cqw; border: 0.5cqw dashed var(--sol); }
.notice { position: absolute; right: 5%; bottom: 9%; max-width: 56%; display: flex; align-items: center; gap: 1.6cqw; padding: 1.8cqw 2.4cqw; border-radius: 2.4cqw; background: #fff; box-shadow: 0 1.2cqw 3cqw rgba(22, 41, 77, 0.25); }
.notice__ic { flex: none; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--azul-accion); display: grid; place-items: center; }
.notice__ic svg { width: 3cqw; height: 3cqw; color: #fff; }
.notice__tx { display: grid; gap: 0.4cqw; color: var(--suave); font: 600 max(8px, 1.5cqw) / 1.2 var(--f-body); }
.notice__tx strong { color: var(--azul-noche); font: 800 max(9px, 2cqw) / 1.15 var(--f-body); }
.t-idle--static { position: absolute; inset: 0; }

/* ---------- Círculo cerrado ---------- */
.closed { padding: clamp(56px, 8vw, 112px) 0; }
.closed__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-top: clamp(28px, 4vw, 48px); }
.closed__col { padding: clamp(24px, 3vw, 40px); border-radius: 32px; }
.closed__col--in { background: #e9f6e6; }
.closed__col--out { border: 2px dashed rgba(30, 60, 110, 0.28); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.tick { flex: none; width: 26px; height: 26px; padding: 5px; margin-top: 1px; border-radius: 50%; background: var(--verde-texto); color: #fff; }
.ticks--out li { color: var(--suave); }
.ticks--out .tick { background: #dde3ec; color: #5b6b82; }

/* ---------- Preguntas ---------- */
.faq { padding: clamp(56px, 8vw, 104px) 0; background: var(--papel); border-top: 1px solid var(--linea); }
.faq__in { width: min(820px, calc(100% - 40px)); margin: 0 auto; }
.faq__list { margin-top: 28px; border-top: 1px solid var(--linea); }
.faq__item { border-bottom: 1px solid var(--linea); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  color: var(--azul-noche); font: 700 1.15rem / 1.25 var(--f-display); letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 11px; height: 11px; margin: -4px 6px 0 0; border-right: 3px solid var(--azul-accion); border-bottom: 3px solid var(--azul-accion); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq__item[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.faq__item p { max-width: 40em; margin: 0 0 22px; color: var(--suave); }

/* ---------- Cierre ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; background: #f6ecd9; }
.cta__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 80% 60%; }
.cta__in { padding: 28px 20px 48px; width: min(1180px, 100%); margin: 0 auto; }
.cta__title { margin: 0; color: var(--azul-noche); font: 800 clamp(2.1rem, 5vw, 3.8rem) / 1 var(--f-display); letter-spacing: -0.04em; text-wrap: balance; }
.cta__lead { max-width: 24em; margin: 14px 0 0; color: var(--suave); font-size: 1.15rem; }
@media (min-width: 900px) {
  .cta { min-height: clamp(460px, 46vw, 660px); display: grid; align-items: center; }
  .cta__img { position: absolute; inset: 0; z-index: -1; height: 100%; aspect-ratio: auto; object-position: 100% 50%; }
  .cta__in { padding: 56px 0; width: min(1180px, calc(100% - 40px)); }
  .cta__title, .cta__lead, .cta .hero__actions { max-width: min(46%, 520px); }
}

/* ---------- Pie ---------- */
.foot { padding: 28px 0 36px; background: var(--crema); border-top: 1px solid var(--linea); }
.foot__in { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; gap: 12px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { color: var(--suave); font-weight: 600; text-underline-offset: 3px; }
.foot__copy { margin: 0; color: var(--suave); font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { display: contents; }
  .hero__title { order: 1; }
  .hero__lead { order: 2; }
  .hero__art { order: 3; max-width: 640px; margin-top: 28px; }
  .hero__actions { order: 4; }
  .hero__note { order: 5; }
  .film__in { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; grid-template-areas: "title" "stage" "steps"; row-gap: 24px; }
  .how__stage { position: static; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 760px) {
  .frames { grid-template-columns: 1fr; }
  .frame--drop { margin-top: 0; }
  .closed__cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav__cta .link-quiet { display: none; }
  .hero__actions .btn { width: 100%; }
  .stage, .mini { border-radius: 28px; }
}

/* ---------- Movimiento reducido: se muestra el estado final, sin animar ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene.is-on { animation: none; }
  .step__n, .faq__item summary::after { transition: none; }
  .stage__pause { display: none; }
}
