/* ==========================================================
   ANDÉN CENTRAL · Estilos
   ----------------------------------------------------------
   Índice
   0. Tokens (colores, tipografía, medidas)
   1. Base / reset
   2. Utilidades y botones
   3. Header (aparece al hacer scroll)
   4. Hero
   5. Animación de entrada del logo
   6. Secciones provisorias
   ========================================================== */


/* ----------------------------------------------------------
   0. TOKENS
   Solo la paleta autorizada + mezclas entre esos tonos.
   ---------------------------------------------------------- */
:root {
  /* Paleta de marca */
  --naranja: #b14716;          /* principal */
  --crudo:   #ddd6c2;          /* principal */
  --lila:    #a6afda;          /* acento */
  --negro:   #292526;          /* texto / contraste */

  /* Mezcla 80% naranja + 20% negro.
     Se usa en botones con texto crudo chico: contraste 4.7:1 (cumple WCAG AA). */
  --naranja-profundo: #96401a;

  /* Degradé del hero: naranja → transparente (de abajo hacia arriba).
     Ajustar los porcentajes para más o menos protagonismo del video. */
  --hero-gradiente: linear-gradient(
    to top,
    rgba(177, 71, 22, 0.95) 0%,
    rgba(177, 71, 22, 0.70) 30%,
    rgba(177, 71, 22, 0.30) 65%,
    rgba(177, 71, 22, 0)    100%
  );

  /* Tipografía (provisoria: cambiar acá para reemplazar en todo el sitio) */
  --font-base: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --radius: 2px;               /* casi recto, acorde al logo geométrico */
  --ease: cubic-bezier(.65, 0, .35, 1);
}


/* ----------------------------------------------------------
   1. BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--negro);
  background: var(--crudo);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Las anclas no quedan tapadas por el header fijo */
section[id] { scroll-margin-top: var(--header-h); }

:focus-visible {
  outline: 2px solid var(--lila);
  outline-offset: 3px;
}


/* ----------------------------------------------------------
   2. UTILIDADES Y BOTONES
   ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: 500 0.875rem/1 var(--font-base);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.75rem; }

/* Crudo sólido con texto negro (CTA principal sobre el hero) */
.btn--light { background: var(--crudo); color: var(--negro); }
.btn--light:hover { background: var(--negro); color: var(--crudo); }

/* Contorno crudo (CTA secundario sobre el hero) */
.btn--outline { border-color: var(--crudo); color: var(--crudo); }
.btn--outline:hover { background: var(--crudo); color: var(--naranja-profundo); }

/* Naranja profundo sólido (CTA del header, sobre fondo crudo) */
.btn--solid { background: var(--naranja-profundo); color: var(--crudo); }
.btn--solid:hover { background: var(--negro); }


/* ----------------------------------------------------------
   3. HEADER
   Oculto arriba; js/main.js agrega .is-visible cuando
   el hero deja de verse en su mayor parte.
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;   /* blanco: se distingue del resto de la página al bajar */
  box-shadow: 0 1px 0 rgba(41, 37, 38, .08), 0 6px 24px rgba(41, 37, 38, .08);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.site-header.is-visible {
  transform: none;
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { width: auto; height: 50px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__list {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
}
/* Subrayado que crece desde la izquierda */
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { transform: scaleX(1); }

/* Botón hamburguesa (solo mobile) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--negro);
  transition: transform .3s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 17px; }
.nav-toggle__bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .site-header__logo img { height: 42px; }
  .nav-toggle { display: block; }

  /* Menú desplegable a pantalla completa bajo el header */
  .site-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px var(--gutter);
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .site-nav__list { flex-direction: column; gap: 22px; }
  .site-nav__list a { font-size: 1.5rem; }
}


/* ----------------------------------------------------------
   4. HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;             /* evita saltos con la barra del navegador mobile */
  overflow: hidden;
  color: var(--crudo);
  isolation: isolate;
}

/* Degradé de marca de respaldo, por si las imágenes tardan en cargar */
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--negro) 0%, #5e3420 55%, var(--naranja) 100%);
}

/* Renders del proyecto: se alternan con fundido + zoom lento */
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s ease, transform 9s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide.is-active { transition: none; transform: none; }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;                     /* aparece en fade cuando empieza a reproducirse */
  transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  /* velo negro suave detrás del logo (lectura sobre renders cargados)
     + degradé de color (cambia según data-tono del hero) */
  background:
    radial-gradient(ellipse 60% 45% at 50% 48%, rgba(41, 37, 38, .38), rgba(41, 37, 38, 0) 100%),
    var(--hero-gradiente);
}

/* Variantes de color del degradé del inicio.
   Se elige con el atributo data-tono en <section class="hero">:
   "naranja" (original) · "lila" · "negro" · "sin" (sin color) */
.hero[data-tono="lila"] {
  /* lila de marca; abajo se oscurece con negro para que los botones se lean */
  --hero-gradiente: linear-gradient(
    to top,
    rgba(92, 96, 135, 0.92) 0%,
    rgba(130, 137, 180, 0.60) 30%,
    rgba(166, 175, 218, 0.25) 65%,
    rgba(166, 175, 218, 0)    100%
  );
}
.hero[data-tono="negro"] {
  --hero-gradiente: linear-gradient(
    to top,
    rgba(41, 37, 38, 0.90) 0%,
    rgba(41, 37, 38, 0.55) 30%,
    rgba(41, 37, 38, 0.15) 65%,
    rgba(41, 37, 38, 0)    100%
  );
}
.hero[data-tono="sin"] {
  /* sin color: solo una sombra mínima abajo para que se lean los botones */
  --hero-gradiente: linear-gradient(
    to top,
    rgba(41, 37, 38, 0.40) 0%,
    rgba(41, 37, 38, 0)    40%
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 7vh, 72px);
  width: 100%;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  text-align: center;
}

.hero__logo {
  width: min(760px, 88vw);
  height: auto;
  overflow: visible;
  fill: var(--crudo);
  /* Sombra muy sutil para legibilidad sobre videos claros */
  filter: drop-shadow(0 2px 18px rgba(41, 37, 38, 0.25));
}
.logo-roof {
  fill: none;
  stroke: var(--crudo);
  stroke-width: 15;
  stroke-miterlimit: 10;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; width: 100%; max-width: 340px; }
}

/* Indicador de scroll: línea vertical que "cae" */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 24px; height: 64px;
  transform: translateX(-50%);
  overflow: hidden;
}
.hero__scroll-line {
  position: absolute;
  left: 50%;
  width: 1.5px; height: 100%;
  background: var(--crudo);
  animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}


/* ----------------------------------------------------------
   5. ANIMACIÓN DE ENTRADA
   Secuencia: techo se dibuja → círculo aparece →
   ANDEN → CENTRAL → botones → indicador de scroll.
   Los tiempos se ajustan en las variables --t-*.
   ---------------------------------------------------------- */
.hero {
  --t-techo:   0.3s;   /* inicio del trazo */
  --t-circulo: 1.6s;
  --t-anden:   1.9s;
  --t-central: 2.15s;
  --t-botones: 2.6s;
}

/* 1. Techo: pathLength="1" en el SVG permite animar de 1 a 0 */
.logo-roof {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease) var(--t-techo) forwards;
}

/* 2. Círculo */
.logo-dot {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0);
  animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) var(--t-circulo) forwards;
}

/* 3. Letras */
.logo-row {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
}
.logo-row--1 { animation-delay: var(--t-anden); }
.logo-row--2 { animation-delay: var(--t-central); }

/* 4. Botones e indicador */
.hero__actions,
.hero__scroll {
  opacity: 0;
  animation: rise .9s var(--ease) var(--t-botones) forwards;
}
.hero__scroll { animation-delay: calc(var(--t-botones) + .4s); }
/* El indicador conserva su centrado horizontal */
.hero__scroll { --rise-x: -50%; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop  { to { opacity: 1; transform: scale(1); } }
@keyframes rise {
  from { opacity: 0; transform: translate(var(--rise-x, 0), 14px); }
  to   { opacity: 1; transform: translate(var(--rise-x, 0), 0); }
}

/* Accesibilidad: sin animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-roof, .logo-dot, .logo-row,
  .hero__actions, .hero__scroll,
  .hero__scroll-line {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
  .logo-dot, .logo-row { transform: none !important; }
}


/* ----------------------------------------------------------
   6. COMPONENTES COMPARTIDOS ENTRE SECCIONES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Rótulo de sección, inspirado en "03 | PALETA CROMÁTICA" del manual */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow span {
  padding-right: 14px;
  border-right: 1.5px solid currentColor;
  color: var(--naranja);
}

/* Link con flecha que se desplaza al pasar el mouse */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--naranja-profundo);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 28px; height: 1.5px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.link-arrow:hover::after { width: 44px; }

/* Aparición al hacer scroll (js/main.js agrega .is-in) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
/* Sin JS o con movimiento reducido: todo visible */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Modo revisión: abrir el sitio con ?verificar en la URL resalta
   todos los datos que falta confirmar con el desarrollador. */
.modo-verificar [data-verificar] {
  outline: 2px dashed var(--lila);
  outline-offset: 4px;
}


/* ----------------------------------------------------------
   7. SECCIÓN 02 · PROYECTO
   ---------------------------------------------------------- */
.proyecto { padding-top: clamp(80px, 12vw, 160px); }   /* termina con la banda de cifras */

/* Intro: título a la izquierda, descripción a la derecha */
.proyecto__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.proyecto__texto p { margin: 0 0 20px; max-width: 580px; }
.proyecto__texto strong { font-weight: 600; color: var(--naranja-profundo); }
@media (max-width: 860px) {
  .proyecto__intro { grid-template-columns: 1fr; }
}

.proyecto__title {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* Una frase por renglón */
.proyecto__title span,
.proyecto__title strong { display: block; }
@media (min-width: 420px) {
  .proyecto__title span,
  .proyecto__title strong { white-space: nowrap; }
}
@media (max-width: 860px) {
  .proyecto__title { font-size: clamp(1.75rem, 6.5vw, 2.6rem); }
}
.proyecto__title strong { font-weight: 500; color: var(--naranja); }

.proyecto__lead {
  max-width: 640px;
  margin: 0 0 32px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

/* Chips de tipologías */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 8px 16px;
  border: 1px solid rgba(41, 37, 38, 0.35);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Banda naranja del conjunto: axonometría (izq.) + cifras (der.) */
.conjunto {
  padding: clamp(48px, 7vw, 96px) 0;
  background: var(--naranja);
  color: var(--crudo);
}
.conjunto__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);   /* la axonometría bien a la vista */
  gap: clamp(16px, 2.5vw, 32px);
  align-items: stretch;
}

/* Lámina crudo con la axonometría (el blanco del dibujo toma el tono crudo) */
.conjunto__plano {
  position: relative;
  margin: 0;
  padding: clamp(8px, 1.2vw, 16px);
  border-radius: 20px;
  background: var(--crudo);
  display: grid;
  align-content: center;
}
/* Lienzo del tamaño exacto de la imagen: zonas y etiquetas quedan alineadas */
.conjunto__lienzo { position: relative; display: grid; }
.conjunto__img {
  grid-area: 1 / 1;                 /* las tres imágenes apiladas en la misma celda */
  display: block;
  width: 100%; height: auto;
  mix-blend-mode: multiply;
}
.conjunto__capa { opacity: 0; transition: opacity .5s var(--ease); }
.conjunto__plano[data-activo="galpon"] .conjunto__capa[data-capa="galpon"],
.conjunto__plano[data-activo="bloque"] .conjunto__capa[data-capa="bloque"] { opacity: 1; }
/* con un edificio activo, la imagen de base se apaga */
.conjunto__plano:not([data-activo=""]) .conjunto__img:first-child { opacity: 0; transition: opacity .5s var(--ease); }

.conjunto__zonas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.conjunto__zonas polygon { fill: transparent; cursor: pointer; pointer-events: all; }

/* Etiquetas sobre cada edificio */
.conjunto__etiqueta {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--negro);
  color: var(--crudo);
  font-size: .8125rem; font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transition: background-color .3s, transform .3s var(--ease);
}
.conjunto__plano[data-activo="galpon"] .conjunto__etiqueta[data-edificio="galpon"],
.conjunto__plano[data-activo="bloque"] .conjunto__etiqueta[data-edificio="bloque"] {
  background: var(--naranja-profundo);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Columna de datos: naranja profundo para que el texto chico tenga buen contraste */
.conjunto__datos {
  display: flex; flex-direction: column;
  padding: clamp(20px, 2.5vw, 36px);
  border-radius: 20px;
  background: var(--naranja-profundo);
}
.conjunto__leyenda { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.conjunto__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(221, 214, 194, .45);
  border-radius: 100px;
  background: transparent;
  color: var(--crudo);
  font: 500 .8125rem/1 var(--font-base);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.conjunto__btn[aria-pressed="true"], .conjunto__btn:hover { background: var(--crudo); color: var(--negro); }
.conjunto__punto { width: 10px; height: 10px; border-radius: 50%; }
.conjunto__punto--galpon { background: var(--lila); }
.conjunto__punto--bloque { background: var(--naranja); box-shadow: 0 0 0 1.5px var(--crudo); }

/* Cifras apiladas */
.cifras { margin: 0; display: grid; flex: 1; align-content: space-between; }
.cifra { padding: 10px 0; border-top: 1px solid rgba(221, 214, 194, .3); }
.cifra dt {
  margin-bottom: 6px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .9;
}
.cifra dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cifra__num {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cifra__unit { font-size: .9375rem; font-weight: 500; }

@media (max-width: 960px) {
  .conjunto__grid { grid-template-columns: 1fr; }
  .cifras { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .conjunto__etiqueta { font-size: .6875rem; padding: 4px 10px; }
}

/* Bloques imagen/texto alternados */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(72px, 10vw, 140px);
}
/* Alterna el lado de la imagen */
.split--reverse .split__media { order: -1; }

.split__kicker {
  margin: 0 0 12px;
  color: var(--naranja-profundo);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.split__title {
  margin: 0 0 20px;
  font-size: clamp(1.625rem, 2.8vw, 2.375rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.split__text p { margin: 0 0 24px; max-width: 520px; }

.split__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.split__list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid rgba(41, 37, 38, 0.14);
}
.split__list li:last-child { border-bottom: 1px solid rgba(41, 37, 38, 0.14); }
/* Viñeta: el círculo del isotipo */
.split__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 11px; height: 11px;
  border: 3px solid var(--naranja);
  border-radius: 50%;
  transform: translateY(-50%);
}

.split__media { margin: 0; }
.split__media img { display: block; width: 100%; height: auto; }

/* Fotos del edificio: recorte vertical 4:5 y zoom suave al pasar el mouse */
.split__media--photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}
.split__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.split__media--photo:hover img { transform: scale(1.04); }
/* Filete naranja en la base, guiño al isotipo */
.split__media--photo::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 33%; height: 6px;
  background: var(--naranja);
}

/* Ilustraciones de arquitectura: el fondo blanco del dibujo
   se funde con el crudo de la página (multiply) */
.split__media--drawing img { mix-blend-mode: multiply; }
/* Despieces verticales: limitar altura para que no dominen */
.split__media--tall { display: flex; justify-content: center; }
.split__media--tall img { width: auto; max-width: 100%; max-height: 680px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }   /* en mobile: siempre texto arriba */
  .split__media--tall img { max-height: 520px; }
  .split__media--photo { aspect-ratio: 4 / 3; }   /* en mobile, más apaisada */
}


/* ----------------------------------------------------------
   7·. SECCIÓN 03 · SERVICIOS (tarjetas que giran)
   ---------------------------------------------------------- */
.servicios { padding: clamp(80px, 12vw, 160px) 0; }
.servicios__intro { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.servicios__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.servicios__title strong { font-weight: 500; color: var(--naranja); }
.servicios__ayuda { margin: 0; font-size: .9375rem; opacity: .75; }
/* El texto de ayuda cambia según haya mouse o pantalla táctil */
.solo-touch { display: none; }
@media (hover: none) { .solo-mouse { display: none; } .solo-touch { display: inline; } }

.flips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
  margin: 0; padding: 0;
  list-style: none;
}
.flip {
  height: clamp(260px, 24vw, 320px);
  perspective: 1200px;              /* profundidad del giro */
  border-radius: 20px;
  outline: none;
  cursor: pointer;
}
.flip:focus-visible { box-shadow: 0 0 0 3px var(--lila); }
/* escalonado de aparición */
.flip:nth-child(4n+2) { transition-delay: .08s; }
.flip:nth-child(4n+3) { transition-delay: .16s; }
.flip:nth-child(4n+4) { transition-delay: .24s; }

.flip__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4, .2, .2, 1);
}
/* Gira: con el mouse encima, con foco de teclado o al tocar (.is-flipped) */
@media (hover: hover) { .flip:hover .flip__inner { transform: rotateY(180deg); } }
.flip:focus-visible .flip__inner,
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }

.flip__cara {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: 20px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;      /* oculta la cara de atrás mientras no gira */
}
/* Frente: crudo un tono más oscuro, ícono naranja */
.flip__frente {
  justify-content: space-between;
  background: #d4cdba;
  color: var(--negro);
}
.flip__icono {
  width: 56px; height: 56px;
  fill: none;
  stroke: var(--naranja);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flip__titulo {
  margin: auto 0 8px;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.15;
}
.flip__dato {
  margin: 0;
  padding-top: 12px;
  border-top: 1.5px solid rgba(41, 37, 38, .2);
  color: var(--naranja-profundo);
  font-weight: 600;
  font-size: .9375rem;
}
/* Dorso: naranja profundo con texto crudo (contraste 4.7:1) */
.flip__dorso {
  justify-content: center;
  background: var(--naranja-profundo);
  color: var(--crudo);
  transform: rotateY(180deg);
}
.flip__dorso p { margin: 0; font-size: clamp(1rem, 1.15vw, 1.0625rem); line-height: 1.55; }

@media (max-width: 1024px) { .flips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .flips { grid-template-columns: 1fr; }
  .flip { height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .flip__inner { transition: none; } }


/* ----------------------------------------------------------
   7a. SECCIÓN 04 · UBICACIÓN
   ---------------------------------------------------------- */
.ubicacion {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--crudo);
  color: var(--negro);
}
.ubicacion__intro { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.ubicacion__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.ubicacion__title strong { font-weight: 500; color: var(--naranja); }
.ubicacion__lead { margin: 0; max-width: 560px; font-size: 1.125rem; opacity: .85; }

.ubicacion__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

/* Doble frente: los dos ingresos al complejo */
.frentes {
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid rgba(41, 37, 38, .16);
  border-radius: 16px;
}
.frentes__titulo {
  margin: 0 0 14px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--naranja-profundo);
}
.frentes__lista { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.frentes__lista li {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.15;
}
.frentes__num {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--naranja);
  color: var(--crudo);
  font-size: .8125rem; font-weight: 700;
}
.ubicacion__sub {
  margin: 0 0 8px;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .75;
}
.ubicacion__lista { margin: 0; padding: 0; list-style: none; }

/* Cada punto: número · nombre · km y minutos */
.punto {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 8px;
  border: 0;
  border-top: 1px solid rgba(41, 37, 38, .14);
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s;
}
.ubicacion__lista li:last-child .punto { border-bottom: 1px solid rgba(41, 37, 38, .14); }
.punto:hover, .punto.is-on { background: rgba(41, 37, 38, .05); }
.punto__num {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .8125rem; font-weight: 600;
  transition: background-color .25s, border-color .25s;
}
.punto.is-on .punto__num { background: var(--naranja); border-color: var(--naranja); color: var(--crudo); }
.punto__info { display: grid; gap: 2px; }
.punto__nombre { font-weight: 500; line-height: 1.3; }
.punto__nota { font-size: .8125rem; opacity: .7; }
.punto__dist { display: grid; justify-items: end; font-size: .8125rem; white-space: nowrap; }
.punto__dist strong { font-size: 1rem; font-weight: 600; }
.punto__dist span { opacity: .7; }

.ubicacion__legal { margin: 10px 0 0; font-size: .75rem; opacity: .55; }
.ubicacion__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }


/* Mapa */
.mapa {
  position: relative;
  z-index: 0;            /* los paneles de Leaflet no tapan el header */
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e4da;
}
/* El mapa de OpenStreetMap pasa a tonos crudos/cálidos para combinar con la paleta */
.mapa .leaflet-tile-pane { filter: grayscale(1) sepia(.35) contrast(.92) brightness(1.04); }
.mapa .leaflet-control-attribution { font-size: 10px; }
.mapa .leaflet-popup-content { font-family: var(--font-base); font-size: .875rem; color: var(--negro); }

/* Marcador principal: isotipo */
.pin-anden { position: relative; }
.pin-anden__circulo {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border: 3px solid var(--crudo);
  border-radius: 50%;
  background: var(--naranja);
  color: var(--crudo);
  box-shadow: 0 6px 18px rgba(41, 37, 38, .35);
}
.pin-anden__circulo svg { width: 34px; height: 22px; }
/* Halo que "late" para ubicar el proyecto de un vistazo */
.pin-anden__circulo::before {
  content: "";
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--naranja);
  opacity: .35;
  z-index: -1;
  animation: halo 2.4s ease-out infinite;
}
@keyframes halo { to { transform: scale(2.2); opacity: 0; } }
.pin-anden__label {
  position: absolute;
  left: 50%; top: 62px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--negro);
  color: var(--crudo);
  font: 600 .75rem/1.2 var(--font-base);
  white-space: nowrap;
}
/* Puntos numerados */
.pin-punto span {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 2px solid var(--crudo);
  border-radius: 50%;
  background: var(--negro);
  color: var(--crudo);
  font: 600 .8125rem/1 var(--font-base);
  box-shadow: 0 3px 8px rgba(41, 37, 38, .3);
}
@media (prefers-reduced-motion: reduce) { .pin-anden__circulo::before { animation: none; } }

@media (max-width: 960px) {
  .ubicacion__grid { grid-template-columns: 1fr; }
  .mapa { order: -1; min-height: 380px; }   /* en celular: primero el mapa */
}


/* ----------------------------------------------------------
   7b. SECCIÓN 03 · GALERÍA
   ---------------------------------------------------------- */
.galeria {
  padding: clamp(80px, 12vw, 160px) 0;
  background: #d4cdba;   /* crudo 95% + negro 5%: separa de la sección anterior */
}
.galeria__intro { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.galeria__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.galeria__title strong { font-weight: 500; color: var(--naranja); }
.galeria__lead { margin: 0; font-size: 1.125rem; }

/* --- Video --- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: clamp(64px, 9vw, 120px);   /* va después del mosaico */
  border-radius: var(--radius);
  background: var(--negro);
}
.video__portada {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
/* Degradé de marca sobre la portada */
.video::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top right, rgba(177, 71, 22, .85) 0%, rgba(177, 71, 22, .35) 45%, rgba(41, 37, 38, .1) 100%);
  pointer-events: none;
  transition: opacity .5s;
}
.video__play {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(20px, 4vw, 56px);
  border: 0;
  background: none;
  color: var(--crudo);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.video__icono {
  position: relative;
  flex: none;
  width: clamp(64px, 9vw, 112px);
  aspect-ratio: 1;
  border: 2px solid var(--crudo);
  border-radius: 50%;
  transition: background-color .3s, transform .4s var(--ease);
}
/* Triángulo de "play" */
.video__icono::after {
  content: "";
  position: absolute;
  left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--crudo);
  transition: border-color .3s;
}
.video__texto { display: grid; gap: 4px; padding-bottom: 6px; }
.video__kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.video__titulo { font-size: clamp(1.5rem, 3.4vw, 2.75rem); font-weight: 300; line-height: 1.1; }

.video__play:hover .video__icono,
.video__play:focus-visible .video__icono { background: var(--crudo); transform: scale(1.06); }
.video__play:hover .video__icono::after,
.video__play:focus-visible .video__icono::after { border-left-color: var(--naranja-profundo); }
.video:hover .video__portada { transform: scale(1.03); }

.video iframe { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.video.is-playing::before,
.video.is-playing .video__play { display: none; }

/* --- Carpetas --- */
.carpetas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
/* Variante de .chip para fondos claros (doble clase: le gana a .chip,
   que está definido más abajo para el fondo negro) */
.chip.chip--claro { border-color: rgba(41, 37, 38, .35); color: var(--negro); }
.chip.chip--claro:hover { border-color: var(--negro); }
.chip.chip--claro[aria-pressed="true"] { background: var(--negro); border-color: var(--negro); color: var(--crudo); }
.chip__n { margin-left: 4px; opacity: .6; font-size: .75rem; }

/* --- Mosaico --- */
.mosaico {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 15vw, 220px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 14px);
}
.mosaico__item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(41, 37, 38, .1);
  cursor: zoom-in;
  animation: aparecer .6s var(--ease) both;
}
.mosaico__item.is-grande { grid-column: span 2; grid-row: span 2; }
.mosaico__item.is-ancha  { grid-column: span 2; }
.mosaico__item.is-alta   { grid-row: span 2; }
.mosaico__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .4s;
}
/* Al pasar: zoom suave y velo naranja */
.mosaico__item::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--naranja);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .4s;
}
.mosaico__item:hover img { transform: scale(1.05); }
.mosaico__item:hover::after { opacity: .25; }
.mosaico__item:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }

/* En celular: mosaico en 2 columnas "tipo revista", cada foto con su
   proporción natural (--ar la define js/galeria.js): nunca quedan huecos */
@media (max-width: 760px) {
  .mosaico { display: block; column-count: 2; column-gap: 8px; }
  .mosaico__item {
    display: block;
    width: 100%;
    aspect-ratio: var(--ar);
    margin-bottom: 8px;
    break-inside: avoid;
  }
}

/* --- Visor --- */
.visor {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(41, 37, 38, .97);
  color: var(--crudo);
}
.visor[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.visor::backdrop { background: rgba(41, 37, 38, .9); }
.visor__figura {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100dvh;
  margin: 0;
  padding: 64px 0 20px;
}
.visor__figura img {
  width: 100%; height: 100%;
  min-height: 0;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s;
  user-select: none;
}
.visor__figura img.is-ready { opacity: 1; }
.visor__pie {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 4px 0;
  font-size: .875rem;
}
.visor__contador { opacity: .7; white-space: nowrap; }
.visor__btn {
  width: 52px; height: 52px;
  margin: 0 clamp(8px, 2vw, 24px);
  border: 1px solid rgba(221, 214, 194, .4);
  border-radius: 50%;
  background: none;
  color: var(--crudo);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.visor__btn:hover { background: var(--crudo); color: var(--negro); }
.visor__cerrar { position: absolute; top: 12px; right: 0; font-size: 1.125rem; }

@media (max-width: 760px) {
  .visor[open] { grid-template-columns: 1fr; }
  .visor__prev, .visor__next { position: absolute; bottom: 16px; z-index: 2; width: 44px; height: 44px; }
  .visor__prev { left: 0; }
  .visor__next { right: 0; }
  .visor__figura { padding: 60px 12px 76px; }
}


/* ----------------------------------------------------------
   8. SECCIÓN 04 · PLANTA POR PLANTA
   ---------------------------------------------------------- */
.plantas {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--negro);
  color: var(--crudo);
}
.plantas .eyebrow span { color: var(--naranja); border-color: rgba(221, 214, 194, .5); }

.plantas__intro { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.plantas__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
/* Sobre negro, el naranja de marca no alcanza contraste: se usa una mezcla
   60% naranja + 40% crudo (#c3805b, ~4.8:1) para el texto destacado */
.plantas__title strong { font-weight: 500; color: #c3805b; }
.plantas__lead { margin: 0; max-width: 560px; font-size: 1.125rem; opacity: .85; }

/* --- Paso 1: tarjetas de edificio (estilo editorial) --- */
.edificios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
}
.edificio {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  color: var(--crudo);
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.edificio img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter .6s;
}
/* Degradé naranja para que el nombre se lea sobre la foto */
.edificio::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(177, 71, 22, .9) 0%, rgba(177, 71, 22, .45) 45%, rgba(177, 71, 22, .1) 100%);
  transition: opacity .6s var(--ease);
}
/* Nombre gigante partido en sílabas: se desvanece al pasar el mouse */
.edificio__nombre {
  position: absolute;
  left: 7%; top: 7%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  font-size: clamp(3.5rem, 9.5vw, 8.5rem);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -0.03em;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.edificio__pie {
  position: absolute;
  left: 7%; right: 7%; bottom: 6%;
  z-index: 2;
  display: grid;
  gap: 4px;
}
.edificio__titulo { font-size: 1.25rem; font-weight: 500; }
.edificio__meta { font-size: .875rem; opacity: .9; }
.edificio__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 12px;
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.edificio__cta::after {
  content: ""; width: 28px; height: 1.5px; background: currentColor;
  transition: width .3s var(--ease);
}

@media (hover: hover) {
  .edificio:hover img { transform: scale(1.05); }
  .edificio:hover::before { opacity: .35; }
  .edificio:hover .edificio__nombre { opacity: 0; transform: translateY(-12px); }
  .edificio:hover .edificio__cta::after { width: 44px; }
}
/* Seleccionado / no seleccionado */
.edificio.is-active { outline: 3px solid var(--naranja); outline-offset: 4px; }
.edificio.is-active .edificio__cta { visibility: hidden; }
.edificios.has-active .edificio:not(.is-active) img { filter: grayscale(.7) brightness(.7); }

@media (max-width: 640px) {
  .edificios { grid-template-columns: 1fr 1fr; gap: 12px; }
  .edificio { aspect-ratio: 3 / 4.4; }
  .edificio__nombre { font-size: 2.6rem; }
  .edificio__titulo { font-size: 1rem; }
  .edificio__meta { display: none; }
}

/* --- Pasos 2 y 3: selectores --- */
.explorador {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(221, 214, 194, .2);
  scroll-margin-top: calc(var(--header-h) + 16px);
  animation: aparecer .6s var(--ease);
}
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } }

.explorador__head { display: grid; gap: 20px; margin-bottom: 32px; }
.explorador__titulo { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 400; }

.selector__label {
  margin: 0 0 10px;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .75;
}
.selector__opciones { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(221, 214, 194, .4);
  border-radius: 100px;
  background: transparent;
  color: var(--crudo);
  font: 500 .875rem/1 var(--font-base);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--crudo); }
.chip[aria-pressed="true"] { background: var(--crudo); border-color: var(--crudo); color: var(--negro); }

/* --- Paso 4: plano + unidades --- */
.explorador__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

/* El plano va sobre una "lámina" crudo para que se lea bien sobre negro */
.plano {
  margin: 0;
  padding: clamp(16px, 2.5vw, 32px);
  background: var(--crudo);
  border-radius: var(--radius);
  color: var(--negro);
}
.plano__stage {
  position: relative;
  aspect-ratio: var(--ratio);
  height: min(76vh, 860px);
  max-width: 100%;
  margin: 0 auto;
  touch-action: manipulation;
}
.plano__stage.is-imagen { height: auto; width: 100%; }
.plano__base {
  display: block;
  width: 100%; height: 100%;
  mix-blend-mode: multiply;   /* el blanco del plano toma el tono crudo */
  user-select: none;
  -webkit-user-drag: none;
}

/* Zona iluminable: un color sólido recortado con la máscara de la unidad */
.plano__zona {
  position: absolute; inset: 0;
  background: var(--naranja);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.plano__zona.is-comun { background: var(--lila); }
.plano__zona.is-on { opacity: .7; }
.plano__stage.is-completo .plano__zona { opacity: .55; }

/* Marcadores numerados */
.plano__pin {
  position: absolute;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--negro);
  color: var(--crudo);
  font-size: .8125rem; font-weight: 600;
  pointer-events: none;
  box-shadow: 0 0 0 3px var(--crudo);
  transition: transform .3s var(--ease), background-color .3s;
}
.plano__pin.is-comun { background: #5d6187; }   /* lila oscurecido con negro */
.plano__pin.is-on { transform: translate(-50%, -50%) scale(1.25); background: var(--naranja-profundo); }

.plano__acciones {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  margin-top: 16px;
}
.plano__ampliar {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0;
  border: 0; background: none;
  color: var(--naranja-profundo);
  font: 600 .8125rem/1 var(--font-base);
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
}
.plano__ampliar::before { content: "⤢"; font-size: 1.1rem; }
.plano__aviso { font-size: .8125rem; opacity: .75; }

/* Lista de unidades */
.unidades__lista { margin: 0; padding: 0; list-style: none; }
.unidad {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 12px;
  border-top: 1px solid rgba(221, 214, 194, .18);
  border-radius: var(--radius);
  outline: none;
  transition: background-color .25s;
}
.unidad:last-child { border-bottom: 1px solid rgba(221, 214, 194, .18); }
.unidad.is-on, .unidad:focus-visible { background: rgba(221, 214, 194, .08); }
.unidad:focus-visible { box-shadow: inset 0 0 0 2px var(--lila); }

.unidad__num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .875rem; font-weight: 600;
  transition: background-color .25s, border-color .25s;
}
.unidad.is-on .unidad__num { background: var(--naranja); border-color: var(--naranja); }
.unidad.is-comun .unidad__num { border-style: dashed; }

.unidad__info { display: grid; gap: 2px; }
.unidad__nombre { font-weight: 500; }
.unidad__m2 { font-size: 1.375rem; font-weight: 300; letter-spacing: -0.01em; }

.unidad__consultar {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--crudo);
  color: var(--negro);
  font: 600 .75rem/1 var(--font-base);
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.unidad__consultar:hover { background: var(--naranja-profundo); color: var(--crudo); }
.unidad__tag {
  padding: 6px 12px;
  border: 1px dashed var(--lila);
  border-radius: 100px;
  color: var(--lila);
  font-size: .75rem; font-weight: 500;
}

.unidades__comun { margin: 18px 0 0; font-size: .875rem; opacity: .8; }
.unidades__legal { margin: 8px 0 0; font-size: .75rem; opacity: .55; }

@media (max-width: 960px) {
  .explorador__body { grid-template-columns: 1fr; }
  .plano__stage { height: min(62vh, 640px); }
  .unidad { gap: 12px; padding: 16px 4px; }
}

/* --- Visor ampliado --- */
.zoom {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--crudo);
  color: var(--negro);
}
.zoom::backdrop { background: rgba(41, 37, 38, .8); }
.zoom__barra {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(41, 37, 38, .12);
  background: var(--crudo);
}
.zoom__titulo { font-weight: 500; }
.zoom__controles { display: flex; gap: 8px; }
.zoom__controles button {
  width: 42px; height: 42px;
  border: 1px solid rgba(41, 37, 38, .3);
  border-radius: 50%;
  background: none;
  color: var(--negro);
  font-size: 1.25rem;
  cursor: pointer;
}
.zoom__controles .zoom__cerrar { background: var(--negro); color: var(--crudo); border-color: var(--negro); }
.zoom__scroll {
  height: calc(100dvh - 60px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}
.zoom__scroll img {
  display: inline-block;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
  transition: width .3s var(--ease);
}
@media (min-width: 961px) {
  /* En escritorio arranca ajustado al alto de la pantalla */
  .zoom__scroll img { width: auto !important; height: calc((100dvh - 92px) * var(--z, 1)); margin: 16px 0; }
}


/* ----------------------------------------------------------
   9. SECCIÓN 07 · CONTACTO + PIE
   ---------------------------------------------------------- */
.contacto {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--naranja-profundo);   /* 4.7:1 con texto crudo: legible también en tamaños chicos */
  color: var(--crudo);
}
.contacto .eyebrow span { color: var(--crudo); border-color: rgba(221, 214, 194, .6); }
.contacto__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contacto__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.contacto__title strong { font-weight: 500; }
.contacto__lead { margin: 0 0 40px; font-size: 1.25rem; font-weight: 500; max-width: 440px; }
.contacto__datos { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.contacto__datos li { display: grid; gap: 4px; font-size: 1.25rem; font-weight: 600; }
.contacto__datos a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contacto__label {
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}

/* Formulario en tarjeta crudo */
.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 44px);
  border-radius: 20px;
  background: var(--crudo);
  color: var(--negro);
}
.form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__campo { display: grid; gap: 6px; }
.form__campo label { font-size: .875rem; font-weight: 600; }
.form__opcional { font-weight: 400; opacity: .7; }
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid rgba(41, 37, 38, .25);
  border-radius: 10px;
  background: #e9e4d6;        /* crudo un tono más claro dentro de la tarjeta */
  color: var(--negro);
  font: 400 1rem/1.4 var(--font-base);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--negro) 50%), linear-gradient(135deg, var(--negro) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--naranja-profundo); box-shadow: 0 0 0 3px rgba(150, 64, 26, .2); }

/* Errores */
.form__error { display: none; font-size: .8125rem; font-weight: 600; color: var(--naranja-profundo); }
.form__campo.is-error .form__error { display: block; }
.form__campo.is-error input,
.form__campo.is-error select { border-color: var(--naranja-profundo); }

.form__trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn--dark { background: var(--negro); color: var(--crudo); }
.btn--dark:hover { background: var(--naranja-profundo); }
.btn--dark:disabled { opacity: .6; cursor: wait; }
.form__enviar { justify-self: start; margin-top: 4px; }

.form__estado { margin: 0; font-size: .9375rem; font-weight: 600; }
.form__estado:empty { display: none; }
.form__estado.is-ok { padding: 14px 16px; border-radius: 10px; background: rgba(41, 37, 38, .08); }
.form__estado.is-error { color: var(--naranja-profundo); }
.form__estado a { color: inherit; }

@media (max-width: 860px) {
  .contacto__grid { grid-template-columns: 1fr; }
  .form__fila { grid-template-columns: 1fr; }
}

/* WhatsApp en los datos de contacto */
.contacto__wa { display: inline-flex; align-items: center; gap: 10px; }
.contacto__wa svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

/* Botón flotante de WhatsApp (en naranja de marca, no en verde) */
.wa-flotante {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 100px;
  background: var(--naranja-profundo);
  color: var(--crudo);
  font-weight: 600; font-size: .9375rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(41, 37, 38, .3);
  transform: translateY(140%);
  transition: transform .5s var(--ease), background-color .25s;
}
.wa-flotante.is-visible { transform: none; }
.wa-flotante:hover { background: var(--negro); }
.wa-flotante svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 520px) {
  .wa-flotante { width: 56px; padding: 0; justify-content: center; }
  .wa-flotante__texto { display: none; }
}

/* Pie de página */
.pie { padding: 40px 0; background: #fff; color: var(--negro); }
.pie__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.pie__logo { width: auto; height: 46px; }
.pie__texto { margin: 0; font-size: .875rem; }


/* ----------------------------------------------------------
   10. SECCIONES PROVISORIAS (se eliminan al construir cada una)
   ---------------------------------------------------------- */
.placeholder {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: var(--gutter);
  border-top: 1px solid rgba(41, 37, 38, 0.1);
  color: rgba(41, 37, 38, 0.55);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.placeholder:nth-of-type(even) { background: #d4cdba; }   /* crudo 95% + negro 5% */
