/* =============================================================
   NüHome · sitio web
   El lenguaje de fundosinmobiliaria.com (4ChrisM/fundos-web) con la marca de Nu Home:
   blanco, negro y gris, Cormorant Garamond en los títulos (la segunda línea en cursiva gris) y Jost
   en el texto.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
/* Cormorant Garamond (títulos y cifras grandes, con cursiva) y Jost (texto), servidas desde el
   propio sitio, variables de peso. Las elige el cliente entre cinco (22-10-2026): son las de sus
   piezas de Instagram. Los "Fallback" imitan sus medidas con fuentes del sistema para que el texto
   no salte al cargar. Cormorant no va bajo 20 px: chica se lee mal. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-garamond-variable.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-garamond-italic-variable.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/jost-variable.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 96.12%; ascent-override: 96.13%; descent-override: 29.86%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 94.57%; ascent-override: 113.1%; descent-override: 39.65%; line-gap-override: 0%; }

:root {
  /* Blanco, negro y gris (pedido del cliente, 22-10-2026): negro en las superficies oscuras */
  --a950: #000000;
  --a900: #0A0A0A;
  --a800: #141414;
  --a700: #1F1F1F;
  /* El acento es gris. Un tono por uso; los rellenos de botón van en blanco o negro (abajo,
     «Botones») */
  --acento: #8C8C8C;            /* filetes, marcos y rellenos chicos con texto negro (6,2:1) */
  --acento-2: #A3A3A3;
  --acento-claro: #B0B0B0;      /* acento como texto o ícono sobre negro (9,6:1) */
  --acento-tinta: #5E5E5E;      /* acento como texto sobre claro (5,5:1 sobre --n100) */
  /* Grises neutros para las secciones claras */
  --n800: #222222;
  --n600: #555555;              /* texto secundario sobre claro (AA) */
  --n500: #777777;
  --n200: #DCDCDA;
  --n100: #EDEDEC;
  --n050: #F6F6F5;
  --white: #FFFFFF;
  --borde-campo: #8A8A8A;
  --danger: #A3432F;
  --danger-claro: #F4B4A4;

  --cream-80: rgba(246, 246, 245, .82);
  --cream-70: rgba(246, 246, 245, .72);
  --cream-55: rgba(246, 246, 245, .58);
  --line-dark: rgba(246, 246, 245, .14);
  --line-light: rgba(10, 10, 10, .12);

  --titulos: "Cormorant Garamond", "Cormorant Fallback", Garamond, "Times New Roman", serif;
  --fuente: "Jost", "Jost Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;

  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --shadow-card: 0 1px 2px rgba(10, 10, 10, .05), 0 18px 40px -22px rgba(10, 10, 10, .38);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: clip;
}
body {
  background: var(--a900);
  color: var(--a900);
  font-family: var(--fuente);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--titulos); font-weight: 500; line-height: 1; letter-spacing: -.01em; text-wrap: balance; font-variant-numeric: lining-nums; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
::selection { background: var(--acento); color: var(--a900); }
:focus-visible { outline: 2px solid var(--acento-claro); outline-offset: 3px; border-radius: 3px; }
.light :focus-visible, .cream :focus-visible, .fv-panel :focus-visible { outline-color: var(--acento-tinta); }

[hidden] { display: none !important; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .7rem 1.1rem; background: var(--a900); color: var(--white); outline: 2px solid var(--white);
  font-weight: 700; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =============================================================
   4. Tipografía
   ============================================================= */
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  font-family: var(--fuente); font-size: .74rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .26em; text-transform: uppercase; color: var(--acento-tinta);
  margin-bottom: 1rem;
}
.dark .kicker, .hero .kicker { color: var(--acento-claro); }
h2 { font-size: clamp(2.4rem, 5vw, 4.3rem); }
/* La segunda línea de los títulos: más liviana y en el color de acento */
h1 em, h2 em, .footer-claim em { font-style: italic; font-weight: 500; color: var(--acento-tinta); }
.dark h2 em, .hero h1 em, .footer-claim em { color: var(--acento-claro); }
.lead { font-size: clamp(1.04rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--n600); max-width: 60ch; }
.dark .lead { color: var(--cream-70); }
.num { font-variant-numeric: lining-nums; }

/* =============================================================
   5. Componentes
   ============================================================= */
/* --- Botones: al pasar el cursor aparece un marco gris --- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.35em;
  font: 600 .95rem/1.1 var(--fuente); letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-sm);
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), transform .35s var(--ease-out);
}
.btn .i { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn::after {
  content: ""; position: absolute; inset: -5px; pointer-events: none;
  border: 1px solid var(--acento); border-radius: calc(var(--r-sm) + 3px);
  opacity: 0; transform: scale(.94);
  transition: opacity .3s var(--ease-soft), transform .45s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; opacity: .7; }
@media (hover: hover) {
  .btn:hover::after { opacity: .85; transform: scale(1); }
  .btn:hover .i-go { transform: translateX(3px); }
}
.btn-acento { background: var(--n050); color: var(--a900); }
.btn-acento:hover { background: var(--white); }
/* Sobre fondo claro (la ficha, las secciones claras) el botón principal va en negro */
.light .btn-acento, .cream .btn-acento, .fichas .btn-acento, .fv-panel .btn-acento { background: var(--a900); color: var(--white); }
.light .btn-acento:hover, .cream .btn-acento:hover, .fichas .btn-acento:hover, .fv-panel .btn-acento:hover { background: var(--a700); }
.btn-dark { background: var(--a900); color: var(--n050); }
.btn-dark:hover { background: var(--a700); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(246, 246, 245, .38); }
.btn-ghost:hover { background: rgba(246, 246, 245, .08); border-color: rgba(246, 246, 245, .6); }
.btn-line { background: transparent; color: var(--a900); border-color: rgba(10, 10, 10, .22); }
.btn-line:hover { background: var(--n100); border-color: rgba(10, 10, 10, .38); }
.btn-lg { min-height: 56px; padding: 1em 1.6em; font-size: 1rem; }
.btn-sm { min-height: 44px; padding: .55em 1.05em; font-size: .86rem; }
.btn-sm::after { inset: -4px; }

.pill {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .34rem .6rem; border-radius: 999px;
  font: 700 .6rem/1 var(--fuente); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(140, 140, 140, .26); color: var(--acento-claro);
}
.pill-solida { background: var(--n050); color: var(--a900); }

/* Íconos en círculo (incluye, contacto, a cargo) */
.badge-i {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--a900); color: var(--acento-claro);
}
.badge-i .i { width: 22px; height: 22px; }
.dark .badge-i { background: transparent; border: 1px solid var(--line-dark); }

/* --- Formularios --- */
.campos { display: grid; gap: 1rem; }
.campo { display: grid; gap: .4rem; min-width: 0; }
.campo > span, .campo > legend { font-size: .84rem; font-weight: 700; color: var(--a900); }
.campo small { font-weight: 400; color: var(--n600); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  background-color: var(--white); color: var(--a900);
  border: 1px solid var(--borde-campo); border-radius: var(--r-sm);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--acento-tinta); box-shadow: 0 0 0 3px rgba(140, 140, 140, .3);
}
.campo [aria-invalid="true"] { border-color: var(--danger); }
.campo input::placeholder, .campo textarea::placeholder { color: var(--borde-campo); }
select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235E5E5E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
  padding-right: 2.6rem !important; cursor: pointer;
}

/* Segmentado (radios) */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--borde-campo); border-radius: 999px; background: var(--white); }
.seg label { position: relative; cursor: pointer; min-width: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .3rem .5rem; border-radius: 999px; font-size: .86rem; font-weight: 700; line-height: 1.15; text-align: center; color: var(--n600); transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--a900); color: var(--n050); }
.seg input:focus-visible + span { outline: 2px solid var(--acento-tinta); outline-offset: 2px; }

.check { display: flex; gap: .7rem; align-items: center; min-height: 44px; font-size: .86rem; line-height: 1.45; color: var(--n600); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--a900); flex: none; cursor: pointer; }
.check.is-invalid span { color: var(--danger); }

.aviso { padding: .75rem .9rem; border-left: 3px solid var(--danger); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: #FBEDE8; color: #6E2A1C; font-size: .88rem; font-weight: 600; line-height: 1.45; }
.aviso a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.form-nota { font-size: .8rem; color: var(--n600); text-align: center; margin-top: -.3rem; }

/* Mensaje de envío correcto: tapa el formulario */
.form-ok {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: .8rem;
  padding: 2rem; text-align: center; background: var(--n050); border-radius: inherit;
  animation: fadeUp .6s var(--ease-out);
}
.form-ok:focus { outline: none; }
.ok-check { width: 64px; height: 64px; color: var(--acento-tinta); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.form-ok h3 { font-size: 2rem; }
.form-ok p { color: var(--n600); max-width: 36ch; font-size: .95rem; }
.form-ok .btn { margin-top: .4rem; }

/* =============================================================
   6. Secciones
   ============================================================= */
.section { position: relative; padding-block: var(--section-y); }
.light { background: var(--n050); color: var(--a900); }
.cream { background: var(--n100); color: var(--a900); }
.dark { background: var(--a900); color: var(--n050); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 780px; }
.section-head h2 { margin-bottom: 1.2rem; }

/* ---------------- BARRA ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); color: var(--n050);
  transition: background-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft), height .4s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  transition: opacity .4s;
}
.nav.is-solid { background: rgba(10, 10, 10, .95); box-shadow: 0 1px 0 var(--line-dark); height: 66px; }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(10, 10, 10, .84); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-solid::before { opacity: 0; }
.brand { display: flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: 132px; height: auto; }
.nav-links { display: none; gap: clamp(1rem, 1.8vw, 1.9rem); }
.nav-links a { position: relative; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-size: .9rem; font-weight: 600; color: var(--cream-80); padding-block: .4rem; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--acento-claro);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--n050); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-links .i { width: 1.05em; height: 1.05em; color: var(--acento-claro); }
.nl-disena { color: var(--n050) !important; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav .btn-sm { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(246, 246, 245, .3); color: var(--n050); }
.nav-toggle .i { width: 22px; height: 22px; }
@media (min-width: 560px) { .nav .btn-sm { display: inline-flex; } }
@media (min-width: 1120px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------------- MENÚ (celular y tablet) ---------------- */
.menu {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--a900); color: var(--n050);
}
.menu::backdrop { background: rgba(0, 0, 0, .6); }
.menu[open] { animation: menuIn .45s var(--ease-out); }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 14px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 62px; margin-bottom: 2rem; }
.menu-top img { width: 128px; }
.menu-links { display: grid; gap: .2rem; margin-bottom: auto; }
.menu-links a {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--titulos); font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 500; line-height: 1.25; font-variant-numeric: lining-nums;
  padding-block: .2rem; border-bottom: 1px solid var(--line-dark);
}
.menu-links .pill { font-stretch: 100%; }
.menu[open] .menu-links a { animation: menuLink .6s var(--ease-out) both; }
.menu[open] .menu-links a:nth-child(2) { animation-delay: .04s; }
.menu[open] .menu-links a:nth-child(3) { animation-delay: .08s; }
.menu[open] .menu-links a:nth-child(4) { animation-delay: .12s; }
.menu[open] .menu-links a:nth-child(5) { animation-delay: .16s; }
.menu-cta { width: 100%; margin-top: 2rem; }

/* ---------------- PORTADA ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 clamp(10rem, 22vh, 12rem);
  color: var(--n050); background: var(--a900);
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; animation: heroFoto 2.4s var(--ease-out) both; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 42%, rgba(0, 0, 0, .12) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 28%),
    linear-gradient(0deg, var(--a900) 0%, rgba(10, 10, 10, .72) 14%, rgba(10, 10, 10, 0) 42%);
}
.hero-grid { display: grid; gap: 2.4rem; align-items: center; }
.hero-copy .kicker { animation: fadeUp .9s var(--ease-out) .15s both; }
.hero h1 { font-size: clamp(3.1rem, 7vw, 6.4rem); line-height: .92; animation: fadeUp 1.1s var(--ease-out) .25s both; }
.hero .lead { margin-top: 1.5rem; max-width: 48ch; color: var(--cream-80); animation: fadeUp 1s var(--ease-out) .5s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; animation: fadeUp 1s var(--ease-out) .65s both; }
/* «Diseña tu casa · Próximamente» no cabe a 320 px con el relleno de btn-lg */
@media (max-width: 359px) { .hero-ctas .btn { padding-inline: 1em; gap: .45em; } }

/* Formulario de vidrio */
.lead-card {
  position: relative; display: grid; gap: .85rem; width: 100%; max-width: 420px;
  padding: clamp(1.2rem, 2.2vw, 1.6rem); border: 1px solid rgba(246, 246, 245, .22); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(10, 10, 10, .52), rgba(10, 10, 10, .38) 55%, rgba(10, 10, 10, .58));
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: var(--n050); animation: fadeUp 1s var(--ease-out) .7s both;
}
.lead-card .kicker { margin-bottom: 0; font-size: .66rem; letter-spacing: .18em; color: var(--acento-claro); }
.lead-card-titulo { margin-top: -.3rem; font-size: clamp(1.7rem, 2.4vw, 1.95rem); line-height: 1.05; color: var(--n050); }
.lead-card .campos { gap: .7rem; }
.lead-card .campo { gap: .3rem; }
.lead-card .campo > span { font-size: .74rem; color: rgba(246, 246, 245, .84); }
.lead-card .campo small { color: rgba(246, 246, 245, .6); }
.lead-card .campo input, .lead-card .campo select {
  min-height: 46px; padding: .6rem .8rem; border-color: rgba(246, 246, 245, .28);
  background-color: rgba(0, 0, 0, .32); color: var(--n050); font-size: .95rem;
}
.lead-card .campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23B0B0B0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lead-card .campo select option { background: var(--a900); color: var(--n050); }
.lead-card .campo input::placeholder { color: rgba(246, 246, 245, .5); }
.lead-card .campo input:hover, .lead-card .campo select:hover { border-color: rgba(246, 246, 245, .45); }
.lead-card .campo input:focus, .lead-card .campo select:focus { border-color: var(--acento-claro); background-color: rgba(0, 0, 0, .5); box-shadow: 0 0 0 3px rgba(140, 140, 140, .25); }
.lead-card .campo [aria-invalid="true"] { border-color: var(--danger-claro); }
.lead-card :focus-visible { outline-color: var(--acento-claro); }
.lead-card .check { font-size: .76rem; color: rgba(246, 246, 245, .8); }
.lead-card .check input { width: 18px; height: 18px; accent-color: var(--white); }
.lead-card .check.is-invalid span { color: var(--danger-claro); }
.lead-card .aviso { background: rgba(244, 180, 164, .12); border-left-color: var(--danger-claro); color: #FBD9D0; font-size: .8rem; }
.lead-card .btn { width: 100%; }
.lead-card .form-nota { color: rgba(246, 246, 245, .66); font-size: .74rem; }
.lead-card .form-ok { background: rgba(12, 12, 12, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lead-card .form-ok h3 { color: var(--n050); }
.lead-card .form-ok p { color: var(--cream-80); }
.lead-card .ok-check { color: var(--acento-claro); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lead-card { background: rgba(10, 10, 10, .82); } }

/* Franja "Nuestros modelos" al pie de la portada */
.hero-modelos {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  width: min(1240px, 100%); margin-inline: auto; padding: 0 var(--gutter) 1.6rem;
  animation: fadeUp 1s var(--ease-out) .9s both;
}
.hero-modelos-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; margin-bottom: .6rem; }
.hero-modelos-k { font: 700 .66rem/1.2 var(--fuente); letter-spacing: .18em; text-transform: uppercase; color: var(--acento-claro); }
.hero-modelos ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.hero-modelos a {
  display: flex; align-items: center; gap: .8rem; height: 100%; padding: .5rem .9rem .5rem .5rem;
  border: 1px solid rgba(246, 246, 245, .2); border-radius: var(--r-md); color: var(--n050);
  background: rgba(10, 10, 10, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, background-color .2s, transform .25s var(--ease-out);
}
.hero-modelos a:hover { border-color: var(--acento-claro); background: rgba(10, 10, 10, .62); transform: translateY(-2px); }
.hero-modelos img { flex: none; width: 64px; height: 50px; border-radius: 8px; object-fit: cover; }
.hero-modelos strong { display: block; font: 500 1.4rem/1.1 var(--titulos); }
.hero-modelos small { display: block; margin-top: .15rem; font-size: .76rem; line-height: 1.35; color: rgba(246, 246, 245, .74); }
.hero-modelos small b { font-weight: 700; color: var(--n050); }
.hero-nota { font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: rgba(246, 246, 245, .62); }
/* Cuatro modelos: de a dos en tableta (la portada deja más espacio abajo) y en una fila en escritorio */
@media (min-width: 720px) { .hero-modelos ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1099px) { .hero { padding-bottom: 15.5rem; } }
@media (min-width: 1100px) {
  .hero-modelos ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: clamp(2rem, 4vw, 4rem); }
  .lead-card { justify-self: end; }
}
/* Celular: la franja de modelos va debajo, sin tapar nada */
@media (min-width: 720px) and (max-width: 1099px) {
  .lead-card { max-width: none; }
  .lead-card .campos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .hero { min-height: 0; padding-bottom: 1.8rem; justify-content: flex-start; }
  .hero-media img { object-position: 70% 50%; }
  /* El texto va sobre la foto entera: un velo más parejo para que se lea */
  .hero-media::after { background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .58) 38%, rgba(0, 0, 0, .82) 72%, var(--a900) 100%); }
  .hero-modelos { position: static; margin-top: 2.2rem; }
  .lead-card { max-width: none; }
}
@media (max-width: 1099px) { .hero-media { bottom: auto; height: min(100svh, 820px); } }

/* ---------------- FABRICADAS EN PLANTA: el módulo en despiece ---------------- */
.fab-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 4rem); grid-template-areas: "head" "dibujo" "leyenda"; }
.fab-head { grid-area: head; }
.fab-head h2 { margin-bottom: 1.2rem; }
.fab-dibujo { grid-area: dibujo; }
.fab-leyenda { grid-area: leyenda; display: grid; gap: 1.1rem; align-content: start; }
@media (min-width: 980px) {
  .fab-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "head dibujo" "leyenda dibujo"; align-items: center; }
  .fab-leyenda { align-self: start; }
}
.fab-leyenda li { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: start; }
.fab-leyenda li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--a900); font: 700 1rem/1 var(--fuente); color: var(--white); }
.fab-leyenda h3 { font-size: 1.45rem; line-height: 1.1; }
.fab-leyenda p { margin-top: .2rem; font-size: .9rem; color: var(--n600); }
.despiece { width: 100%; height: auto; overflow: visible; }
.despiece .sombra { fill: #000; opacity: .12; }
.despiece .muro { fill: #151515; }
.despiece .tabla { stroke: #2A2A2A; stroke-width: .8; }
.despiece .vidrio { fill: url(#despiece-vidrio); stroke: var(--a900); stroke-width: 2.5; }
.despiece .marco { stroke: var(--a900); stroke-width: 2; }
.despiece .testero { fill: #232323; }
.despiece .acero { stroke: #000; stroke-width: 4; stroke-linecap: square; }
.despiece .guia { stroke: var(--acento); stroke-width: 1.2; stroke-dasharray: 4 4; }
.despiece .borde { fill: #3A3A3A; stroke: #000; stroke-width: 2; }
.despiece .aislacion { fill: url(#despiece-aislacion); stroke: var(--a900); stroke-width: 1.5; }
.despiece .cubierta { fill: #262626; stroke: var(--a900); stroke-width: 2; }
.despiece .medida-linea { stroke: var(--n600); stroke-width: 1; }
.despiece .medida text { font: 700 15px var(--fuente); letter-spacing: .04em; fill: var(--n600); }
.despiece .marca circle { fill: var(--a900); stroke: var(--n100); stroke-width: 3; }
.despiece .marca text { font: 700 15px var(--fuente); fill: var(--white); text-anchor: middle; dominant-baseline: central; }
.fab-incluye { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.fab-incluye ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.fab-incluye li { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; background: var(--a900); color: var(--n050); font-size: .9rem; }
.fab-incluye .i { width: 20px; height: 20px; color: var(--acento-claro); }
.fab-incluye span { color: var(--cream-70); }
.fab-incluye b { color: var(--n050); font-weight: 700; margin-right: .2rem; }

/* ---------------- MODELOS ---------------- */
.modelos { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
@media (min-width: 760px) { .modelos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.modelo {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
@media (hover: hover) {
  .modelo:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(10, 10, 10, .05), 0 30px 50px -26px rgba(10, 10, 10, .5); }
  .modelo:hover .modelo-foto img { transform: scale(1.05); }
}
.modelo-foto { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--n200); }
.modelo-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.modelo-sello {
  position: absolute; right: 14px; bottom: 14px;
  padding: .42rem .8rem; border-radius: 999px;
  font: 700 .68rem/1 var(--fuente); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(10, 10, 10, .74); color: var(--n050);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modelo-cuerpo { display: flex; flex-direction: column; flex: 1; padding: clamp(1.2rem, 2.4vw, 1.7rem); }
.modelo-cuerpo .kicker { margin-bottom: .6rem; font-size: .68rem; letter-spacing: .2em; }
.modelo h3 { font-size: clamp(2.1rem, 3vw, 2.5rem); }
.modelo-lema { margin-top: .35rem; font-family: var(--titulos); font-style: italic; font-size: 1.3rem; font-weight: 500; line-height: 1.25; color: var(--n600); }
.modelo-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; margin: 1.3rem 0 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-light); }
.modelo-datos dt { font: 700 .64rem/1.2 var(--fuente); letter-spacing: .16em; text-transform: uppercase; color: var(--n600); }
.modelo-datos dd { margin-top: .25rem; font: 500 1.6rem/1.05 var(--titulos); font-variant-numeric: lining-nums; color: var(--a900); }
@media (min-width: 420px) and (max-width: 759px) { .modelo-datos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.modelo-acciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: auto; }
.enlace-sale { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-top: .6rem; align-self: flex-start; font-size: .88rem; font-weight: 700; color: var(--acento-tinta); }
.enlace-sale .i { width: 1em; height: 1em; transition: transform .35s var(--ease-out); }
.enlace-sale:hover { text-decoration: underline; text-underline-offset: 3px; }
.enlace-sale:hover .i { transform: translate(2px, -2px); }

/* ---------------- FICHAS ----------------
   Sin JavaScript (o sin <dialog>) se leen seguidas en esta sección. Si no, la sección no se ve y
   cada ficha se abre en la ventana .ficha-ventana (main.js, «Fichas»). */
.fichas { background: var(--n050); color: var(--a900); padding-block: var(--section-y); }
.fichas .container { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.con-dialog .fichas { display: none; }
.ficha { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
@media (min-width: 960px) {
  .ficha { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .fv-cuerpo .ficha-media { position: sticky; top: 0; }
}
.ficha-media { display: grid; gap: 1rem; }
.ficha-foto { overflow: hidden; border-radius: var(--r-lg); background: var(--n200); }
.ficha-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ficha-plano { padding: clamp(.8rem, 2vw, 1.2rem); border: 1px solid var(--line-light); border-radius: var(--r-lg); background: var(--white); }
.ficha-plano img { width: 100%; }
.ficha-plano figcaption { margin-top: .7rem; font-size: .8rem; line-height: 1.45; color: var(--n600); }
/* Angosto: foto, datos y al final el plano */
@media (max-width: 959px) {
  .ficha-media { display: contents; }
  .ficha-foto { order: 0; }
  .ficha-info { order: 1; }
  .ficha-plano { order: 2; }
}
.ficha-info .kicker { margin-bottom: .6rem; }
.ficha-info h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.ficha-lema { margin-top: .5rem; font-family: var(--titulos); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.25; color: var(--acento-tinta); }
.ficha-texto { margin-top: 1rem; color: var(--n600); max-width: 56ch; }
.superficies { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.superficies > div { flex: 1 1 0; min-width: 7.5rem; padding: .85rem 1rem; border: 1px solid var(--line-light); border-radius: var(--r-md); background: var(--white); }
.superficies .total { background: var(--a900); border-color: var(--a900); color: var(--n050); }
.superficies dt { font: 700 .62rem/1.2 var(--fuente); letter-spacing: .16em; text-transform: uppercase; color: var(--n600); }
.superficies .total dt { color: var(--acento-claro); }
.superficies dd { display: flex; align-items: baseline; gap: .3rem; margin-top: .3rem; }
.superficies .num { font: 500 2.5rem/1 var(--titulos); font-variant-numeric: lining-nums; }
.superficies small { font-size: .82rem; font-weight: 700; color: var(--n600); }
.superficies .total small { color: var(--cream-70); }
.superficies .medidas { flex-grow: 1.4; }
.superficies .medidas .num { font-size: 1.6rem; white-space: nowrap; }
.claves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; margin-top: 1.5rem; padding-block: 1.2rem; border-block: 1px solid var(--line-light); }
.claves li { display: flex; gap: .7rem; align-items: flex-start; }
.claves .i { width: 28px; height: 28px; color: var(--acento-tinta); stroke-width: 1.4; }
.claves b { display: block; font-size: .95rem; line-height: 1.3; }
.claves small { display: block; font-size: .78rem; color: var(--n600); }
.equipamiento { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem 1.6rem; margin-top: 1.4rem; }
.equipamiento h3 { margin-bottom: .5rem; font: 700 .68rem/1.2 var(--fuente); letter-spacing: .18em; text-transform: uppercase; color: var(--acento-tinta); }
.equipamiento li { position: relative; padding-left: 1rem; font-size: .88rem; line-height: 1.45; color: var(--n800); }
.equipamiento li + li { margin-top: .3rem; }
.equipamiento li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--acento); }
.ficha-nota { margin-top: 1.3rem; font-size: .76rem; line-height: 1.5; color: var(--n600); }
.ficha-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.4rem; }
.enlace-ficha { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .88rem; font-weight: 700; color: var(--acento-tinta); }
.enlace-ficha:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 519px) {
  .ficha-acciones .btn { flex: 1 1 100%; }
  .claves { grid-template-columns: minmax(0, 1fr); }
}

/* Ventana de la ficha: panel claro sobre fondo oscuro, flechas a los costados */
.ficha-ventana {
  --pw: min(1180px, calc(100vw - 152px)); --gut: calc((100vw - var(--pw)) / 2);
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--a900); overflow: hidden;
}
.ficha-ventana[open] { display: block; animation: dialogIn .5s var(--ease-out); }
.ficha-ventana::backdrop { background: rgba(0, 0, 0, .84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.fv-panel {
  display: flex; flex-direction: column; width: var(--pw); height: calc(100dvh - 24px); margin: 12px auto;
  border-radius: var(--r-lg); background: var(--n050); overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8);
}
.fv-barra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none;
  padding: .5rem .6rem .5rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line-light); background: var(--n050);
}
.fv-titulo { font: 700 .7rem/1.3 var(--fuente); letter-spacing: .2em; text-transform: uppercase; color: var(--acento-tinta); }
.fv-cerrar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--a900); transition: background-color .2s; }
.fv-cerrar:hover { background: var(--n100); }
.fv-cerrar .i { width: 22px; height: 22px; }
.fv-cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1rem, 3vw, 2.2rem); scrollbar-width: thin; scrollbar-color: rgba(10, 10, 10, .25) transparent; }
.fv-cuerpo .ficha[hidden] { display: none; }
/* Al abrir con #rapel, el navegador lleva la ficha al borde: que deje el mismo aire de arriba */
.fv-cuerpo .ficha { scroll-margin-top: clamp(1rem, 3vw, 2.2rem); }
.fv-pie { display: flex; justify-content: space-between; gap: 1rem; flex: none; padding: .5rem clamp(.6rem, 2.4vw, 1.6rem); border-top: 1px solid var(--line-light); background: var(--n050); }
.fv-nav { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .3rem .5rem; border-radius: var(--r-sm); text-align: left; color: var(--a900); transition: color .2s; }
.fv-nav-sig { text-align: right; }
.fv-nav span { display: grid; font: 700 .62rem/1.3 var(--fuente); letter-spacing: .16em; text-transform: uppercase; color: var(--acento-tinta); }
.fv-nav b { font: 500 1.3rem/1.15 var(--titulos); letter-spacing: 0; text-transform: none; color: var(--a900); }
.fv-nav .i { width: 20px; height: 20px; color: var(--acento-tinta); }
.fv-nav:hover b { color: var(--acento-tinta); }
.fv-flecha {
  position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 50px; height: 50px; margin-top: -25px;
  border: 1px solid rgba(246, 246, 245, .35); border-radius: 50%; background: rgba(10, 10, 10, .62); color: var(--n050);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color .2s, border-color .2s;
}
.fv-flecha .i { width: 22px; height: 22px; }
.fv-flecha:hover { background: rgba(10, 10, 10, .9); border-color: var(--acento-claro); }
.fv-flecha-izq { left: calc(var(--gut) - 64px); }
.fv-flecha-der { right: calc(var(--gut) - 64px); }
@media (max-width: 760px) {
  .ficha-ventana { --pw: 100vw; }
  .fv-panel { height: 100dvh; margin: 0; border-radius: 0; }
  .fv-flecha { display: none; }
}

/* Visor de la ficha original */
.visor {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--a900); overflow: hidden;
}
.visor[open] { display: flex; flex-direction: column; animation: menuIn .3s var(--ease-out); }
.visor::backdrop { background: rgba(0, 0, 0, .9); }
.visor .fv-barra { width: min(1180px, 100%); margin: 12px auto 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.visor-acciones { display: flex; align-items: center; gap: .5rem; }
.visor-cuerpo { flex: 1; width: min(1180px, 100%); margin: 0 auto 12px; padding: clamp(.6rem, 2vw, 1.2rem); overflow: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--n100); overscroll-behavior: contain; }
.visor-cuerpo img { width: 100%; max-width: 1100px; margin-inline: auto; border-radius: var(--r-sm); box-shadow: var(--shadow-card); }
@media (max-width: 760px) {
  .visor .fv-barra { margin-top: 0; border-radius: 0; }
  .visor-cuerpo { margin-bottom: 0; border-radius: 0; }
}

/* ---------------- DISEÑA TU CASA ---------------- */
.disena { overflow: clip; background: radial-gradient(80% 60% at 50% 0%, rgba(140, 140, 140, .12), transparent 60%), var(--a900); }
.disena-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .disena-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.disena-copy h2 { margin-bottom: 1.2rem; }
.disena-pronto { margin-bottom: 1.2rem; font-weight: 600; color: var(--cream-80); }
.pasos-mini { display: grid; gap: .9rem; margin: 1.8rem 0 2.2rem; }
.pasos-mini li { display: flex; align-items: center; gap: .9rem; font-weight: 600; color: var(--cream-80); }
.pasos-mini span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(140, 140, 140, .6); font: 700 1rem/1 var(--fuente); color: var(--acento-claro); }
.disena-media { position: relative; }
.disena-media img { width: 100%; border-radius: var(--r-lg); background: var(--n050); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(140, 140, 140, .35); }
.disena-media figcaption {
  position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 999px; background: rgba(10, 10, 10, .86); color: var(--n050);
  font-size: .8rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.disena-media figcaption .i { width: 1.1em; height: 1.1em; color: var(--acento-claro); }

/* ---------------- CÓMO TRABAJAMOS: línea de tiempo ---------------- */
.linea { position: relative; display: grid; gap: 2rem; margin-top: clamp(1rem, 3vw, 2rem); }
.linea::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 1px; background: var(--acento); }
.linea li { position: relative; padding-left: 4.5rem; }
.linea-nodo { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid var(--acento); background: var(--n100); font: 500 1.35rem/1 var(--titulos); font-variant-numeric: lining-nums; color: var(--acento-tinta); }
.linea li:last-child .linea-nodo { background: var(--a900); border-color: var(--a900); color: var(--white); }
.linea .i { width: 28px; height: 28px; margin: .1rem 0 .7rem; color: var(--n500); stroke-width: 1.3; }
.linea h3 { font-size: 1.55rem; line-height: 1.1; }
.linea p { margin-top: .45rem; font-size: .94rem; color: var(--n600); }
@media (min-width: 860px) {
  .linea { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .linea::before { left: 0; right: 0; top: 23px; bottom: auto; width: auto; height: 1px; }
  .linea li { padding: 0 2rem 0 0; }
  .linea-nodo { position: relative; }
  .linea .i { margin: 1.5rem 0 .9rem; }
}
.a-cargo { display: flex; gap: 1rem; align-items: center; margin-top: clamp(2.2rem, 4vw, 3.2rem); padding: 1.1rem 1.3rem; border: 1px dashed var(--acento); font-size: .94rem; color: var(--n800); }
.a-cargo .i { width: 24px; height: 24px; color: var(--acento-tinta); }
.a-cargo b { color: var(--acento-tinta); }

/* ---------------- TERMINACIONES ---------------- */
.postales { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem); }
@media (min-width: 720px) {
  .postales { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .postal-ancha { grid-column: span 2; }
}
.postal { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--a800); }
.postal img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease-out); }
@media (min-width: 720px) { .postal img { aspect-ratio: auto; height: clamp(240px, 26vw, 360px); } }
@media (hover: hover) { .postal:hover img { transform: scale(1.05); } }
.postal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
  font: 500 1.5rem/1.15 var(--titulos); color: var(--n050);
}
.postal figcaption small { display: block; margin-bottom: .2rem; font: 700 .6rem/1.2 var(--fuente); letter-spacing: .16em; text-transform: uppercase; color: var(--acento-claro); }

/* ---------------- CONTACTO: asistente en tres pasos ---------------- */
.contacto { background: radial-gradient(80% 60% at 10% 100%, rgba(140, 140, 140, .12), transparent 60%), var(--a800); border-top: 1px solid var(--line-dark); }
.contacto-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.8rem, 3vw, 2.4rem); }
.contacto-head h2 { margin-bottom: 1rem; }
.datos-contacto { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.datos-contacto li { display: flex; align-items: center; gap: .6rem; }
.datos-contacto .i { width: 22px; height: 22px; color: var(--acento-claro); }
.datos-contacto a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }
.datos-contacto a:hover { color: var(--acento-claro); }

.asistente { position: relative; display: grid; gap: 1.4rem; }
.asistente.is-elegido .as-opciones { animation: elegido 1.6s var(--ease-out); border-radius: var(--r-lg); }
.as-etapas { display: flex; flex-wrap: wrap; gap: .5rem; }
.as-etapas li { display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem .5rem .5rem; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--cream-55); }
.as-etapas b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(246, 246, 245, .1); font-size: .75rem; }
.as-etapas .is-actual { border-color: var(--n050); color: var(--n050); }
.as-etapas .is-actual b, .as-etapas .is-hecha b { background: var(--n050); color: var(--a900); }
.as-etapas .is-hecha { color: var(--cream-80); }
.as-paso { display: grid; gap: 1.2rem; }
.as-paso + .as-paso { padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.con-pasos .as-paso + .as-paso { padding-top: 0; border-top: 0; }
.as-pregunta { float: left; width: 100%; margin-bottom: 1.2rem; font: 500 clamp(1.8rem, 3vw, 2.3rem)/1.1 var(--titulos); color: var(--n050); }
.as-pregunta + * { clear: both; }
.as-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 860px) { .as-opciones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.as-opcion { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 2px solid transparent; border-radius: var(--r-lg); background: rgba(246, 246, 245, .06); cursor: pointer; transition: border-color .2s, background-color .2s; }
.as-opcion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.as-opcion img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.as-opcion > span { display: block; padding: .8rem .9rem .9rem; }
.as-opcion strong { display: block; font: 500 1.45rem/1.05 var(--titulos); color: var(--n050); }
.as-opcion small { display: block; margin-top: .3rem; font-size: .8rem; color: var(--cream-70); }
.as-opcion:hover { border-color: rgba(140, 140, 140, .5); }
.as-opcion:has(input:checked) { border-color: var(--n050); background: rgba(246, 246, 245, .1); }
.as-opcion:has(input:focus-visible) { outline: 2px solid var(--acento-claro); outline-offset: 3px; }
.as-nose { grid-column: 1 / -1; flex-direction: row; justify-content: center; align-items: center; gap: .9rem; min-height: 72px; padding: .6rem 1rem; }
.as-nose > span { padding: 0; }
.as-nose > .i { width: 40px; height: 40px; color: var(--acento-claro); }
/* Campos sobre fondo oscuro */
.asistente .campo > span, .asistente .campo > legend { color: var(--n050); }
.asistente .campo small { color: var(--cream-55); }
.asistente .campo input, .asistente .campo select, .asistente .campo textarea { border-color: rgba(246, 246, 245, .3); background-color: rgba(246, 246, 245, .06); color: var(--n050); }
.asistente .campo input::placeholder, .asistente .campo textarea::placeholder { color: rgba(246, 246, 245, .5); }
.asistente .campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23B0B0B0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.asistente .campo select option { background: var(--a900); color: var(--n050); }
.asistente .campo input:focus, .asistente .campo select:focus, .asistente .campo textarea:focus { border-color: var(--acento-claro); box-shadow: 0 0 0 3px rgba(140, 140, 140, .25); }
.asistente .campo [aria-invalid="true"] { border-color: var(--danger-claro); }
.asistente .seg { border-color: rgba(246, 246, 245, .3); background: transparent; }
.asistente .seg span { color: var(--cream-70); }
.asistente .seg input:checked + span { background: var(--n050); color: var(--a900); }
.asistente .seg input:focus-visible + span { outline-color: var(--acento-claro); }
.asistente .check { color: var(--cream-80); }
.asistente .check input { accent-color: var(--white); }
.asistente .check.is-invalid span { color: var(--danger-claro); }
.as-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.as-estado { font-size: .88rem; color: var(--cream-70); }
.as-botones { display: flex; gap: .6rem; margin-left: auto; }
@media (max-width: 519px) {
  .as-botones { width: 100%; }
  .as-botones .btn { flex: 1 1 0; }
  .as-etapas li:not(.is-actual) span { display: none; }
  .as-etapas li:not(.is-actual) { padding-right: .5rem; }
}
.asistente .form-ok { background: var(--a800); border-radius: var(--r-lg); }
.asistente .form-ok h3 { color: var(--n050); }
.asistente .form-ok p { color: var(--cream-80); }
.asistente .ok-check { color: var(--acento-claro); }
@media (min-width: 620px) {
  .campos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campo-ancho { grid-column: 1 / -1; }
}

/* ---------------- PIE ---------------- */
.footer { background: var(--a950); color: var(--cream-70); padding: clamp(3.5rem, 7vw, 5.5rem) 0 calc(6.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 2.4rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand img { width: 150px; margin-bottom: 1.3rem; }
.footer-claim { font-family: var(--titulos); font-size: 2.2rem; font-weight: 500; line-height: 1.05; color: var(--n050); max-width: 14ch; }
.footer-col { display: grid; align-content: start; min-width: 0; font-size: .94rem; }
.footer-col h2 { margin-bottom: .6rem; font: 700 .7rem/1 var(--fuente); letter-spacing: .22em; text-transform: uppercase; color: var(--acento-claro); }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; transition: color .2s; }
.footer-col a:hover { color: var(--acento-claro); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .8rem 2rem; margin-top: 3rem; padding-top: 1.5rem; font-size: .78rem; color: var(--cream-55); }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.footer-bottom p:first-child { max-width: 70ch; }
.footer-credit a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream-70); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- BARRA DEL CELULAR + WHATSAPP ---------------- */
.barra-movil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: auto 1fr; gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .96); border-top: 1px solid var(--line-dark); color: var(--n050);
  transform: translateY(110%); visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s .45s;
}
@supports (backdrop-filter: blur(10px)) {
  .barra-movil { background: rgba(10, 10, 10, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.barra-movil.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease-out); }
.barra-movil .i { color: var(--acento-claro); }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; display: none; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--a700); color: var(--acento-claro);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(140, 140, 140, .45);
  transition: transform .35s var(--ease-out), background-color .3s, opacity .3s;
}
.wa-float .i { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--a800); }
@media (min-width: 720px) {
  .barra-movil { display: none; }
  .wa-float { display: grid; }
  .footer { padding-bottom: 3rem; }
  .footer-bottom { padding-right: 84px; }
}

/* =============================================================
   7. Movimiento
   ============================================================= */
/* Aparecen al entrar en pantalla. Solo con main.js corriendo (clase .rv-listo en <html>): si el
   script falla, nada queda escondido. */
.rv-listo [data-rv] { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.rv-listo [data-rv]:not(.is-in) { opacity: 0; transform: translateY(22px); }
.linea li[data-rv]:nth-child(2), .modelos [data-rv]:nth-child(2) { transition-delay: .08s; }
.linea li[data-rv]:nth-child(3), .modelos [data-rv]:nth-child(3) { transition-delay: .16s; }
.linea li[data-rv]:nth-child(4), .modelos [data-rv]:nth-child(4) { transition-delay: .24s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroFoto { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuLink { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes elegido { 0% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(140, 140, 140, .3); } 25% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 5px rgba(140, 140, 140, .75); } 100% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(140, 140, 140, .3); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv-listo [data-rv]:not(.is-in) { opacity: 1; transform: none; }
}
