/* ==========================================================================
   AURIA — Nuevas formas de habitar
   Editorial architecture site. Every rule earns its place.
   ========================================================================== */

:root {
  /* --- Brand core (from brand sheet, used as given) --- */
  --gold:      #C8B08A;
  --gold-deep: #A88A5C;
  --ivory:     #E7E2D8;
  --taupe:     #BDB5A6;
  --charcoal:  #333333;
  --sage:      #6D7464;

  /* --- Extended editorial palette --- */
  --paper:     #FAF8F4;   /* warm white, main background */
  --paper-alt: #F2EEE6;   /* slightly deeper warm panel */
  --ink:       #1C1B19;   /* near-black for dark sections */
  --ink-soft:  #23221F;
  --line:      #DED8CB;   /* hairline borders on paper */
  --line-dark: rgba(255,255,255,0.14);
  --text-body: #3A3833;
  --text-muted: #767065;
  --white: #ffffff;

  /* --- Type --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;

  /* --- Motion --- */
  --ease: cubic-bezier(.22,.68,0,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur-fast: .35s;
  --dur-med: .7s;
  --dur-slow: 1.1s;

  /* --- Layout --- */
  --container: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
  --nav-h: 92px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   TYPE SCALE
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.section h2, .section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}
.eyebrow-light { color: var(--gold); }

.section-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.65;
  margin-top: 24px;
}

.section-head {
  max-width: 900px;
  margin-bottom: 72px;
}
.section-head-light h2 { color: var(--white); }

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.preloader {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--paper);
  display: none; /* hidden unless JS explicitly enables it below */
  align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
/* Only shown once JS confirms it's running AND assets are still loading.
   Prevents a JS failure from leaving a permanent white screen. */
.js-anim .preloader { display: flex; }
.js-anim .preloader.loaded { opacity: 0; visibility: hidden; }

.preloader-mark { width: 64px; height: 70px; }
.preloader-a {
  width: 100%; height: 100%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.preloader-a path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw-a 1.6s var(--ease) forwards infinite;
}
@keyframes draw-a {
  0% { stroke-dashoffset: 520; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

/* ==========================================================================
   CUSTOM CURSOR (desktop only, decorative, ignored on touch)
   ========================================================================== */

.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .15s var(--ease-soft), opacity .3s;
  opacity: 0;
  mix-blend-mode: multiply;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.active { opacity: 1; }
.cursor-dot.grow { transform: translate(-50%, -50%) scale(3.2); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 76px;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav.dark-bg .nav-links a:not(.nav-cta) { color: var(--white); }
.nav.dark-bg:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 30px; width: auto; transition: filter .4s; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-deep);
  transition: width .35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--charcoal);
  padding: 10px 22px !important;
  border-radius: 2px;
  transition: background .35s, color .35s, border-color .35s;
}
.nav-cta:hover { background: var(--charcoal); color: var(--white); }
.nav.dark-bg .nav-cta { border-color: var(--white); }
.nav.dark-bg .nav-cta:hover { background: var(--white); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 32px; height: 22px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 600;
}
.nav-toggle span {
  display: block; width: 100%; height: 1px;
  background: var(--charcoal);
  transition: transform .35s var(--ease), opacity .25s, background .3s;
}
.nav.dark-bg:not(.menu-open) .nav-toggle span { background: var(--white); }
.nav-toggle.open span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
.nav-toggle.open span { background: var(--charcoal); }

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  z-index: 450;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform .6s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }

.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--ivory);
  padding: 12px 0;
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}
.mobile-menu-footer {
  margin-top: 48px;
  color: var(--taupe);
  font-size: 0.85rem;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0;
  transition: opacity .6s .3s var(--ease);
}
.mobile-menu.open .mobile-menu-footer { opacity: 1; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform .4s var(--ease), background .35s, color .35s, border-color .35s, box-shadow .4s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid var(--charcoal);
}
.btn-dark:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.12);
  animation: hero-settle 2.4s var(--ease) forwards;
}
@keyframes hero-settle {
  to { transform: scale(1.0); }
}
.hero-scrim {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(180deg, rgba(15,14,12,0.35) 0%, rgba(15,14,12,0.05) 32%, rgba(15,14,12,0.15) 60%, rgba(15,14,12,0.78) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

.hero-brand { margin-bottom: 28px; opacity: 0; transform: translateY(12px); }
.hero-brand img { display: block; width: clamp(180px, 22vw, 300px); height: auto; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin-bottom: 34px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; }
.hero-title-accent { font-style: italic; color: var(--ivory); }

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 52px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.scroll-line i {
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scroll-drip 2.2s var(--ease-soft) infinite;
}
@keyframes scroll-drip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

.hero-coords {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex; gap: 16px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
}
.hero-coords span:not(:last-child)::after { content: '/'; margin-left: 16px; color: rgba(255,255,255,0.3); }

@media (max-width: 720px) {
  .hero-coords { display: none; }
}

/* ==========================================================================
   MARQUEE STRIP
   ========================================================================== */

.marquee {
  background: var(--charcoal);
  color: var(--taupe);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 38s linear infinite;
}
.marquee-track span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  padding: 0 10px;
}
.marquee-track .dot { color: var(--gold); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION DEFAULTS
   ========================================================================== */

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

/* ==========================================================================
   QUÉ HACEMOS
   ========================================================================== */

.que-hacemos { background: var(--paper); }

.qh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}

.qh-card {
  background: var(--paper);
  padding: 48px 40px;
  transition: background .4s var(--ease);
}
.qh-card:hover { background: var(--paper-alt); }

.qh-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin-bottom: 28px;
  letter-spacing: 0.1em;
}

.qh-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.qh-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.qh-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--sage);
  max-width: 820px;
  line-height: 1.5;
}

/* ==========================================================================
   FILOSOFÍA
   ========================================================================== */

.filosofia {
  position: relative;
  color: var(--white);
  padding: clamp(120px, 16vw, 220px) 0;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.filosofia-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  overflow: hidden;
}
.filosofia-bg img {
  width: 100%; height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%; left: 0;
  will-change: transform;
}
.filosofia-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(15,14,12,0.92) 0%, rgba(15,14,12,0.72) 42%, rgba(15,14,12,0.4) 75%, rgba(15,14,12,0.55) 100%);
}
.filosofia-content { position: relative; z-index: 3; }

.filosofia-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  color: var(--white);
  max-width: 780px;
  margin-bottom: 44px;
}
.filosofia-title em { font-style: italic; color: var(--gold); }

.filosofia-text {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 56px;
}
.filosofia-text p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.86);
  font-weight: 300;
}

.filosofia-values {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
}
.filosofia-sustainability {
  margin-top: 34px; max-width: 620px; }
.sustainability-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; color:var(--ivory); }
.sustainability-head svg { width:22px; height:22px; color:var(--gold); flex:0 0 auto; }
.sustainability-head span { font-family:var(--font-display); font-size:1.2rem; letter-spacing:.02em; }
.filosofia-sustainability > p { margin:0; max-width:560px; color:rgba(255,255,255,.78); font-size:.95rem; line-height:1.6; }
.sustainability-benefits { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:14px; }
.sustainability-benefits span { color:var(--ivory); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; }
.sustainability-benefits span::before { content:'·'; color:var(--gold); margin-right:7px; }
.sustainable-mark { display:inline-flex; align-items:center; gap:7px; }
.sustainable-mark svg { width:18px; height:18px; vertical-align:middle; }

.fv-item { display: flex; flex-direction: column; gap: 6px; }
.fv-item span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
}
.fv-item small {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   MODELOS INTRO
   ========================================================================== */

.modelos-intro { padding-bottom: 40px; }
.modelos-intro .section-head { margin-bottom: 0; }

/* ==========================================================================
   COLLECTION HEADER (Fold / Capsule dividers)
   ========================================================================== */

.collection-header {
  padding: 88px 0 56px;
  border-top: 1px solid var(--line);
}
.collection-header-dark {
  background: var(--ink);
  border-top: none;
  margin-top: 40px;
  padding-top: 96px;
}

.ch-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}
.ch-row { padding: 0 var(--gutter); max-width: var(--container); margin: 0 auto; }

.ch-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.collection-header-dark .ch-tag { color: var(--gold); }

.ch-label h3 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
}
.collection-header-dark .ch-label h3 { color: var(--white); }

.ch-desc {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 8px;
}
.collection-header-dark .ch-desc { color: var(--taupe); }

/* ==========================================================================
   MODEL BLOCKS (Fold — large editorial split)
   ========================================================================== */

/* ==========================================================================
   FOLD COLLECTION — DARK EDITORIAL BACKGROUND
   ========================================================================== */
.fold-collection {
  background: var(--ink);
  color: var(--white);
  margin-top: 40px;
}
.fold-collection .fold-header { margin-top: 0; }
/* Fold: mantener la cabecera clara, integrada con el resto de la colección */
.fold-collection .fold-header {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 88px;
}
.fold-collection .fold-header .ch-tag { color: var(--gold-deep); }
.fold-collection .fold-header .ch-label h3 { color: var(--ink); }
.fold-collection .fold-header .ch-desc { color: var(--text-muted); }
.fold-collection .model-block {
  border-bottom-color: rgba(255,255,255,.12);
}
.fold-collection .model-info { background: var(--ink); }
.fold-collection .model-info h3 { color: var(--white); }
.fold-collection .model-tag { color: var(--gold); }
.fold-collection .model-surface { color: var(--gold); }
.fold-collection .model-desc { color: var(--taupe); }
.fold-collection .model-specs { border-top-color: rgba(255,255,255,.16); }
.fold-collection .model-specs span { color: rgba(255,255,255,.58); }
.fold-collection .model-specs b { color: var(--white); }
.fold-collection .model-cta {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,.65);
}
.fold-collection .model-cta:hover { color: var(--gold); border-color: var(--gold); }
.fold-collection .model-plan-btn { color: var(--taupe); border-color: rgba(255,255,255,.22); }
.fold-collection .model-plan-btn:hover { color: var(--gold); border-color: var(--gold); }
.fold-collection .compare-table-wrap { background: var(--ink); }
.fold-collection .compare-table th,
.fold-collection .compare-table td {
  color: var(--taupe);
  border-bottom-color: rgba(255,255,255,.12);
}
.fold-collection .compare-table thead th { color: rgba(255,255,255,.62); border-bottom-color: rgba(255,255,255,.35); }
.fold-collection .compare-table tbody td:first-child { color: rgba(255,255,255,.72); }
.fold-collection .compare-table tbody tr:hover { background: rgba(255,255,255,.035); }


.model-block {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 88vh;
  border-bottom: 1px solid var(--line);
}
.model-block-reverse { grid-template-columns: 1fr 1.35fr; }
.model-block-reverse .model-media { order: 2; }
.model-block-reverse .model-info { order: 1; }

.model-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.model-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.reveal-model.in-view .model-media img { transform: scale(1); }

.model-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 90px);
  background: var(--paper);
}

.model-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.model-info h3 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 4px;
}
.model-surface {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sage);
  margin-bottom: 26px;
}
.model-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 34px;
  max-width: 440px;
}
.model-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-bottom: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.model-specs li { display: flex; flex-direction: column; gap: 4px; }
.model-specs span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.model-specs b {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.model-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--charcoal);
  transition: gap .3s var(--ease), color .3s, border-color .3s;
}
.model-cta i { transition: transform .3s var(--ease); font-style: normal; }
.model-cta:hover { gap: 16px; color: var(--gold-deep); border-color: var(--gold-deep); }

.model-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.model-plan-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s;
}
.model-plan-btn::before {
  content: '';
  width: 14px; height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.model-plan-btn::after {
  content: '+';
  position: absolute;
  margin-left: -20.5px;
  font-size: 0.9rem;
  line-height: 1;
}
.model-plan-btn:hover { color: var(--gold-deep); }

.plan-dialog {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.plan-dialog.is-open { display: flex; }
.plan-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,14,12,0.88);
  backdrop-filter: blur(4px);
}
.plan-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 94vw);
  max-height: 92vh;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  animation: plan-in .25s var(--ease);
  display: flex;
  flex-direction: column;
}
body.plan-modal-open { overflow: hidden; }
@keyframes plan-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
.plan-dialog-name {
  flex: 0 0 auto;
  margin: 0;
  background: var(--white);
  padding: 20px 60px 14px 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
.plan-dialog-images {
  overflow-y: auto;
  padding: 18px 24px 24px;
  display: grid;
  gap: 18px;
  background: var(--white);
}
.plan-dialog-images img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
}
.plan-dialog-close {
  position: absolute;
  z-index: 3;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.plan-dialog-close:hover { background: var(--gold-deep); transform: rotate(90deg); }
@media (max-width: 700px) {
  .plan-dialog { padding: 10px; }
  .plan-dialog-panel { width: 100%; max-height: 96vh; }
  .plan-dialog-name { padding: 16px 54px 12px 18px; font-size: .95rem; }
  .plan-dialog-images { padding: 12px; gap: 12px; }
  .plan-dialog-close { top: 9px; right: 9px; width: 34px; height: 34px; }
}

/* ==========================================================================
   COMPARISON TABLE (Fold)
   ========================================================================== */

.compare-table-wrap {
  padding: 72px 0;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 18px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--charcoal);
}
.compare-table tbody td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}
.compare-table tbody tr:hover { background: var(--paper-alt); }

/* ==========================================================================
   CAPSULE GRID
   ========================================================================== */

.capsule-grid {
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 0 100px;
}
.capsule-card {
  display: flex;
  flex-direction: column;
  background: var(--ink);
}
.capsule-media {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.capsule-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.capsule-card:hover .capsule-media img { transform: scale(1.06); }

.capsule-info {
  padding: 36px 34px 44px;
  color: var(--white);
}
.capsule-info h4 {
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 4px;
}
.capsule-info .model-surface { color: var(--gold); margin-bottom: 18px; }
.capsule-info p:not(.model-surface) {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--taupe);
  margin-bottom: 28px;
}
.capsule-info .model-cta { color: var(--white); border-color: var(--white); }
.capsule-info .model-cta:hover { color: var(--gold); border-color: var(--gold); }

/* ==========================================================================
   SISTEMA CONSTRUCTIVO
   ========================================================================== */

.sistema { background: var(--ink); color: var(--white); }

.process-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 90px;
}
.process-visual {
  aspect-ratio: 5/4;
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}
.process-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 1s var(--ease), filter .6s;
}
.process-step:hover .process-visual img { transform: scale(1.05); filter: grayscale(0); }

.process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.process-copy h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 14px; }
.process-copy p { color: var(--taupe); font-size: 0.95rem; line-height: 1.7; }

.sistema-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-top: 1px solid var(--line-dark);
  padding-top: 64px;
}
.ss-col h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 26px;
}
.ss-col ul { display: flex; flex-direction: column; gap: 14px; }
.ss-col li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}
.ss-col li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--gold);
}

/* ==========================================================================
   BENEFICIOS — VS TABLE
   ========================================================================== */

.beneficios { background: var(--paper); }

.vs-table {
  border-top: 1px solid var(--line);
}
.vs-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.vs-row-head .vs-cell {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding-top: 28px;
  padding-bottom: 20px;
}
.vs-cell {
  padding: 26px 28px;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
}
.vs-cell-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  padding-left: 0;
}
.vs-row:not(.vs-row-head) .vs-cell:nth-child(2) { color: var(--text-muted); }
.vs-cell-auria {
  color: var(--charcoal);
  font-weight: 600;
  background: var(--paper-alt);
  position: relative;
}
.vs-cell-auria::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
}
.vs-row-head .vs-cell-auria { background: transparent; }
.vs-row-head .vs-cell-auria::before { display: none; }
.vs-row-head .vs-cell-auria { color: var(--gold-deep); }

/* ==========================================================================
   GALERÍA — MINIATURAS CUADRADAS + VISTA AMPLIADA
   ========================================================================== */

.galeria { background: var(--paper); }
.galeria .section-head { margin-bottom: 56px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #f3f0ea;
  cursor: zoom-in;
  border: 1px solid rgba(0,0,0,.06);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item-tall, .gallery-item-wide { grid-row: auto; grid-column: auto; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 17, 15, .94);
  backdrop-filter: blur(8px);
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img {
  display: block;
  max-width: min(96vw, 1800px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,.12); }
body.gallery-lightbox-open { overflow: hidden; }

/* ==========================================================================
   PERSONALIZACIÓN
   ========================================================================== */

.personalizacion { background: var(--paper-alt); }
.personalizacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pers-text p { font-size: 1.05rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 28px; max-width: 460px; }
.pers-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.pers-list li {
  font-size: 0.95rem;
  color: var(--charcoal);
  padding-left: 26px;
  position: relative;
}
.pers-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 14px; height: 1px;
  background: var(--gold-deep);
}
.pers-media { aspect-ratio: 4/5; overflow: hidden; }
.pers-media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   COBERTURA NACIONAL
   ========================================================================== */

.cobertura { background: var(--ink); color: var(--white); }
.cobertura-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.cob-text h2 { color: var(--white); }
.cob-text p { color: var(--taupe); font-size: 1.05rem; line-height: 1.75; max-width: 480px; margin-top: 26px; }

.cob-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
  flex-wrap: wrap;
}
.cob-stats div { display: flex; flex-direction: column; gap: 6px; }
.cob-stats b {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--gold);
}
.cob-stats span { font-size: 0.78rem; color: var(--taupe); max-width: 130px; }

.cob-map { display: flex; justify-content: center; }
.ar-map { width: 100%; max-width: 300px; height: auto; }
.ar-map { overflow: visible; }
.ar-map #arMapPath {
  fill: none;
  stroke: var(--taupe);
  stroke-width: 1.4;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 2.4s var(--ease);
}
.cob-map.in-view .ar-map #arMapPath { stroke-dashoffset: 0; }
.ar-pin {
  fill: var(--ivory);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.ar-pin circle { fill: var(--ivory); stroke: none; }
.cob-map.in-view .ar-pin {
  animation: province-pin 3.8s ease-in-out infinite;
}
.cob-map.in-view .ar-pin:nth-of-type(2) { animation-delay: .12s; }
.cob-map.in-view .ar-pin:nth-of-type(3) { animation-delay: .24s; }
.cob-map.in-view .ar-pin:nth-of-type(4) { animation-delay: .36s; }
.cob-map.in-view .ar-pin:nth-of-type(5) { animation-delay: .48s; }
.cob-map.in-view .ar-pin:nth-of-type(6) { animation-delay: .60s; }
.cob-map.in-view .ar-pin:nth-of-type(7) { animation-delay: .72s; }
.cob-map.in-view .ar-pin:nth-of-type(8) { animation-delay: .84s; }
.cob-map.in-view .ar-pin:nth-of-type(9) { animation-delay: .96s; }
.cob-map.in-view .ar-pin:nth-of-type(10) { animation-delay: 1.08s; }
.cob-map.in-view .ar-pin:nth-of-type(11) { animation-delay: 1.20s; }
.cob-map.in-view .ar-pin:nth-of-type(12) { animation-delay: 1.32s; }
.cob-map.in-view .ar-pin:nth-of-type(13) { animation-delay: 1.44s; }
.cob-map.in-view .ar-pin:nth-of-type(14) { animation-delay: 1.56s; }
.cob-map.in-view .ar-pin:nth-of-type(15) { animation-delay: 1.68s; }
.cob-map.in-view .ar-pin:nth-of-type(16) { animation-delay: 1.80s; }
.cob-map.in-view .ar-pin:nth-of-type(17) { animation-delay: 1.92s; }
.cob-map.in-view .ar-pin:nth-of-type(18) { animation-delay: 2.04s; }
.cob-map.in-view .ar-pin:nth-of-type(19) { animation-delay: 2.16s; }
.cob-map.in-view .ar-pin:nth-of-type(20) { animation-delay: 2.28s; }
.cob-map.in-view .ar-pin:nth-of-type(21) { animation-delay: 2.40s; }
.cob-map.in-view .ar-pin:nth-of-type(22) { animation-delay: 2.52s; }
.cob-map.in-view .ar-pin:nth-of-type(23) { animation-delay: 2.64s; }
.cob-map.in-view .ar-pin:nth-of-type(24) { animation-delay: 2.76s; }
@keyframes province-pin {
  0%, 100% { opacity: 0; transform: scale(.72); }
  22%, 70% { opacity: .95; transform: scale(1); }
  88% { opacity: 0; transform: scale(.72); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { background: var(--paper); }
.faq-list { max-width: 840px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 4px;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--charcoal);
  gap: 24px;
}
.faq-icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute; background: var(--charcoal);
  transition: transform .4s var(--ease), opacity .3s;
}
.faq-icon::before { width: 100%; height: 1px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-icon::after { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-question[aria-expanded="true"] .faq-icon::before { background: var(--gold-deep); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.faq-answer p {
  padding: 0 4px 28px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */

.cta-final {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}
.cta-media { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }
.cta-media img {
  width: 100%; height: 130%;
  object-fit: cover;
  position: absolute; top: -15%; left: 0;
}
.cta-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.55) 0%, rgba(15,14,12,0.35) 40%, rgba(15,14,12,0.75) 100%);
}
.cta-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter);
}
.cta-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 720px;
  margin: 22px 0 44px;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */

.contacto { background: var(--paper-alt); }
.contacto-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.contacto-info p:not(.eyebrow) {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 420px;
  margin-top: 24px;
}
.contacto-details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.cd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
a.cd-item:hover { padding-left: 10px; }
.cd-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cd-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
}

.contacto-form {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
}
.form-row { margin-bottom: 22px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row label { display: flex; flex-direction: column; gap: 10px; }
.form-row span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.form-row input, .form-row select, .form-row textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-size: 1rem;
  color: var(--charcoal);
  transition: border-color .3s;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
}
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer { background: var(--ink); color: var(--taupe); padding-top: 88px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-logo { height: 26px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--taupe); font-style: italic; font-family: var(--font-display); }
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color .3s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--gutter);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.footer-mark { letter-spacing: 0.2em; color: var(--gold); }

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 15px 16px;
  border-radius: 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  transition: padding .4s var(--ease), background .3s, transform .3s;
}
.wa-float:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
}
.wa-icon { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  transition: max-width .4s var(--ease);
}
.wa-float:hover .wa-float-label { max-width: 120px; }

.wa-float-pulse {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 40px;
  border: 1px solid var(--gold);
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 600px) {
  .wa-float { right: 16px; bottom: 16px; padding: 14px; }
  .wa-float-label { display: none; }
}

/* ==========================================================================
   SCROLL REVEAL SYSTEM
   ========================================================================== */

/* Default: content is fully visible. JS adds .js-anim to <html> only when
   it has successfully booted, which is the ONLY thing that arms the
   opacity/transform animation. No JS, slow JS, or JS error => content
   is simply shown, never hidden. This is a progressive enhancement,
   not a gate. */
.reveal-up { opacity: 1; transform: none; }
.js-anim .reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease) var(--delay, 0s), transform 1s var(--ease) var(--delay, 0s);
}
.js-anim .reveal-up.in-view { opacity: 1; transform: translateY(0); }

.reveal-line span { transform: none; }
.js-anim .reveal-line span {
  transform: translateY(112%);
  transition: transform 1s var(--ease);
}
.js-anim .hero .reveal-line:nth-child(1) span { transition-delay: .25s; }
.js-anim .hero .reveal-line:nth-child(2) span { transition-delay: .38s; }
.js-anim .hero .reveal-line:nth-child(3) span { transition-delay: .5s; }
.js-anim .hero .reveal-line:nth-child(4) span { transition-delay: .62s; }
.js-anim.loaded .reveal-line span { transform: translateY(0); }

.reveal-model { opacity: 1; }

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 1080px) {
  :root { --nav-h: 80px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .qh-grid { grid-template-columns: 1fr; }
  .process-rail { grid-template-columns: 1fr; gap: 56px; }
  .sistema-specs { grid-template-columns: 1fr; gap: 44px; }

  .model-block, .model-block-reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .model-block-reverse .model-media,
  .model-block-reverse .model-info { order: unset; }
  .model-media { aspect-ratio: 4/3; min-height: unset; }
  .model-info { padding: 48px var(--gutter); }

  .capsule-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item-wide { grid-column: span 2; }

  .personalizacion-grid { grid-template-columns: 1fr; gap: 48px; }
  .pers-media { order: -1; }

  .cobertura-grid { grid-template-columns: 1fr; gap: 56px; }
  .cob-map { order: -1; }

  .contacto-grid { grid-template-columns: 1fr; gap: 56px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-brand { grid-column: span 2; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 640px) {
  :root { --gutter: 22px; --nav-h: 72px; }

  .hero-content { padding-bottom: 64px; }
  .hero-title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-scroll-cue { display: none; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 48px; }

  .ch-row { flex-direction: column; align-items: flex-start; gap: 20px; }

  .model-specs { grid-template-columns: 1fr 1fr; gap: 16px 18px; }

  .vs-row { grid-template-columns: 1fr; }
  .vs-cell-label { padding-bottom: 4px; font-size: 1rem; }
  .vs-row-head { display: none; }
  .vs-row { padding: 18px 0; }
  .vs-cell { padding: 6px 4px; }
  .vs-cell-auria::before { display: none; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .gallery-item-wide, .gallery-item-tall { grid-column: span 1; grid-row: span 1; }

  .cob-stats { gap: 28px 40px; }

  .form-row-split { grid-template-columns: 1fr; gap: 22px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; padding-top: 20px; padding-bottom: 20px; }

  .cta-content h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
}

/* ==========================================================================
   FOCUS STATES — ACCESSIBILITY
   ========================================================================== */

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

@media (max-width: 700px) { .hero-brand { margin-bottom: 22px; } .hero-brand img { width: 190px; } .filosofia-sustainability { margin-top: 26px; } }

/* ==========================================================================
   INVERSIONES RENTABLES
   ========================================================================== */

.inversiones { background: var(--paper-alt); }
.inversiones-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1fr;
  gap: 72px;
  align-items: center;
}
.inversiones-media {
  width: 100%;
  max-width: 470px;
  justify-self: start;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.inversiones-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inversiones-text h2 { max-width: 620px; }
.inversiones-text > p:not(.eyebrow) {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 24px 0 32px;
  max-width: 590px;
}

@media (max-width: 1080px) {
  .inversiones-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .inversiones-grid { grid-template-columns: 1fr; gap: 36px; }
  .inversiones-media { max-width: none; order: -1; }
}


/* ============================================================================
   RESPONSIVE POLISH — FINAL PASS
   ============================================================================ */

/* Keep wide editorial imagery centered and prevent layout drift. */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 1080px) {
  .section-head,
  .model-info,
  .collection-header .ch-row,
  .container { width: 100%; }

  .model-actions { align-items: flex-start; }
  .model-cta, .model-plan-btn { max-width: 100%; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* HERO — preserve the important center of the landscape image on phones. */
  .hero {
    height: 100svh;
    min-height: 620px;
    align-items: flex-end;
  }
  .hero-media img {
    height: 100%;
    transform: none;
    animation: none;
    object-fit: cover;
    object-position: 50% 50%;
  }
  .hero-content { padding: 0 var(--gutter) 54px; }
  .hero-brand img { width: min(190px, 58vw); }
  .hero-title { margin-bottom: 24px; }
  .hero-subtitle { max-width: 100%; margin-bottom: 30px; }

  /* Full-bleed editorial backgrounds: no oversized 130% image on mobile. */
  .filosofia {
    min-height: 0;
    padding: 92px 0;
  }
  .filosofia-bg img {
    width: 100%;
    height: 100%;
    top: 0;
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
  }
  .filosofia-overlay {
    background: linear-gradient(180deg, rgba(15,14,12,.82) 0%, rgba(15,14,12,.62) 45%, rgba(15,14,12,.88) 100%);
  }
  .filosofia-title { margin-bottom: 30px; }
  .filosofia-text { margin-bottom: 38px; }
  .filosofia-values { gap: 26px 34px; }

  /* Model blocks: one clean axis, readable copy and no horizontal overflow. */
  .model-block,
  .model-block-reverse { grid-template-columns: 1fr; }
  .model-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .model-info { padding: 42px var(--gutter) 48px; }
  .model-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .model-cta, .model-plan-btn { line-height: 1.45; }

  /* Technical-plan dialog: fit the whole drawing inside the phone. */
  .plan-dialog {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    max-height: 94svh;
  }
  .plan-dialog-images { padding: 12px; gap: 12px; }
  .plan-dialog-images img { max-width: 100%; height: auto; }
  .plan-dialog-name { padding: 14px 16px 12px; font-size: .95rem; }

  /* Gallery: always square, equal thumbnails, full image visible. */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
    padding: 0 var(--gutter);
  }
  .gallery-item,
  .gallery-item-wide,
  .gallery-item-tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }
  .gallery-item img {
    object-fit: contain;
    object-position: center;
  }
  .gallery-lightbox { padding: 16px; }
  .gallery-lightbox img { max-width: 94vw; max-height: 86svh; }
  .gallery-lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }

  /* Personalization / investment / coverage stay centered on one axis. */
  .personalizacion-grid,
  .inversiones-grid,
  .cobertura-grid,
  .contacto-grid { width: 100%; }
  .pers-media { aspect-ratio: 1 / 1; }
  .inversiones-media { width: 100%; max-width: 100%; }
  .inversiones-text > p:not(.eyebrow) { margin-top: 18px; margin-bottom: 26px; }

  /* Final CTA background: same image, but without the oversized desktop crop. */
  .cta-final {
    min-height: 70svh;
  }
  .cta-media img {
    width: 100%;
    height: 100%;
    top: 0;
    object-fit: cover;
    object-position: 50% 50%;
  }
  .cta-content { width: 100%; padding: 0 var(--gutter); }
  .cta-content h2 { margin: 18px 0 30px; }

  /* Keep all section headings visually aligned to the same mobile gutter. */
  .section-head { margin-bottom: 40px; }
  .section h2, .section-head h2 { max-width: 100%; }
  .section-lead { max-width: 100%; font-size: 1rem; }
  .collection-header { padding: 64px 0 42px; }
  .collection-header-dark { padding-top: 70px; }
  .ch-row { padding: 0 var(--gutter); gap: 20px; }
  .ch-desc { max-width: 100%; }

  .footer-bottom { padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .gallery-grid { padding-left: var(--gutter); padding-right: var(--gutter); gap: 8px; }
  .hero-title { font-size: 2rem; }
  .model-specs { gap: 14px 12px; }
}

/* ============================================================================
   FINAL BRAND / RESPONSIVE PASS — AUG 2026
   ============================================================================ */
.nav-logo { display:flex; align-items:center; text-decoration:none; }
.nav-logo-mark { display:flex; flex-direction:column; align-items:flex-start; gap:2px; line-height:1; }
.nav-logo-mark img { display:block; width:112px; height:auto; transition:filter .4s, width .3s; }
.nav-logo-mark small {
  display:block;
  font-family:var(--font-body);
  font-size:5.5px;
  line-height:1;
  letter-spacing:.24em;
  color:var(--gold-deep);
  white-space:nowrap;
  margin-left:2px;
  transition:color .4s;
}
.nav.dark-bg:not(.scrolled) .nav-logo-mark small { color:var(--white); }
.nav.scrolled .nav-logo-mark img { width:112px; }

/* The opening A is the exact A from the Auria logo asset. */
.preloader-mark { width:76px; height:78px; display:flex; align-items:center; justify-content:center; }
.preloader-a {
  display:block;
  width:76px;
  height:78px;
  object-fit:contain;
  stroke:none;
  fill:none;
  animation:preloader-a-breathe 1.5s ease-in-out infinite;
}
@keyframes preloader-a-breathe {
  0%,100% { opacity:.72; transform:scale(.96); }
  50% { opacity:1; transform:scale(1); }
}

/* The hero keeps the photography clean; the large logo is intentionally removed. */
.hero-content { padding-top:var(--nav-h); }

/* Sustainability stays elegant and compact inside Philosophy. */
.filosofia-sustainability { margin-top:28px; max-width:560px; }
.sustainability-head { gap:8px; margin-bottom:6px; }
.sustainability-head svg { width:16px; height:16px; }
.sustainability-head span { font-size:1rem; }
.filosofia-sustainability > p { font-size:.86rem; line-height:1.5; }
.sustainability-benefits { gap:6px 18px; margin-top:10px; }
.sustainability-benefits span { font-size:.68rem; letter-spacing:.07em; }

/* Equal, square gallery thumbnails with the complete image visible. */
.gallery-grid { grid-auto-rows:auto; }
.gallery-item { aspect-ratio:1 / 1; }
.gallery-item img { object-fit:contain; object-position:center; }

/* Investment photography stays intentionally secondary to the copy. */
.inversiones-media { max-width:430px; }

@media (max-width:1080px) {
  .nav-logo-mark img { width:104px; }
  .nav.scrolled .nav-logo-mark img { width:104px; }
  .nav-logo-mark small { font-size:5.2px; }
}

@media (max-width:640px) {
  .nav-logo-mark img { width:96px; }
  .nav-logo-mark small { font-size:4.8px; letter-spacing:.21em; }
  .nav.scrolled .nav-logo-mark img { width:96px; }

  .hero { min-height:620px; }
  .hero-media img { object-position:52% center; }

  .filosofia-bg img { object-position:50% 52%; }
  .filosofia-sustainability { margin-top:22px; max-width:100%; }
  .sustainability-benefits { display:grid; grid-template-columns:1fr; gap:7px; }
  .sustainability-benefits span { font-size:.66rem; }

  .process-visual { aspect-ratio:4 / 3; overflow:hidden; }
  .process-visual img { width:100%; height:100%; object-fit:cover; object-position:center; }

  .inversiones-media { max-width:100%; aspect-ratio:4 / 3; }
  .inversiones-media img { object-fit:cover; object-position:center; }

  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .gallery-item { min-width:0; }
}


/* ==========================================================================
   FINAL SPACING / VISUAL POLISH
   ========================================================================== */
.fold-header { margin-top: 0; }
.capsule-grid { padding-bottom: 34px; }
.sistema { padding-top: clamp(64px, 8vw, 104px); }
.beneficios { padding-bottom: clamp(54px, 6vw, 84px); }
.galeria { padding-top: clamp(58px, 7vw, 96px); }
.filosofia-sustainability { margin-top: 28px; }
.sustainability-head { margin-bottom: 8px; }
.sustainability-head svg { display: none; }
.inversiones-text h2 { margin-bottom: 30px; }
.inversiones-text > p:not(.eyebrow) { margin-top: 0; margin-bottom: 40px; }

@media (max-width: 640px) {
  .capsule-grid { padding-bottom: 18px; }
  .sistema { padding-top: 58px; }
  .beneficios { padding-bottom: 42px; }
  .galeria { padding-top: 48px; }
  .inversiones-text h2 { margin-bottom: 24px; }
  .inversiones-text > p:not(.eyebrow) { margin-top: 0; margin-bottom: 34px; }
}


/* ==========================================================================
   PLANOS TÉCNICOS — VISOR ROBUSTO
   ========================================================================== */
.plan-viewer{
  position:fixed;
  inset:0;
  z-index:200000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.plan-viewer.is-open{display:flex;}
.plan-viewer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,9,8,.92);
  cursor:pointer;
}
.plan-viewer-panel{
  position:relative;
  z-index:1;
  width:min(1040px,96vw);
  max-height:94vh;
  overflow:hidden;
  background:#fff;
  box-shadow:0 30px 100px rgba(0,0,0,.5);
  display:flex;
  flex-direction:column;
}
.plan-viewer-panel h3{
  margin:0;
  padding:18px 64px 16px 24px;
  font-family:var(--font-display);
  font-size:1.15rem;
  font-weight:400;
  color:var(--charcoal);
  border-bottom:1px solid var(--line);
}
.plan-viewer-close{
  position:absolute;
  top:10px;
  right:10px;
  z-index:4;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:var(--ink);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.plan-viewer-images{
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:18px;
  display:grid;
  gap:18px;
  background:#f8f7f4;
}
.plan-viewer-images img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  object-fit:contain;
  background:#fff;
}
body.plan-viewer-open{overflow:hidden;}
@media(max-width:700px){
  .plan-viewer{padding:8px;}
  .plan-viewer-panel{width:100%;max-height:97vh;}
  .plan-viewer-panel h3{padding:15px 54px 13px 16px;font-size:1rem;}
  .plan-viewer-close{width:34px;height:34px;top:8px;right:8px;font-size:22px;}
  .plan-viewer-images{padding:8px;gap:10px;}
}


/* ========================================================================
   V18 — FOLD CLARO + PLANOS NATIVOS + MAPA DE PUNTOS
   ======================================================================== */
/* La Colección Fold comparte ahora el fondo claro de la colección general. */
.fold-collection {
  background: var(--paper);
  color: var(--charcoal);
}
.fold-collection .fold-header,
.fold-collection .collection-header-dark {
  background: var(--paper);
  color: var(--charcoal);
  border-top: 1px solid var(--line);
}
.fold-collection .ch-label h3,
.fold-collection .collection-header-dark .ch-label h3 { color: var(--charcoal); }
.fold-collection .ch-tag,
.fold-collection .collection-header-dark .ch-tag { color: var(--gold-deep); }
.fold-collection .ch-desc,
.fold-collection .collection-header-dark .ch-desc { color: var(--text-muted); }
.fold-collection .model-block { border-bottom-color: var(--line); }
.fold-collection .model-info { background: var(--paper); }
.fold-collection .model-info h3 { color: var(--charcoal); }
.fold-collection .model-tag { color: var(--gold-deep); }
.fold-collection .model-surface { color: var(--gold-deep); }
.fold-collection .model-desc { color: var(--text-muted); }
.fold-collection .model-specs { border-top-color: var(--line); }
.fold-collection .model-specs span { color: var(--text-muted); }
.fold-collection .model-specs b { color: var(--charcoal); }
.fold-collection .model-cta { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.fold-collection .model-cta:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.fold-collection .model-plan-btn { color: var(--text-muted); border-color: transparent; }
.fold-collection .model-plan-btn:hover { color: var(--gold-deep); }
.fold-collection .compare-table-wrap { background: var(--paper); }
.fold-collection .compare-table th,
.fold-collection .compare-table td { color: var(--text-muted); border-bottom-color: var(--line); }
.fold-collection .compare-table thead th { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.fold-collection .compare-table tbody td:first-child { color: var(--charcoal); }
.fold-collection .compare-table tbody tr:hover { background: rgba(0,0,0,.025); }

/* Visor nativo: no usa hashes, navegación ni listeners globales. */
dialog.plan-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: inherit;
}
dialog.plan-dialog:not([open]) { display: none; }
dialog.plan-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.plan-dialog::backdrop {
  background: rgba(15,14,12,.88);
  backdrop-filter: blur(4px);
}
dialog.plan-dialog .plan-dialog-panel {
  position: relative;
  width: min(980px, 94vw);
  max-height: 92vh;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}
dialog.plan-dialog .plan-dialog-name {
  flex: 0 0 auto;
  margin: 0;
  background: var(--white);
  padding: 20px 60px 14px 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
dialog.plan-dialog .plan-dialog-images {
  overflow-y: auto;
  padding: 18px 24px 24px;
  display: grid;
  gap: 18px;
  background: var(--white);
}
dialog.plan-dialog .plan-dialog-images img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
dialog.plan-dialog form { margin: 0; }
dialog.plan-dialog .plan-dialog-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (max-width:700px) {
  dialog.plan-dialog { padding: 10px; }
  dialog.plan-dialog .plan-dialog-panel { width: 100%; max-height: 96vh; }
  dialog.plan-dialog .plan-dialog-name { padding: 16px 54px 12px 18px; font-size: .95rem; }
  dialog.plan-dialog .plan-dialog-images { padding: 12px; gap: 12px; }
  dialog.plan-dialog .plan-dialog-close { top: 9px; right: 9px; width: 34px; height: 34px; }
}

/* Mapa: sólo puntos claros, animados y recortados dentro de la silueta. */
.ar-pin { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ar-pin path { display: none; }
.ar-pin circle { fill: var(--ivory); stroke: none; }
.cob-map.in-view .ar-pin { animation: province-dot 3.8s ease-in-out infinite; }
@keyframes province-dot {
  0%,100% { opacity: 0; transform: scale(.65); }
  20%,72% { opacity: .95; transform: scale(1); }
  88% { opacity: 0; transform: scale(.65); }
}
