
.section-olive { position: relative; }

.deco-layer {
  position: absolute;
  top: 30px;
  left: 49%;

  width: calc(min(100vw, calc(989px + (100vw - 1112px) * 0.2)));
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}
.deco-layer svg { display: block; width: 100%; height: 100%; overflow: visible; }


.section-olive > .wrap,
.section-olive > .hb-minga-body,
.section-olive > .hb-note-band { position: relative; z-index: 2; }


.hb-ring--icon { display: flex; align-items: center; justify-content: center; }
.deco-icon { position: relative; display: block; width: 56%; height: 56%; z-index: 1; object-fit: contain; }


@media (min-width: 901px) {


  .hb-intro-row .habitat-lead { max-width: 46rem; margin-left: auto; }


  .habitat-context-body { grid-template-columns: minmax(0, 1fr) 20.5rem; padding-right: clamp(0px, 5.6vw, 4.5rem); }
  .habitat-context-figure { max-width: 20.5rem; justify-self: end; }
  .habitat-context-media { height: auto; max-height: none; aspect-ratio: 3 / 4; border-radius: .85rem; }


  .habitat-projects-grid { gap: 0; margin-top: 5.7rem; }
  .habitat-project-row {
    grid-template-columns: 19.7rem minmax(0, 1fr);
    column-gap: clamp(2rem, 7.9vw, 6.4rem);
    row-gap: 4.5rem;
    padding-top: 3.5rem;
    padding-inline-end: 0;
  }
  .habitat-media { max-width: 19.7rem; justify-self: start; }
  .habitat-media img, .habitat-media video { border-radius: .85rem; }
  .hb-contact-box { margin-inline: 3rem 0; width: min(52.4rem, calc(100% - 3rem)); justify-self: start; }


  #codiseno { padding-bottom: .5rem; }
  #relatos { padding-top: 2rem; padding-bottom: calc(clamp(36px, 8vw, 114px) + .5rem); }


  #relatos .relatos-feature { margin-top: 6.2rem; grid-template-columns: minmax(0, 1fr) 31.8rem; gap: clamp(.8rem, 1.3vw, 1.1rem); }
  #relatos .relatos-feature-media video,
  #relatos .relatos-feature-media img { aspect-ratio: 310 / 181; border-radius: 0; }

 
  .hb-action-photo-wrap, .hb-quad-photo-wrap { aspect-ratio: 290 / 156; border-radius: 2.3rem; }
  .hb-dual-cards-grid, .hb-quad-cards-grid { column-gap: clamp(1.5rem, 8.3vw, 6.8rem); }
  .hb-pinturas-header { margin-bottom: 3rem; }
  .hb-section-acabados { padding-top: 1.6rem; }
  #pinturas-barro .hb-pinturas-header { margin-bottom: 1.6rem; }
  .hb-pilon-photo { max-width: 20.3rem; }
  .hb-pilon-photo .hb-photo-frame { overflow: hidden; }


  .hb-info { width: min(62rem, 77vw); }
  .hb-minga-body { padding-bottom: 1.5rem; }
}


#codiseno > .deco-layer { top: var(--plant-divider-height); }
#autoconstruccion > .deco-layer { top: var(--auto-divider-height); }


#acabados > .deco-layer { aspect-ratio: 791 / 1382 !important; max-height: 100%; }
#acabados { overflow: clip; }



#codiseno { overflow-x: clip; }


.habitat-lead { position: relative; }
.deco-anchor { position: absolute; z-index: -1; height: auto; max-width: none; pointer-events: none; }

.habitat-media > .deco-anchor,
.habitat-context-figure > .deco-anchor,
.habitat-lead > .deco-anchor { border-radius: 0; box-shadow: none; object-fit: fill; }


.habitat-lead > .deco-hoja--01 {left: -14.44%;top: 32.9%;width: 14.29%;aspect-ratio: 60 / 64;}

.habitat-context-figure > .deco-hoja--02 {left: -23%;top: 15.4%;width: 26.3%;aspect-ratio: 110 / 112;}

.habitat-media > .deco-hoja--03 { left: -79.17%; top: -68.05%; width: 210.6%; aspect-ratio: 845 / 517; }

.habitat-media > .deco-hoja--04 { left: -43.75%; top: -41.1%; width: 199.6%; aspect-ratio: 801 / 745; }

.habitat-media > .deco-hoja--05 {left: -65.1%;top: 3.3%;width: 198.1%;aspect-ratio: 795 / 636;}

#relatos { overflow-x: clip; }
#relatos > .deco-hoja--06 { position: absolute; top: 0; margin-top: -8.5%; left: 83.31%; width: 31.09%;
  height: auto; aspect-ratio: 514 / 413; max-width: none; z-index: 3; pointer-events: none; }  /* z-index 3: #codiseno (z 2) se pinta sobre #relatos y cortaría la parte alta */


.deco-layer > .deco-hoja { position: absolute; top: 0; height: auto; max-width: none; pointer-events: none; }

.deco-layer > .deco-hoja--09 { left: 9.22%; margin-top: 35.35%; width: 10.85%; aspect-ratio: 179 / 1017; }

.deco-layer > .deco-hoja--12 {
  left: 89.2%;
  margin-top: 35.28%;
  width: 11.88%;
  aspect-ratio: 196 / 149;
  z-index: 77; 
  position: relative;
}

.deco-layer > .deco-hoja--13 {left: -4.17%;margin-top: 40.14%;width: 51.22%;aspect-ratio: 845 / 396;}
.deco-layer > .deco-hoja--13b {left: 77.02%;margin-top: 133.71%;}

.deco-layer > .deco-hoja--16 {left: 41.57%;margin-top: 123.08%;width: 6.76%;aspect-ratio: 53.478 / 116.334;}


.hb-pilon-photo {
  position: relative; 
}

.hb-pilon-photo .deco-hoja--12 {
  position: absolute;
  top: 20%; 
  right: -10%; 
  width: 30%;
  z-index: 10;
  pointer-events: none;
}


img.hb-stat-blob { background: none; border-radius: 0; display: block; object-fit: fill; pointer-events: none; z-index: 0; }
.hb-i-dots { display: block; pointer-events: none; z-index: 1; }

.hb-need-head { position: relative; }
.hb-need-bulb { position: relative; flex: none; width: 2.2rem; height: 2.2rem; }
.hb-need-bulb img { position: absolute; left: -.2rem; top: -.2rem; width: 19rem; max-width: none; height: auto; pointer-events: none; z-index: -1; }

.hb-quote-card { position: relative; }
.hb-quote-body { position: relative; z-index: 1; }
.hb-quote-leaf { position: absolute; left: -9.9%; top: -30%; width: 10.4%; height: auto; z-index: 0; pointer-events: none; }

.hb-note-icon { flex: none; height: auto; display: block; pointer-events: none; }
.hb-note-band--lime .hb-note-icon { width: 4rem; }
.hb-note-band--orange .hb-note-icon { width: 3.8rem; }

@media (max-width: 850px) {
  .hb-i-dots, img.hb-stat-blob { display: none; }
  .hb-note-inner .hb-note-icon { width: 3rem; }
}
@media (max-width: 550px) {
  .hb-need-bulb { display: none; }
}


@media (max-width: 850px) {
  /* bambú como enredadera sobre el borde izquierdo de la infografía */
  .deco-layer > .deco-hoja--09 { left: -1.7rem; margin-top: 13rem; width: 3.4rem; }
  /* dependen del layout de escritorio */
  #acabados .deco-layer > .deco-hoja--12,
  #acabados .deco-layer > .deco-hoja--13,
  #acabados .deco-layer > .deco-hoja--13b,
  #acabados .deco-layer > .deco-hoja--16 { display: none; }
  /* la mancha oliva (hc/13) pasa a ser el fondo de cada encabezado de pinturas */
  .hb-pinturas-header { position: relative; background: url("../assets/hc/13.svg") 20% 40% / 130% auto no-repeat; padding-block: 1.2rem; }
  .hb-quote-leaf { left: -6%; width: 9%; }
}