/* Inmobiliaria Berenguer · concepto "La torre de luces" (16/11/2026). La torre blanca del logo sobre azul noche: cada
   ventana es una propiedad y se prende cuando la mirás. Firma "Prender": luz cálida que sube de 0 a 1, ease-out fuerte. */
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("fonts/saira-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("fonts/mulish-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("fonts/mulish-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --noche: #0b1a5a; --hondo: #07103a; --azul: #1f3c9e; --blanco: #ffffff; --niebla: #eef0f6; --luz: #ffd479; --pizarra: #4a5170;
  --margen: clamp(20px, 6vw, 96px); --gap: clamp(14px, 2vw, 28px); --sec: clamp(88px, 10vw, 150px);
  --ease-out-ui: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --fx-acento: #0b1a5a; --fx-oscuro: #07103a; --fx-claro: #eef0f6;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--niebla); color: var(--hondo); font: 400 17px/1.6 "Mulish", system-ui, sans-serif; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1; margin: 0; }
h2 { font-size: clamp(38px, 5vw, 66px); text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.sep { margin-inline: .2em; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--noche); color: var(--blanco); }
.saltar:focus { top: 12px; }
.franja { background: var(--hondo); color: var(--niebla); font-size: 14px; text-align: center; padding: 8px var(--margen); }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--blanco); color: var(--noche); font: 700 16px/1 "Mulish", sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.boton:hover { background: var(--luz); }
.boton-chico { min-height: 44px; padding: 0 18px; }
.boton-borde { background: transparent; color: var(--blanco); outline: 2px solid var(--blanco); outline-offset: -2px; }
.boton-borde:hover { background: var(--blanco); color: var(--noche); }
.enlace { color: var(--noche); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--azul); }
.enlace:hover { text-decoration-color: var(--noche); }

.tb-p, .tb-v { fill: currentColor; }
.cab { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 8px var(--margen); background: var(--noche); color: var(--blanco); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mk-cab { width: 30px; }
.marca-n { display: grid; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: .95; text-transform: uppercase; letter-spacing: .02em; }
.marca-n small { font: 400 15px/1 var(--display); text-transform: none; letter-spacing: .04em; }
.cab nav { margin-left: auto; }
.cab nav ul { display: flex; gap: 22px; }
.cab nav a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 0; }
.cab nav a:hover { color: var(--luz); }
@media (max-width: 760px) { .cab nav { display: none; } .cab .boton { margin-left: auto; } }

/* Hero: la torre de noche */
.hero { display: grid; background: var(--noche); color: var(--blanco); overflow: hidden; min-height: calc(100svh - 96px); }
.hero-txt { display: grid; gap: 20px; align-content: center; padding: clamp(32px, 5vw, 64px) var(--margen) 24px; }
.hero h1 { font-size: clamp(54px, 11vw, 168px); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 .palabra { display: inline-block; white-space: nowrap; }
.hero h1 .letra { display: inline-block; transform-origin: 50% 100%; }
.hero-sub { font: 400 22px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--luz); }
.hero-bajada { font-size: clamp(18px, 1.5vw, 21px); max-width: 44ch; color: #d6dbee; }
.hero-acc { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-escena { position: relative; height: clamp(320px, 90vw, 460px); color: var(--blanco); }
.mk-hero { position: absolute; left: 50%; top: 6%; height: 88%; width: auto; translate: -50% 0; }
#b3d { position: absolute; inset: 0; width: 100%; height: 100%; }
html.b3d-on .mk-hero { visibility: hidden; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hero-txt { padding-bottom: clamp(48px, 7vw, 90px); } .hero-escena { height: auto; min-height: 560px; } }

/* Cartera: ventanas */
.cartera { padding: var(--sec) var(--margen); overflow-x: clip; }
.cartera-cab { display: grid; gap: 16px; margin-bottom: 40px; }
.cartera-cab > p { max-width: 52ch; color: var(--pizarra); font-size: 18px; }
.filtros { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; margin-top: 8px; }
.filtros fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filtros legend { width: 100%; font-weight: 700; font-size: 15px; color: var(--pizarra); margin-bottom: 6px; }
.filtros label { position: relative; }
.filtros input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.filtros label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--blanco); font-weight: 700; font-size: 15px; transition: background-color .15s ease, color .15s ease; }
.filtros input:checked + span { background: var(--noche); color: var(--blanco); }
.filtros input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.filtros-n { font-size: 16px; color: var(--pizarra); padding-bottom: 10px; }
.filtros-n strong { font-family: var(--display); font-size: 22px; color: var(--noche); }
.fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.ficha { display: grid; grid-template-rows: auto auto 1fr auto auto; padding: 10px 10px 16px; background: var(--noche); color: var(--blanco); }
.ficha[hidden] { display: none; }
.f-foto { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--hondo); }
.f-foto img { width: 100%; height: 100%; object-fit: cover; }
.f-luz { position: absolute; inset: 0; background: rgb(255 212 121 / 0); pointer-events: none; }
.f-dir { padding: 14px 6px 0; font-size: 30px; font-weight: 600; }
.f-sub { padding: 4px 6px 0; color: #d6dbee; font-size: 15px; }
.f-zona { display: block; font-weight: 700; color: var(--blanco); }
.f-precio { padding: 10px 6px 0; font: 600 24px/1 var(--display); color: var(--luz); }
.f-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 6px 0; }
.ficha .enlace { color: var(--blanco); text-decoration-color: var(--luz); }
.fx-ver-360 { min-height: 44px; padding: 0 14px; border: 0; background: var(--azul); color: var(--blanco); font: 700 15px/1 "Mulish", sans-serif; cursor: pointer; }
.fx-ver-360:hover { background: var(--blanco); color: var(--noche); }
.sin-fichas { margin-top: 24px; font-size: 18px; }

/* Panel: el portero eléctrico */
.sistema { display: grid; gap: clamp(28px, 4vw, 48px); padding: var(--sec) var(--margen); background: var(--blanco); }
.sis-cab { display: grid; gap: 16px; align-content: start; }
.sis-cab > p { max-width: 52ch; color: var(--pizarra); font-size: 18px; }
.portero { padding: clamp(18px, 2.4vw, 28px); background: var(--hondo); color: var(--blanco); }
.po-rotulo { font-size: 15px; color: #d6dbee; margin-bottom: 16px; }
.po-rotulo strong { color: var(--luz); margin-right: 6px; }
.po-lista { display: grid; gap: 8px; }
.po-b { display: grid; grid-template-columns: 18px 56px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 12px 14px; background: var(--noche); }
.po-luz { width: 14px; height: 14px; border-radius: 50%; background: var(--luz); }
.po-k2 .po-luz { background: #9db1ff; } .po-k3 .po-luz { background: var(--niebla); }
.po-d { font: 600 22px/1 var(--display); }
.po-txt { display: grid; gap: 2px; font-size: 15px; }
.po-q { font-weight: 700; }
.po-e { grid-column: 3; justify-self: start; padding: 3px 10px; background: var(--luz); color: var(--hondo); font-weight: 700; font-size: 14px; }
.po-k2 .po-e { background: #9db1ff; } .po-k3 .po-e { background: var(--niebla); }
.po-sug { margin-top: 14px; font-size: 16px; color: #d6dbee; }
.po-sug strong { color: var(--luz); }
.po-nota { margin-top: 8px; font-size: 14px; color: #b9c1e0; }
@media (min-width: 1000px) { .sistema { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

/* Contacto */
.contacto { display: grid; gap: 28px; padding: var(--sec) var(--margen); background: var(--noche); color: var(--blanco); }
.contacto-txt { display: grid; gap: 22px; }
.contacto-frase { font-size: 19px; max-width: 40ch; color: #d6dbee; }
.contacto-datos { display: grid; gap: 4px; width: min(640px, 100%); }
.contacto-datos li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; }
.contacto-datos li > span:first-child { font-weight: 700; color: var(--luz); }
.contacto .enlace { color: var(--blanco); text-decoration-color: var(--luz); overflow-wrap: anywhere; }
.mk-contacto { width: clamp(110px, 14vw, 180px); color: var(--blanco); justify-self: end; }
@media (min-width: 900px) { .contacto { grid-template-columns: 1fr auto; align-items: end; } }

.pie { display: grid; gap: 8px; padding: 48px var(--margen); background: var(--hondo); color: #d6dbee; font-size: 15px; }
.pie-marca { display: flex; align-items: center; gap: 12px; color: var(--blanco); font-weight: 700; }
.mk-pie { width: 24px; }
.pie-legal a { color: var(--blanco); }
.fx-360-panel { background: var(--hondo); color: var(--blanco); }

/* Movimiento "Prender". Lo oculto para animar lo oculta el JS. */
html.anim .mk-hero .tb-v, html.anim .mk-contacto .tb-v { fill: rgb(255 255 255 / .18); }
html.anim.listo .mk-hero .tb-v { fill: var(--luz); transition: fill .4s ease; }
html.anim.listo .mk-hero .tb-v0 { transition-delay: .3s; } html.anim.listo .mk-hero .tb-v1 { transition-delay: .4s; } html.anim.listo .mk-hero .tb-v2 { transition-delay: .5s; } html.anim.listo .mk-hero .tb-v3 { transition-delay: .6s; }
html.anim.listo .mk-hero .tb-v4 { transition-delay: .7s; } html.anim.listo .mk-hero .tb-v5 { transition-delay: .8s; } html.anim.listo .mk-hero .tb-v6 { transition-delay: .9s; } html.anim.listo .mk-hero .tb-v7 { transition-delay: 1s; }
html.anim .mk-contacto.visto .tb-v { fill: var(--luz); transition: fill .5s ease .2s; }
html.anim .ficha .f-foto img { opacity: 0; scale: 1.06; }
html.anim .ficha.visto .f-luz { animation: prender .9s ease var(--d, 0ms) both; }
html.anim .ficha.visto .f-foto img { opacity: 1; scale: 1; transition: opacity .5s ease calc(var(--d, 0ms) + 200ms), scale .9s var(--ease-out-ui) calc(var(--d, 0ms) + 200ms); }
@keyframes prender { 0% { background: rgb(255 212 121 / 0); } 30% { background: rgb(255 212 121 / .85); } 100% { background: rgb(255 212 121 / 0); } }
html.anim .portero.vivo .po-luz { background: var(--pizarra); }
html.anim .portero.vivo .po-e { visibility: hidden; }
html.anim .portero.vivo .po-b.visto .po-luz { background: var(--luz); transition: background-color .2s ease; }
html.anim .portero.vivo .po-k2.visto .po-luz { background: #9db1ff; } html.anim .portero.vivo .po-k3.visto .po-luz { background: var(--niebla); }
html.anim .portero.vivo .po-b.visto .po-e { visibility: visible; }
html.anim .portero.vivo .po-sug { visibility: hidden; }
html.anim .portero.vivo .po-sug.visto { visibility: visible; }
@media (prefers-reduced-motion: reduce) { html.anim .ficha .f-foto img { opacity: 1; scale: 1; } html.anim .ficha.visto .f-luz { animation: none; } }

/* Presión (Emil): propiedad scale, separada del transform del efecto magnético. */
.boton { transition: background-color .2s ease, color .2s ease, scale .16s var(--ease-out-ui); }
.boton:active { scale: .97; }
@media (prefers-reduced-motion: reduce) { .boton:active { scale: 1; } }
