/* ══════════════════════════════════════════════════════════════════════════
   TOUR · HOJA COMPARTIDA
   ══════════════════════════════════════════════════════════════════════════

   De dónde sale: es la hoja de «Casa Colorines» (tours/eb-wm6420/), extraída
   TAL CUAL a un archivo para que el siguiente tour no sea otra copia de 1.478
   líneas. Lo único añadido está al final, en el bloque HUECOS, y solo pinta
   cuando falta un medio.

   QUÉ ES DE AQUÍ Y QUÉ ES DE CADA TOUR — la regla que evita que esto vuelva a
   dividirse en cinco copias:

     · AQUÍ va la FORMA: rejillas, tipografía, ritmo, reveals, parallax, río.
     · En cada tour va el CONTENIDO y sus DATOS, y los datos viajan en
       atributos `data-` del HTML, nunca en JS suelto por tour.

   Si un tour necesita un retoque propio, va en un `<style>` DESPUÉS de este
   enlace y con un comentario que diga por qué. Lo que NO se hace es editar
   este archivo para un solo tour: aquí solo entra lo que sirve a todos.

   OJO AL ALCANCE DE test:mono. `tests/mono-sitio.mjs` audita la paleta
   monocroma sobre TODO `assets/js/` (lo enumera con readdir) y sobre una
   lista fija de hojas de `assets/css/`. Los tours están FUERA de esa auditoría
   a propósito —son landings con dirección de arte propia, ver CLAUDE.md #44—,
   y por eso esta hoja y su JS viven en `tours/_compartido/` y NO en
   `assets/`. Moverlos a `assets/js/` metería el barro y el arena de esta
   paleta en la auditoría monocroma y la pondría en rojo sin que nadie haya
   roto nada.
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   CASA COLORINES · «HOLÍSTICO»
   Video primero, palabras después. La casa como un todo:
   luz · tierra · agua · energía · descanso.
   Propuesta 4 · Fable 5
   ══════════════════════════════════════════════════════ */

:root {
  --arena: #F5F2EC;       /* fondo hueso cálido */
  --arena-2: #EDE8DE;     /* paneles */
  --blanco: #FFFFFF;
  --tierra: #29261F;      /* tinta piedra oscura */
  --tierra-2: #5D584D;
  --tierra-3: #97917F;
  --barro: #A9714B;       /* acento barro cocido */
  --barro-2: #8A5836;
  --linea: rgba(41, 38, 31, 0.12);
  --linea-2: rgba(41, 38, 31, 0.3);
  --display: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --maxw: 1400px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--arena);
  color: var(--tierra);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--barro); color: #fff; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ══════════════════════════════════════════════════════
   NAV — transparente sobre el video, sólida al bajar
   ══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.4s ease;
  color: #fff;
}
.nav.solid {
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--linea);
  color: var(--tierra);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}
.nav__links a { transition: opacity 0.25s; }
.nav__links a:hover { opacity: 0.6; }
.nav__cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 99px;
  transition: all 0.3s;
}
.nav.solid .nav__cta:hover { background: var(--tierra); color: var(--arena); }
.nav:not(.solid) .nav__cta:hover { background: #fff; color: var(--tierra); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ══════════════════════════════════════════════════════
   HERO — solo el video. Sin palabras.
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #16120D;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0;
  animation: heroIn 2s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes heroIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.hero__degradado {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 13, 0.34) 0%, transparent 26%, transparent 72%, rgba(245, 242, 236, 1) 100%);
  pointer-events: none;
}
.hero__cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--tierra);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: cueIn 1.4s 2s ease forwards;
}
.hero__cue::after {
  content: '';
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--barro), transparent);
  animation: respira 2.6s ease-in-out infinite;
}
@keyframes cueIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes respira {
  0%, 100% { transform: scaleY(0.55); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 1; }
}
/* Movil: el video es 16:9 y a pantalla completa el cover recortaba los lados
   (se comia el logo). Aqui manda el video: se ve entero y el hero toma su altura. */
@media (max-width: 860px) {
  .hero {
    height: auto;
  }
  .hero__video {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;   /* reserva el alto antes de cargar: sin salto de layout */
    object-fit: unset;      /* sin recorte lateral: se ve el encuadre completo */
    object-position: center;
  }
  /* el fundido al crema se concentra abajo: sigue conectando con «Casa Colorines»
     sin lavar un video que ahora mide bastante menos de alto */
  .hero__degradado {
    background: linear-gradient(180deg, rgba(22, 18, 13, 0.34) 0%, transparent 30%, transparent 84%, rgba(245, 242, 236, 1) 100%);
  }
  /* sin pantalla completa no hay nada que «descubrir» scrolleando */
  .hero__cue { display: none; }
}

/* ══════════════════════════════════════════════════════
   TÍTULO — aparece después del video
   ══════════════════════════════════════════════════════ */
.titulo {
  padding: clamp(56px, 8vw, 96px) var(--pad) clamp(44px, 6vw, 72px);
  text-align: center;
}
.titulo__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--barro);
  margin-bottom: 26px;
}
.titulo__h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 150px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--tierra);
}
.titulo__h1 .palabra {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.titulo__h1 .palabra span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.titulo__h1.in .palabra:nth-child(1) span { transition-delay: 0.05s; }
.titulo__h1.in .palabra:nth-child(2) span { transition-delay: 0.18s; }
.titulo__h1.in .palabra span { transform: translateY(0); }

.titulo__linea {
  width: 1px;
  height: clamp(40px, 6vw, 70px);
  background: var(--linea-2);
  margin: 34px auto;
}
.titulo__lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--tierra-2);
}
.titulo__precio {
  margin-top: 36px;
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 44px);
  color: var(--tierra);
}
.titulo__precio small {
  font-family: var(--sans);
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--tierra-3);
  vertical-align: super;
}
.titulo__id {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tierra-3);
}

/* tríptico bajo el título — el umbral, la estancia, la luz */
.triptico {
  max-width: var(--maxw);
  margin: clamp(48px, 7vw, 84px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px);
  text-align: left;
}
.triptico { --ar: 3 / 4; }
.triptico figure { position: relative; }
.triptico img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: 2px;
}
.triptico figure:nth-child(2) { transform: translateY(clamp(16px, 2.4vw, 34px)); }
.triptico figcaption {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tierra-3);
}
@media (max-width: 640px) {
  .triptico { grid-template-columns: 1fr; }
  .triptico figure:nth-child(2) { transform: none; }
  .triptico { --ar: 16 / 10; }
}

/* ══════════════════════════════════════════════════════
   FICHA TÉCNICA
   ══════════════════════════════════════════════════════ */
.ficha {
  padding: 0 var(--pad) clamp(24px, 3vw, 40px);
}
.ficha__inner { max-width: var(--maxw); margin: 0 auto; }
.ficha__stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--linea-2);
  border-bottom: 1px solid var(--linea-2);
}
.ficha__stat {
  text-align: center;
  padding: clamp(24px, 3vw, 42px) 12px;
  border-right: 1px solid var(--linea);
}
.ficha__stat:last-child { border-right: none; }
.ficha__v {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1;
  color: var(--tierra);
}
.ficha__k {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tierra-3);
}
@media (max-width: 900px) {
  .ficha__stats { grid-template-columns: repeat(3, 1fr); }
  .ficha__stat:nth-child(3) { border-right: none; }
  .ficha__stat:nth-child(-n+3) { border-bottom: 1px solid var(--linea); }
}
@media (max-width: 520px) {
  .ficha__stats { grid-template-columns: repeat(2, 1fr); }
  .ficha__stat { border-right: 1px solid var(--linea) !important; border-bottom: 1px solid var(--linea); }
  .ficha__stat:nth-child(even) { border-right: none !important; }
  .ficha__stat:nth-last-child(-n+2) { border-bottom: none; }
}

.ficha__detalle {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(40px, 6vw, 90px);
}
.ficha__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--linea);
  font-size: 14px;
}
.ficha__row .k {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tierra-3);
}
.ficha__row .v { font-family: var(--display); font-size: 17px; color: var(--tierra); text-align: right; }
.ficha__row .v em { font-style: normal; color: var(--barro); }
@media (max-width: 760px) { .ficha__detalle { grid-template-columns: 1fr; } }


/* ══════════════════════════════════════════════════════
   DESCRIPCIÓN
   ══════════════════════════════════════════════════════ */
.descripcion {
  background: var(--blanco);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: clamp(56px, 7vw, 96px) var(--pad) clamp(48px, 6vw, 80px);
}
.descripcion__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
}
.descripcion__titulo {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.12;
  color: var(--tierra);
  position: sticky;
  top: 110px;
}
.descripcion__titulo em { font-style: normal; color: var(--barro); display: block; }
.descripcion__cuerpo p {
  color: var(--tierra-2);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
  margin-bottom: 22px;
}
.descripcion__cuerpo p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 4.6em;
  float: left;
  line-height: 0.82;
  margin: 6px 16px 0 0;
  color: var(--barro);
}

/* fotos intercaladas que acompañan cada párrafo */
.descripcion__figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 22px);
  margin: 30px 0 38px;
}
.descripcion__figs { --ar: 4 / 3; }
.descripcion__figs figure { position: relative; }
.descripcion__figs img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: 2px;
}
.descripcion__figs figcaption {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tierra-3);
}
/* variante grande: cada foto ocupa todo el ancho de la columna */
.descripcion__figs--grande { grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 30px); }
.descripcion__figs--grande { --ar: 16 / 9.5; }
@media (max-width: 560px) { .descripcion__figs { grid-template-columns: 1fr; } }

/* banda centrada a lo ancho de la página — rompe la columna izquierda */
.descripcion__banda {
  max-width: 1080px;
  margin: clamp(40px, 6vw, 64px) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 28px);
}
.descripcion__banda { --ar: 4 / 3.1; }
.descripcion__banda figure { position: relative; }
.descripcion__banda img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: 2px;
}
.descripcion__banda figcaption {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tierra-3);
  text-align: center;
}
@media (max-width: 640px) { .descripcion__banda { grid-template-columns: 1fr; } }

/* párrafo final centrado + panorámica */
.descripcion__resto {
  max-width: 760px;
  margin: 0 auto;
}
.descripcion__resto p {
  color: var(--tierra-2);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
}
.descripcion__panorama {
  position: relative;
  max-width: 1080px;
  margin: clamp(32px, 4vw, 48px) auto 0;
}
.descripcion__panorama { --ar: 21 / 9; }
.descripcion__panorama img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: 2px;
}
.descripcion__panorama figcaption {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tierra-3);
  text-align: center;
}

@media (max-width: 860px) {
  .descripcion__grid { grid-template-columns: 1fr; }
  .descripcion__titulo { position: static; }
}

/* ══════════════════════════════════════════════════════
   ELEMENTOS — secciones de la propiedad
   ══════════════════════════════════════════════════════ */
.elementos { padding: clamp(56px, 7vw, 90px) 0 0; }
.elementos__head {
  text-align: center;
  padding: 0 var(--pad);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.elementos__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--barro);
  margin-bottom: 20px;
}
.elementos__titulo {
  font-family: var(--display);
  font-size: clamp(36px, 5.4vw, 74px);
  line-height: 1.1;
}

.elemento {
  max-width: var(--maxw);
  margin: 0 auto clamp(72px, 9vw, 120px);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.elemento--flip { grid-template-columns: 1fr 1.35fr; }
.elemento--flip .elemento__mediawrap { order: 2; }
.elemento--flip .elemento__copy { order: 1; }

.elemento__media {
  position: relative;
  overflow: hidden;
  --ar: 5 / 5.4;
  aspect-ratio: var(--ar);
  border-radius: 2px;
}
.elemento__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.elemento__media--ancho { --ar: 16 / 12; }

/* segunda foto flotante que complementa al elemento */
.elemento__mediawrap { position: relative; }
.elemento__extra {
  position: absolute;
  bottom: -34px;
  right: clamp(-20px, -1.8vw, -30px);
  width: 48%;
  border: 6px solid var(--arena);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 26px 54px -22px rgba(41, 38, 31, 0.45);
  z-index: 3;
}
.elemento__extra { --ar: 4 / 3; }
.elemento__extra img { width: 100%; aspect-ratio: var(--ar); object-fit: cover; }
.elemento__extra figcaption {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
@media (max-width: 860px) {
  .elemento__extra { right: 12px; bottom: -20px; }
}
.elemento__num {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #fff;
  background: rgba(41, 38, 31, 0.5);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 99px;
  z-index: 2;
}

.elemento__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--barro);
  margin-bottom: 16px;
}
.elemento__titulo {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.elemento__texto {
  color: var(--tierra-2);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.85;
  max-width: 470px;
  margin-bottom: 26px;
}
.elemento__notas {
  list-style: none;
  max-width: 470px;
}
.elemento__notas li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--linea);
  font-size: 14px;
  color: var(--tierra-2);
}
.elemento__notas li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--barro);
  flex-shrink: 0;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .elemento { grid-template-columns: 1fr; gap: 36px; }
  .elemento--flip .elemento__media { order: 1; }
  .elemento--flip .elemento__copy { order: 2; }
}

/* ══════════════════════════════════════════════════════
   CARRUSEL DE FOTOS — río continuo
   ══════════════════════════════════════════════════════ */
.rio {
  background: var(--blanco);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  padding: clamp(52px, 7vw, 84px) 0;
  overflow: hidden;
}
.rio__head {
  text-align: center;
  padding: 0 var(--pad);
  margin-bottom: clamp(30px, 4vw, 48px);
}
.rio__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--barro);
  margin-bottom: 18px;
}
.rio__titulo {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.1;
}
.rio__nota {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tierra-3);
}

.rio__viewport { cursor: grab; }
.rio__viewport.arrastrando { cursor: grabbing; }
.rio__track {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}
.rio__card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(250px, 30vw, 430px);
  border-radius: 2px;
  overflow: hidden;
  user-select: none;
}
.rio__card { --ar: 4 / 3; }
.rio__card img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rio__card:hover img { transform: scale(1.045); }
.rio__card figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(41, 38, 31, 0.68));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   UBICACIÓN
   ══════════════════════════════════════════════════════ */
.lugar {
  padding: clamp(56px, 8vw, 100px) var(--pad);
}
.lugar__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.lugar__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--barro);
  margin-bottom: 18px;
}
.lugar__titulo {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.lugar__texto { color: var(--tierra-2); max-width: 480px; margin-bottom: 28px; }
.lugar__lista { list-style: none; max-width: 480px; }
.lugar__lista li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--linea);
  font-size: 14px;
  color: var(--tierra-2);
}
.lugar__lista li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--barro);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.lugar__media {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}
.lugar__fachada { --ar: 16 / 10; position: relative; }
.lugar__fachada img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: 2px;
}
.lugar__fachada figcaption {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tierra-3);
}
.lugar__mapa {
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--linea);
  position: relative;
  z-index: 1;
}
/* SE SELECCIONA POR `[data-mapa-zona]`, NO POR `#mapaZona`, y este cambio de
   una letra costó un mapa entero. La versión de Colorines cuelga de un `id`;
   al compartir el JS el nodo pasó a identificarse por su atributo de datos, y
   la hoja se quedó apuntando al id viejo: el contenedor se quedó SIN ALTO, y
   Leaflet arrancó, pidió sus teselas y no pintó nada. Sin un solo error de JS
   y sin un 404 — un rectángulo vacío donde tenía que haber un mapa. Lo cazó
   mirar la captura, no leer el CSS.
   El `#mapaZona` se mantiene como alias para no romper un tour que aún use el
   id (Colorines lo usa, aunque hoy con su propia copia de esta hoja). */
[data-mapa-zona], #mapaZona { width: 100%; height: 100%; background: var(--arena-2); }
/* PIN de ubicación exacta. Sólo se pinta cuando el HTML declara
   `data-ubicacion="exacta"`, y eso sale de `show_exact_location` en
   EasyBroker — ver tours/_compartido/tour.js.
   Va en `filter` sobre el tile-pane de abajo, así que el pin NO se destiñe:
   el filtro sepia cuelga de `.leaflet-tile-pane` y el marcador vive en otro
   panel. Si alguien mueve el filtro al contenedor, el pin se vuelve gris. */
.mapa-pin { display: grid; place-items: center; }
.mapa-pin__punto {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--barro);
  border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.38);
  display: block;
}

/* tiles en tono sepia suave, acorde a la paleta */
[data-mapa-zona] .leaflet-tile-pane,
#mapaZona .leaflet-tile-pane { filter: grayscale(88%) sepia(16%) opacity(0.92); }
.lugar__aviso {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tierra-3);
}
@media (max-width: 860px) { .lugar__grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   CIERRE
   ══════════════════════════════════════════════════════ */
.cierre {
  position: relative;
  background: #1D1913;
  color: #F3EEE4;
  text-align: center;
  padding: clamp(72px, 10vw, 130px) var(--pad);
  overflow: hidden;
}
.cierre::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 860px; height: 860px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 113, 75, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
.cierre__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #CE9668;
  margin-bottom: 24px;
}
.cierre__titulo {
  font-family: var(--display);
  font-size: clamp(38px, 6.4vw, 96px);
  line-height: 1.06;
  max-width: 900px;
  margin: 0 auto 22px;
}
.cierre__sub {
  color: rgba(243, 238, 228, 0.72);
  max-width: 480px;
  margin: 0 auto 46px;
  font-size: 16px;
  line-height: 1.8;
}
.cierre__botones {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.boton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid transparent;
}
.boton svg { width: 17px; height: 17px; }
.boton--barro { background: var(--barro); color: #fff; }
.boton--barro:hover { background: var(--barro-2); transform: translateY(-2px); }
.boton--fantasma { border-color: rgba(243, 238, 228, 0.35); color: #F3EEE4; }
.boton--fantasma:hover { background: #F3EEE4; color: #1D1913; }
.cierre__contacto {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 14px 36px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.55);
}
.cierre__contacto a:hover { color: #CE9668; }

/* ══════════════════════════════════════════════════════
   PIE
   ══════════════════════════════════════════════════════ */
.pie {
  background: #14110C;
  color: rgba(243, 238, 228, 0.5);
  padding: 30px var(--pad);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pie a:hover { color: #CE9668; }

/* ══════════════════════════════════════════════════════
   ANIMACIONES DE ENTRADA
   ══════════════════════════════════════════════════════ */
.rev {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rev.in { opacity: 1; transform: translateY(0); }
.rev--d1 { transition-delay: 0.12s; }
.rev--d2 { transition-delay: 0.24s; }

/* las fotos siempre visibles — sin animación de cortina que deje huecos */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .elemento__media img { transform: none !important; }
  .rio__track { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HUECOS — los marcadores de medio pendiente
   ══════════════════════════════════════════════════════════════════════════

   Un tour se arma ANTES de tener las fotos. Estos estilos pintan, en el sitio
   exacto donde va cada medio, una caja con LA PROPORCIÓN REAL que ese hueco
   espera y un rótulo que dice qué foto va ahí y a qué tamaño mínimo.

   TRES DECISIONES QUE PARECEN DETALLE Y NO LO SON:

   1) EL MARCADO YA ES EL DEFINITIVO. El hueco no es un `<div>` que luego haya
      que cambiar por un `<img>`: el `<img src="img/fachada.jpg">` YA está
      escrito, apuntando al archivo que aún no existe. El marcador lo pinta el
      JS cuando esa imagen falla. Dejar caer el archivo en `img/` con ese
      nombre hace desaparecer el marcador solo, sin tocar una línea de HTML.
      Cambiar `<div>` por `<img>` treinta veces a mano es justo donde se
      cuelan los `alt` olvidados y los `src` mal escritos.

   2) LA PROPORCIÓN SE ESCRIBE UNA SOLA VEZ, en `--ar` del propio hueco. El
      rótulo que se lee en pantalla y la lista de medios se CALCULAN de ahí,
      así que no pueden discrepar de la caja. Un «3:2» escrito a mano en el
      rótulo, junto a una caja que en realidad es 4:3, es exactamente la
      `--bar-h` de CLAUDE.md naciendo otra vez.

   3) `aspect-ratio` SE QUEDA CUANDO LLEGUEN LAS FOTOS. No es andamio: reserva
      la caja antes de que la imagen cargue y mata el salto de layout. Vale lo
      mismo con el tour terminado.
   ══════════════════════════════════════════════════════════════════════════ */

/* La caja se reserva SIEMPRE, haya foto o no. */
.slot > img,
.slot > video { width: 100%; aspect-ratio: var(--ar, 3 / 2); object-fit: cover; }

/* Estado «falta el archivo». Lo pone tour.js al fallar la carga; nadie lo
   escribe en el HTML, y por eso no hay que quitarlo después. */
.slot[data-falta] { position: relative; }
.slot[data-falta] > img,
.slot[data-falta] > video { visibility: hidden; }

.slot[data-falta]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 11px,
      rgba(169, 113, 75, 0.09) 11px 22px
    ),
    var(--arena-2, #EDE8DE);
  border: 2px dashed var(--barro, #A9714B);
  border-radius: inherit;
  pointer-events: none;
}

/* El rótulo. Lo rellena tour.js; el HTML no lo escribe. */
.slot__rotulo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px;
  text-align: center;
  color: var(--tierra, #29261F);
  pointer-events: none;
}
.slot__tipo {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--barro-2, #8A5836);
}
.slot__que {
  font-family: var(--display, 'Times New Roman', serif);
  font-size: clamp(15px, 2.1vw, 25px);
  line-height: 1.2;
  max-width: 22ch;
}
.slot__specs {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--tierra-2, #5D584D);
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 11px;
  border-radius: 999px;
}
.slot__archivo {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--tierra-3, #97917F);
  word-break: break-all;
}
/* En los huecos chicos —las tarjetas del río— solo cabe lo esencial. */
.slot[data-falta][data-compacto] .slot__que { font-size: 14px; }
.slot[data-falta][data-compacto] .slot__archivo { display: none; }

/* El hero es un hueco a pantalla completa y sobre fondo oscuro. */
.hero .slot__rotulo { color: var(--arena, #F5F2EC); }
.hero .slot__que { max-width: 26ch; }
.hero .slot__specs { background: rgba(41, 38, 31, 0.55); color: var(--arena, #F5F2EC); }
.hero .slot__archivo { color: rgba(245, 242, 236, 0.62); }
.hero .slot[data-falta]::before {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.05) 14px 28px),
    var(--tierra, #29261F);
  border-width: 3px;
}

/* Aviso fijo mientras el tour esté incompleto. Lo pinta tour.js con la cuenta
   real de huecos, y desaparece solo cuando no falta ninguno: no hay que
   acordarse de borrarlo antes de publicar. */
.pendientes {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--tierra, #29261F);
  color: var(--arena, #F5F2EC);
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(41, 38, 31, 0.28);
}
.pendientes b { color: var(--barro, #A9714B); font-weight: 600; }
@media (max-width: 600px) { .pendientes { font-size: 11px; padding: 9px 14px; } }

/* El hero es el único hueco cuya proporción no la fija un componente con
   `aspect-ratio` propio: en escritorio ocupa el viewport entero. 16:9 es lo
   que se pide grabar y lo que reserva la caja en móvil. */
.hero .slot { --ar: 16 / 9; }

/* ── Texto de BORRADOR ──────────────────────────────────────────────────────
   Subrayado punteado en barro sobre el copy que todavía NO está aprobado.
   Los datos que vienen de EasyBroker no lo llevan; lo lleva lo que hay que
   escribir a mano. Se ve en el preview sin romper la lectura, y se apaga
   quitando la clase — que es también lo que exige la prueba antes de publicar.
*/
/* Subraya EL TEXTO, no la caja. Con `border-bottom` en un `<h3>` la raya iba de
   lado a lado del bloque y se leía como un divisor del diseño —hay varios en
   esta hoja—, así que la marca no marcaba nada. `text-decoration` sigue las
   líneas del texto y se distingue a la primera. */
.borrador {
  text-decoration: underline dotted var(--barro, #A9714B);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
}
.leyenda {
  max-width: var(--maxw, 1400px);
  margin: 0 auto;
  padding: 14px var(--pad, 24px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--tierra-2, #5D584D);
}
.leyenda span { display: inline-flex; align-items: center; gap: 7px; }
.leyenda i { width: 22px; height: 0; border-top: 2px dashed var(--barro, #A9714B); font-style: normal; }
.leyenda i.punteado { border-top-style: dotted; }

/* ── El hueco del hero necesita cuerpo propio ────────────────────────────────
   `.hero__video` es absoluto y llena la sección; su `<figure class="slot">`
   envolvente no heredaba nada de eso y MEDÍA 0 px DE ALTO. Efecto: el hueco
   más importante del tour —el video— era el único que no se veía, y su rótulo
   se derramaba por encima del hero sin caja detrás.
   Medido: `slot hero__slot → 0px` a 1280 y a 900. A 390 no pasaba, porque ahí
   `.hero__video` sí lleva `aspect-ratio` — o sea que mirar solo el móvil lo
   habría dado por bueno. */
.hero .slot { position: absolute; inset: 0; }
/* …pero a partir de 860 hacia abajo el hero es `height:auto` y quien le da el
   alto es el propio video, en flujo. Ahí el hueco tiene que ir en flujo
   también: absoluto, deja el hero sin contenido y colapsa a 0 px otra vez —
   medido, y esta segunda mitad NO se ve a 1280. Los dos extremos no bastan
   (CLAUDE.md, regla 6). */
@media (max-width: 860px) {
  .hero .slot { position: relative; inset: auto; width: 100%; }
}

/* ── El rótulo se adapta a SU CAJA, no al viewport ───────────────────────────
   Los huecos no miden todos igual: la foto flotante de un espacio ocupa el 48%
   de su columna y una tarjeta del río mide 250–430 px. Con un solo tamaño de
   letra el texto se salía de las cajas chicas — medido: 4 rótulos desbordados
   a 390 y 3 a 900.
   Se resuelve con `@container` y no con `@media` porque lo que decide es el
   ancho DEL HUECO: la misma tarjeta del río mide lo mismo a 1280 que a 390, y
   una regla por viewport la encogería justo donde no hacía falta.
   `container-type` va SOLO bajo `[data-falta]`: con el tour terminado esto no
   existe y no puede afectar a nada. */
.slot[data-falta] { container-type: inline-size; }
.slot__rotulo { overflow: hidden; }
.slot__que {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@container (max-width: 360px) {
  .slot__rotulo { gap: 5px; padding: 10px; }
  .slot__que { font-size: 13px; -webkit-line-clamp: 3; }
  .slot__specs { font-size: 10px; padding: 4px 9px; }
  .slot__archivo { display: none; }
}
@container (max-width: 230px) {
  .slot__tipo { font-size: 8.5px; letter-spacing: 0.16em; }
  .slot__que { font-size: 11.5px; -webkit-line-clamp: 3; }
  .slot__specs { font-size: 9px; padding: 3px 7px; }
}
