/* =============================================================
   Umbral Inmobiliaria — demo de Alto Digital
   1. Tokens
   ============================================================= */
:root {
  /* paleta: azul profundo / arena / dorado ocre — confianza + patrimonio */
  --primary:       #16324F;   /* azul profundo — texto grande, fondos, nav */
  --primary-light: #24496E;   /* hover / variantes */
  --primary-pale:  #E9EEF3;   /* fondo sutil (badges renta, chips) */
  --secondary:     #E8DCC8;   /* beige / arena — fondos de sección alterna */
  --accent:        #C9A449;   /* dorado ocre — SOLO fondos/bordes/iconos/texto grande (≥3:1) */
  --accent-dark:   #8C6A28;   /* dorado oscuro — texto pequeño / enlaces (≥4.5:1) */
  --bg:            #FAF7F1;   /* blanco cálido */
  --paper:         #FFFFFF;
  --ink:           #262626;   /* grafito */
  --ink-soft:      #4A4A46;
  --ink-mute:      #78726A;
  --line:          rgba(38, 38, 38, 0.14);
  --line-strong:   rgba(38, 38, 38, 0.26);
  --shadow-soft:   0 18px 40px -20px rgba(22, 50, 79, 0.28);
  --shadow-gold:   0 16px 32px -14px rgba(201, 164, 73, 0.45);

  --font-display: "Libre Caslon Display", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --container: 1220px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--font-display); font-weight: 400; color: var(--primary); }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--primary); }

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

body.nav-open { overflow: hidden; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; 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; top: -100px; left: 1rem; padding: .7rem 1.1rem;
  background: var(--primary); color: var(--bg); z-index: 9999; border-radius: 8px;
  font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-dark); display: inline-flex;
  align-items: center; gap: .5em;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

.section { padding-block: clamp(3.4rem, 7vw, 6.5rem); position: relative; }
.section--alt { background: var(--secondary); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head p.lede { color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.15rem); margin-top: .9rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s var(--ease-out), color .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--bg); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-gold { background: var(--accent); color: var(--primary); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: #d4b35d; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-pale); }
.btn-ghost { background: transparent; color: var(--bg); border: 1.5px solid rgba(250,247,241,0.5); }
.btn-ghost:hover { background: rgba(250,247,241,0.14); }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: .86rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* =============================================================
   5. Aviso de demostración + header
   ============================================================= */
.demo-banner {
  background: var(--primary); color: var(--bg); font-size: .82rem; line-height: 1.5;
  padding: .55rem var(--gutter); text-align: center;
}
.demo-banner strong { color: var(--accent); }
.demo-banner .container { display: flex; justify-content: center; gap: .4em; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}
body.is-scrolled .site-header { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(22,50,79,0.35); }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; color: var(--primary); }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }

.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-size: .94rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent-dark);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }
.nav-cta { display: none; }

.nav-toggle {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.nav-toggle:hover { background: var(--primary-pale); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-panel {
  display: none; flex-direction: column; gap: .2rem; padding: .5rem var(--gutter) 1.4rem;
  background: var(--bg); border-top: 1px solid var(--line);
}
.nav-panel.is-open { display: flex; }
.nav-panel a {
  padding: .85rem .2rem; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--primary);
}
.nav-panel .btn { margin-top: .9rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; display: flex; align-items: center; min-height: 92svh; min-height: 92vh;
  padding-block: clamp(3rem, 10vh, 6rem); overflow: clip; isolation: isolate;
  color: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  animation: heroZoom 26s var(--ease-soft) infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,50,79,0.68) 0%, rgba(22,50,79,0.74) 45%, rgba(18,32,46,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 46rem; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero-title {
  color: var(--bg); font-size: clamp(2.4rem, 6.4vw, 4.4rem); margin-top: 1rem; max-width: 20ch;
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub { color: rgba(250,247,241,0.86); font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 42ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: clamp(2.6rem, 7vw, 4rem); max-width: 40rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(250,247,241,0.24);
}
.hero-stat strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--accent);
}
.hero-stat span { display: block; font-size: .82rem; color: rgba(250,247,241,0.78); margin-top: .2rem; }

/* =============================================================
   7. Buscador y filtros
   ============================================================= */
.search-panel {
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: clamp(1.1rem, 3vw, 1.8rem); margin-top: clamp(-5.5rem, -8vw, -4rem); position: relative; z-index: 5;
  border: 1px solid var(--line);
}
.filter-form { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.filter-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.filter-field label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute);
}
.filter-field select, .filter-field input {
  width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); font-size: .95rem; color: var(--ink);
  transition: border-color .2s var(--ease-out);
  appearance: none;
}
.filter-field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="9" viewBox="0 0 14 9"><path d="M1 1l6 6 6-6" fill="none" stroke="%2316324F" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem;
}
.filter-field select:focus, .filter-field input:focus { border-color: var(--primary); outline: none; }
.filter-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.filter-hint { font-size: .74rem; color: var(--ink-mute); margin-top: -.15rem; }
.filter-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .3rem; }
.filter-actions .btn { flex: 1 1 auto; }

.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.4rem;
}
.results-count { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-mute); }

.prop-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.empty-state {
  text-align: center; padding: clamp(2.4rem, 6vw, 4rem) 1.5rem; background: var(--paper);
  border-radius: var(--radius-md); border: 1px dashed var(--line-strong); color: var(--ink-soft);
}
.empty-state h3 { margin-bottom: .5rem; font-size: 1.3rem; }

/* =============================================================
   8. Tarjetas de propiedad
   ============================================================= */
.prop-card {
  background: var(--paper); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 10px 26px -20px rgba(22,50,79,0.3);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  animation: cardIn .5s var(--ease-out) backwards;
  display: flex; flex-direction: column;
}
.prop-grid .prop-card:nth-child(1) { animation-delay: .02s; }
.prop-grid .prop-card:nth-child(2) { animation-delay: .07s; }
.prop-grid .prop-card:nth-child(3) { animation-delay: .12s; }
.prop-grid .prop-card:nth-child(4) { animation-delay: .17s; }
.prop-grid .prop-card:nth-child(5) { animation-delay: .22s; }
.prop-grid .prop-card:nth-child(6) { animation-delay: .27s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.prop-card:hover, .prop-card:focus-within {
  transform: translateY(-6px); box-shadow: 0 26px 44px -22px rgba(201,164,73,0.5), 0 10px 26px -18px rgba(22,50,79,0.32);
}
.prop-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary-pale); }
.prop-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.prop-card:hover .prop-card-media img { transform: scale(1.07); }
.prop-badge {
  position: absolute; top: .8rem; left: .8rem; font-family: var(--font-mono); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .05em; padding: .32rem .7rem; border-radius: 999px; font-weight: 600;
}
.prop-badge--venta { background: var(--accent); color: var(--primary); }
.prop-badge--renta { background: var(--primary); color: var(--bg); }
.prop-card-body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prop-card-zone { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); font-weight: 600; }
.prop-card-title { font-size: 1.22rem; }
.prop-card-price { font-family: var(--font-mono); font-size: 1.12rem; color: var(--primary); font-weight: 600; }
.prop-card-specs { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .84rem; color: var(--ink-soft); margin-bottom: .3rem; }
.prop-card-specs li { position: relative; padding-left: 1rem; }
.prop-card-specs li::before { content: "·"; position: absolute; left: 0; color: var(--accent-dark); }
.prop-card-specs li:first-child { padding-left: 0; }
.prop-card-specs li:first-child::before { content: none; }
.prop-card .btn { margin-top: auto; }

/* =============================================================
   9. Modal de ficha de propiedad
   ============================================================= */
dialog#property-dialog {
  border: none; border-radius: var(--radius-lg); padding: 0; width: min(94vw, 760px);
  max-height: min(92dvh, 92vh); color: var(--ink); background: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(10,20,30,0.45);
}
dialog#property-dialog::backdrop { background: rgba(14, 22, 30, 0.72); backdrop-filter: blur(3px); }
.dialog-scroll { max-height: min(92dvh, 92vh); overflow-y: auto; }
.dialog-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 3; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(250,247,241,0.92); color: var(--primary); box-shadow: 0 6px 16px -6px rgba(0,0,0,0.3);
}
.dialog-close:hover { background: var(--bg); }
.dialog-gallery { position: relative; background: var(--primary-pale); }
.dialog-gallery-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.dialog-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.dialog-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(250,247,241,0.88); color: var(--primary); display: inline-flex; align-items: center; justify-content: center;
}
.dialog-arrow:hover { background: var(--bg); }
.dialog-arrow--prev { left: .7rem; }
.dialog-arrow--next { right: .7rem; }
.dialog-thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; overflow-y: visible; }
.dialog-thumbs .thumb { flex: none; width: 58px; height: 46px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.dialog-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dialog-thumbs .thumb.is-active { border-color: var(--accent-dark); opacity: 1; }
.dialog-body { padding: 1.4rem 1.5rem 1.8rem; }
.dialog-body .prop-badge { position: static; display: inline-flex; margin-bottom: .6rem; }
.dialog-zone { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); font-weight: 600; margin-top: .3rem; }
.dialog-title { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: .25rem; }
.dialog-price { font-family: var(--font-mono); font-size: 1.3rem; color: var(--primary); font-weight: 600; margin-top: .4rem; }
.dialog-specs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.dialog-specs li {
  background: var(--secondary); color: var(--primary); font-size: .82rem; font-weight: 600;
  padding: .4rem .8rem; border-radius: 999px;
}
.dialog-desc { margin-top: 1rem; color: var(--ink-soft); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* =============================================================
   10. Calculadora hipotecaria
   ============================================================= */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.calc-card {
  background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-soft);
}
#calculadora.is-highlighted .calc-card { box-shadow: 0 0 0 4px var(--accent), var(--shadow-soft); }
.calc-field { margin-bottom: 1.3rem; }
.calc-field label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; color: var(--primary); }
.calc-field label span[data-calc-enganche-label] { font-family: var(--font-mono); color: var(--accent-dark); }
.calc-field input[type="number"], .calc-field select {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 1rem;
}
.calc-input-suffix { position: relative; }
.calc-input-suffix input { padding-right: 3.6rem; }
.calc-input-suffix span {
  position: absolute; right: .9rem; top: 50%; translate: 0 -50%; color: var(--ink-mute); font-size: .88rem; font-family: var(--font-mono);
}
input[type="range"] {
  width: 100%; height: 6px; border-radius: 999px; background: var(--primary-pale); appearance: none; margin-top: .4rem;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary);
  border: 3px solid var(--accent); cursor: pointer; box-shadow: 0 4px 10px -2px rgba(22,50,79,0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid var(--accent); cursor: pointer;
}
.calc-enganche-row { display: flex; align-items: center; gap: .9rem; }
.calc-enganche-row input[type="number"] { max-width: 5.2rem; text-align: center; }

.calc-results { background: var(--primary); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); position: relative; overflow: hidden; }
.calc-results::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 70%;
  background: radial-gradient(45% 55% at 50% 0%, rgba(201,164,73,0.35), transparent 72%);
  pointer-events: none;
}
.calc-pago-label { font-size: .85rem; color: rgba(250,247,241,0.78); }
.calc-pago-value { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 2.9rem); color: var(--accent); margin-top: .2rem; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(250,247,241,0.22); }
.calc-breakdown dt { font-size: .76rem; color: rgba(250,247,241,0.7); }
.calc-breakdown dd { font-family: var(--font-mono); font-size: 1.08rem; margin-top: .15rem; }
.calc-disclaimer {
  display: flex; gap: .7rem; margin-top: 1.5rem; padding: .9rem 1rem; background: rgba(250,247,241,0.08);
  border: 1px solid rgba(250,247,241,0.22); border-radius: var(--radius-sm); font-size: .84rem; color: rgba(250,247,241,0.92);
  position: relative; z-index: 1;
}
.calc-disclaimer svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--accent); }

/* =============================================================
   11. Cómo trabajamos
   ============================================================= */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.step { display: flex; gap: 1.1rem; padding: 1.4rem; background: var(--paper); border-radius: var(--radius-md); border: 1px solid var(--line); }
.step-num {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--primary); color: var(--accent);
  font-family: var(--font-display); font-size: 1.15rem; display: inline-flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* =============================================================
   12. Contacto / CTA final
   ============================================================= */
.contact-panel {
  background: var(--primary); color: var(--bg); border-radius: var(--radius-lg); padding: clamp(2.2rem, 6vw, 3.6rem);
  display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; position: relative; overflow: hidden;
}
.contact-panel::after {
  content: ""; position: absolute; inset: -20% -20% auto auto; width: 50%; height: 140%;
  background: radial-gradient(circle, rgba(201,164,73,0.3), transparent 70%); pointer-events: none;
}
.contact-panel h2 { color: var(--bg); position: relative; z-index: 1; }
.contact-panel p { color: rgba(250,247,241,0.84); max-width: 48ch; position: relative; z-index: 1; }
.contact-panel .btn { position: relative; z-index: 1; }
.contact-note { font-size: .82rem; color: rgba(250,247,241,0.68); position: relative; z-index: 1; }

/* =============================================================
   13. Footer
   ============================================================= */
.site-footer { background: var(--ink); color: rgba(250,247,241,0.82); padding-block: clamp(2.6rem, 6vw, 3.6rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand .brand-name { color: var(--bg); }
.footer-brand p { margin-top: .8rem; font-size: .9rem; color: rgba(250,247,241,0.62); max-width: 36ch; }
.footer-links h4 { color: var(--bg); font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .8rem; }
.footer-links a, .footer-links p { font-size: .9rem; color: rgba(250,247,241,0.72); display: block; margin-bottom: .55rem; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(250,247,241,0.16);
  font-size: .8rem; line-height: 1.6; color: rgba(250,247,241,0.58);
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 1.4rem; font-size: .78rem; color: rgba(250,247,241,0.48); }

/* =============================================================
   14. Reveal / efectos
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   15. Página de créditos
   ============================================================= */
.credits-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.credit-row { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.credit-row .c-title { font-weight: 600; color: var(--primary); }
.credit-row .c-meta { font-size: .86rem; color: var(--ink-mute); }
.credit-row .c-meta a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--line-strong); }

/* =============================================================
   16. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .filter-form { grid-template-columns: repeat(2, 1fr); }
  .filter-price-row { grid-column: span 2; }
  .hero-stats { max-width: 34rem; }
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-form { grid-template-columns: repeat(4, 1fr); align-items: end; }
  .filter-price-row { grid-column: span 2; }
  .filter-actions { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .prop-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-form { grid-template-columns: 1fr 1fr 1.15fr 0.85fr 0.95fr 0.95fr auto; gap: .7rem; }
  .filter-price-row { display: contents; }
  .filter-actions { grid-column: auto; flex-direction: column; }
  .filter-actions .btn { flex: none; }
  .calc-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .calc-results { position: sticky; top: 6rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3.2rem, 5.6vw, 4.8rem); }
}

/* =============================================================
   17. Reduced motion — SOLO lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .prop-card { animation: none; }
}
