/* ==========================================================================
   Brickfy — Landing
   Dirección de arte: editorial arquitectónico. Fotografía documental a sangre,
   tipografía grotesca de diario, datos en monoespaciada (como una ficha técnica),
   hairlines en lugar de tarjetas con sombra. Un solo acento: el azul de Brickfy (#004AAD).
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --bg: #F4F3EF;
  --bg-2: #E8E7E2;
  --paper: #FBFBF9;
  --ink: #0E1522;
  --ink-2: #263040;
  --muted: #566070;
  --subtle: #8A93A1;
  --line: rgba(14, 21, 34, .12);
  --line-strong: rgba(14, 21, 34, .24);

  /* Marca: #004AAD (mismo azul que la app) y su escala tonal */
  --accent: #004AAD;
  --accent-ink: #003A8A;
  --accent-soft: #E1EAF6;
  --accent-light: #8AAEE6;

  --ok: #13795B;
  --ok-soft: #DCEFE7;
  --warn: #95650F;
  --warn-soft: #F5EAD2;
  --sold: #E3E4E7;
  --danger: #B42318;

  --night: #0B1320;
  --night-2: #121C2C;
  --night-3: #1B2638;
  --night-line: rgba(255, 255, 255, .12);
  --night-text: #EEF1F6;
  --night-muted: #9AA6B8;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 6px;
  --r-lg: 12px;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 168px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { display: inline-block; flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wa-inline { white-space: nowrap; }
.icon-wa { width: .8em; height: .8em; margin-right: .14em; vertical-align: -.04em; fill: #25D366; stroke: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

.display { font-size: clamp(46px, 8vw, 128px); line-height: .94; letter-spacing: -.05em; font-weight: 600; }
.h-xl { font-size: clamp(36px, 5.6vw, 84px); line-height: .98; letter-spacing: -.045em; }
.h-lg { font-size: clamp(30px, 3.8vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
.h-md { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.03em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 54ch; }

/* Cabecera de sección: rótulo en columna angosta + título, como en una lámina */
.sec-head { max-width: 980px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .lede { margin-top: 20px; }

/* 3. Botones y links
   ========================================================================== */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 17px; }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .4); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"] .btn-label::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover .icon { transform: translateX(3px); }

/* 4. Header (transparente sobre la foto, sólido al scrollear)
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease);
}
.site-header.is-solid { background: rgba(244, 243, 239, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.05em; }
/* Logo oficial (PNG blanco) usado como máscara: toma el color del contexto */
.logo-mark { display: block; width: 100px; aspect-ratio: 456 / 171; background: currentColor; -webkit-mask: url("../img/logo-brickfy.png") no-repeat center / contain; mask: url("../img/logo-brickfy.png") no-repeat center / contain; }
.site-header.is-solid .logo, body.menu-open .site-header .logo, .site-footer .logo { color: var(--accent); }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 15.5px; opacity: .85; transition: opacity .2s; }
.main-nav a:hover { opacity: 1; }
.main-nav .nav-signin { padding-left: 28px; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.main-nav .nav-signin a { font-weight: 600; opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
@media (min-width: 901px) {
  .main-nav { margin-left: auto; }
  .header-actions { display: none; }
}
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: var(--r); background: transparent; color: inherit; cursor: pointer; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
.mobile-menu { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul a { display: flex; justify-content: space-between; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: -.03em; }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: 20px; }
body.menu-open .site-header { background: var(--bg); color: var(--ink); }

/* 5. Hero a sangre con parallax
   ========================================================================== */
.hero { position: relative; isolation: isolate; min-height: max(660px, 100svh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #1b2230; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; left: 0; top: -7.5%; width: 100%; height: 115%; object-fit: cover; object-position: 50% 35%; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 8, .5) 0%, rgba(8, 8, 8, 0) 18%, rgba(8, 8, 8, 0) 40%, rgba(8, 8, 8, .8) 100%), linear-gradient(90deg, rgba(8, 8, 8, .5) 0%, rgba(8, 8, 8, .2) 45%, rgba(8, 8, 8, 0) 70%); }
.hero h1, .hero-meta { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero-inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero-meta { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: rgba(255, 255, 255, .88); }
.hero h1 { max-width: 12ch; }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .3); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-actions .link { color: #fff; }
.hero-credit { position: absolute; right: calc(var(--gutter) / 2); top: 50%; color: rgba(255, 255, 255, .6); font-size: 11px; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }


/* 7. Manifiesto con revelado palabra por palabra
   ========================================================================== */
.statement-text { font-size: clamp(30px, 4.3vw, 64px); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; max-width: 23ch; }
.js .statement-text .w { opacity: .22; transition: opacity .3s linear; }
.js .statement-text .w.on { opacity: 1; }

/* Hoy / Con Brickfy: cada dolor enfrentado a su respuesta, en la misma fila */
.compare { width: 100%; margin-top: clamp(48px, 7vw, 96px); border-collapse: collapse; table-layout: fixed; }
.compare th { padding-bottom: 16px; text-align: left; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.03em; }
.compare th:last-child { color: var(--accent); }
.compare td { padding: 20px 0; border-top: 1px solid var(--line-strong); vertical-align: top; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.35; }
.compare :is(th, td):first-child { padding-right: clamp(20px, 4vw, 64px); }
.compare td span { display: block; padding-left: 32px; }
.compare td .icon { float: left; margin-top: .2em; }
.compare td:first-child { color: var(--muted); }
.compare td:first-child .icon { color: #B4232A; }
.compare td:last-child { color: var(--ink); font-weight: 500; }
.compare td:last-child .icon { color: var(--accent); }

/* 8. Historia con pantalla fija (sticky scroll)
   ========================================================================== */
.story { padding-bottom: var(--section); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.story-intro { padding-bottom: 6vh; }
.story-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; padding-block: 6vh; border-top: 1px solid var(--line-strong); opacity: .3; transition: opacity .5s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step h3 { margin-bottom: 16px; }
.story-step p { color: var(--muted); max-width: 44ch; }
.no-js .story-step { opacity: 1; }

.story-stage { position: sticky; top: calc(var(--header-h) + 5vh); height: calc(100vh - var(--header-h) - 10vh); min-height: 520px; display: flex; align-items: center; }
.stage-frame { position: relative; width: 100%; height: 100%; max-height: 580px; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-strong); }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.screen.is-active { opacity: 1; transform: none; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.screen-bar strong { font-weight: 600; }
.screen-bar .mono { color: var(--muted); font-size: 12px; }
.screen-body { position: relative; flex: 1; min-height: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.screen-note { margin-top: auto; color: var(--subtle); font-size: 11.5px; }

/* Pantalla: búsqueda */
.search-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: 15px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters span { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 13px; }
.filters span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.results { display: grid; gap: 8px; overflow: hidden; }
.result { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.result img { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; }
.result strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.result span { display: block; font-size: 13.5px; color: var(--muted); }
.result .price { text-align: right; font-family: var(--mono); font-size: 13px; padding-right: 6px; }
.result .price small { display: block; color: var(--muted); font-size: 11.5px; }

/* Pantalla: unidades disponibles + plano */
.units-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 14px 16px; }
.units-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.unit-row { display: grid; grid-template-columns: 38px 1fr auto; grid-template-areas: "code typ price" "code m2 price"; gap: 0 10px; align-items: center; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.unit-row > :nth-child(1) { grid-area: code; font-size: 12.5px; }
.unit-row > :nth-child(2) { grid-area: typ; }
.unit-row > :nth-child(3) { grid-area: m2; color: var(--muted); font-size: 12px; }
.unit-row > :nth-child(4) { grid-area: price; font-size: 12.5px; }
.unit-row.is-selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.unit-plan { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.unit-plan img { width: 100%; flex: 1; min-height: 0; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.tabs-mini { display: inline-flex; align-self: flex-start; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; font-size: 12.5px; }
.tabs-mini span { padding: 5px 10px; color: var(--muted); }
.tabs-mini span.on { background: var(--ink); color: #fff; }
.units-body .screen-note { grid-column: 1 / -1; }

/* Pantalla: ficha compartida por WhatsApp */
.chat { display: flex; flex-direction: column; height: 100%; background: #EFEAE2; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: 15px; font-weight: 600; }
.chat-head small { font-size: 12.5px; color: var(--muted); }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chat-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; }
.bubble { max-width: 80%; padding: 8px 12px 8px; border-radius: 10px; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bubble.out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; }
.bubble-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; color: var(--muted); }
.bubble-meta .icon { width: 14px; height: 14px; color: #53BDEB; }
.link-card { display: grid; grid-template-columns: 72px 1fr; gap: 10px; margin-bottom: 8px; padding: 6px; border-radius: 6px; background: rgba(0, 0, 0, .05); }
.link-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.link-card strong { display: block; font-size: 14px; font-weight: 600; }
.link-card span { display: block; font-size: 12.5px; color: var(--ink-2); }
.link-card small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* 9. Galería horizontal manejada por el scroll vertical
   ========================================================================== */
.gallery { position: relative; background: var(--bg-2); }
.gallery-sticky { padding-block: clamp(72px, 9vw, 120px); }
.gallery.is-pinned { padding-bottom: clamp(48px, 6vw, 96px); }
.gallery.is-pinned .gallery-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 8px) 24px; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.gallery-head h2 { max-width: 17ch; }
.gallery-progress { flex: none; width: 180px; height: 2px; background: var(--line-strong); position: relative; margin-bottom: 14px; }
.gallery-progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--ink); }
.gallery-track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); will-change: transform; }
.gallery:not(.is-pinned) .gallery-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; padding-bottom: 8px; }
.gallery:not(.is-pinned) .gallery-track::-webkit-scrollbar { display: none; }
.dev { flex: none; width: clamp(270px, 25vw, 360px); scroll-snap-align: start; }
.dev-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: #D6D8DC; }
.gallery.is-pinned .dev-photo { height: min(48vh, 480px); aspect-ratio: auto; }
.gallery.is-pinned .gallery-head h2 { font-size: clamp(28px, 3.2vw, 48px); }
.dev-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.dev:hover .dev-photo img { transform: scale(1.04); }
.stage { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .94); font-family: var(--mono); font-size: 11.5px; color: var(--ink); }
.dev-body { padding-top: 16px; }
.dev-body h3 { font-size: 22px; letter-spacing: -.035em; }
.dev-loc { margin-top: 2px; font-size: 15px; color: var(--muted); }
.dev-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0 0 2px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 500; }
.dev-cta .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.dev-cta:hover .icon { transform: translateX(3px); }
.dev--more { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 28px; border-radius: var(--r-lg); background: var(--ink); color: #fff; aspect-ratio: 4 / 5; }
.gallery.is-pinned .dev--more { height: min(48vh, 480px); aspect-ratio: auto; }
.dev--more strong { font-size: clamp(30px, 2.8vw, 42px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.dev--more p { color: var(--night-muted); }
.dev--more .btn { align-self: flex-start; }

/* 10. Bloque desarrolladoras (registro nocturno)
   ========================================================================== */
.night { background: var(--night); color: var(--night-text); }
.night .label { color: var(--night-muted); }
.night .lede { color: var(--night-muted); }
.supply { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: 560px; }
.supply-media { position: relative; overflow: hidden; min-height: 400px; }
.supply-media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.supply-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 88px) var(--gutter); max-width: 660px; }
.supply-copy .lede { margin-top: 22px; }
.supply-door { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: 17px; }
.supply-door strong { color: var(--night-text); font-weight: 600; }
.supply-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 18px; }
.supply-actions .link { color: var(--night-text); }

/* 11. FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq-body { max-width: 68ch; padding-bottom: 26px; color: var(--muted); }
.faq-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* 12. Cierre a sangre
   ========================================================================== */
.closing { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #0B1320; }
.closing-media { position: absolute; inset: 0; z-index: -2; }
.closing-media img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 12, .25), rgba(8, 9, 12, .72)); }
.closing-inner { min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 6vw, 88px); }
.closing h2 { max-width: 14ch; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid rgba(255, 255, 255, .32); }
.route { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 28px 28px 0; }
.route + .route { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .32); }
.route-who { display: block; margin-bottom: 6px; font-size: 16px; color: rgba(255, 255, 255, .72); }
.route strong { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.035em; }
.route .icon { width: 30px; height: 30px; transition: transform .35s var(--ease); }
.route:hover .icon { transform: translateX(6px); }
.route:hover strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* 13. Footer
   ========================================================================== */
.site-footer { padding-block: 72px 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 32ch; color: var(--muted); font-size: 15px; }
.footer-col .label { display: block; margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* 15. Página desarrolladoras
   ========================================================================== */
.hero--supply .hero-inner { width: 100%; }
/* Foto con mucho detalle: más sombra a la izquierda para que el texto se lea */
.hero--supply::after { background: linear-gradient(180deg, rgba(8, 8, 8, .45) 0%, rgba(8, 8, 8, 0) 20%, rgba(8, 8, 8, .1) 50%, rgba(8, 8, 8, .8) 100%), linear-gradient(90deg, rgba(8, 8, 8, .7) 0%, rgba(8, 8, 8, .4) 45%, rgba(8, 8, 8, 0) 75%); }
/* La foto se agranda anclada a la izquierda: las torres quedan más a la derecha, lejos del texto */
.hero--supply .hero-media img { width: 118%; max-width: none; }
.hero--supply h1 { max-width: 12ch; font-size: clamp(44px, 6vw, 96px); }
.hero--supply .hero-actions { margin-top: 32px; }


.panel { display: flex; flex-direction: column; height: 100%; }
.panel-body { flex: 1; min-height: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-family: var(--mono); white-space: nowrap; }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--muted { background: var(--sold); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 10px 12px; background: var(--bg); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap; }
.data-table td { padding: 11px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.data-table .num { text-align: right; font-family: var(--mono); font-size: 13px; }
.data-table s { color: var(--subtle); }
.new-price { padding: 2px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.panel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.panel-foot .mono { font-size: 12px; }
/* Paso 1: archivos de la desarrolladora que se cargan al panel */
.files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.file { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.file-ico { position: relative; width: 30px; height: 38px; margin-bottom: 8px; border: 1.5px solid var(--line-strong); border-radius: 3px 10px 3px 3px; background: var(--bg); }
.file-ext { position: absolute; left: -7px; bottom: 6px; padding: 1px 4px; border-radius: 3px; font: 600 9px/1.4 var(--mono); letter-spacing: .02em; color: #fff; }
.file--xlsx .file-ext { background: #1F7A4C; }
.file--pdf .file-ext { background: #B4232A; }
.file-name { font-size: 14px; font-weight: 600; }
.file-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.import-arrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.import-arrow .icon { width: 16px; height: 16px; transform: rotate(90deg); color: var(--accent); }
.bulk { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; }
.bulk small { display: block; font-size: 12.5px; color: var(--muted); }
.bulk strong { font-size: 16px; font-weight: 600; }
.bulk .mono { font-size: 18px; color: var(--accent); }
.links-list { display: grid; border-top: 1px solid var(--line); }
.links-list li { display: grid; grid-template-columns: 1fr auto 76px; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.links-list strong { display: block; font-size: 15px; font-weight: 600; }
.links-list small { display: block; font-size: 12.5px; color: var(--muted); }
.links-list .mono { text-align: right; font-size: 12px; color: var(--muted); }
.links-list .link-catalog { grid-template-columns: 1fr auto auto; margin-bottom: 8px; padding-inline: 12px; border: 1px solid var(--accent-soft); border-radius: var(--r); background: var(--accent-soft); }
.links-list .link-catalog .mono { white-space: nowrap; color: var(--accent); }
.terms { display: grid; font-size: 14.5px; border-top: 1px solid var(--line); }
.terms div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--muted); }
.terms dd { font-family: var(--mono); font-size: 13px; text-align: right; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; font-family: var(--font); font-size: 12.5px; }
.seg span { padding: 4px 10px; color: var(--muted); white-space: nowrap; }
.seg span.on { background: var(--ink); color: #fff; }

/* Qué incluye (desarrolladoras): precio a la izquierda, lista en dos columnas */
.includes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.includes-head .lede { margin-top: 20px; }
.includes-price { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line-strong); }
.includes-price strong { display: block; font-size: clamp(40px, 4.4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--accent); }
.includes-price span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; }
.includes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.includes-list li { display: flex; align-items: flex-start; gap: 12px; padding-block: 20px; border-top: 1px solid var(--line-strong); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35; font-weight: 500; }
.includes-list li > .icon { flex: none; margin-top: .15em; color: var(--accent); }
.includes-cta a { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; }
.includes-cta a .icon { transition: transform .3s var(--ease); }
.includes-cta a:hover .icon { transform: translateX(4px); }

/* Sección del alto de la pantalla, como la galería de la home */
.section--screen { min-height: 100vh; display: flex; align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.section--screen > .container { width: 100%; }
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact .lede { margin-top: 22px; }
.contact-points { margin-top: 36px; border-top: 1px solid var(--night-line); }
.contact-points li { padding: 16px 0; border-bottom: 1px solid var(--night-line); color: var(--night-muted); font-size: 15.5px; }
.contact-points strong { display: block; color: var(--night-text); font-weight: 500; }
.contact-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.contact-card .label { color: var(--muted); }
.contact-phone { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.contact-phone:hover { color: var(--accent); }
.contact-login { font-size: 15px; color: var(--muted); text-align: center; }
.contact-login a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* 16. Revelado al entrar en viewport
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .statement-text .w { opacity: 1; }
}

/* 17. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .supply { grid-template-columns: 1fr; min-height: 0; }
  .closing-inner { min-height: 0; }
  .supply-media { height: 52vh; }
  .supply-copy { max-width: none; }
  .contact { grid-template-columns: 1fr; }
  .includes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .story-grid { grid-template-columns: 1fr; }
  /* Mobile: sin pantalla fija; cada paso lleva su propia pantalla debajo del texto */
  .story-stage { display: none; }
  .story-step { min-height: 0; opacity: 1; padding-block: 40px 48px; }
  .story-steps, .story-step, .step-screen { min-width: 0; }
  .step-screen { margin-top: 24px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--paper); }
  .step-screen .screen { position: relative; inset: auto; opacity: 1; transform: none; }
  .step-screen .data-table td, .step-screen .data-table th { padding-inline: 8px; }
  .step-screen .data-table :is(th, td):nth-child(2) { display: none; }
  .step-screen .units-body { grid-template-columns: 1fr; }
  .step-screen .unit-plan img { max-height: 240px; }
  .step-screen .unit-row:nth-child(n+5) { display: none; }
  .step-screen .chat-body { min-height: 360px; }
}

@media (max-width: 760px) {
  .compare td span { padding-left: 26px; }
  :root { --header-h: 62px; }
  body { font-size: 16px; }
  .hero-actions { width: 100%; justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .routes { grid-template-columns: 1fr; }
  .route + .route { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .32); }
  .gallery-progress { display: none; }
  .result { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .result img { width: 56px; height: 56px; }
  .supply-media { overflow: visible; height: auto; min-height: 0; }
  .supply-media img { position: relative; top: 0; height: 44vh; }
  .links-list li { grid-template-columns: 1fr auto; }
  .links-list .mono { display: none; }
  .bubble { max-width: 92%; }
}

@media (max-width: 560px) {
  .includes-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
