

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(13px, calc(0.55rem + 0.375vw), 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.96vw, 1.4rem);
  line-height: 1.35;
}

a {
  color: inherit;
}

button,
.listen,
.habitat-video-link {
  font: inherit;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: opacity .2s ease, transform .2s ease, background-color .25s ease, color .25s ease;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: min(75rem, calc(100% - clamp(48px, 12vw, 720px)));
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 24px);
}

/* ==========================================
   3. HERO VIDEO CONTAINER & NAVEGACIÓN
   ========================================== */
.video-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: rgba(18, 20, 14, 0.45);
}

.video-container::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(12, 16, 12, 0.38); */
  z-index: 1;
}

.video-container .bg-videobio {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: saturate(.92) contrast(.98) brightness(.72);
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .video-container .bg-videobio {
    animation: none;
  }
}

@media (max-width: 760px) {
  .video-container {
    height: 40vh;
  }

  .video-container .bg-videobio {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.nav {
  height: 108px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding-top: 16px;
  position: relative;
  z-index: 3;
}

.links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  padding-top: 22px;
}

.links a {
  font-size: clamp(0.84rem, 1.4vw, 1.12rem);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 1.5px;
  text-align: center;
}

.links .active {
  color: var(--lime);
  line-height: 1.05;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  text-align: center;
  color: white;
}

.hero-title h1 {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0 auto;
  color: white;
  font-size: clamp(1.96rem, 3.85vw, 3.15rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: 5px;
  justify-content: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.hero-title h1:before,
.hero-title h1:after {
  content: "";
  height: 1px;
  background: rgba(255,255,255,0.7);
  flex: 1;
  max-width: 200px;
}

.hero-title span {
  display: block;
}

.hero-title p {
  font-size: clamp(0.77rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 4px;
  margin: 14px 0 0;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

/* ==========================================
   3.5. CONTENIDO PRINCIPAL DE HÁBITAT Y CONSTRUCCIÓN
   (secciones independientes con fondo intercalado, igual que index.html / bioculturalidad.html)
   ========================================== */
.section-olive,
.section-orange {
  width: 100%;
  padding: clamp(3.2rem, 7vw, 5.6rem) 0;
}

.section-olive {
  background: var(--olive-deep);
  color: var(--cream);
}

/* Nivel 1 — título de capítulo (CO-DISEÑO / LABORATORIO DE
   AUTOCONSTRUCCIÓN / RELATOS DEL ESPACIO). Se define explícitamente
   aquí para que esta jerarquía no dependa de un valor heredado. */
.section-title {
  margin: 0;
  min-width: 0;
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
}

#codiseno {
  --plant-divider-height: clamp(36px, 8vw, 114px);
  --plant-divider-size: 43%; /* PC: 50-55% del ancho */
  --section-padding: clamp(3.2rem, 7vw, 5.6rem);
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--plant-divider-height));
  padding: calc(var(--section-padding) + var(--plant-divider-height)) 0 var(--section-padding);
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--plant-divider-height),
    var(--olive) var(--plant-divider-height)
  );
}

#codiseno::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: var(--plant-divider-height);
  background: var(--olive);
  mask: url("../assets/6.svg") center bottom / var(--plant-divider-size) auto repeat-x;
  -webkit-mask: url("../assets/6.svg") center bottom / var(--plant-divider-size) auto repeat-x;
  pointer-events: none;
}

/* Celular: el separador ocupa 60-70% del ancho */
@media (max-width: 768px) {
  #codiseno {
    --plant-divider-size: 65%;
  }
}

/* RELATOS DEL ESPACIO va justo después de CO-DISEÑO (mismo oliva claro, como en el PDF),
   por eso ya no lleva separador superior. El padding inferior deja sitio al separador
   10.svg de #autoconstruccion, que se apoya sobre esta sección. */
#relatos {
  position: relative;
  overflow-x: clip;
  background: var(--olive);
  padding: clamp(3rem, 6vw, 4.5rem) 0 calc(clamp(3.2rem, 7vw, 5.6rem) + clamp(36px, 8vw, 114px));
}

.habitat-gallery-section {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  clear: both;
}

/* ACABADOS EN TIERRA (PDF): continúa el oliva oscuro de MINGA PARA TU CASA. */
#acabados {
  position: relative;
  z-index: 2;
  clear: both;
  overflow-x: clip;
  background-color: var(--olive-deep);
  padding-bottom: 0;
}

.section-orange {
  background: var(--orange-deep);
  color: var(--cream);
}

/* LABORATORIO DE AUTOCONSTRUCCIÓN: SEPARADOR SUPERIOR hacia ARRIBA con 10.svg
   (misma técnica que #relatos y #codiseno). La sección sube sobre CO-DISEÑO
   con margen negativo; el degradado deja transparente la franja del separador
   y la silueta naranja (--orange-deep) se apoya sobre el oliva de arriba. */
#autoconstruccion {
  --auto-divider-height: clamp(36px, 8vw, 114px);
  --section-padding: clamp(3.2rem, 7vw, 5.6rem);
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--auto-divider-height));
  padding: var(--auto-divider-height) 0 0;
  overflow-x: clip;
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--auto-divider-height),
    var(--olive-deep) var(--auto-divider-height)
  );
}

/* Separador superior con 11.svg (viñeta de hojas, viewBox 1920×300), medido contra el PDF:
   - se dibuja UNA vez (sin repetir) al 125% del ancho y centrado → hojas del mismo tamaño que en el PDF
     (extensión de hojas ≈ 10.7% del ancho: ~59px por encima y ~63px por debajo de la vid a 1055px).
   - la vid (y = 191/300 del SVG) queda 0.66% del ancho por encima del borde superior de la foto
     (PDF: vid en y=2318.5pt, foto en y≈2324pt).
   - la caja mide exactamente lo que mide la máscara: alto = ancho × 375/1920.
   - va por ENCIMA de la foto para que las hojas inferiores la cubran, como en el PDF. */
#autoconstruccion::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--auto-divider-height) - 13.1vw);
  aspect-ratio: 1920 / 375;
  background: #8a9d4a;
  mask: url("../assets/11.svg") center / 125% 100% no-repeat;
  -webkit-mask: url("../assets/11.svg") center / 125% 100% no-repeat;
  z-index: 4;
  pointer-events: none;
}

.habitat-gallery-section {
  background-image: url("../images/fondo-serpiente.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* El texto y los filetes se adaptan al tono del fondo naranja/terracota.
   El Nivel 2 (.section-title-naranja) se deja SIEMPRE en lima (ver más
   abajo) para que tenga el mismo acento en toda la página, oliva o
   naranja; aquí solo se ajusta el título de Nivel 1. */
.section-orange .section-title {
  color: var(--color-lime);
}

.section-orange .hrow .rule,
.section-orange .section-title + .rule,
.section-orange .section-title-naranja + .rule {
  background: var(--lime);
}

/* Franja de cierre (Ubicación), antes con texto en naranja sobre oliva
   oscuro por un valor mal asignado; ahora sigue la misma convención
   de texto claro que el resto de la página. */
.section-olive-deep{
  background:var(--olive-deep);
  overflow: hidden;
  position: relative;
  color: var(--cream);
  width: 100%;
  padding: clamp(3.2rem, 7vw, 5.6rem) 0;
}

.section-orange .lead-text,
.section-orange strong {
  color: var(--cream);
}

.habitat-laboratorio-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  max-width: none;
  margin-right: 0;
}

.section-orange .habitat-laboratorio-copy .lead-text {
  max-width: 780px;
  color: var(--cream);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.laboratorio-column {
  min-width: 0;
}

.laboratorio-column-main {
  max-width: 560px;
}

.laboratorio-column-data {
  max-width: 620px;
  margin-left: auto;
}

.laboratorio-datos {
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
}

.laboratorio-datos li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(245, 240, 230, .35);
}

.laboratorio-datos li:last-child {
  border-bottom: 1px solid rgba(245, 240, 230, .35);
}

.laboratorio-cifra {
  color: var(--lime);
  font-size: var(--fs-stat);
  font-weight: 500;
  line-height: 1;
}

.laboratorio-quote {
  grid-column: 1 / -1;
  max-width: 850px;
  margin: 1rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 240, 230, .35);
}

.section-orange .habitat-laboratorio-copy strong {
  color: var(--lime);
  text-transform: none;
}

.section-orange .habitat-laboratorio-copy .habitat-quote {
  max-width: 780px;
  color: var(--cream);
  font-size: var(--fs-copy);
  line-height: 1.7;
}

.lead-text {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--cream);
  margin: 0 0 16px;
  padding-left: 16px;
  border-left: 2px solid var(--lime);
}

/* Bloques de texto de una sola columna (autoconstrucción, relatos del espacio) */
.habitat-copy p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--white);
}

.habitat-copy p:last-child {
  margin-bottom: 0;
}

#relatos .relatos-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-top: 30px;
}

#relatos .relatos-feature-copy h3 {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 4px;
}

#relatos .relatos-feature-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 2rem;
}

#relatos .relatos-feature-heading h4 {
  margin: 0;
  color: var(--cream);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 1.5px;
}

#relatos .relatos-feature-heading .rule {
  flex: 1;
  background: var(--lime);
}

#relatos .relatos-feature-media {
  margin: 0;
}

#relatos .relatos-feature-media img,
#relatos .relatos-feature-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid rgba(245, 240, 230, .35);
}

#relatos .relatos-video-link {
  margin-top: 20px;
}

.habitat-gallery {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

#acabados .habitat-gallery {
  padding-block: clamp(1.25rem, 5vw, 3.5rem);
}

.habitat-gallery-title {
  margin-bottom: 2rem;
  color: var(--cream);
}

.habitat-gallery-title h2 {
  margin: 0;
  font-size: clamp(1.82rem, 3.36vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--cream);
}

.habitat-gallery-title .rule {
  background: var(--cream);
}

/* El carrusel (vista, miniaturas, flechas, texto) vive en css/gallery.css,
   compartido por todas las páginas con galería. */

/* Introducción: título CO-DISEÑO + lead + contexto */
.habitat-intro {
  margin-bottom: 20px;
}

.habitat-lead {
  max-width: 62ch;
  margin: 0 0 2.2rem auto;
  font-size: var(--fs-copy);
  font-weight: 300;
  line-height: 1.85;
  text-align: right;
  color: var(--white);
}

.habitat-dash {
  margin: 0 0 2.2rem;
  text-align: center;
  letter-spacing: .4em;
  opacity: .5;
}

.habitat-quote {
  margin: 0;
  font-size: var(--fs-copy);
  line-height: 1.6;
  font-style: italic;
}

.habitat-context p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--white);
}

.habitat-context .hrow {
  margin-bottom: 18px;
}

.habitat-context-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.habitat-context-media {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
}

/* PINTURAS EN CAL Y BARRO: estructura eyebrow + título + rayado + nota punteada */
.pinturas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
}

.pinturas-content h2 {
  margin: 0 0 5px;
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
}

.pinturas-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
}

.pinturas-head h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--cream);
}

.pinturas-head .rule {
  flex: 1;
  height: 1px;
  background: var(--cream);
}

.pinturas-content > p {
  margin: 0 0 20px;
  line-height: 1.6;
  color: var(--cream);
}

.pinturas-footer-note {
  padding-top: 15px;
  border-top: 1px dashed rgba(245, 240, 230, .45);
  color: var(--cream);
  font-size: var(--fs-note);
  font-style: italic;
  line-height: 1.6;
}

/* Grilla de proyectos: imagen + info alternados */
.habitat-projects-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 40px;
}

.habitat-project-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-top: 70px;
}

.habitat-media img,
.habitat-media video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}

.habitat-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}

.habitat-video-thumb img {
  border-radius: 0;
  box-shadow: none;
  transition: transform .45s ease;
}

.habitat-video-thumb:hover img {
  transform: scale(1.04);
}

.habitat-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: rgba(62, 69, 38, .72);
  transform: translate(-50%, -50%);
}

.habitat-play::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 25px;
  border-left: 18px solid var(--cream);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.habitat-video-link {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  border: 1px solid var(--lime);
  border-radius: 4px;
  background: var(--lime);
  color: var(--olive-deep);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.habitat-video-link:hover,
.habitat-video-link:focus-visible {
  background: var(--cream);
  transform: translateY(-1px);
}

.habitat-number {
  display: block;
  font-size: var(--fs-stat);
  font-weight: 300;
  line-height: 1;
  color: var(--lime);
  opacity: .55;
  margin: 0 0 6px;
}

.habitat-location {
  margin: 0 0 8px;
  font-size: clamp(0.77rem, 1.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
}

.habitat-info h3 {
  margin: 0 0 10px;
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cream);
}

.habitat-tagline {
  margin: 0 0 16px;
  font-style: italic;
  color: var(--cream);
  opacity: .85;
}

.habitat-info .rule {
  display: block;
  width: 70%;
  height: 2px;
  margin-bottom: 18px;
  background: var(--terracotta);
}

.habitat-info p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--white);
}

.habitat-contact {
  font-size: .92em;
  opacity: .92;
}

.habitat-contact a {
  color: var(--lime);
}

#sacha-wasi .sacha-wasi-feature {
  grid-template-columns: minmax(0, 6fr) minmax(240px, 5fr);
  margin-top: 0;
}

#sacha-wasi .sacha-wasi-feature .habitat-media {
  order: 2;
}

#sacha-wasi .sacha-wasi-feature .habitat-info {
  order: 1;
}

#sacha-wasi .sacha-wasi-feature .habitat-media img {
  aspect-ratio: 4 / 5;
}

#sacha-wasi .sacha-wasi-feature .habitat-info strong {
  color: var(--lime);
}

@media (max-width:780px) {
  #sacha-wasi .sacha-wasi-feature .habitat-media,
  #sacha-wasi .sacha-wasi-feature .habitat-info {
    order: initial;
  }
}

/* Áreas A-B-C-D de acabados en tierra */
.paca-proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.paso-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.paso-linea {
  width: 100%;
  height: 2px;
  background: var(--lime);
  margin-bottom: 22px;
}

.paso-numero {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  color: var(--lime);
}

.paso-texto {
  margin: 0;
  line-height: 1.55;
  color: var(--white);
}

/* Nivel 2 — subtítulo dentro de un capítulo (TERRITORIO, COMIDA Y
   VIDA / PROYECTOS COMUNITARIOS DE CO-DISEÑO / Acabados en Tierra /
   PINTURAS EN CAL / PINTURAS EN BARRO). Siempre en lima, sea cual
   sea el fondo del capítulo, igual que .pinturas-content h2 y
   .laboratorio-cifra ya lo hacían sobre naranja. */
.section-title-naranja {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: 3px;
  color: var(--lime);
  text-transform: uppercase;
}

/* Paneles de pinturas en cal / barro */

/* =========================================================
   VARIANTES · página Sacha Wasi
   ========================================================= */
#sacha-wasi {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 0;
  background: var(--olive-deep);
  color: var(--cream);
}

#sacha-wasi .sacha-wasi-wrap > .rubro {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--lime);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 300;
  letter-spacing: .24em;
  text-transform: uppercase;
}

#sacha-wasi .sacha-wasi-wrap > .rubro::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(201, 214, 79, .55);
}

#sacha-wasi .sacha-wasi-wrap > .lead {
  max-width: 620px;
  margin-bottom: 3.2rem;
  color: var(--cream);
  font-size: clamp(.9rem, 1.35vw, 1.08rem);
  line-height: 1.7;
  text-align: right;
}

#sacha-wasi .proyecto {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

#sacha-wasi .proyecto__media,
#sacha-wasi .proyecto__texto {
  min-width: 0;
}

#sacha-wasi .marco--alto {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(62, 69, 38, .45) url("../images/sacha-wasi/01.jpg") center / cover;
  box-shadow: 0 8px 24px rgba(43, 43, 35, .18);
}

#sacha-wasi .marco--alto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 69, 38, .22);
}

#sacha-wasi .marco__nota {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(43, 43, 35, .42);
  color: var(--cream);
  font-size: .65rem;
  letter-spacing: .04em;
}

#sacha-wasi .proyecto__texto p {
  margin: 0 0 1.35rem;
  font-size: clamp(.88rem, 1.25vw, 1rem);
  line-height: 1.75;
}

#sacha-wasi .proyecto__texto strong,
#sacha-wasi .blob strong,
#sacha-wasi .cita strong {
  color: var(--lime);
  text-transform: none;
}

#sacha-wasi .blob {
  max-width: 560px;
  margin-top: 2.4rem;
  padding: 2.1rem 3.2rem;
  border-radius: 100px 100px 46px 46px;
  background: #c96f4a;
  color: var(--cream);
  text-align: center;
  box-shadow: 0 6px 18px rgba(62, 69, 38, .14);
}

#sacha-wasi .blob p,
#sacha-wasi .cita p {
  margin: 0;
  font-size: clamp(.86rem, 1.25vw, 1rem);
  line-height: 1.7;
}

#sacha-wasi .cita {
  max-width: 660px;
  margin-top: 2.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(201, 214, 79, .35);
  border-bottom: 1px solid rgba(201, 214, 79, .35);
  text-align: center;
  font-style: italic;
}

#sacha-wasi .habitat-gallery-section {
  width: 100%;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 0 0 clamp(3.5rem, 7vw, 5.5rem);
  background-color: transparent;
  background-image: none;
}

#sacha-wasi .habitat-gallery {
  margin-top: 0;
}

#sacha-wasi .ubicacion {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.hero--breve{ min-height:52vh; }
.hero__title--chico{ font-size:clamp(2rem,7vw,4.2rem); }

.ubicacion{
  display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr);
  gap:clamp(1.5rem,4vw,3.5rem); align-items:center;
  margin:clamp(2.5rem,6vw,4.5rem) 0;
}
.marco--mapa{ aspect-ratio:4/3; }
.marco--sinrelleno{ background:none; padding:0; overflow:hidden; }
.marco--sinrelleno::before{ display:none; }
.marco--sinrelleno iframe{ width:100%; height:100%; border:0; border-radius:8px; filter:saturate(.85) contrast(1.02); }
.ubicacion__eyebrow{
  display: block;
  margin-bottom: 10px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
}
.ubicacion__texto h3{
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
}
.ubicacion__texto p{ margin:0 0 1.2rem; }
.boton-mapa{
   display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  border: 1px solid var(--lime);
  border-radius: 4px;
  background: var(--lime);
  color: var(--olive-deep);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
.boton-mapa:hover{ background: var(--cream);
    transform: translateY(-1px); }
.ubicacion__nota{ font-size:.8rem; opacity:.75; font-style:italic; }

@media (max-width:780px){
  #sacha-wasi .sacha-wasi-wrap{ width: min(100% - 32px, 680px); }
  #sacha-wasi .proyecto{ grid-template-columns:1fr; }
  #sacha-wasi .sacha-wasi-wrap > .lead{ text-align:left; }
  #sacha-wasi .blob{ padding:1.8rem 1.4rem; border-radius:70px 70px 30px 30px; }
  .ubicacion{ grid-template-columns:1fr; }
}


@media (max-width: 768px) {
  .wrap { 
    max-width: 100%; 
    padding: 0 16px; 
  }

  /* --- INICIO ADAPTACIÓN TÍTULO (Línea ~252) --- */
  .hero-title h1::before,
  .hero-title h1::after {
    display: none;
  }

  .hero-title h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    letter-spacing: 2px;
    justify-content: center;
  }

  .hero-title p {
    letter-spacing: 2px;
    font-size: 0.85rem;
  }
  /* --- FIN ADAPTACIÓN TÍTULO --- */

  .section-title {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
    overflow-wrap: anywhere;
  }

  /* --- INICIO ADAPTACIÓN IMÁGENES Y GALERÍA (Línea ~266) --- */
  /* El carrusel de galería se adapta en css/gallery.css (compartido). */

  .habitat-context-media {
    max-height: 220px;
  }
  /* ... rest de reglas móviles ... */
  .habitat-lead { text-align: left; margin-right: auto; }
  .habitat-laboratorio-copy { grid-template-columns: 1fr; gap: 1.5rem; }
  .laboratorio-column-main, .laboratorio-column-data { max-width: none; margin-left: 0; }
  .laboratorio-quote { grid-column: auto; margin-top: 0; }
  .habitat-project-row { grid-template-columns: 1fr; gap: 24px; }
  .habitat-project-row:nth-child(even) .habitat-media { order: 0; }
  .paca-proceso-grid { grid-template-columns: 1fr; }
  .habitat-context-body { grid-template-columns: 1fr; }
  #relatos .relatos-feature { grid-template-columns: 1fr; gap: 2rem; }
  #relatos .relatos-feature-media { order: -1; }
  .pinturas-grid { grid-template-columns: 1fr; gap: 2rem; }
  #sacha-wasi .sacha-wasi-wrap { width: 100%; }
  #sacha-wasi .proyecto { grid-template-columns: 1fr; }
  #sacha-wasi .blob { padding: 1.8rem 1.4rem; border-radius: 40px; }
  .ubicacion { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  #sacha-wasi .sacha-wasi-feature {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  #sacha-wasi .sacha-wasi-feature .habitat-media {
    order: 1 !important;
    width: 100%;
  }

  #sacha-wasi .sacha-wasi-feature .habitat-info {
    order: 2 !important;
    width: 100%;
  }

  #sacha-wasi .sacha-wasi-feature .habitat-media img {
    aspect-ratio: 16 / 9;
    max-height: 280px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
}

:root {
  --hb-olive: var(--olive);
  --hb-olive-dark: #424925;
  --hb-dark: var(--olive-deep);
  --hb-lime: var(--lime);
  --hb-terracotta: var(--terracotta);
  --hb-orange: #e07f45;
  --hb-orange-text: #ee8450;
  --hb-cream: var(--cream);
  --hb-peach: #f4b08a;
  --hb-text-light: var(--cream);
  --hb-border-dash: rgba(245, 240, 230, 0.45);
}

/* ==========================================================================
   REESTRUCTURACIÓN SEGÚN PDF
   Los gráficos decorativos se cargan desde archivos SVG locales en assets/hc/.
   ========================================================================== */
/* ==========================================
   UTILIDADES
   ========================================== */
.hl-lime { color: var(--hb-lime); }
.hl-orange { color: var(--hb-orange-text); }

/* ==========================================
   TÍTULOS
   ========================================== */
.hb-section-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hb-main-title {
  color: var(--hb-lime);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.hb-main-title-peach,
.hb-title-light {
  color: var(--hb-cream);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
}

.hb-title-line {
  flex: 1;
  height: 2px;
  margin: 0;
  background: linear-gradient(to right, rgba(188, 200, 76, 0.95), rgba(188, 200, 76, 0.75));
  border-radius: 2px;
}

.hb-title-line--orange {
  flex: none;
  width: min(100%, 400px);
  margin: 0.4rem 0 1.4rem;
  background: var(--hb-terracotta);
}

.hb-subquote {
  color: var(--hb-cream);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-style: italic;
  font-weight: 400;
  margin: 0.2rem 0 0 0;
}

.hb-subquote-peach {
  color: var(--hb-cream);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 1.2rem 0 0;
}


/* ---------- CO-DISEÑO · introducción ---------- */
.habitat-intro { margin-bottom: 20px; }

.hb-intro-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.habitat-lead {
  margin: 0;
  font-style: italic;
  line-height: 1.5;
}

.habitat-lead--full {
  max-width: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  text-align: left;
  font-size: var(--fs-copy);
  line-height: 1.85;
}

/* Resaltados del texto (lima / naranja) */
.habitat-info p .hl-lime,
.habitat-context p .hl-lime,
.relatos-feature-copy .hl-lime { color: var(--lime); }
.habitat-info p .hl-orange,
.relatos-feature-copy .hl-orange,
.hb-pilon-intro .hl-orange,
.hb-pinturas-intro-text .hl-orange,
.hb-need-banner .hl-orange { color: var(--hb-orange-text); }

/* ---------- Títulos claros (PDF) ---------- */
.section-title-light {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--cream);
}

.habitat-subquote {
  margin: .7rem 0 0;
  font-style: italic;
  color: var(--cream);
}

.hb-rule-orange {
  display: block;
  width: min(100%, 400px);
  height: 2px;
  margin: .4rem 0 1.4rem;
  background: var(--terracotta);
}

.habitat-place {
  margin: 0 0 .8rem;
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--cream);
}

/* ---------- PROYECTOS COMUNITARIOS (texto + foto) ---------- */
.habitat-context { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

.habitat-context-body {
  position: relative;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 330px);
  gap: clamp(2rem, 5vw, 4rem);
}

.habitat-context-text p:not(.habitat-subquote) {
  max-width: 520px;
  line-height: 1.9;
}

.habitat-context-figure {
  position: relative;
  max-width: 330px;
  justify-self: center;
}

.habitat-context-media {
  position: relative;
  z-index: 1;
  max-height: none;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
}

/* ---------- 3 proyectos: video a la izquierda, texto a la derecha ---------- */
.habitat-projects-grid { overflow: visible; }

.habitat-project-row {
  position: relative;
  padding-inline: clamp(0px, 4vw, 3rem);
}

.habitat-media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 330px;
  justify-self: center;
}

.habitat-info { position: relative; z-index: 1; }

.habitat-number {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0 0 4px;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1;
  color: var(--cream);
  opacity: 1;
}

.habitat-number::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.3em;
  top: -.15em;
  width: 1.9em;
  height: 1.05em;
  background: var(--terracotta);
  border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%;
  transform: rotate(-8deg);
}

.habitat-info h3 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: 1px;
}

.habitat-info .rule { width: min(100%, 400px); }

.habitat-info p:not(.habitat-place):not(.habitat-tagline) { line-height: 1.85; max-width: 580px; }

/* Caja de contacto naranja (ancho completo del proyecto) */
.hb-contact-box {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: 2%;
  padding: 1rem 1.4rem;
  background: var(--hb-orange);
  border: 2px solid var(--lime);
  border-radius: 6px;
}

.hb-contact-box .hb-contact-txt {
  flex: 1;
  min-width: 220px;
  margin: 0;
  font-size: var(--fs-note);
  line-height: 1.35;
  color: var(--cream);
}

.hb-contact-box .hb-contact-txt strong {
  display: block;
  color: var(--olive);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.hb-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.6rem;
  border: 1px solid var(--lime);
  border-radius: 4px;
  background: var(--olive);
  color: var(--cream);
  text-decoration: none;
  font-weight: 400;
  transition: background-color .25s ease, transform .2s ease;
}
.hb-contact-btn:hover { background: var(--olive-deep); transform: translateY(-2px); }

/* ---------- RELATOS DEL ESPACIO ---------- */
#relatos .relatos-feature { margin-top: 0; }
#relatos .relatos-feature-copy p { line-height: 1.9; margin: 0; color: var(--white); }
#relatos .relatos-feature-media video { max-height: none; }

/* ---------- MINGA PARA TU CASA: foto superior + separador 10.svg ---------- */
.hb-minga-photo {
  position: relative;
  height: clamp(220px, 30vw, 400px);
  background:
    linear-gradient(to bottom, rgba(61, 68, 42, .55), rgba(61, 68, 42, .62) 60%, var(--olive-deep) 100%),
    var(--minga-bg, none) center / cover no-repeat;
  background-color: #4c542b;
}

/* ==========================================
   5. MINGA PARA TU CASA  (infografía)
   ========================================== */
.hb-minga {
  position: relative;
  background: var(--hb-dark);
  color: var(--hb-cream);
  overflow: hidden;
}

/* Banda superior de Minga (puede llevar una foto de fondo vía --minga-bg) */
.hb-minga-photo {
  position: relative;
  height: clamp(220px, 30vw, 400px);
  background:
    linear-gradient(to bottom, rgba(61, 68, 42, 0.78), rgba(61, 68, 42, 0.62) 60%, var(--hb-dark) 100%),
    var(--minga-bg, none) center / cover no-repeat; /* pon aquí la foto: --minga-bg: url("../images/...") */
  background-color: #4c542b;
}

.hb-minga-body {
  position: relative;
  margin-top: calc(-1 * clamp(130px, 19vw, 280px));
  padding-bottom: 4rem;
}

/* Escenario de la infografía: coordenadas en base 1000 × 730 */
.hb-info {
  position: relative;
  width: min(1000px, 92vw);
  margin: 0 auto;
  aspect-ratio: 1000 / 730;
  container-type: inline-size;
  --H: 730;
}

.hb-abs {
  position: absolute;
  left: calc(var(--x) * 0.1%);
  top: calc(var(--y) * 100% / var(--H));
  width: calc(var(--w) * 0.1%);
  height: calc(var(--h, 0) * 100% / var(--H));
  font-size: 1.5cqw;
  line-height: 1.55;
  color: var(--hb-cream);
  z-index: 2;
}
.hb-abs:not([style*="--h"]) { height: auto; }
.hb-abs p { margin: 0; }

.hb-info-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Arco naranja con el título */
.hb-arch { z-index: 1; }
.hb-arch img {width: 100%;height: 124%;display: block;object-fit: fill;}

.hb-minga-title {
  z-index: 3;
  margin: 0;
  text-align: center;
  font-size: 3.3cqw;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--hb-cream);
}

/* Foto circular con anillos */
.hb-ring {
  aspect-ratio: 1;
  height: auto !important;
}
.hb-ring::before,
.hb-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hb-ring::before { inset: 0; border: 1.2px dashed var(--hb-cream); }
.hb-ring::after  { inset: 6.5%; border: 1.4px solid var(--hb-cream); }

.hb-ring--photo img {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hb-ring--stat {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hb-ring--stat::after { inset: 10%; }

.hb-stat-number {
  position: relative;
  z-index: 1;
  font-size: 3.9cqw;
  font-weight: 700;
  color: var(--hb-lime);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hb-i-stat1 .hb-stat-number {font-size: 3.2cqw;}
.hb-i-stat2 .hb-stat-number {font-size: 4cqw;}

.hb-ring--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hb-ring--icon::after { inset: 8%; }
.hb-ring--icon .deco-icon { width: 80%; height: 80%; }

.hb-stat-blob { z-index: 0; border-radius: 48% 52% 55% 45% / 55% 50% 50% 45%; background: rgba(224, 127, 69, 0.28); }
.hb-stat-caption { text-align: center; z-index: 3; }

.hb-box {
  border: 1.2px solid var(--hb-cream);
  padding: 1cqw 1.4cqw;
  box-sizing: border-box;
  font-size: 1.5cqw;
  line-height: 1.5;
  background: var(--hb-dark);
}
.hb-i-box1 p,
.hb-i-box2 p { width: 56%; }

.hb-info-photo { z-index: 2; overflow: hidden; }
.hb-info-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Necesidad actual */
.hb-need-banner {
  position: relative;
  max-width: 820px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
  text-align: center;
}

.hb-need-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 1.2rem;
}

.hb-need-title {
  color: var(--hb-cream);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 300;
  line-height: 1.3;
  margin: 0;
  text-align: right;
}
.hb-need-title strong { display: block; font-weight: 600; }

.hb-need-focus {
  position: relative;
  z-index: 1;
  color: var(--hb-orange-text);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  margin: 0 0 0.4rem;
}

.hb-need-desc {
  position: relative;
  z-index: 1;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--hb-cream);
  margin: 0;
}

/* Cita sobre cinta lima de borde irregular */
.hb-quote-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hb-quote-body {
  margin: 0;
  padding: 2.6rem 2.6rem 2.4rem;
  background: #b9c44a;
  color: var(--hb-olive);
  text-align: center;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
}

/* ==========================================
   6. ACABADOS EN TIERRA · CASA PILÓN
   ========================================== */
.hb-section-acabados {
  background: var(--hb-dark);
  padding-top: 3rem;
  padding-bottom: 0;
  overflow: hidden;
}

.hb-pilon-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hb-pilon-title {
  color: var(--hb-cream);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
  text-transform: none;
}
.hb-pilon-title span { display: block; }

.hb-pilon-intro p {
  color: var(--hb-cream);
  line-height: 1.9;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.hb-pilon-photo {
  position: relative;
  max-width: 300px;
  justify-self: center;
}

.hb-pilon-photo .hb-photo-frame {
  border-radius: 22px;
  box-shadow: none;
}

/* Sub-bloques Pinturas en Cal / Barro */
.hb-pinturas-block { position: relative; margin-bottom: 0; padding-top: 1rem; }

.hb-pinturas-header {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.4rem;
  padding-top: 1.5rem;
}

.hb-pinturas-header .hb-title-light { margin: 0; color: var(--hb-cream); }
.hb-pinturas-header .hb-title-line--orange { width: min(100%, 260px); margin: 0.5rem 0 0; }

.hb-pinturas-intro-text p {
  color: var(--hb-cream);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.8;
  margin: 0;
}

.hb-dual-cards-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.hb-quad-cards-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem 3rem;
  margin-bottom: 3rem;
}

.hb-action-card,
.hb-quad-card { background: none; border: 0; border-radius: 0; overflow: visible; }

.hb-action-photo-wrap,
.hb-quad-photo-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 40px 40px 40px 40px / 40px 40px 40px 40px;
  background: var(--hb-olive-dark);
}

.hb-action-photo,
.hb-quad-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.hb-action-text-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0.4rem 0;
}

/* Número con "pastilla" verde detrás */
.hb-action-badge {
  position: relative;
  width: 54px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%;
  background: #7c8a45;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
}

.hb-action-badge span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--hb-cream);
}

.hb-action-desc {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  color: var(--hb-cream);
}

/* Notas técnicas: cintas de ancho completo con muesca superior */
.hb-note-band {
  --notch: var(--hb-dark);
  position: relative;
  padding: 4.2rem 0 4rem;
  margin-top: 1rem;
}
/* Muesca superior: mismo recurso que .contacto-divider del index
   (div vacío + máscara assets/3.svg; el color lo pone el background). */
.hb-note-divider {
  position: absolute;
  left: -53%;
  right: 0;
  top: -3px;
  height: clamp(53px, 12.625vw, 304px);
  background: var(--notch);
  -webkit-mask-image: url("../assets/3.svg");
  -webkit-mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/3.svg");
  mask-position: center bottom;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  transform: rotateX(180deg);
  transform-origin: center;
  pointer-events: none;
}
.hb-note-band--lime { background: #b9c44a; color: var(--hb-olive); }
.hb-note-band--orange { background: var(--hb-orange); color: #3d442a; margin-bottom: 0; }

.hb-note-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}


.hb-note-inner p {
  margin: 0;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  line-height: 1.5;
  color: inherit;
}

.hb-acabados-wrap { padding-bottom: 0; }


/* ---------- Reglas propias de esta reestructuración (sobrescriben lo anterior) ---------- */
#autoconstruccion .hb-minga-body { z-index: 3; }
.hb-note-band { --notch: var(--olive-deep); }
.hb-note-band--lime { background: #b9c44a; }

#acabados .habitat-gallery { padding-block: clamp(1.25rem, 5vw, 3.5rem); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hb-project-item { grid-template-columns: 290px 1fr; gap: 2.5rem; }
}

@media (max-width: 850px) {
  .hb-authors-header,
  .hb-project-item,
  .hb-relatos-dual,
  .hb-pilon-grid,
  .hb-pinturas-header,
  .hb-dual-cards-grid,
  .hb-quad-cards-grid { grid-template-columns: 1fr; gap: 1.8rem; }

  .hb-proj-media-side,
  .hb-authors-photo-card { max-width: 300px; }

  .hb-intro-content { flex-direction: column; align-items: flex-start; }
  .hb-intro-text { text-align: left; }

  .hb-section-heading { flex-wrap: wrap; }
  .hb-main-title { white-space: normal; }

  
  

  .hb-note-inner { flex-direction: column; align-items: flex-start; }

  /* Infografía en móvil: misma estructura que escritorio (zigzag círculo/texto),
     reorganizada en una cuadrícula de 12 columnas en lugar de coordenadas absolutas */
  .hb-info {
    aspect-ratio: auto;
    width: min(40rem, 100% - 2rem);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: .75rem;
    row-gap: 1.6rem;
    align-items: center;
    padding: 0;
  }
  .hb-info-lines, .hb-arch { display: none; }
  .hb-abs {
    position: relative;
    left: auto; top: auto;
    width: auto;
    height: auto !important;
    font-size: clamp(.92rem, 3.9cqw, 1.05rem);
    line-height: 1.55;
    min-width: 0;
  }


  .hb-minga-title {
    grid-column: 1 / -1;
    font-size: clamp(1.6rem, 8.2cqw, 2.4rem);
    background: #b8642f;
    padding: 1.3rem 1rem 1.5rem;
    border-radius: 3rem 3rem 1rem 1rem;
    margin-bottom: .4rem;
  }

  
  .hb-ring, .hb-ring--stat, .hb-ring--icon {
    width: 100%;
    max-width: 9.5rem;
    justify-self: center;
  }

  .hb-i-photo { grid-column: 1 / 5; grid-row: 2; }
  .hb-i-intro { grid-column: 5 / -1; grid-row: 2; }

  
  .hb-i-cap   { grid-column: 1 / 9;  grid-row: 3; }
  .hb-i-stat1 { grid-column: 9 / -1; grid-row: 3; }
  .hb-i-cap {
    background: url("../assets/hc/08.svg") center / 100% 100% no-repeat;
    padding: 1.9rem 1.7rem;
  }


  .hb-i-icon { grid-column: 1 / 5; grid-row: 4; }
  .hb-i-box1 { grid-column: 5 / -1; grid-row: 4; }

  /* Fila 5 · foto a todo el ancho */
  .hb-i-img { grid-column: 1 / -1; grid-row: 5; aspect-ratio: 16 / 11; border-radius: .6rem; }


  .hb-i-stat2 { grid-column: 1 / 5; grid-row: 6; }
  .hb-i-box2  { grid-column: 5 / -1; grid-row: 6; }

  .hb-box { padding: .9rem 1rem; font-size: clamp(.88rem, 3.7cqw, 1rem); }
  .hb-i-box1 p,
  .hb-i-box2 p { width: auto; }
}

/* Teléfonos angostos: espacios algo más compactos, misma estructura */
@media (max-width: 400px) {
  .hb-info { column-gap: .6rem; row-gap: 1.3rem; }
  .hb-i-cap { padding: 1.3rem 1.1rem; }
}

/* Tablets: la foto no crece tanto en alto */
@media (min-width: 600px) and (max-width: 850px) {
  .hb-i-img { aspect-ratio: 2 / 1; }
}

@media (max-width: 550px) {
  .hb-hero-title { font-size: 1.8rem; }
  .hb-hero-subtitle { font-size: 0.8rem; letter-spacing: 0.14em; }
  .hb-need-head { flex-direction: column-reverse; }
  .hb-need-title { text-align: center; }
  .hb-quote-body { padding: 1.8rem 1.2rem; }
}


@media (max-width: 768px) {
  .hb-intro-row { flex-direction: column; align-items: flex-start; }
  .habitat-context-body { grid-template-columns: 1fr; }
  .habitat-project-row { padding-inline: 0; }
  .habitat-media { max-width: 300px; }
  .hb-contact-box { margin-inline: 0; }
  .habitat-context-figure { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
}