/* Home de Lurimis · sistema «Hora azul» (brand/DESIGN.md). Solo afecta a body.page-home */

.page-home {
  --night: #1C2140; --night2: #2A3058; --night3: #0F1226; --cream: #F4E9DA; --cream2: #EADBC6;
  --terra: #B4532A; --terra-dk: #9A4421; --tung: #FFB765;
  /* tokens del sitio reasignados a «Hora azul» */
  --ink: #1C2140; --ink-2: #2A3058; --ink-3: #4E5170; --paper: #F4E9DA; --paper-2: #EADBC6; --white: #FBF6EE;
  --muted: #4E5170; --muted-dark: #B9B3C6; --line: rgba(28, 33, 64, .14); --line-dark: rgba(244, 233, 218, .16);
  --signal: #B4532A; --signal-ink: #B4532A; --top: #FFB765; --mid: #EADBC6; --low: #8C8FA8;
  --f-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --f-body: "Geist", system-ui, sans-serif;
  background: var(--night3);
  font-variation-settings: normal;
}
.page-home ::selection { background: var(--tung); color: var(--night); }
.page-home h1, .page-home h2 { font-family: var(--f-display); font-weight: 380; font-variation-settings: "SOFT" 50, "opsz" 144; letter-spacing: -.025em; }
.page-home h3 { font-family: var(--f-body); font-weight: 600; letter-spacing: -.01em; }
.page-home .btn--signal, .page-home .btn--signal:hover { color: var(--cream); }
.page-home .btn--signal:hover { background: var(--terra-dk); }
.page-home .site-header { position: fixed; left: 0; right: 0; background: rgba(15, 18, 38, .9); }
.page-home .nav-main .btn { color: var(--cream); }
.page-home .site-footer { background: var(--night3); }
.mono { font-family: var(--f-mono); font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cap { display: inline-block; } .cap::first-letter { text-transform: uppercase; }

/* ---------------- FILM ---------------- */
.film { position: relative; height: 1000vh; color: var(--cream); background: var(--night3); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(120% 90% at 70% 50%, #262C55 0%, var(--night) 45%, var(--night3) 100%); --band: 100%; }
.stage::after { content: ""; position: absolute; inset: -50%; pointer-events: none; z-index: 8; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }
.film__cv, .film__portal, .film__grid { position: absolute; left: 0; top: 0; width: 100%; height: var(--band); }
.film__cv { opacity: 0; }
.film__portal { z-index: 5; overflow: hidden; opacity: 0; visibility: hidden; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 183, 101, .5), 0 30px 80px -10px rgba(255, 183, 101, .35); }
.film__portal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__vig { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(15, 18, 38, .82) 0%, rgba(15, 18, 38, .32) 45%, rgba(15, 18, 38, 0) 68%), radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(15, 18, 38, .5) 100%); }
.film__dusk { position: absolute; inset: 0; background: var(--night3); opacity: 0; pointer-events: none; }
.film__grid { pointer-events: none; opacity: 0; display: grid; place-items: center end; padding-right: max(96px, 9vw); }
.film__grid svg { width: min(50vh, 460px); height: auto; overflow: visible; }
.film__grid .gyou { font: 700 11px var(--f-body); fill: var(--tung); letter-spacing: .02em; paint-order: stroke; stroke: var(--night3); stroke-width: 4px; stroke-linejoin: round; }
.film__grid .gring { fill: none; stroke: var(--tung); stroke-width: 2.5; }
.film__portal--back { z-index: 7; box-shadow: 0 0 0 1px rgba(255, 183, 101, .6); }
.film__grid text { font: 600 13px var(--f-mono); text-anchor: middle; dominant-baseline: central; fill: var(--night); }
.film__gl { position: absolute; right: max(24px, 6vw); bottom: 11vh; color: #D8CBB8; font-size: 11px; max-width: 230px; text-align: right; }

.fhero { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 72px max(24px, 6vw) 0; max-width: 1440px; margin: 0 auto; }
.fhero h1 { font-size: clamp(48px, 7vw, 104px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; margin: 0; }
.fhero__eyebrow { display: block; font: 500 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tung); margin-bottom: 22px; }
.fhero h1 em, .chap h2 em, .fclose h2 em { color: var(--tung); font-style: italic; }
.fhero p { max-width: 46ch; margin: 22px 0 0; color: #E2D5C3; }
.fctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--terra); color: var(--cream); font: 600 16px var(--f-body); text-decoration: none; transition: background .2s; }
.fbtn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.fbtn:hover { background: var(--terra-dk); } .fbtn:hover svg { transform: translateX(4px); }
.fbtn--ghost { background: transparent; border: 1px solid rgba(244, 233, 218, .5); } .fbtn--ghost:hover { background: rgba(244, 233, 218, .1); }
.page-home a:focus-visible, .page-home button:focus-visible { outline: 3px solid var(--tung); outline-offset: 3px; }
.fhint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: #B9AFA0; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.fhint i { width: 1px; height: 38px; background: linear-gradient(var(--tung), transparent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.phone-wrap { justify-self: center; position: relative; }
.phone { width: min(330px, 80vw); aspect-ratio: 9 / 18.5; border-radius: 46px; background: #0B0D1C; padding: 12px; box-shadow: 0 0 0 1px #343A66, 0 40px 120px -20px rgba(255, 183, 101, .28), 0 30px 60px -30px rgba(15, 18, 38, .8); }
.screen { position: relative; height: 100%; border-radius: 36px; background: #FBF6EE; color: var(--night); overflow: hidden; padding: 54px 16px 16px; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0B0D1C; }
.q { display: flex; align-items: center; gap: 10px; border-radius: 999px; background: #fff; box-shadow: 0 1px 0 #E8DCCB, 0 6px 18px -8px rgba(28, 33, 64, .25); padding: 12px 16px; font-size: 15px; }
.q svg { flex: none; }
.caret { display: inline-block; width: 1.5px; height: 18px; background: var(--terra); margin-left: 1px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.map { height: 92px; margin: 14px 0 10px; border-radius: 14px; background: linear-gradient(135deg, #E9DFCF, #DCCDB7); position: relative; overflow: hidden; }
.map::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(28deg, transparent 0 22px, rgba(255, 255, 255, .55) 22px 25px), repeating-linear-gradient(-62deg, transparent 0 30px, rgba(255, 255, 255, .45) 30px 33px); }
.pin { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--terra); }
.pin--you { background: var(--tung); box-shadow: 0 0 0 4px rgba(255, 183, 101, .35); }
.res { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.res li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.3; }
.res li b { font-weight: 600; display: block; } .res li small { color: #5E6180; }
.res .n { font: 500 12px var(--f-mono); color: var(--terra); }
.res li.gap { background: transparent; outline: 1.5px dashed #8E87A0; color: #5E6180; } .res li.gap .n { color: #8E87A0; }
.res li.mine { background: #FFF4E4; outline: 1.5px solid var(--tung); grid-template-columns: 22px 44px 1fr; }
.res li.mine img { width: 44px; height: 32px; object-fit: cover; border-radius: 6px; }
.res li.more { background: transparent; opacity: .55; font-size: 12px; }
.more-l { font: 500 10px var(--f-mono); letter-spacing: .1em; color: #6E6886; margin: 6px 0 2px 4px; }
.ej { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font: 500 10px var(--f-mono); letter-spacing: .14em; color: #6E6886; }

.chap { position: absolute; left: max(24px, 6vw); bottom: 11vh; max-width: 600px; opacity: 0; visibility: hidden; }
.chap .mono, .fclose .mono { color: var(--tung); margin: 0; }
.chap h2 { font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; margin: 14px 0 0; text-wrap: balance; color: var(--cream); }
.chap p { margin: 16px 0 0; max-width: 46ch; color: #E9DCCB; }
.chap a:not(.fplan) { color: var(--tung); }
.chap__rec { margin-top: 16px !important; color: #A89F92 !important; font-size: 11px; }
.fplan { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; max-width: 460px; padding: 14px 18px; border-radius: 14px; background: rgba(28, 33, 64, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(244, 233, 218, .18); color: var(--cream); text-decoration: none; }
.fplan b { font: 500 22px var(--f-mono); color: var(--tung); white-space: nowrap; }
.fplan span { font-size: 14px; color: #D8CBB8; }
.fplan:hover { border-color: var(--tung); }
.fchat { margin-top: 18px; max-width: 440px; display: grid; gap: 8px; font-size: 15px; }
.fchat p { margin: 0; }
.fchat .u { justify-self: end; background: rgba(244, 233, 218, .14); border-radius: 14px 14px 4px 14px; padding: 9px 14px; max-width: 80%; }
.fchat .a { background: var(--cream); color: var(--night); border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 90%; }
.fchat .a small { display: block; margin-top: 6px; font: 500 11px var(--f-mono); color: var(--terra); }
.findex { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 6; }
.findex span { width: 18px; height: 2px; background: rgba(244, 233, 218, .3); transition: width .4s var(--ease), background .4s; }
.findex span.on { width: 34px; background: var(--tung); }

.fclose { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 72px max(24px, 6vw) 0; max-width: 1440px; margin: 0 auto; opacity: 0; visibility: hidden; }
.fclose h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.02; margin: 14px 0 0; color: var(--cream); }
.fclose p:not(.mono) { margin: 18px 0 0; max-width: 44ch; color: #E2D5C3; }

/* ---------- versión estática: sin JS, reduced-motion o ahorro de datos ---------- */
:is(html:not(.js) .film, .film.is-static) { height: auto; }
:is(html:not(.js) .film, .film.is-static) .stage { position: relative; height: auto; overflow: visible; background: var(--night3); }
:is(html:not(.js) .film, .film.is-static) .stage::after, :is(html:not(.js) .film, .film.is-static) .film__cv, :is(html:not(.js) .film, .film.is-static) .film__portal, :is(html:not(.js) .film, .film.is-static) .film__vig, :is(html:not(.js) .film, .film.is-static) .film__dusk, :is(html:not(.js) .film, .film.is-static) .film__grid, :is(html:not(.js) .film, .film.is-static) .fhint, :is(html:not(.js) .film, .film.is-static) .findex { display: none; }
:is(html:not(.js) .film, .film.is-static) .fhero { position: relative; min-height: 100svh; }
:is(html:not(.js) .film, .film.is-static) .chap { position: relative; inset: auto; max-width: none; opacity: 1; visibility: visible; min-height: 92svh; display: flex; align-items: flex-end; padding: 0 max(24px, 6vw) 10vh; background: linear-gradient(90deg, rgba(15, 18, 38, .85), rgba(15, 18, 38, .2) 70%), var(--s) center / cover no-repeat; }
:is(html:not(.js) .film, .film.is-static) .chap__in { max-width: 600px; }
:is(html:not(.js) .film, .film.is-static) .fclose { position: relative; inset: auto; opacity: 1; visibility: visible; min-height: 100svh; }

/* ---------------- ZONA DE LECTURA ---------------- */
.read { background: var(--paper); color: var(--ink); }
.read .section-head h2, .read h2 { font-size: var(--step-3); line-height: 1.05; }
.plans-note { margin-top: 28px; text-align: center; color: var(--muted); }
.proof__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.proof__list li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.proof__list a { font-family: var(--f-mono); font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--signal-ink); }
.proof__list a:hover { text-decoration: underline; }
.proof__list span { color: var(--muted); }
@media (max-width: 560px) { .proof__list li { grid-template-columns: 1fr; gap: 4px; } }
.nos-wrap .section-head h2 { max-width: 12ch; }
.nos--strike h3 span { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--tung), var(--tung)) no-repeat 0 55% / 0 2px; transition: background-size 1s var(--ease) .2s; }
.nos--strike.is-in h3 span { background-size: 100% 2px; }
.nos--strike > div:nth-child(2) h3 span { transition-delay: .35s; }
.nos--strike > div:nth-child(3) h3 span { transition-delay: .5s; }
.nos--strike > div:nth-child(4) h3 span { transition-delay: .65s; }
.nos--strike > div:nth-child(5) h3 span { transition-delay: .8s; }
.nos--strike > div:nth-child(6) h3 span { transition-delay: .95s; }
.cta-band--city { isolation: isolate; position: relative; }
.cta-city__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta-city__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-city__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 18, 38, .94) 0%, rgba(15, 18, 38, .78) 45%, rgba(15, 18, 38, .45) 100%); }
.cta-city__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta-band--city h2 { font-size: var(--step-3); }
.form--card { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.form--card .btn { width: 100%; }
@media (max-width: 880px) { .cta-city__grid { grid-template-columns: 1fr; } }
.read > section { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ---------------- MÓVIL ---------------- */
@media (max-width: 780px) {
  .stage { --band: calc(100vw * .91); }
  .film__cv, .film__portal, .film__grid { top: 72px; }
  .fhero { grid-template-columns: 1fr; align-content: start; gap: 20px; padding-top: calc(72px + 5vh); }
  .fhero h1 { font-size: clamp(42px, 11.5vw, 60px); }
  .fhero p { font-size: 15px; margin-top: 14px; max-width: 34ch; }
  .fctas { margin-top: 20px; }
  .fhero .fbtn--ghost, .fclose .fbtn--ghost { display: none; }
  .phone-wrap { position: absolute; left: 50%; bottom: -6px; margin-left: -90px; }
  .phone { width: 180px; border-radius: 32px; padding: 8px; }
  .screen { border-radius: 25px; padding: 40px 10px 10px; }
  .screen::before { top: 9px; width: 70px; height: 20px; margin-left: -35px; }
  .q { padding: 8px 10px; font-size: 11px; gap: 6px; white-space: nowrap; }
  .map { height: 72px; margin: 10px 0 8px; }
  .res { gap: 6px; }
  .res li { padding: 7px 9px; font-size: 11px; grid-template-columns: 16px 1fr; gap: 7px; }
  .res li.mine { grid-template-columns: 16px 36px 1fr; } .res li.mine img { width: 36px; height: 26px; }
  .fhint, .findex, .fchat { display: none; }
  #phone .map { display: none; }
  #phone .res { margin-top: 12px; }
  .film__vig { background: linear-gradient(180deg, transparent 0, transparent calc(72px + var(--band) - 110px), var(--night3) calc(72px + var(--band))); }
  .chap { top: calc(72px + var(--band) + 18px); bottom: auto; right: 20px; left: 20px; }
  .chap h2 { font-size: clamp(30px, 8.4vw, 40px); margin-top: 10px; }
  .chap p { font-size: 15.5px; margin-top: 10px; }
  .chap__rec { margin-top: 10px !important; }
  .fplan { margin-top: 12px; padding: 12px 14px; } .fplan b { font-size: 18px; }
  .film__grid { place-items: center; padding-right: 0; }
  .film__grid svg { width: 72vw; margin-bottom: 18px; }
  .film__gl { bottom: 6px; right: 12px; left: 12px; max-width: none; text-align: center; font-size: 9.5px; }
  #fclose .map { display: none; }
  #fclose .more-l, #fclose .more { display: none; }
  .res li small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #fclose .res:first-of-type { margin-top: 12px; }
  .fclose .fctas { position: relative; z-index: 8; }
  .fclose { grid-template-columns: 1fr; align-content: start; padding-top: calc(72px + 5vh); gap: 18px; }
  .fclose h2 { font-size: clamp(34px, 9.6vw, 50px); }
  .fclose p:not(.mono) { font-size: 15px; }
  .fclose .phone-wrap { position: absolute; left: 50%; bottom: -6px; margin-left: -90px; }
  :is(html:not(.js) .film, .film.is-static) .fhero, :is(html:not(.js) .film, .film.is-static) .fclose { min-height: 0; padding-bottom: 48px; }
  :is(html:not(.js) .film, .film.is-static) .phone-wrap { position: relative; left: auto; bottom: auto; margin: 8px auto 0; }
  :is(html:not(.js) .film, .film.is-static) .chap { min-height: 0; inset: auto; }
  :is(html:not(.js) .film, .film.is-static) .fhero, :is(html:not(.js) .film, .film.is-static) .fclose { padding-left: 20px; padding-right: 20px; }
  :is(html:not(.js) .film, .film.is-static) .chap { background: linear-gradient(180deg, transparent 0, transparent 50vw, var(--night3) 91vw), var(--sm) top / 100% auto no-repeat, var(--night3); padding: 78vw 20px 56px; }
}
@media (max-width: 780px) and (max-height: 760px) { .fhero .phone-wrap, .fclose .phone-wrap { transform: scale(.74); transform-origin: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .stage::after, .caret, .fhint i { animation: none; } .nos--strike h3 span { background-size: 100% 2px; } }
.page-home .wa-float { transition: opacity .3s, transform .3s; } .page-home .wa-float:not(.is-shown) { opacity: 0; pointer-events: none; transform: scale(.8); }
