/* Fundum · landing */
:root { --ink: #16243A; --ink-2: #22344F; --ink-3: #0E1828; --paper: #EFEEEA; --card: #F9F8F5; --rule: #D8D5CD; --muted: #5D6873; --text-2: #3A4653;
  --gold: #A06A2F; --gold-l: #D4A86A; --gold-t: #E8CFA4; --on-dark: #C9D0D8; --ok: #2E7D4F;
  --serif: "Newsreader", Georgia, serif; --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 18px/1.55 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
.eyebrow { display: inline-block; font-size: 16px; font-weight: 600; color: var(--gold); margin-bottom: 10px; }
.eyebrow.light { color: var(--gold-l); }

/* ---- cabecera: transparente sobre la portada, sólida al bajar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; color: var(--paper); padding-top: env(safe-area-inset-top, 0px); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.top.solid { background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 26px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--on-dark); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--gold-l); transition: right .3s var(--ease); }
.nav a:hover { color: var(--paper); } .nav a:hover::after { right: 0; }
.auth { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn:active { transform: scale(.97); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 20px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { color: var(--paper); border-color: rgba(239,238,234,.45); background: rgba(14,24,40,.35); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(14,24,40,.35); }
.btn-solid { background: var(--gold-l); color: var(--ink); }
.btn-solid:hover { background: #DDB884; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-lg { padding: 15px 28px; font-size: 18px; }
@media (max-width: 860px) { .nav { display: none; } .top .wrap { gap: 12px; height: 64px; } .btn { padding: 9px 14px; font-size: 15px; } .btn-lg { padding: 13px 22px; font-size: 17px; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---- portada con fondos que se suceden */
.hero { position: relative; min-height: max(680px, 100svh); color: var(--paper); overflow: hidden; display: flex; align-items: center; background: var(--ink-3); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: -2%; background: center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.6s var(--ease); will-change: opacity, transform; }
.slide.on { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14,24,40,.92) 0%, rgba(14,24,40,.78) 38%, rgba(14,24,40,.25) 70%, rgba(14,24,40,.35) 100%),
  linear-gradient(0deg, rgba(14,24,40,.85) 0%, rgba(14,24,40,0) 30%),
  linear-gradient(180deg, rgba(14,24,40,.6) 0%, rgba(14,24,40,0) 22%); }
.hero-in { width: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 48px; align-items: end; padding-top: 130px; padding-bottom: 120px; }
.badge { display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid rgba(212,168,106,.7); color: var(--gold-t); border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 600; background: rgba(14,24,40,.5); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-l); box-shadow: 0 0 0 0 rgba(212,168,106,.7); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212,168,106,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(212,168,106,0); } }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 7.6vw, 104px); line-height: .97; letter-spacing: -.02em; margin: 24px 0 0; max-width: 12ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .lead { font-size: clamp(18px, 1.8vw, 21px); color: #DCE1E7; max-width: 48ch; margin: 24px 0 0; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--on-dark); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(212,168,106,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23D4A86A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
/* tarjeta flotante que cambia con cada inmueble */
.hcard { justify-self: end; width: min(340px, 100%); background: rgba(14,24,40,.62); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; padding: 22px 22px 18px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hcard .swap { animation: swapIn .6s var(--ease) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.hc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hc-top small { font-size: 14px; color: var(--gold-t); font-weight: 600; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: var(--ink); color: var(--paper); }
.pill.ok { background: var(--ok); }
.hc-title { display: block; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin-top: 14px; }
.hc-city { display: block; color: var(--on-dark); font-size: 15.5px; margin-top: 4px; }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); }
.hc-stats small { display: block; font-size: 13px; color: var(--on-dark); }
.hc-stats b { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--gold-l); line-height: 1.15; }
.bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold-l); transition: width 1.1s var(--ease); }
.hc-funded { display: block; margin-top: 8px; font-size: 14px; color: var(--on-dark); }
.hero-dots { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.hero-dots i::after { content: ""; position: absolute; inset: 0; background: var(--gold-l); transform: scaleX(0); transform-origin: left; }
.hero-dots button.on i::after { animation: fill var(--dur, 6s) linear forwards; }
.hero-dots button.done i::after { transform: scaleX(1); }
.hero.paused .hero-dots button.on i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-note { position: absolute; right: 28px; bottom: 34px; margin: 0; font-size: 12.5px; color: rgba(201,208,216,.7); }
@media (max-width: 900px) {
  .hero { align-items: flex-end; }
  .hero-in { grid-template-columns: 1fr; gap: 30px; padding-top: 110px; padding-bottom: 96px; }
  .hcard { justify-self: start; animation: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,24,40,.96) 0%, rgba(14,24,40,.82) 55%, rgba(14,24,40,.45) 100%); }
  .hero-note { left: 16px; right: auto; bottom: 14px; }
  .hero-dots { bottom: 40px; }
}
@media (max-width: 520px) { .hero h1 { font-size: 46px; } .hero .ctas .btn { flex: 1 1 auto; } .hcard { padding: 18px; } .hc-title { font-size: 26px; } .hc-stats b { font-size: 26px; } }

/* ---- cinta de ciudades */
.ticker { background: var(--ink); color: var(--gold-t); overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.ticker-in { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { padding: 16px 28px; font-family: var(--serif); font-size: 21px; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.ticker span::after { content: "✦"; font-size: 12px; color: var(--gold); }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- por qué + simulador */
.why { padding: 120px 0; }
.why .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.why p { color: var(--text-2); max-width: 46ch; }
.formula { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 26px 0 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; max-width: 460px; font-size: 16.5px; }
.formula b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.formula span { color: var(--text-2); }
.formula strong { color: var(--ink); }
.sim { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 30px; position: relative; overflow: hidden; }

.sim-head .eyebrow { color: var(--gold-l); }
.sim h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0 0 18px; }
.sim-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-tabs button { font: 600 14.5px var(--sans); padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: transparent; color: var(--on-dark); cursor: pointer; transition: all .2s; }
.sim-tabs button.on { background: var(--gold-l); border-color: var(--gold-l); color: var(--ink); }
.sim-lbl { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; font-weight: 600; font-size: 15.5px; color: var(--on-dark); }
.sim-lbl output { font-family: var(--serif); font-size: 28px; color: var(--paper); font-weight: 500; }
.sim input[type=range] { width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--gold-l) var(--p, 20%), rgba(255,255,255,.18) var(--p, 20%)); outline-offset: 6px; }
.sim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 4px solid var(--gold-l); cursor: grab; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.sim input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--gold-l); cursor: grab; }
.sim-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.sim-out small { display: block; font-size: 13px; color: var(--on-dark); }
.sim-out b { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.sim-out div:first-child b { color: var(--gold-l); }
.sim-bars { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 16px; background: rgba(255,255,255,.1); }
.sim-bars i { display: block; height: 100%; transition: width .5s var(--ease); }
.sim-bars .cap { background: rgba(255,255,255,.55); }
.sim-bars .gain { background: var(--gold-l); }
.sim-warn { font-size: 13.5px !important; color: var(--on-dark) !important; margin: 16px 0 0; }
@media (max-width: 900px) { .why .wrap { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 520px) { .sim { padding: 22px 18px; } .sim-out b { font-size: 21px; } .why { padding: 84px 0; } }

/* ---- proceso: la fachada pasa de gris a color */
.process { padding: 110px 0; background: var(--card); border-top: 1px solid var(--rule); }
.intro { max-width: 640px; margin-bottom: 48px; }
.intro p { color: var(--text-2); }
.proc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.proc-media { position: sticky; top: 110px; align-self: start; }
.proc-img { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.proc-pic { position: absolute; inset: 0; background: url("img/fotos/balcon.jpg") center / cover; transition: filter 1s var(--ease), transform 1.2s var(--ease); }
.proc-img[data-step="0"] .proc-pic { filter: grayscale(1) brightness(.62) contrast(1.05); transform: scale(1.08); }
.proc-img[data-step="1"] .proc-pic { filter: grayscale(.75) brightness(.78); transform: scale(1.05); }
.proc-img[data-step="2"] .proc-pic { filter: grayscale(.3) brightness(.92); transform: scale(1.02); }
.proc-img[data-step="3"] .proc-pic { filter: none; transform: scale(1); }
.stamp { position: absolute; left: 20px; top: 20px; font: 600 15px var(--sans); padding: 6px 12px; border-radius: 8px; background: var(--ink); color: var(--paper); transition: background .5s; }
.proc-img[data-step="3"] .stamp { background: var(--ok); }
.proc-line { height: 4px; border-radius: 4px; background: var(--rule); margin-top: 18px; overflow: hidden; }
.proc-line i { display: block; height: 100%; width: 25%; background: var(--gold); transition: width .8s var(--ease); }
.proc-steps { list-style: none; margin: 0; padding: 0; }
.proc-steps li { padding: 34px 0 34px 0; border-top: 1px solid var(--rule); min-height: 38vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .5s var(--ease); }
.proc-steps li.on { opacity: 1; }
.proc-steps span { font-size: 15px; font-weight: 600; color: var(--gold); }
.proc-steps h3 { font-size: 26px; margin: 10px 0 6px; }
.proc-steps p { margin: 0; color: var(--text-2); max-width: 42ch; }
@media (max-width: 860px) {
  .proc { grid-template-columns: 1fr; gap: 0; }
  .proc-media { top: 72px; z-index: 2; background: var(--card); padding-bottom: 12px; }
  .proc-img { aspect-ratio: 16 / 9; }
  .proc-steps li { min-height: 46vh; }
}

/* ---- carrusel de proyectos */
.projects { padding: 110px 0 100px; overflow: hidden; }
.proj-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.proj-nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); transition: background .2s, color .2s; }
.round:hover { background: var(--ink); color: var(--paper); }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(28px, calc((100vw - 1180px) / 2 + 28px)); padding: 6px max(28px, calc((100vw - 1180px) / 2 + 28px)) 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.pc { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pc:hover { border-color: var(--rule-2, #CFCBC2); }
.pc-img { aspect-ratio: 16 / 10; background: center / cover; position: relative; transition: transform .6s var(--ease); }
.pc-img .pill { position: absolute; left: 14px; top: 14px; }
.pc:hover .pc-img { transform: scale(1.04); }
.pc-body { padding: 18px 20px 20px; position: relative; background: var(--card); }
.pc-body > small { color: var(--muted); font-size: 14.5px; }
.pc h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; margin: 2px 0 12px; }
.pc-kpis { display: flex; gap: 20px; margin-bottom: 14px; color: var(--text-2); font-size: 15px; }
.pc-kpis b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); }
.pc .bar { background: var(--rule); margin-bottom: 8px; }
@media (max-width: 520px) { .proj-nav { display: none; } .rail { padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; } }

/* ---- la app */
.sec { padding: 110px 0; border-top: 1px solid var(--rule); }
.app-sec { background: linear-gradient(180deg, var(--card), var(--paper) 40%); }
.app-show { position: relative; margin: 0 0 90px; }
.frame { position: relative; overflow: hidden; background: var(--ink); border: 10px solid var(--ink); }
.frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); pointer-events: none; background: var(--paper); }
.frame.desk { width: 86%; aspect-ratio: 1280 / 800; border-radius: 18px; }
.frame.mobile { position: absolute; right: 0; bottom: -40px; width: min(250px, 26%); aspect-ratio: 390 / 844; border-width: 8px; border-radius: 30px; box-shadow: 0 30px 60px rgba(22,36,58,.35); transform: translateY(var(--py, 0px)); }
.app-cta { position: absolute; left: 24px; bottom: -22px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 40px; }
.feat { display: block; border-top: 1px solid var(--rule); padding: 18px 0 0; }

.feat i { display: none; }
.feat h3 { font-size: 20px; margin: 0 0 4px; }
.feat p { margin: 0; color: var(--text-2); font-size: 16.5px; }
@media (max-width: 960px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr; } .frame.desk { width: 100%; border-width: 6px; border-radius: 12px; } .frame.mobile { width: 34%; right: -4px; bottom: -36px; border-width: 5px; border-radius: 20px; } .app-cta { left: 12px; bottom: -64px; } .app-show { margin-bottom: 110px; } }

/* ---- garantías */
.safe { background: var(--ink); color: var(--paper); padding: 110px 0; position: relative; overflow: hidden; }

.safe .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; position: relative; }
.safe h2 { font-size: clamp(38px, 5vw, 58px); }
.safe .wrap > div > p { color: var(--on-dark); }
.safe ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.safe li { border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.03); transition: background .3s, border-color .3s; }
.safe li:hover { background: rgba(255,255,255,.07); border-color: rgba(212,168,106,.5); }
.safe li b { display: block; font-size: 20px; margin-bottom: 6px; }
.safe li span { color: var(--on-dark); font-size: 16.5px; }
@media (max-width: 900px) { .safe .wrap, .safe ul { grid-template-columns: 1fr; } }

/* ---- pasos y preguntas */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step::before { counter-increment: s; content: "Paso " counter(s); font-size: 15px; font-weight: 600; display: block; margin-bottom: 8px; color: var(--gold); }
.step h3 { font-size: 21px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details p { margin: 12px 0 0; color: var(--text-2); animation: swapIn .4s var(--ease); }

/* ---- llamada final con fondo */
.final { position: relative; text-align: center; padding: 140px 0; color: var(--paper); overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: -10% 0; z-index: -1; background: linear-gradient(rgba(14,24,40,.78), rgba(14,24,40,.88)), url("img/fotos/fachada.jpg") center / cover; transform: translateY(var(--py, 0px)); }
.final h2 { font-weight: 400; font-size: clamp(42px, 6vw, 80px); line-height: 1; margin: 0 auto; max-width: 15ch; }
.final p { color: var(--on-dark); margin: 20px auto 0; max-width: 46ch; }
.final .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

footer { padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
footer p { margin: 0; max-width: 70ch; }
footer a { color: var(--muted); }

/* ---- aparición al hacer scroll (solo con JS activo) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---- diálogo de solicitud */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(10,16,26,.6); backdrop-filter: blur(4px); }
.dlg { padding: 32px; position: relative; }
@media (max-width: 520px) { .dlg { padding: 24px 20px; } }
.dlg h2 { font-size: 34px; margin: 0 0 10px; line-height: 1.1; }
.dlg p { margin: 0 0 14px; color: var(--text-2); }
.dlg .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.x { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 28px; color: var(--muted); cursor: pointer; }
.dlg label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 5px; }
.dlg label small { font-weight: 400; color: var(--muted); }
.dlg input[type="email"], .dlg input[type="text"], .dlg textarea, .dlg select { width: 100%; font: 400 17px var(--sans); padding: 11px 13px; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); }
.dlg textarea { resize: vertical; min-height: 64px; }
.dlg input:focus, .dlg textarea:focus { outline: 2px solid #2F5D8A; outline-offset: 1px; }
.dlg .ok { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--text-2); margin-top: 16px; }
.dlg .ok input { margin-top: 4px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--ink); }
.dlg .msg { margin: 14px 0 0; font-size: 15px; min-height: 1.3em; }
.dlg .msg.err { color: #B03A2E; }
.dlg button[disabled] { opacity: .6; cursor: wait; }
.dlg .alt { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .slide.on { animation: none; transform: scale(1.06); }
  .ticker-in { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.rail-note { font-size: 13.5px; color: var(--muted); margin: -8px 0 0; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.dlg .next { list-style: none; margin: 4px 0 18px; padding: 0; border-bottom: 1px solid var(--rule); }
.dlg .next li { padding: 12px 0; border-top: 1px solid var(--rule); color: var(--text-2); font-size: 15.5px; line-height: 1.45; }
.dlg .next b { display: block; color: var(--ink); }

/* Simulador: tres escenarios */
.scn { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-variant-numeric: tabular-nums; }
.scn-h, .scn-r { display: grid; grid-template-columns: minmax(0, 1fr) 118px 78px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.scn-h { font-size: 13px; color: var(--on-dark); padding: 10px 0; }
.scn-h span:not(:first-child), .scn-r > b { text-align: right; }
.scn-r > span b { display: block; font-weight: 600; font-size: 16px; }
.scn-r small { font-size: 13px; color: var(--on-dark); }
.scn-r > b { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.scn-r > b + b { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.scn-r.ok > b + b { color: var(--gold-l); }
.scn-r.bad > b + b { color: #F0A493; }
@media (max-width: 520px) { .scn-h, .scn-r { grid-template-columns: minmax(0, 1fr) 96px 66px; gap: 8px; } .scn-r > b { font-size: 18px; } .scn-r > span b { font-size: 15px; } }
