/* Portada de Olo Studio — capítulos: héroe (negro) · marquesina · declaración (blanco) · tres tomas (blanco)
   · set en vivo (negro) · tu Olo (blanco) · habla con Olo (negro) · formatos · cifras · preguntas (blanco) · cierre (negro).
   Depende de site.css. */

/* ── Héroe: texto centrado arriba y Olo asomando sobre el horizonte del planeta ── */
.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: var(--night); color: var(--moon);
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 104px)); min-height: max(100svh, calc(660px + 33vw)); }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: clamp(15px, 1.4vw, 19px); }
.hero .h1 { max-width: 14ch; }
.hero .h1 em { color: var(--moon-2); }
.ln { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.ln > span { display: inline-block; transform: translateY(112%); animation: up 1.2s var(--ease) calc(0.15s + var(--d, 0) * 0.13s) forwards; }
@keyframes up { to { transform: none; } }
.hero .lead { margin: 24px auto 0; max-width: 34ch; color: rgba(245, 245, 247, 0.92); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85); }
.hero .ctas { margin-top: 30px; }
.hero .ctas .btn-g, .hero .ctas a:not(.btn-p) { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9); }
.hero-note { margin-top: 18px; font-size: 14px; color: #cbd5e1; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9); }
.hero-stage { position: absolute; left: 50%; bottom: 0; z-index: 0; width: max(100%, 1100px); aspect-ratio: 16 / 9; pointer-events: none;
  transform: translate3d(-50%, calc(var(--py, 0) * 1px), 0) scale(var(--sc, 1)); transform-origin: 50% 100%; }
.hero-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(4, 6, 12, 0.85) 0%, rgba(4, 6, 12, 0.48) 46%, rgba(4, 6, 12, 0.12) 100%); }
.hero-stage picture { display: block; height: 100%; animation: rise 2.2s var(--ease) 0.2s both; }
.hero-stage img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.76) contrast(1.05); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%); mask-image: linear-gradient(to bottom, transparent 0, #000 38%); }
@keyframes rise { from { transform: translateY(9%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) {
  .hero { min-height: auto; display: flex; flex-direction: column; padding-bottom: 0; }
  .hero-stage { position: relative; left: auto; bottom: auto; width: 100%; aspect-ratio: 864 / 1000; margin-top: -4vw; transform: translate3d(0, calc(var(--py, 0) * 1px), 0) scale(var(--sc, 1)); }
  .hero-stage img { object-position: 50% 82%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%); }
  .hero .h1 { font-size: clamp(44px, 13vw, 64px); }
}

/* ── Marquesina de formatos ── */
.marquee { position: relative; z-index: 3; overflow: hidden; background: var(--night); border-block: 1px solid var(--line-d); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: mq 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font-size: clamp(26px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.035em; color: #5b5d6b; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--moon); }
.marquee-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-d); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── Capítulos genéricos ── */
.sx { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.sx-head { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(44px, 6vw, 80px); }
.sx-head.center { justify-items: center; text-align: center; }
.sx-head .h2 { max-width: 16ch; }

/* ── Declaración: las palabras se encienden con el scroll ── */
.statement { padding: clamp(110px, 15vw, 200px) 0 clamp(40px, 6vw, 80px); }
.scrub { max-width: 22ch; margin-inline: auto; text-align: center; font-size: clamp(32px, 5.2vw, 70px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; text-wrap: balance; }
.scrub .w { opacity: calc(0.16 + var(--on, 1) * 0.84); }

/* ── Tres tomas: tarjetas que se apilan al hacer scroll ── */
.stack { display: grid; gap: 28px; }
.k3 { position: sticky; top: calc(var(--nav-h) + 24px + var(--n) * 22px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: center;
  min-height: min(500px, 72svh); padding: clamp(28px, 4.4vw, 64px); border-radius: 34px; overflow: hidden; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.35); }
.k3.a { background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgb(0 0 0 / 0.25); }
.k3.b { background: var(--night); color: var(--moon); }
.k3.c { background: var(--blue-fill); color: #fff; }
.k3 .num { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--ink-3); }
.k3.b .num { color: var(--blue-d); }
.k3.c .num { color: rgb(255 255 255 / 0.65); }
.k3 h3 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 14px; text-wrap: balance; }
.k3 p { max-width: 34ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--ink-2); }
.k3.b p { color: var(--moon-2); }
.k3.c p { color: rgb(255 255 255 / 0.8); }
.k3-vis { justify-self: center; display: grid; place-items: center; width: 100%; min-height: 280px; }
.bub { display: grid; gap: 10px; width: min(330px, 100%); }
.bub p { max-width: 86%; width: fit-content; padding: 12px 16px; border-radius: 20px 20px 20px 6px; font-size: 16px; line-height: 1.35; color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 28px -10px rgb(0 0 0 / 0.18); }
.bub p.me { justify-self: end; background: var(--blue-fill); color: #fff; border-radius: 20px 20px 6px 20px; }
.sprite { width: 256px; height: 256px; position: relative; }
.frame916 { position: relative; width: 150px; aspect-ratio: 9 / 16; border: 2px solid rgb(255 255 255 / 0.9); border-radius: 22px; display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; line-height: 1.7; text-align: center; color: #fff; background: rgb(255 255 255 / 0.1); }
@media (max-width: 860px) {
  .k3 { grid-template-columns: 1fr; top: calc(var(--nav-h) + 14px + var(--n) * 14px); min-height: 0; gap: 8px; padding: 28px 24px; border-radius: 28px; }
  .k3-vis { min-height: 180px; }
  .sprite { width: 180px; height: 180px; }
  .frame916 { width: 96px; }
}

/* ── Set en vivo: el teléfono queda fijo y el escenario cambia con el scroll ── */
.sets { background: var(--night); color: var(--moon); }
.sets-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; }
.sets-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.phone { position: relative; height: min(76svh, 740px); aspect-ratio: 9 / 16; padding: 9px; border-radius: 50px; background: linear-gradient(145deg, #2b2e3d, #0a0b11);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 60px 120px -30px rgb(0 0 0 / 0.9), 0 0 140px -20px rgb(43 89 255 / 0.35); }
.phone::before { content: ''; position: absolute; left: 50%; top: 18px; z-index: 3; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 999px; background: #05060b; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 42px; background: var(--night-2); }
.screen canvas { width: 100%; height: 100%; object-fit: cover; }
.phone-chip { position: absolute; left: 14px; top: 56px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: rgb(5 6 11 / 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; color: var(--moon); }
.phone-sub { position: absolute; left: 8%; right: 8%; bottom: 23%; text-align: center; font-weight: 600; font-size: clamp(0.95rem, 1.6vw, 1.25rem); line-height: 1.3; color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / 0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.phone-sub.swap { opacity: 0; transform: translateY(8px); }
.sets-list { padding-block: 30svh; }
.sets-list .sx-head { margin-bottom: 14svh; }
.sets-list .sx-head .h2 em { color: var(--moon-2); }
.sets .label { color: var(--moon-2); }
.set { min-height: 58svh; display: grid; align-content: center; gap: 12px; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.set.on { opacity: 1; }
.set .num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--blue-d); }
.set h3 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.set p { max-width: 32ch; color: var(--moon-2); font-size: clamp(17px, 1.5vw, 20px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags span { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--moon-2); box-shadow: inset 0 0 0 1px var(--line-d); }
@media (max-width: 860px) {
  .sets-grid { grid-template-columns: 1fr; gap: 0; }
  .sets-stage { height: 62svh; top: var(--nav-h); z-index: 2; background: linear-gradient(to bottom, var(--night) 82%, transparent); }
  .phone { height: min(54svh, 480px); border-radius: 40px; padding: 7px; }
  .screen { border-radius: 33px; }
  .sets-list { padding-block: 10svh; }
  .sets-list .sx-head { margin-bottom: 8svh; }
  .set { min-height: 34svh; }
}

/* ── Tu Olo ── */
.yours { text-align: center; }
.big { white-space: nowrap; font-size: clamp(38px, 9.6vw, 140px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; margin: 18px 0 8px; }
.big .nm { color: var(--blue); }
.caret { display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.04em; vertical-align: -0.06em; background: var(--blue); animation: rec 1s steps(2, start) infinite; }
.yours .lead { margin-inline: auto; max-width: 44ch; }
.pers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(44px, 6vw, 72px); text-align: left; }
.per { --mx: 50%; --my: 0%; position: relative; display: grid; gap: 14px; align-content: start; padding: 32px 30px; border-radius: 28px; background: var(--paper-2); overflow: hidden; }
.per::before { content: ''; position: absolute; inset: 0; background: radial-gradient(280px circle at var(--mx) var(--my), rgb(27 69 232 / 0.1), transparent 70%); opacity: 0; transition: opacity 0.4s var(--ease); }
.per:hover::before { opacity: 1; }
.per b { position: relative; font-size: 15px; font-weight: 600; color: var(--blue); }
.per q { position: relative; quotes: none; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.per span { position: relative; font-size: 15px; color: var(--ink-3); }
.wear { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.wear img { width: 56px; height: 56px; padding: 6px; border-radius: 18px; background: var(--paper-2); }
.wear p { width: 100%; margin-top: 4px; font-size: 15px; color: var(--ink-3); }
@media (max-width: 860px) { .pers { grid-template-columns: 1fr; } }

/* ── Habla con Olo ── */
.talk-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px 80px; align-items: center; }
.talk .h2 em { color: var(--moon-2); }
.talk .label { color: var(--moon-2); }
.talk-list { display: grid; margin-top: 32px; max-width: 46ch; }
.talk-list li { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line-d); }
.talk-list b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.talk-list span { color: var(--moon-2); font-size: 16px; }
.convo { display: grid; gap: 12px; padding: 22px; border-radius: 36px; background: var(--night-2); box-shadow: 0 0 0 1px var(--line-d), 0 60px 100px -40px rgb(43 89 255 / 0.3); }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--moon-2); }
.who i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pearl); color: #15131f; font-style: normal; font-family: var(--sans); font-weight: 700; font-size: 12px; }
.msg { max-width: 84%; padding: 12px 16px; border-radius: 22px; font-size: 16px; line-height: 1.4; }
.msg.me { justify-self: end; background: var(--blue-fill-d); color: #fff; border-bottom-right-radius: 6px; }
.msg.olo { background: var(--night-3); border-bottom-left-radius: 6px; }
.msg.olo b { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--blue-d); font-weight: 500; }
.save { justify-self: center; margin-top: 6px; padding: 9px 18px; border-radius: 999px; background: var(--pearl); color: #15131f; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .talk-grid { grid-template-columns: 1fr; } }

/* ── Formatos ── */
.formats { overflow: hidden; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut))) 28px; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail:active { cursor: grabbing; }
.fmt { --c: var(--blue); flex: 0 0 min(320px, 80vw); scroll-snap-align: start; display: grid; align-content: start; gap: 14px; padding: 28px; border-radius: 30px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 24px 50px -24px rgb(0 0 0 / 0.2); }
.fmt .tag { justify-self: start; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--c); }
.fmt h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; min-height: 2.2em; }
.script { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: var(--paper-2); font-size: 15px; line-height: 1.4; }
.script b { font-weight: 600; }
.set-n { margin-top: 4px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rail-hint { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
@media (min-width: 1100px) { .rail-hint { display: none; } }

/* ── Cifras ── */
.facts-sec { padding: clamp(64px, 9vw, 120px) 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fact { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--ink); }
.fact b { font-size: clamp(46px, 7.4vw, 104px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact > span { font-size: 16px; color: var(--ink-2); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 36px 18px; } }

/* ── Preguntas ── */
.faq .sx-head { margin-bottom: clamp(32px, 5vw, 56px); }
.qa { display: grid; max-width: 860px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 20px 0; cursor: pointer; font-size: clamp(19px, 2vw, 26px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat; transition: transform 0.4s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0 0 26px; max-width: 64ch; color: var(--ink-2); line-height: 1.65; }

/* ── Cierre: el wordmark enorme, cortado por abajo, con Olo asomando delante ── */
.finale { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 15vw, 200px) 0 clamp(280px, 34vw, 470px); isolation: isolate; }
.huge { font-size: clamp(64px, 13vw, 190px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; }
.finale .huge em { font-style: normal; color: var(--moon-2); }
.finale p { margin: 22px auto 0; max-width: 36ch; font-size: clamp(18px, 1.8vw, 22px); color: var(--moon-2); }
.finale .ctas { margin-top: 34px; }
.finale-mark { position: absolute; left: 50%; bottom: -0.2em; z-index: -1; transform: translateX(-50%); font-size: clamp(120px, 31vw, 470px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.82; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.16); pointer-events: none; user-select: none; }
.finale-olo { position: absolute; left: 50%; bottom: -3%; z-index: 0; width: min(44vw, 340px); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; }
.finale-olo .sprite { width: 100%; height: 100%; background-size: 1600% 800%; }
.finale-olo .sprite.on { animation-name: idle-f; }
@keyframes idle-f { to { background-position: 106.666% 0; } }
.finale::before { content: ''; position: absolute; left: 50%; bottom: -10%; z-index: -1; width: min(1100px, 120vw); height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(43 89 255 / 0.3), transparent 70%); }

/* La sonrisa del héroe se traza sola un momento después de que el titular sube. */
.hero .hl::after { clip-path: inset(0 100% 0 0); transition: none; animation: draw 1.2s var(--ease) 1.3s forwards; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }

/* ── Grid comparativo de 3 planes ── */
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plans-grid .fmt { min-width: 0; }
.plans-grid .fmt.featured { box-shadow: 0 0 0 2px var(--blue-fill), 0 28px 60px -30px rgb(37 99 235 / 0.35); }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }
