/* Sebastián Berino — estilos propios de la página principal */

section[id] { scroll-margin-top: 24px; }

/* ---------- Portada: el edificio ---------- */

.portada3 {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(100svh, 800px);
  background: linear-gradient(180deg, #021C13 0%, #053825 48%, #0A5A3C 100%);
  color: var(--sobre-bosque);
}
.portada3, .entrada {
  --alto: 42px; --ancho-f: 150px; --prof: 16px; --sube: 10px;
  --losa: 4px; --baranda: 12px; --nucleo: 30px; --u: 1.1px;
  --losa-frente: #CFDED4; --losa-lado: #8FA99A;
}
@media (min-width: 900px) { .portada3, .entrada { --alto: 54px; --ancho-f: 252px; --prof: 26px; --sube: 17px; --losa: 6px; --baranda: 16px; --nucleo: 40px; --u: 1.8px; } }

.portada3 .cabecera { position: relative; z-index: 3; }
.portada3-grilla { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: space-between; padding-top: clamp(12px, 3vh, 40px); }
.portada3-texto { max-width: 640px; }
.portada3 h1 { font-size: clamp(2.25rem, 4vw, 3.4rem); line-height: 1; }
.linea { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.linea > span { display: block; }
.portada3 .portada-bajada { margin-top: 18px; max-width: 30em; font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.portada3 .portada-acciones { margin-top: 26px; }
.portada3-pista { display: none; margin-top: 30px; color: var(--sobre-bosque-suave); font-size: .98rem; align-items: center; gap: 10px; }
.solo-ancho { display: none; }
@media (min-width: 900px) { .solo-ancho { display: inline; } }
.portada3-pista::before { content: ""; width: 9px; height: 12px; background: var(--luz); }
@media (min-width: 900px) {
  .portada3-grilla { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 56px); align-content: stretch; align-items: end; }
  .portada3-texto { align-self: center; padding-bottom: 90px; }
  .portada3-pista { display: flex; }
}

.escena { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 1; pointer-events: none; }
.escena svg { width: 100%; height: 100%; overflow: visible; }
.estrella { fill: #EAF3ED; }
.cordillera-lejos { fill: #0B5239; }
.cordillera-cerca { fill: #07402B; }
.nieve { fill: rgba(234, 243, 237, .16); }
.ciudad-lejos rect { fill: #053222; }
.ciudad-lejos .punto { fill: var(--luz); opacity: .55; }
.torre-cuerpo { fill: #04281B; stroke: rgba(234, 243, 237, .14); stroke-width: 1; }
.torre .vent { fill: rgba(234, 243, 237, .07); }
.torre .luz { fill: var(--luz); opacity: .8; }
.suelo { fill: var(--bosque-hondo); }

/* La torre */
.edificio { position: relative; align-self: end; justify-self: start; width: 100%; max-width: 380px; }
@media (min-width: 900px) { .edificio { justify-self: end; max-width: none; width: auto; } }
@media (min-width: 1200px) { .edificio { min-width: 560px; } }

.niveles-caja { position: relative; }
.niveles { list-style: none; margin: 0; padding: 0; }
.nivel { display: flex; align-items: center; height: var(--alto); }
.nivel > a { display: flex; align-items: center; height: 100%; flex: 1; text-decoration: none; color: inherit; outline-offset: 2px; }

.fachada {
  position: relative; flex: none; display: block; width: var(--ancho-f); height: var(--alto);
  background: linear-gradient(90deg, #031E14 0 var(--nucleo), #07301F var(--nucleo));
  box-shadow: inset 1px 0 0 rgba(234, 243, 237, .18);
}
.fachada::after {
  content: ""; position: absolute; left: 100%; top: calc(-1 * var(--sube)); width: var(--prof); height: calc(100% + var(--sube));
  background: #021A12;
  clip-path: polygon(0 var(--sube), 100% 0, 100% calc(100% - var(--sube)), 0 100%);
}
.con-seccion .fachada::after { background: #063826; }

/* Ventanales de piso a cielo. ::before = luces que ya están prendidas; ::after = el resto, que se prende al elegir el piso */
.vidrios { position: absolute; left: calc(var(--nucleo) + 5px); right: 5px; top: 4px; bottom: calc(var(--losa) + 2px); transition: filter .35s ease; }
.vidrios::before, .vidrios::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.vidrios { background: linear-gradient(90deg, #124F3B 0 17%, transparent 17% 18.5%, #124F3B 18.5% 36%, transparent 36% 44%, #124F3B 44% 60%, transparent 60% 68%, #124F3B 68% 83%, transparent 83% 84.5%, #124F3B 84.5% 100%); }
.vidrios::before { background: linear-gradient(90deg, transparent 0 44%, var(--luz) 44% 60%, transparent 60% 68%, var(--luz) 68% 83%, transparent 83% 84.5%, var(--luz) 84.5% 100%); }
.vidrios::after { background: linear-gradient(90deg, var(--luz) 0 17%, transparent 17% 18.5%, var(--luz) 18.5% 36%, transparent 36%); }
.nivel:nth-child(even) .vidrios { background: linear-gradient(90deg, #124F3B 0 20%, transparent 20% 28%, #124F3B 28% 46%, transparent 46% 47.5%, #124F3B 47.5% 65%, transparent 65% 73%, #124F3B 73% 100%); }
.nivel:nth-child(even) .vidrios::before { background: linear-gradient(90deg, transparent 0 28%, var(--luz) 28% 46%, transparent 46% 47.5%, var(--luz) 47.5% 65%, transparent 65%); }
.nivel:nth-child(even) .vidrios::after { background: linear-gradient(90deg, var(--luz) 0 20%, transparent 20% 73%, var(--luz) 73% 100%); }
.nivel:nth-child(4) .vidrios::before { background: linear-gradient(90deg, var(--luz) 0 20%, transparent 20% 73%, var(--luz) 73% 100%); }
.nivel:nth-child(4) .vidrios::after { background: linear-gradient(90deg, transparent 0 28%, var(--luz) 28% 46%, transparent 46% 47.5%, var(--luz) 47.5% 65%, transparent 65%); }
.nivel:nth-child(7) .vidrios::before { background: linear-gradient(90deg, var(--luz) 0 17%, transparent 17% 18.5%, var(--luz) 18.5% 36%, transparent 36% 44%, var(--luz) 44% 60%, transparent 60%); }
.nivel:nth-child(7) .vidrios::after { background: linear-gradient(90deg, transparent 0 68%, var(--luz) 68% 83%, transparent 83% 84.5%, var(--luz) 84.5% 100%); }
.con-seccion .vidrios::before { opacity: .88; }
.con-seccion > a:hover .vidrios::before, .con-seccion > a:focus-visible .vidrios::before, .con-seccion.actual .vidrios::before,
.con-seccion > a:hover .vidrios::after, .con-seccion > a:focus-visible .vidrios::after, .con-seccion.actual .vidrios::after { opacity: 1; }
.con-seccion > a:hover .vidrios, .con-seccion > a:focus-visible .vidrios, .con-seccion.actual .vidrios { filter: drop-shadow(0 0 7px rgba(244, 214, 122, .6)); }

/* Terraza curva: bandeja de borde redondeado con baranda de vidrio, que entra y sale piso a piso como una onda */
.nivel { --onda: 0; }
.nivel:nth-child(even) { --onda: .5; }
.nivel:nth-child(4n+3) { --onda: 1; }
.terraza {
  position: absolute; z-index: 1; bottom: 0; height: calc(var(--baranda) + var(--losa) + 2px);
  left: calc(var(--nucleo) - 5px + var(--onda) * 14 * var(--u));
  right: calc(var(--prof) * -.9 + var(--onda) * var(--prof) * .8);
  border-radius: 3px 3px 11px 11px;
  box-shadow: inset 0 1px 0 rgba(234, 243, 237, .55), inset 1px 0 0 rgba(234, 243, 237, .3), inset -1px 0 0 rgba(234, 243, 237, .3);
  background:
    linear-gradient(var(--losa-frente), var(--losa-frente)) bottom / 100% calc(var(--losa) + 2px) no-repeat,
    linear-gradient(rgba(126, 200, 228, .22), rgba(126, 200, 228, .22)) top / 100% var(--baranda) no-repeat;
}
/* Jardineras en algunas terrazas */
.nivel:nth-child(1) .terraza::before, .nivel:nth-child(3) .terraza::before,
.nivel:nth-child(6) .terraza::before, .nivel:nth-child(8) .terraza::before {
  content: ""; position: absolute; left: var(--planta, 62%); bottom: calc(var(--losa) + var(--baranda) - 6px); width: 28px; height: 10px;
  background:
    radial-gradient(circle at 20% 100%, #1F7A52 0 5px, transparent 5.6px),
    radial-gradient(circle at 54% 100%, #2FA36B 0 7px, transparent 7.6px),
    radial-gradient(circle at 84% 100%, #1F7A52 0 4.5px, transparent 5px);
}
.nivel:nth-child(3) .terraza::before { --planta: 14%; }
.nivel:nth-child(6) .terraza::before { --planta: 70%; }
.nivel:nth-child(8) .terraza::before { --planta: 30%; }

.rotulo { display: flex; align-items: baseline; gap: 8px; margin-left: calc(var(--prof) + 8px); min-width: 0; transition: transform .25s ease; }
.rotulo em { flex: none; min-width: 1.5em; font: 600 1.05rem/1 var(--titulos); font-style: normal; color: var(--luz); text-align: right; font-variant-numeric: tabular-nums; }
.rotulo b { font: 600 1.02rem/1.15 var(--titulos); letter-spacing: -0.01em; white-space: nowrap; }
.rotulo small { display: none; color: var(--sobre-bosque-suave); font-size: .9rem; white-space: nowrap; }
.con-seccion > a:hover .rotulo, .con-seccion.actual .rotulo { transform: translateX(5px); }
@media (min-width: 900px) {
  .rotulo { gap: 14px; margin-left: calc(var(--prof) + 20px); }
  .rotulo em { font-size: 1.25rem; }
  .rotulo b { font-size: 1.2rem; }
}
@media (min-width: 1200px) { .rotulo small { display: inline; } }

.azotea { position: relative; display: flex; align-items: flex-end; height: calc(var(--alto) + 14px); text-decoration: none; color: inherit; }
/* Losa de techo: cara superior, canto del frente y canto del costado */
.azotea-techo {
  flex: none; width: calc(var(--ancho-f) + var(--prof)); height: calc(var(--sube) + var(--losa));
  background:
    linear-gradient(var(--losa-lado), var(--losa-lado)) right bottom / var(--prof) var(--losa) no-repeat,
    linear-gradient(to bottom right, #0E6846 50%, var(--losa-lado) 50%) right top / var(--prof) var(--sube) no-repeat,
    linear-gradient(#0E6846, #0E6846) left top / 100% var(--sube) no-repeat,
    var(--losa-frente);
  clip-path: polygon(var(--prof) 0, 100% 0, 100% var(--losa), var(--ancho-f) 100%, 0 100%, 0 var(--sube));
}
/* Quincho con pérgola y guirnalda de luces */
.azotea-pergola {
  position: absolute; left: calc(var(--ancho-f) * .38); bottom: calc(var(--losa) + var(--sube) * .5);
  width: calc(var(--ancho-f) * .5); height: calc(var(--alto) * .5); border-top: 2px solid var(--losa-frente);
  background:
    linear-gradient(var(--losa-frente), var(--losa-frente)) left / 2px 100% no-repeat,
    linear-gradient(var(--losa-frente), var(--losa-frente)) right / 2px 100% no-repeat,
    linear-gradient(var(--losa-lado), var(--losa-lado)) 56% 0 / 2px 100% no-repeat,
    radial-gradient(ellipse at 50% 0, rgba(244, 214, 122, .42), transparent 72%);
}
.azotea-pergola::after {
  content: ""; position: absolute; left: 5px; right: 5px; top: 3px; height: 4px;
  background: radial-gradient(circle, var(--luz) 0 1.3px, transparent 1.8px) 0 0 / 9px 4px repeat-x;
  filter: drop-shadow(0 0 3px var(--luz)); animation: baliza 3.2s ease-in-out infinite;
}
.azotea-pergola::before {
  content: ""; position: absolute; right: calc(100% + 5px); bottom: 0; width: 30px; height: 13px;
  background:
    radial-gradient(circle at 24% 100%, #2B9562 0 7px, transparent 7.6px),
    radial-gradient(circle at 62% 100%, #43BD81 0 10px, transparent 10.6px),
    radial-gradient(circle at 90% 100%, #2B9562 0 5px, transparent 5.6px);
}
.azotea-baranda {
  position: absolute; left: 0; bottom: var(--losa); width: var(--ancho-f); height: 8px;
  background:
    linear-gradient(rgba(234, 243, 237, .62), rgba(234, 243, 237, .62)) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(234, 243, 237, .26) 0 1px, transparent 1px 21px),
    rgba(170, 222, 198, .14);
}
@keyframes baliza { 50% { opacity: .45; } }
.azotea .rotulo { margin-left: 12px; margin-bottom: 2px; padding: 9px 16px; border-radius: 999px; background: var(--luz); color: var(--bosque-hondo); align-items: center; }
.azotea .rotulo em { color: var(--bosque-hondo); min-width: 0; font-size: .82rem; font-weight: 500; }
.azotea .rotulo b { font-size: .98rem; }
@media (max-width: 899px) { .azotea .rotulo em { display: none; } }
@media (min-width: 900px) { .azotea .rotulo { margin-left: 20px; } }

.hueco { position: absolute; left: calc(var(--nucleo) * .36); top: 0; bottom: 0; width: calc(var(--nucleo) * .4); background: #021710; }
.cabina {
  position: absolute; left: calc(var(--nucleo) * .36); top: 6px; width: calc(var(--nucleo) * .4); height: calc(var(--alto) - 12px); border-radius: 2px;
  background: var(--luz); box-shadow: 0 0 14px rgba(244, 214, 122, .8);
  transition: transform .7s cubic-bezier(.3, .8, .2, 1);
}
/* Planta baja: acceso vidriado con marquesina y árboles en la vereda */
.base {
  position: relative; width: var(--ancho-f); height: 34px;
  background:
    linear-gradient(var(--losa-frente), var(--losa-frente)) calc(var(--nucleo) - 4px) 7px / calc(100% - var(--nucleo) + 4px) 3px no-repeat,
    linear-gradient(var(--luz), var(--luz)) 62% 100% / 15px 22px no-repeat,
    repeating-linear-gradient(90deg, rgba(244, 214, 122, .42) 0 15px, #031E14 15px 17px) calc(var(--nucleo) + 5px) 100% / calc(100% - var(--nucleo) - 10px) 22px no-repeat,
    #031E14;
  box-shadow: inset 1px 0 0 rgba(234, 243, 237, .18);
}
.base::after { content: ""; position: absolute; left: 100%; top: calc(-1 * var(--sube)); width: var(--prof); height: calc(100% + var(--sube)); background: #021A12; clip-path: polygon(0 var(--sube), 100% 0, 100% 100%, 0 100%); }
.base::before {
  content: ""; position: absolute; left: 3px; bottom: 0; width: 24px; height: 11px;
  background:
    radial-gradient(circle at 26% 100%, #2B9562 0 7px, transparent 7.6px),
    radial-gradient(circle at 70% 100%, #1F7A52 0 9px, transparent 9.6px);
}
.arbol {
  position: absolute; bottom: 0; left: calc(100% + var(--prof) + 12px); width: 38px; height: 60px;
  background:
    radial-gradient(circle at 34% 30%, #2FA36B 0 9px, transparent 9.6px),
    radial-gradient(circle at 66% 24%, #238A5C 0 11px, transparent 11.6px),
    radial-gradient(circle at 30% 50%, #1A6E49 0 11px, transparent 11.6px),
    radial-gradient(circle at 68% 50%, #1F7A52 0 12px, transparent 12.6px),
    radial-gradient(circle at 50% 38%, #1F7A52 0 14px, transparent 14.6px),
    linear-gradient(#0A3A27, #0A3A27) 50% 100% / 2px 50% no-repeat;
}
.arbol { transform-origin: 0 100%; }
.arbol-2 { left: calc(100% + var(--prof) + 54px); transform: scale(.68); opacity: .9; }
@media (min-width: 900px) {
  .arbol { left: calc(100% + var(--prof) + 18px); transform: scale(1.25); }
  .arbol-2 { left: calc(100% + var(--prof) + 80px); transform: scale(.85); }
}

/* ---------- Entrar al piso: la cámara se mete por la ventana del piso elegido ---------- */

.entrada { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; overflow: hidden; color: var(--sobre-bosque); }
.entrada.activa { visibility: visible; pointer-events: auto; }
.entrada-fondo { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #021C13 0%, #053825 48%, #0A5A3C 100%); }
.entrada-torre { position: absolute; left: 0; top: 0; }
.entrada-torre .edificio { position: absolute; margin: 0; max-width: none; min-width: 0; will-change: transform; }
.entrada-luz { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, #FFF7DC 0%, var(--luz) 58%, #E7BB58 100%); }
.entrada-letrero { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; text-align: center; opacity: 0; color: var(--bosque-hondo); }
.entrada-letrero b { display: block; font: 600 clamp(5rem, 18vw, 10rem)/1 var(--titulos); letter-spacing: -0.04em; }
.entrada-letrero span { display: block; margin-top: 10px; font: 500 clamp(1.1rem, 2.4vw, 1.5rem) var(--titulos); }

/* ---------- Marca de piso en cada sección ---------- */

.piso-marca { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 600 1rem/1 var(--titulos); color: var(--esmeralda); }
.piso-marca::before { content: ""; width: 10px; height: 13px; background: var(--luz); box-shadow: 0 0 0 1px var(--bosque); }
.banda-honda .piso-marca, .cierre2 .piso-marca { color: var(--luz); }
.banda-honda .piso-marca::before, .cierre2 .piso-marca::before { box-shadow: none; }
.banda-honda .encabezado p { color: var(--sobre-bosque-suave); }

/* ---------- Casos reales ---------- */

.casos-barra { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro {
  padding: .6rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--linea); background: transparent;
  font: 500 .96rem/1.2 var(--texto); color: var(--tinta); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.filtro:hover { border-color: var(--bosque); }
.filtro[aria-pressed="true"] { background: var(--bosque); border-color: var(--bosque); color: var(--sobre-bosque); }
.casos-aviso { margin-bottom: 24px; padding: 14px 18px; border-radius: 10px; background: #FBF3D9; color: #4E3F0B; font-size: .96rem; }
.casos-lista { display: grid; gap: 20px; }
@media (min-width: 900px) { .casos-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.casos-vacio { padding: 40px 0; color: var(--tinta-suave); }

.caso { display: grid; gap: 20px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--blanco); border: 1px solid var(--linea); }
.caso-cabeza { display: flex; gap: 14px; align-items: center; }
.caso-foto { flex: none; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--bosque); color: var(--luz); font: 600 1.25rem/1 var(--titulos); }
.caso-nombre { font: 600 1.25rem/1.2 var(--titulos); letter-spacing: -0.01em; }
.caso-dato { margin-top: 3px; color: var(--tinta-suave); font-size: .96rem; }
.caso-etiqueta { margin-left: auto; align-self: flex-start; padding: .25rem .6rem; border-radius: 6px; background: #FBF3D9; color: #6B5510; font-size: .8rem; font-weight: 600; }
.caso dl { margin: 0; display: grid; gap: 16px; }
.caso dt { font-weight: 600; font-size: .9rem; color: var(--esmeralda); }
.caso dd { margin: 4px 0 0; color: var(--tinta-suave); }
.caso-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.caso-chips li { padding: .32rem .75rem; border-radius: 999px; background: #E2EEE6; color: var(--bosque); font-size: .87rem; font-weight: 500; }
.caso-abrir { justify-self: start; padding: 0; border: 0; background: none; font: 600 .96rem var(--texto); color: var(--bosque); cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }

/* Modo reunión */
.reunion { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; background: #021C13; color: var(--sobre-bosque); }
.reunion.abierta { display: flex; }
.reunion-barra { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--margen); }
.reunion-cuenta { font: 600 1.05rem var(--titulos); font-variant-numeric: tabular-nums; color: var(--sobre-bosque-suave); }
.reunion-nav { display: flex; gap: 10px; align-items: center; }
.reunion-boton { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(234, 243, 237, .28); background: transparent; color: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.reunion-boton:hover { background: rgba(234, 243, 237, .1); }
.reunion-cuerpo { flex: 1; overflow: auto; display: grid; place-items: center; padding: 8px var(--margen) 32px; }
.reunion .caso { width: 100%; max-width: 920px; gap: 28px; padding: clamp(24px, 4.5vw, 56px); background: rgba(234, 243, 237, .05); border-color: rgba(234, 243, 237, .14); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.reunion .caso-foto { width: 84px; height: 84px; font-size: 1.8rem; }
.reunion .caso-nombre { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.reunion .caso-dato, .reunion .caso dd { color: var(--sobre-bosque-suave); }
.reunion .caso dt { color: var(--luz); font-size: .95rem; }
.reunion .caso dl { gap: 22px; }
.reunion .caso-chips li { background: rgba(244, 214, 122, .14); color: var(--luz); font-size: 1rem; }
.reunion .caso-abrir { display: none; }
@media (min-width: 900px) { .reunion .caso dl { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* ---------- Mapa de comunas ---------- */

.mapa-grilla { display: grid; gap: 36px; }
@media (min-width: 900px) { .mapa-grilla { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }
.mapa { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 500px; }
.comuna {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px;
  display: grid; place-items: center; background: rgba(234, 243, 237, .07); color: rgba(234, 243, 237, .55);
  font: 500 .62rem/1 var(--texto); letter-spacing: .02em;
}
@media (min-width: 600px) { .comuna { font-size: .72rem; } }
.comuna.con-casos { background: var(--luz); color: var(--bosque-hondo); font-weight: 700; cursor: pointer; }
.comuna.con-casos:hover { background: #F8E19A; }
.comuna.con-casos[aria-pressed="true"] { outline: 3px solid var(--sobre-bosque); outline-offset: 2px; }
.comuna b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--sobre-bosque); color: var(--bosque-hondo); font-size: .72rem; }
.comuna[data-nivel]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; height: 4px; width: 6px; transform: translateX(-50%);
  background: radial-gradient(circle, currentColor 0 1.8px, transparent 2.2px) 0 0 / 6px 4px repeat-x;
}
.comuna[data-nivel="2"]::after { width: 12px; }
.comuna[data-nivel="3"]::after { width: 18px; }
.comuna[data-nivel] { padding-bottom: 7px; }
.mapa-pie { margin-top: 18px; font-size: .88rem; color: var(--sobre-bosque-suave); }
.mapa-regiones { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mapa-regiones:empty { display: none; }
.mapa-regiones button { padding: .5rem .95rem; border-radius: 999px; border: 0; background: var(--luz); color: var(--bosque-hondo); font: 600 .9rem var(--texto); cursor: pointer; }
.mapa-detalle h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mapa-detalle > p { margin-top: 10px; color: var(--sobre-bosque-suave); }
.mapa-casos { list-style: none; margin: 24px 0 0; padding: 0; display: grid; }
.mapa-casos button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; padding: 18px 0; text-align: left;
  border: 0; border-top: 1px solid var(--linea-bosque); background: none; color: inherit; font: inherit; cursor: pointer;
}
.mapa-casos li:last-child button { border-bottom: 1px solid var(--linea-bosque); }
.mapa-casos b { font: 600 1.1rem var(--titulos); }
.mapa-casos span { color: var(--sobre-bosque-suave); font-size: .95rem; text-align: right; }
.mapa-casos button:hover b { color: var(--luz); }

/* ---------- Cinta de ciudades ---------- */

.cinta { overflow: hidden; margin-top: clamp(48px, 7vw, 88px); padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cinta-pista { display: flex; width: max-content; animation: cinta 46s linear infinite; }
.cinta-grupo { display: flex; align-items: center; flex: none; }
.cinta-grupo span { font: 600 clamp(2.4rem, 6vw, 4.6rem)/1.1 var(--titulos); letter-spacing: -0.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px var(--bosque); }
.cinta-grupo span.llena { color: var(--bosque); -webkit-text-stroke: 0; }
.cinta-grupo i { flex: none; width: 12px; height: 16px; margin-inline: clamp(22px, 3vw, 44px); background: var(--luz); box-shadow: 0 0 0 1px var(--bosque); }
@keyframes cinta { to { transform: translateX(-50%); } }
.cobertura-nota { margin-top: 22px; color: var(--tinta-suave); max-width: 46em; }

/* ---------- Reseñas ---------- */

.resenas-claro { background: var(--blanco); }
.resenas-claro .invitacion p { color: var(--tinta-suave); }
.resenas-claro .resena-cita blockquote { color: var(--bosque); }
.resenas-claro .resena-cita figcaption { color: var(--tinta-suave); }
.formas { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 14px; }
.forma a {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; height: 100%;
  padding: 26px 28px; border-radius: 18px; text-decoration: none; background: var(--bosque); color: var(--sobre-bosque);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.forma a:hover { background: #0A5338; transform: translateY(-4px); box-shadow: 0 22px 36px -22px rgba(4, 40, 27, .6); }
.forma svg { grid-row: span 2; width: 44px; height: 44px; fill: none; stroke: var(--luz); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.forma b { font: 600 1.25rem/1.2 var(--titulos); }
.forma span { color: var(--sobre-bosque-suave); font-size: .98rem; }
@media (min-width: 860px) { .formas { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Azotea: cierre ---------- */

.cierre2 { position: relative; overflow: hidden; background: linear-gradient(180deg, #06402B 0%, #053322 100%); color: var(--sobre-bosque); padding-block: clamp(96px, 14vw, 180px); }
.cierre2 h2 { font-size: clamp(2.6rem, 7.6vw, 6.2rem); line-height: .98; letter-spacing: -0.035em; max-width: 11em; }
.cierre2 p.cierre2-texto { margin-top: 26px; max-width: 30em; font-size: 1.2rem; color: var(--sobre-bosque-suave); }
.cierre2 .boton { margin-top: 36px; min-height: 60px; padding-inline: 2rem; font-size: 1.08rem; }
.cierre2-datos { list-style: none; margin: 44px 0 0; padding: 24px 0 0; border-top: 1px solid var(--linea-bosque); display: grid; gap: 10px; color: var(--sobre-bosque-suave); max-width: 46em; }
.cierre2-datos li { display: flex; gap: 12px; align-items: baseline; }
.cierre2-datos li::before { content: ""; flex: none; width: 8px; height: 10px; background: var(--luz); }
@media (min-width: 860px) { .cierre2-datos { grid-template-columns: repeat(3, auto); justify-content: space-between; } }
.pie { padding-bottom: 130px; }

/* ---------- Panel del ascensor (fijo abajo) ---------- */

.panel {
  position: fixed; left: 50%; bottom: 14px; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px;
  width: calc(100% - 24px); max-width: 400px; padding: 8px;
  background: rgba(4, 40, 27, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(234, 243, 237, .14); border-radius: 22px;
  box-shadow: 0 18px 40px -16px rgba(2, 20, 13, .8);
  transform: translate(-50%, 170%); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  color: var(--sobre-bosque);
}
.panel.visible { transform: translate(-50%, 0); }
.panel-nombre { display: block; width: 100%; padding-top: 2px; text-align: center; font-size: .86rem; white-space: nowrap; color: var(--sobre-bosque-suave); text-decoration: none; }
.panel-nombre b { color: var(--sobre-bosque); font-weight: 600; }
.panel-botones { position: relative; display: flex; gap: 4px; }
.panel-ind { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; background: var(--luz); opacity: 0; }
.panel-boton {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(234, 243, 237, .22); text-decoration: none;
  font: 600 .95rem/1 var(--titulos); color: var(--sobre-bosque); transition: color .2s ease, border-color .2s ease;
}
.panel-boton:hover { border-color: var(--luz); }
.panel-boton.activo { color: var(--bosque-hondo); border-color: transparent; }
.panel .boton { min-height: 34px; padding: .4rem .85rem; font-size: .9rem; white-space: nowrap; }
@media (min-width: 720px) {
  .panel { flex-wrap: nowrap; width: auto; max-width: none; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; }
  .panel-nombre { width: auto; min-width: 168px; padding: 0; text-align: left; font-size: .92rem; }
  .panel-boton { width: 38px; height: 38px; }
  .panel .boton { min-height: 38px; padding: .5rem 1.1rem; font-size: .95rem; }
}

/* ---------- Puertas del ascensor ---------- */

.puertas { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; overflow: hidden; display: grid; place-items: center; }
.puertas.activas { visibility: visible; pointer-events: auto; }
.puerta { position: absolute; top: 0; bottom: 0; width: 50.2%; background: linear-gradient(180deg, #064330, #04281B); }
.puerta-izq { left: 0; box-shadow: inset -2px 0 0 rgba(244, 214, 122, .55); }
.puerta-der { right: 0; box-shadow: inset 2px 0 0 rgba(244, 214, 122, .55); }
.puertas-letrero { position: relative; z-index: 1; text-align: center; white-space: nowrap; }
.puertas-letrero b { display: block; font: 600 clamp(5rem, 18vw, 10rem)/1 var(--titulos); letter-spacing: -0.04em; color: var(--luz); }
.puertas-letrero span { display: block; margin-top: 10px; font: 500 clamp(1.1rem, 2.4vw, 1.5rem) var(--titulos); color: var(--sobre-bosque); }

@media (prefers-reduced-motion: reduce) {
  .cinta-pista, .azotea-pergola::after { animation: none; }
  .panel, .cabina, .vidrios, .vidrios::before, .vidrios::after, .forma a, .rotulo { transition: none; }
}
