/* Guillermina Cuenca Propiedades · demo "Tres torres, una luz". Tokens = Variables "Primitivos" del Figma. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --sala: #17120f;
  --panel: #241c18;
  --luz: #ecebea;
  --suave: #b9ada2;
  --sol: #f6b21b;
  --naranja: #e87818;
  --rojo: #c8361b;
  --margen: clamp(20px, 5vw, 80px);
  --gap: clamp(12px, 2vw, 32px);
  --t-marca: clamp(24px, 3.1vw, 44px);
  --t-frase: clamp(24px, 2.4vw, 34px);
  --t-fila: clamp(22px, 2vw, 28px);
  --t-texto: 17px;
  --t-chico: 16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sec: clamp(96px, 11vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scrollbar-color: var(--naranja) var(--sala); }
body { margin: 0; background: var(--sala); color: var(--luz); font: 400 var(--t-texto)/1.6 "Plus Jakarta Sans", system-ui, sans-serif; caret-color: var(--sol); overflow-x: clip; }
::selection { background: var(--naranja); color: var(--sala); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--luz); color: var(--sala); padding: 12px 16px; }
.saltar:focus { top: 12px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; text-wrap: balance; }

.franja { background: #0d0a08; color: var(--suave); font-size: var(--t-chico); text-align: center; padding: 8px var(--margen); }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; background: var(--naranja); color: var(--sala); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.boton:hover { background: var(--sol); }
.boton:active { transform: scale(.97); }
.boton-chico { min-height: 44px; padding: 0 20px; }
.enlace { color: var(--sol); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .25s var(--ease); }
.enlace:hover { text-underline-offset: 8px; }
.fx-ver-360 { color: var(--luz); }

.cabecera { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--margen); background: var(--sala); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: var(--t-fila); letter-spacing: 0.04em; }
.marca-torres { width: 28px; height: 28px; }
.mt-1 { fill: var(--naranja); } .mt-2 { fill: var(--sol); } .mt-3 { fill: var(--rojo); }
.cabecera ul { display: flex; gap: 26px; }
.cabecera nav a { text-decoration: none; font-size: 16px; display: inline-flex; min-height: 44px; align-items: center; color: var(--suave); }
.cabecera nav a:hover { color: var(--luz); }

/* Hero: la escultura centrada, el nombre ancho y bajo debajo. */
.hero { min-height: calc(100svh - 110px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px var(--margen) 56px; }
.escultura { position: relative; width: min(34vw, 440px, 78vw); aspect-ratio: 300 / 320; }
.torres-3d { position: absolute; inset: -12% -12% 0; width: 124%; height: 112%; opacity: 0; transition: opacity .9s var(--ease); }
html.torres-3d-on .torres-3d { opacity: 1; }
.torres-svg { width: 100%; height: 100%; transition: opacity .6s var(--ease); }
html.torres-3d-on .torres-svg { opacity: 0; }
.ts-torre { fill: url(#g-fachada); }
.ts-techo { fill: var(--rojo); }
.hero-marca { margin-top: 28px; font-family: var(--serif); font-weight: 600; font-size: var(--t-marca); line-height: 1; letter-spacing: 0.28em; text-transform: uppercase; }
.hm-prop { font-family: var(--serif); font-weight: 500; font-size: var(--t-texto); letter-spacing: 0.08em; color: var(--suave); margin-top: 12px; }
.hero-frase { font-family: var(--serif); font-weight: 500; font-size: var(--t-frase); margin-top: 22px; }
.hero-fila { width: min(900px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 30px; font-size: 16px; color: var(--suave); }
.hero-fila span:first-child { text-align: left; }
.hero-fila span:last-child { text-align: right; }

/* Nómina: todas las propiedades al mismo tamaño. */
.nomina { padding: var(--sec) var(--margen); }
.nomina-nota { color: var(--suave); margin-top: 12px; }
.grupo-t { font-family: var(--serif); font-weight: 600; font-size: var(--t-fila); color: var(--sol); margin: 56px 0 10px; }
.fila { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr auto; grid-template-areas: "dir tipo det precio" "dir tipo acc acc"; gap: 4px 24px; padding: 20px 16px; margin: 0 -16px; align-items: baseline; transition: background-color .35s var(--ease); }
.fila:hover { background: var(--panel); }
.f-dir { grid-area: dir; font-family: var(--serif); font-weight: 500; font-size: var(--t-fila); line-height: 1.2; transition: color .3s; }
.fila:hover .f-dir { color: var(--sol); }
.f-tipo { grid-area: tipo; color: var(--suave); }
.f-det { grid-area: det; color: var(--suave); }
.f-precio { grid-area: precio; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.f-acc { grid-area: acc; display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 16px; }
.f-acc .enlace { min-height: 44px; display: inline-flex; align-items: center; }

/* Panel interior y dos fotos de Punta Alta. */
.panel-sec { padding: 0 20px var(--sec); }
.panel { background: var(--panel); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); min-height: 80svh; overflow: hidden; }
.panel-texto { padding: clamp(32px, 4vw, 56px); display: grid; gap: 18px; align-content: start; }
.panel-texto p { color: var(--suave); max-width: 44ch; }
.panel-texto .boton { justify-self: start; margin-top: 8px; }
.panel-foto { position: relative; align-self: end; justify-self: center; width: min(62%, 420px); clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
.panel-foto img { width: 100%; height: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: 50% 30%; filter: brightness(.9); }
.panel-foto figcaption, .contacto-foto figcaption { position: absolute; left: 0; bottom: 0; background: var(--sala); color: var(--suave); font-size: var(--t-chico); padding: 6px 12px; }

/* Contacto: tarjeta sobre la foto. */
.contacto { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; padding: var(--sec) var(--margen); }
.contacto-foto { position: relative; grid-column: 2 / 7; aspect-ratio: 4 / 5; overflow: hidden; }
.contacto-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: brightness(.9); transition: filter .8s var(--ease); }
.contacto-foto:hover img { filter: brightness(1); }
.tarjeta { position: relative; grid-column: 8 / 12; justify-self: start; width: min(400px, 100%); background: var(--luz); color: var(--sala); padding: 32px; }
.tarjeta h2 { font-size: var(--t-frase); }
.tarjeta .enlace { color: #8c2a14; }
.t-dir { margin-top: 14px; font-size: 18px; }
.t-links { margin-top: 18px; line-height: 2.2; overflow-wrap: anywhere; }
.tarjeta-boton { width: 100%; margin-top: 22px; }

.pie { background: #0d0a08; color: var(--suave); padding: 64px var(--margen) 48px; font-size: var(--t-chico); display: grid; gap: 8px; }
.pie p { max-width: 60ch; }
.pie-marca { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--luz); margin-bottom: 12px; }
.pie-marca span { font-weight: 500; color: var(--suave); }
.pie-creditos { margin-top: 12px; }

.fx-cinta { background: var(--panel); color: var(--sol); padding: 12px 0; font: 600 15px/1 "Cormorant Garamond", serif; letter-spacing: .2em; text-transform: uppercase; }
.fx-mapa h2, .fx-360 h2 { margin-bottom: 16px; }
.fx-360-cab p { max-width: 60ch; }
.fx-mapa { max-width: none; padding: var(--sec) var(--margen); }
.fx-mapa .fx-mapa-lista a { color: var(--luz); background: var(--panel); }
.fx-mapa .fx-mapa-lista a[aria-current="true"], .fx-mapa .fx-mapa-lista a:hover { background: var(--naranja); color: var(--sala); }

/* Movimiento: lo oculto se oculta solo con JS (clase .anim). */
html.anim .hm-prop, html.anim .hero-frase, html.anim .hero-fila { opacity: 0; }
html.anim .fila { opacity: 0; transform: translateY(18px); }
html.anim .filas.visto .fila { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease), background-color .35s var(--ease); }
html.anim .filas.visto .fila:nth-child(2) { transition-delay: 90ms; }
html.anim .filas.visto .fila:nth-child(3) { transition-delay: 180ms; }
html.anim .filas.visto .fila:nth-child(4) { transition-delay: 270ms; }
html.anim .filas.listo .fila { transition-delay: 0ms; }

@media (max-width: 900px) {
  .fila { grid-template-columns: 1fr auto; grid-template-areas: "dir precio" "tipo tipo" "det det" "acc acc"; }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cabecera nav { display: none; }
  .marca { font-size: 18px; }
  .pie-marca { font-size: 22px; letter-spacing: .06em; }
  .escultura { width: 70vw; }
  .hero-marca { letter-spacing: 0.08em; font-size: 21px; }
  .hero-fila { grid-template-columns: 1fr; text-align: center; }
  .hero-fila span:first-child, .hero-fila span:last-child { text-align: center; }
  .panel-sec { padding: 0 10px var(--sec); }
  .contacto { display: block; padding: var(--sec) var(--margen); }
  .contacto-foto { width: 78%; }
  .tarjeta { width: auto; margin: -60px 0 0 auto; max-width: 92%; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* fx: colores para la capa de efectos */
:root { --fx-acento: #e87818; --fx-oscuro: #17120f; --fx-claro: #ecebea; }
