/* ==========================================================================
   Evolution Power · /ep · Free post-Isaias inspection
   Marca EP (aislada de Ordis): negro + dorado + blanco
   ========================================================================== */

/* ---------- fuentes servidas desde ep/fonts ----------
   Mismos archivos, familias, pesos y rangos que entregaba Google Fonts en la v2
   (Bricolage Grotesque 700 con eje opsz, DM Sans 400/700, JetBrains Mono 500). Licencia OFL. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-stretch: 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-stretch: 100%; font-display: swap;
  src: url("fonts/bricolage-grotesque-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #000000;
  --surface: #0b0a09;
  --surface-2: #151310;
  --white: #ffffff;
  --text-2: #c9c6c0;   /* 11.9:1 sobre negro */
  --text-3: #9a968f;   /* 6.9:1 sobre negro */
  --gold: #c9a961;     /* 9.2:1 sobre negro */
  --gold-bright: #ddc07f;
  --line: rgba(201, 169, 97, 0.28);
  --line-strong: rgba(201, 169, 97, 0.6);
  --error: #ff9d8c;    /* 9.6:1 sobre negro */

  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: 20px;
  --max: 1120px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p, address, fieldset, legend { margin: 0; padding: 0; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
/* v3.2: el teléfono (850) 204-5020 nunca se parte en dos líneas (enlaces tel: y el número en texto corrido). */
a[href^="tel:"], .tel-nw { white-space: nowrap; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink);
  padding: 0.75em 1.25em; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--gold-bright); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.9em 1.6em;
  font: 700 1rem/1.2 var(--font-body);
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-outline { background: transparent; color: var(--white); border-color: #8a7a52; }
.btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ==========================================================================
   Header (sticky): logo · teléfono · idioma
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand-link { display: block; flex: 0 1 auto; }
.brand-logo { width: 130px; height: auto; flex: 0 0 auto; }
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-phone {
  font: 500 0.88rem/1 var(--font-mono);
  color: var(--gold); text-decoration: none; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}
.header-phone:hover { color: var(--gold-bright); text-decoration: underline; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--radius); }
.lang-btn {
  min-width: 40px; min-height: 40px; padding: 0 8px;
  font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.06em;
  color: var(--text-2); background: none; border: 0; cursor: pointer;
}
.lang-btn.is-active { background: var(--gold); color: var(--ink); }
.lang-btn:not(.is-active):hover { color: var(--gold-bright); }
/* v3.2: pantallas estrechas (< 375 px): logo, teléfono e idioma caben sin desbordar (320 px incluido). */
@media (max-width: 374px) {
  .header-inner { gap: 8px; }
  .brand-logo { width: 100px; }
  .header-actions { gap: 6px; }
  .header-phone { font-size: 0.76rem; }
  .lang-btn { min-width: 34px; padding: 0 6px; }
}
@media (min-width: 720px) {
  .brand-logo { width: 184px; }
  .header-phone { font-size: 1rem; }
  .header-actions { gap: 20px; }
}

/* ==========================================================================
   1 · Hero + formulario
   ========================================================================== */
.hero {
  /* Degradado de marca. En escritorio se cambia por P1 horizontal cuando llegue (hero--photo). */
  background:
    radial-gradient(90% 60% at 15% 0%, #2a2114 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, #0d0b08 0%, #000 100%);
  border-bottom: 1px solid var(--line);
}
/* v3.2 · Hero con la casa (clip generado, Kling 4.0).
   Móvil (< 960 px): SOLO el póster recortado (hero-casa-movil.webp), sin video. Franja arriba con el techo
   a la vista y el texto debajo, sobre un degradado que llega a negro (AA medido con píxeles).
   Escritorio (≥ 960 px): póster 1280x720 de fondo (es el LCP, con preload) y encima el video en bucle,
   que app.js carga después de "load". Las capas oscuras van en ::before, por encima del video. */
.hero--photo {
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0.06) 36vw, rgba(0, 0, 0, 0.84) 42vw, rgba(0, 0, 0, 0.92) 52vw, #000 64.3vw) top / 100% 64.3vw no-repeat,
    url("assets/hero-casa-movil.webp") top center / 100% auto no-repeat,
    #000;
}
.hero--photo .hero-inner { position: relative; z-index: 2; padding-top: calc(39vw + 10px); }
.hero-video { display: none; }
@media (min-width: 960px) {
  .hero--photo {
    background: url("assets/hero-casa.webp") center 62% / cover no-repeat, #000;
  }
  .hero--photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    /* v3.2: capa más clara a la derecha y abajo (la casa se ve); fuerte solo bajo el texto. AA medido con píxeles. */
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.74) 40%, rgba(0, 0, 0, 0.3) 56%, rgba(0, 0, 0, 0.08) 74%, rgba(0, 0, 0, 0.05) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.35) 100%);
  }
  .hero--photo .hero-inner { padding-top: 64px; }
  .hero-video {
    display: block; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 62%; opacity: 0; transition: opacity 0.6s ease;
  }
  .hero-video.is-playing { opacity: 1; }
}
/* Movimiento reducido: solo el póster. */
@media (prefers-reduced-motion: reduce) { .hero-video { display: none !important; } }
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr);
}
.hero-kicker {
  font: 500 0.8rem/1.4 var(--font-mono);
  letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.9rem;
}
.hero-headline { font-size: clamp(2.1rem, 6.2vw + 0.6rem, 3.9rem); max-width: 14ch; }
.hero-sub { margin-top: 1rem; max-width: 42ch; font-size: 1.08rem; color: var(--text-2); }
/* Sin text-transform: "Pace" es una ciudad y no debe leerse en mayúsculas. */
.hero-roofs { margin-top: 0.6rem; max-width: 42ch; font-size: 1rem; font-weight: 700; color: var(--white); }
.hero-area { margin-top: 1.1rem; font: 500 0.82rem/1.6 var(--font-mono); color: var(--white); }

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 56px; padding-top: 64px; padding-bottom: 72px; align-items: start;
  }
  .hero-copy { position: sticky; top: 110px; padding-top: 24px; }
}

/* ---------- formulario ---------- */
.lead-form {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 18px 24px;
  display: grid; gap: 18px; min-width: 0;
  scroll-margin-top: 84px;
}
@media (min-width: 480px) { .lead-form { padding: 28px 26px 30px; } }
.form-title { font-size: 1.45rem; }
.form-note { color: var(--text-2); font-size: 0.92rem; margin-top: -8px; }
/* Enlaces de la oferta (reservar / llamar): blancos y subrayados para distinguirlos del texto gris. */
.note-link { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.note-link:hover { color: var(--gold); }

.field-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field-stack { display: grid; gap: 18px; }
.field-zip input { max-width: 180px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label:not(.consent-label), .field > legend {
  font-size: 0.92rem; font-weight: 700; color: var(--white);
}
.field > legend { margin-bottom: 7px; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .zip-check input {
  width: 100%; min-height: 48px;
  background: var(--ink); color: var(--white);
  border: 1px solid #8a7a52; /* 4.6:1 sobre el fondo del formulario */
  border-radius: var(--radius);
  font: 400 1rem/1.3 var(--font-body); /* 16px: iOS no hace zoom al enfocar */
  padding: 0.7em 0.8em;
  color-scheme: dark;
}
/* v3.2: menos relleno lateral en el desplegable para que la opción elegida se lea entera en 375 px (sin bajar de 16 px). */
.field select { padding-left: 0.6em; padding-right: 0.35em; }
.field input:focus-visible, .field select:focus-visible, .zip-check input:focus-visible { border-color: var(--gold-bright); outline-offset: 1px; }
.field input[aria-invalid="true"], .zip-check input[aria-invalid="true"] { border-color: var(--error); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid #8a7a52; border-radius: var(--radius);
  background: var(--ink); font-size: 0.95rem; cursor: pointer;
}
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--gold-bright); background: #221b0e; }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.consent-label { font-weight: 400; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent-label input {
  width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--gold);
}
.consent-label span { font-size: 0.84rem; line-height: 1.55; color: var(--text-2); min-width: 0; }
.consent-label a { color: var(--gold); overflow-wrap: anywhere; }
.consent-lang-note { font-size: 0.8rem; color: var(--text-3); }

.field-error, .form-error-summary, .send-error { color: var(--error); font-size: 0.88rem; font-weight: 700; }
.form-error-summary, .send-error {
  border-left: 3px solid var(--error); padding: 2px 0 2px 12px;
}
.send-error a { color: var(--white); white-space: nowrap; }
[hidden] { display: none !important; }

/* Honeypot: fuera de pantalla para humanos, presente en el DOM para bots */
.hp-field { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.lead-form .btn { width: 100%; }

/* ---------- ZIP al inicio (hero) ---------- */
.zip-check { margin-top: 1.5rem; max-width: 420px; display: grid; gap: 7px; }
.zip-check label { font-size: 0.92rem; font-weight: 700; }
.zip-check-row { display: flex; gap: 8px; }
.zip-check-row input { flex: 1 1 0; min-width: 0; max-width: 170px; }
.zip-check .btn { min-height: 48px; padding: 0.6em 1.1em; white-space: nowrap; }
.hero-call { margin-top: 12px; min-height: 48px; padding: 0.6em 1.2em; white-space: nowrap; }

/* ---------- formulario en 3 pasos ----------
   El estado por defecto ya es "paso 1" (data-step="1" viene en el HTML): así no hay salto
   de layout cuando arranca el JS. Sin JS, nojs.css muestra los 3 fieldsets a la vez. */
.form-step { display: none; min-width: 0; }
.lead-form[data-step="1"] .form-step[data-step="1"],
.lead-form[data-step="2"] .form-step[data-step="2"],
.lead-form[data-step="3"] .form-step[data-step="3"] { display: block; }
.form-step > :not(legend) ~ :not(legend) { margin-top: 18px; }
/* Con JS el número de paso lo dice la barra de progreso; la leyenda queda para lectores de pantalla. */
.step-legend {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.form-progress { display: grid; gap: 8px; }
.form-progress-label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px;
  font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.zip-chip {
  color: var(--white); border: 1px solid var(--line-strong); border-radius: 2px;
  padding: 3px 8px; letter-spacing: 0.06em; white-space: nowrap;
}
.form-progress-track { height: 3px; background: rgba(201, 169, 97, 0.22); border-radius: 2px; overflow: hidden; }
.form-progress-track span { display: block; height: 100%; width: 33.34%; background: var(--gold); transition: width 0.25s ease; }
.lead-form[data-step="2"] .form-progress-track span { width: 66.67%; }
.lead-form[data-step="3"] .form-progress-track span { width: 100%; }

.zip-status { font-size: 0.92rem; border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; }
.zip-status a { color: var(--gold); white-space: nowrap; }

.form-nav { display: flex; gap: 10px; }
.lead-form .form-nav .btn { width: auto; flex: 1 1 auto; }
.lead-form .form-nav .step-back { flex: 0 0 auto; }
.lead-form[data-step="1"] .step-back,
.lead-form[data-step="3"] .step-next,
.lead-form:not([data-step="3"]) #formSubmit,
.lead-form:not([data-step="3"]) .form-after { display: none; }

/* ---------- confianza junto al botón de envío ---------- */
.form-after { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.after-title { font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.next-list { counter-reset: next; display: grid; gap: 8px; }
.next-list li {
  counter-increment: next;
  display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: baseline;
  font-size: 0.92rem; color: var(--text-2);
}
.next-list li::before { content: counter(next); font: 500 0.82rem/1 var(--font-mono); color: var(--gold); }
.after-privacy { font-size: 0.86rem; color: var(--text-2); }
.after-privacy a { overflow-wrap: anywhere; }
.after-lic, .after-addr { font-size: 0.8rem; line-height: 1.5; color: var(--text-3); }
.after-lic { margin-top: 4px; }
.after-addr { margin-top: -6px; }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 56px var(--gutter);
}
@media (min-width: 720px) { .section { padding-top: 84px; padding-bottom: 84px; } }

/* Franja a todo el ancho sin romper el max-width del contenido */
.section-alt {
  max-width: none;
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}

.section-title { font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem); max-width: 22ch; }
.section-lead, .body-text { margin-top: 1rem; max-width: 60ch; color: var(--text-2); font-size: 1.05rem; }
.section-close { margin-top: 1.8rem; max-width: 60ch; font-weight: 700; }
.section-cta { margin-top: 1.4rem; font-weight: 700; }

.card-title { font-size: 1.18rem; }
.card-desc { margin-top: 0.55rem; color: var(--text-2); font-size: 0.97rem; }

/* ---------- 5 · Why Evolution Power ---------- */
.why .trust-list { margin-top: 1.8rem; }
.trust-list {
  display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 820px) { .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-list li {
  background: var(--surface); padding: 18px 14px; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.trust-k { font-size: 0.84rem; color: var(--text-2); }
.trust-v { font: 500 0.98rem/1.3 var(--font-mono); color: var(--white); overflow-wrap: anywhere; }

/* ==========================================================================
   2 · The House
   Base (sin JS / sin WebGL / reduced-motion): lista de 4 tarjetas con imagen.
   .has-3d (lo pone house.js): escenario 3D + una tarjeta activa.
   ========================================================================== */
.house-layout { margin-top: 2rem; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }

/* ---------- tarjetas ---------- */
.house-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (min-width: 720px) { .house-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.house-card {
  background: var(--surface-2);
  border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  min-width: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.house-fig { margin: 0; position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
.house-fig img { width: 100%; height: 100%; object-fit: cover; }
/* Hueco de una imagen pendiente: solo ocupa sitio en modo 3D, para que las 4 tarjetas midan igual. */
.house-fig.is-empty { display: none; } /* hoy no se usa: las 4 tarjetas tienen imagen */
.house.has-3d .house-fig.is-empty {
  display: block;
  background: repeating-linear-gradient(135deg, rgba(201, 169, 97, 0.07) 0 1px, transparent 1px 14px), var(--surface);
}
.house-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 0.7rem; flex: 1 1 auto; }
.house-kicker { font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.house-dl { margin: 0; display: grid; gap: 0.35rem; }
.house-dl dt { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 0.35rem; }
.house-dl dd { margin: 0; color: var(--text-2); font-size: 0.97rem; }
.house-cta { margin-top: auto; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }

/* ---------- escenario 3D ---------- */
.house-stage {
  position: relative; aspect-ratio: 4 / 3; min-width: 0; width: 100%; align-self: start;
  background:
    radial-gradient(70% 60% at 50% 45%, #1a150c 0%, rgba(0, 0, 0, 0) 70%),
    var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.house-stage[hidden] { display: none; }
.house-poster, .house-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.house-poster { object-fit: cover; }
.house-canvas { touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 0.35s ease; }
.house-stage.is-live .house-canvas { opacity: 1; }
.house-stage.is-live .house-poster { visibility: hidden; }
.house-stage.is-dragging .house-canvas { cursor: grabbing; }

.hotspot {
  position: absolute; z-index: 2;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  font: 500 0.78rem/1 var(--font-mono); color: var(--gold-bright);
  transition: opacity 0.25s ease;
}
.hotspot > span[aria-hidden] {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.82); border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 169, 97, 0.16);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.hotspot:hover > span[aria-hidden] { box-shadow: 0 0 0 7px rgba(201, 169, 97, 0.28); }
.hotspot[aria-pressed="true"] > span[aria-hidden] { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 7px rgba(201, 169, 97, 0.3); }
.hotspot.is-back:not([aria-pressed="true"]) { opacity: 0.45; }
/* Posición de cada punto sobre el póster estático (misma vista inicial que el 3D). */
.hotspot[data-point="roof"] { left: 57.8%; top: 36.5%; }
.hotspot[data-point="ceiling"] { left: 33.1%; top: 41.1%; }
.hotspot[data-point="panel"] { left: 83.8%; top: 55.5%; }
.hotspot[data-point="windows"] { left: 54.9%; top: 65.7%; }
/* Con el 3D en marcha la posición la escribe house3d.js con transform. */
.house-stage.is-live .hotspot { left: 0 !important; top: 0 !important; will-change: transform; }

.house-hint {
  position: absolute; left: 12px; bottom: 10px; z-index: 1; pointer-events: none;
  font: 500 0.68rem/1.4 var(--font-mono); letter-spacing: 0.08em; color: var(--text-2);
  background: rgba(0, 0, 0, 0.7); padding: 3px 7px; border-radius: 2px;
}

/* ---------- modo 3D ---------- */
/* Las 4 tarjetas ocupan la misma celda: el bloque mide siempre lo que la más alta,
   así cambiar de punto no mueve nada de lo que hay debajo. */
.house.has-3d .house-cards { grid-template-columns: minmax(0, 1fr); }
.house.has-3d .house-card { grid-area: 1 / 1; }
/* visibility:hidden saca la tarjeta inactiva del orden de tabulación y del árbol de accesibilidad. */
.house.has-3d .house-card.is-off { visibility: hidden; }
.house.has-3d .house-card { flex-direction: row; }
.house.has-3d .house-fig { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
.house.has-3d .house-fig img { position: absolute; inset: 0; }
@media (max-width: 479px) {
  .house.has-3d .house-card { flex-direction: column; }
  .house.has-3d .house-fig { flex: 0 0 auto; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (min-width: 960px) {
  .house.has-3d .house-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
  .house.has-3d .house-card { flex-direction: column; height: 100%; }
  .house.has-3d .house-fig { flex: 0 0 auto; aspect-ratio: 16 / 9; min-height: 0; }
}

/* Sin movimiento: nunca se muestra el escenario (refuerzo en CSS de lo que decide el loader). */
@media (prefers-reduced-motion: reduce) {
  .house-stage { display: none !important; }
}

/* ---------- 3 · What homeowners tell us ----------
   Lista de preocupaciones, no testimonios: sin comillas decorativas, avatares ni firmas. */
.worries { margin-top: 2rem; max-width: 900px; border-top: 1px solid var(--line); }
.worry { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .worry { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; padding: 24px 0; } }
.worry-q { font-size: 1.18rem; line-height: 1.25; }
.worry-a { color: var(--text-2); font-size: 0.99rem; }

/* ---------- 4 · How it works ----------
   Una fila por paso; la imagen es opcional (los pasos sin imagen aprobada no llevan relleno). */
.steps { margin-top: 2rem; display: grid; gap: 14px; max-width: 900px; }
.step {
  background: var(--surface-2);
  border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius);
  padding: 20px 18px; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: start;
}
.step-num { font: 500 0.82rem/1 var(--font-mono); color: var(--gold); padding-top: 6px; }
.step-fig { grid-column: 1 / -1; margin: 10px 0 0; position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
.step-fig img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
@media (min-width: 720px) {
  .step { grid-template-columns: auto minmax(0, 1fr) 240px; gap: 6px 22px; align-items: center; padding: 22px; }
  .step-num { padding-top: 0; }
  .step-fig { grid-column: 3; grid-row: 1; margin: 0; }
}

/* ---------- 6 · CTA de cierre ---------- */
.closing-cta { margin-top: 1.6rem; }

/* Bloque "Which one sounds like you?" (v3.1): tres tarjetas sobrias, sin iconos. */
.case-cards { margin-top: 2rem; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .case-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.case-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; display: grid; gap: 10px; align-content: start; }
.case-q { font-size: 1.12rem; line-height: 1.3; }
.case-a { color: var(--text-2); font-size: 0.97rem; }
.cases-body { margin-top: 2rem; max-width: 64ch; }
.cases-body .body-text { max-width: none; }

/* ---------- 7 · Otros servicios ---------- */
.other { border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: 48px; }
.other .body-text { margin-top: 0; margin-bottom: 0.9rem; }

/* ==========================================================================
   Gracias
   ========================================================================== */
.thanks {
  max-width: var(--max); margin: 0 auto;
  min-height: 62vh; padding: 64px var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.thanks-headline { font-size: clamp(1.9rem, 3.6vw + 1rem, 3.2rem); max-width: 20ch; }
.thanks-sub { margin-top: 1.3rem; font-size: 1.1rem; color: var(--text-2); }
.thanks-call { margin-top: 1.4rem; }
.thanks-back { margin-top: 2.2rem; min-height: 44px; display: inline-flex; align-items: center; }
.thanks-next { margin-top: 2rem; max-width: 46ch; display: grid; gap: 10px; }
.thanks-next .next-list li { font-size: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 820px) { .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; } }
.footer-contact { display: grid; gap: 6px; align-content: start; }
.footer-name { font: 700 1.1rem/1.2 var(--font-display); }
.footer-contact address, .footer-lic { color: var(--text-2); font-size: 0.92rem; }
.footer-lic { margin-top: 6px; font-size: 0.84rem; }
.footer-legal { display: grid; gap: 12px; align-content: start; }
.footer-legal p { font-size: 0.84rem; line-height: 1.6; color: var(--text-3); max-width: 72ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a, .footer-contact a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-legal .footer-powered { font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--gold); }

/* Enlaces sueltos (no dentro de una frase): área táctil de 44 px */
.other > .text-link {
  display: inline-flex; align-items: center; min-height: 44px;
}

/* ==========================================================================
   Barra de llamada (solo móvil)
   app.js le pone .is-on cuando el formulario no está en pantalla.
   ========================================================================== */
.call-bar { display: none; }
@media (max-width: 719px) {
  .call-bar.is-on {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    min-height: 56px; padding: 0 16px env(safe-area-inset-bottom, 0px);
    background: var(--gold); color: var(--ink);
    font: 700 1.02rem/1.2 var(--font-body); text-decoration: none;
    border-top: 1px solid var(--ink);
  }
  .call-bar:focus-visible { outline-color: var(--white); outline-offset: -4px; }
  /* Sitio para la barra: el final del footer nunca queda tapado. */
  body:has(.call-bar) .site-footer { padding-bottom: 60px; }
}

/* ==========================================================================
   v3.3 · tarjeta del techo con video, How it works 2 x 2, cierre a ancho completo
   ========================================================================== */
/* Video de la tarjeta 01 · Roof: encima del póster (la <img>), entra con fundido al reproducirse. */
.house-fig .fig-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
.house-fig .fig-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fig-video { display: none !important; } }

/* How it works: en escritorio, 2 x 2 con la foto arriba y más grande. */
@media (min-width: 960px) {
  .how .steps { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .how .step { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 0 0 22px; overflow: hidden; }
  .how .step-fig { grid-column: 1 / -1; grid-row: 1; margin: 0 0 18px; }
  .how .step-num { padding-left: 22px; }
  .how .step-body { padding-right: 22px; }
}

/* Cierre: banda a ancho completo. El fondo solo se pide con .is-near (app.js), para no cargarlo de entrada.
   Capas oscuras para AA (medido con píxeles: 375 x1.42, 1440 x1.49). */
.closing--band { position: relative; max-width: none; padding: 0; overflow: clip; isolation: isolate; background: #000; }
.closing--band.is-near {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.78)),
    url("assets/closing-calle-movil-v33.webp") center 40% / cover no-repeat, #000;
}
.closing--band .band-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter); }
@media (min-width: 960px) {
  .closing--band.is-near { background: url("assets/closing-calle-v33.webp") center 45% / cover no-repeat, #000; }
  .closing--band::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.45) 100%);
  }
  .closing--band .band-inner { padding: 128px var(--gutter); }
}

/* ==========================================================================
   v3.3.1 · WhatsApp: enlace junto a "What happens next" y botón flotante
   ========================================================================== */
.wa-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start; }
.wa-link .wa-ico { flex: none; width: 1.2em; height: 1.2em; }
.wa-float { display: none; }
.wa-float .wa-ico { flex: none; width: 28px; height: 28px; }
.wa-float-text { display: none; }
@media (max-width: 959px) {
  .wa-float.is-on {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 16px; z-index: 49;
    bottom: calc(56px + 14px + env(safe-area-inset-bottom, 0px)); /* encima de la barra de llamada */
    width: 56px; height: 56px; border-radius: 999px;
    background: var(--gold); color: var(--ink); text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.55); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  }
}
@media (min-width: 720px) and (max-width: 959px) { .wa-float.is-on { bottom: 20px; right: 20px; } } /* sin barra de llamada */
@media (min-width: 960px) {
  .wa-float {
    display: flex; align-items: center; gap: 10px;
    position: fixed; right: 24px; bottom: 24px; z-index: 49;
    height: 52px; padding: 0 22px 0 16px; border-radius: 999px;
    background: var(--gold); color: var(--ink); text-decoration: none;
    font: 700 1rem/1.2 var(--font-body);
    border: 1px solid rgba(0, 0, 0, 0.55); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  }
  .wa-float .wa-ico { width: 24px; height: 24px; }
  .wa-float-text { display: inline; }
  body:has(.wa-float) .site-footer { padding-bottom: 96px; }
}
.wa-float:hover { background: var(--gold-bright); }
.wa-float:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (max-width: 719px) { body:has(.wa-float) .site-footer { padding-bottom: 140px; } }
@media (min-width: 720px) and (max-width: 959px) { body:has(.wa-float) .site-footer { padding-bottom: 96px; } }
