/* =====================================================================
   Le Parc Punta del Este · Torre 5
   Sistema de diseño — spec: docs/superpowers/specs/2026-06-12-*.md
   Paleta: .claude/rules/styling.md
   ===================================================================== */

:root {
  /* Paleta Pantone oficial (predeterminada, 2026-06-19) — ver .claude/rules/styling.md */
  --color-principal: #60766F;    /* Verde Pinar — Pantone 5545 C */
  --color-secundario: #ACB6B6;   /* Gris Salvia Claro — Pantone 442 C */
  --color-acento: #ABA2A0;       /* Gris Cálido — Pantone 407 C */
  --color-neutro-claro: #DBD5CD; /* Warm Grey 1 — Pantone Warm Grey 1 C */
  --color-neutro-oscuro: #485956; /* Verde Mar — Pantone 5535 C */
  --color-verde-mar: #485956;    /* Verde Mar — Pantone 5535 C (filtro del hero + títulos sobre fondo claro) */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-text: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --max-w: 1200px;
  /* Fixed header height: content starts below it and menu anchors offset by it */
  --header-h: 128px;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-display-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../assets/fonts/playfair-display-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
/* The header is fixed: content starts below it (it used to cover the hero video and form) */
main { padding-top: var(--header-h); }
body {
  font-family: var(--font-text);
  background: var(--color-neutro-oscuro);
  color: var(--color-neutro-claro);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Títulos estilo editorial (ref. Mariven): serif en caja baja, grandes, bold real */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
  line-height: 1.15;
}

/* ===== Componentes ===== */
.kicker {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-acento);
}

/* Botón estilo Norda: texto en negrita con subrayado + flecha grande, sin caja.
   Color: hereda el del contexto — Pantone 5535 (#485956) sobre secciones claras,
   neutro claro sobre las oscuras (para que siempre se lea). */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: .5rem 0;
  border: none;
  border-bottom: 1.5px solid currentColor;
  color: inherit;
  background: none;
  text-decoration: none;
  font-family: var(--font-text);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s, border-color .3s;
}
.btn::after {
  content: "→";
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
  transition: transform .3s ease;
}
.btn:hover, .btn:focus-visible {
  color: var(--color-acento);
  border-bottom-color: var(--color-acento);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(5px); }

/* Excepciones que siguen siendo "caja" (acciones funcionales) */
.btn-header, .lead-submit, .hero-form-toggle {
  border: 1px solid var(--color-acento);
  border-bottom: 1px solid var(--color-acento);
  padding: .9rem 2.4rem;
  justify-content: center;
}
.btn-header::after, .lead-submit::after, .hero-form-toggle::after { content: none; }
.btn-header:hover, .lead-submit:hover, .hero-form-toggle:hover {
  background: var(--color-acento);
  color: var(--color-neutro-oscuro);
}
/* "Consultar" va sobre el header claro: borde y relleno en oscuro para que se defina. */
.btn-header { border-color: var(--color-neutro-oscuro); }
.btn-header:hover { background: var(--color-neutro-oscuro); color: var(--color-neutro-claro); }

.section { padding: 7rem 1.5rem; }
.section-light { background: var(--color-neutro-claro); color: var(--color-neutro-oscuro); }
/* Kickers sobre fondo claro: el acento (gris cálido) no contrasta lo suficiente; van en oscuro. */
.section-light .kicker { color: var(--color-neutro-oscuro); }
/* Sección Residencias — fondo blanco para dar luz al sitio (decidido 2026-06-19). */
.section-gris { background: #fff; color: var(--color-neutro-oscuro); }
.section-gris h2, .section-gris h3 { color: var(--color-neutro-oscuro); }
.section-gris .kicker { color: var(--color-neutro-oscuro); }
.section-gris .residencia p { color: var(--color-neutro-oscuro); }
.section-dark { background: var(--color-neutro-oscuro); color: var(--color-neutro-claro); }
.wrap { max-width: var(--max-w); margin: 0 auto; }

:focus-visible { outline: 2px solid var(--color-acento); outline-offset: 3px; }

/* ===== Header (ref. One Beverly Hills: menú | logo centrado | CTA)
   Barra de alto constante, verde claro translúcido, texto oscuro ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 2.2rem;
  background: rgba(241, 239, 232, .96); /* Lino (crema), casi sólido como section-light */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-neutro-oscuro);
  transition: box-shadow .4s;
}
.site-header.scrolled {
  box-shadow: 0 1px 14px rgba(24, 48, 41, .18);
}
.header-brand {
  justify-self: center;
  padding: 0 3.5rem;
}
.header-brand img { height: 64px; width: auto; max-width: none; } /* max-width:none: evita que el reset global aplaste el logo */

/* Lado derecho del header: selector de idioma + CTA Consultar */
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
/* Selector de idioma: botón circular único (ref. raghsasite). Muestra el idioma
   actual y cicla ES→PT→EN al hacer click. Colores adaptados al header claro. */
.lang-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(72, 89, 86, .06);
  border: 0.8px solid rgba(72, 89, 86, .45);
  color: var(--color-neutro-oscuro);
  font-family: var(--font-text);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.lang-circle:hover, .lang-circle:focus-visible {
  background: var(--color-neutro-oscuro);
  border-color: var(--color-neutro-oscuro);
  color: var(--color-neutro-claro);
}

/* CTA Consultar con desplegable (derecha) */
.consultar {
  position: relative;
  z-index: 110;
}
.btn-header {
  padding: .6rem 1.6rem;
  font-size: .66rem;
}
.consultar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .7rem);
  min-width: 220px;
  background: var(--color-neutro-claro);
  box-shadow: 0 14px 38px rgba(24, 48, 41, .25);
  display: none;
}
.consultar.open .consultar-menu { display: block; }
.consultar-menu a {
  display: block;
  padding: 1rem 1.4rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-neutro-oscuro);
  border-bottom: 1px solid var(--color-secundario);
  transition: color .3s, background .3s;
}
.consultar-menu a:last-child { border-bottom: none; }
.consultar-menu a:hover, .consultar-menu a:focus-visible {
  background: var(--color-neutro-oscuro);
  color: var(--color-acento);
}

@media (max-width: 760px) {
  :root { --header-h: 80px; }
  .site-header { padding: 0 1.25rem; }
  .header-brand { padding: 0 1.5rem; }
  .header-brand img { height: 46px; }
  .btn-header { padding: .5rem .9rem; font-size: .58rem; letter-spacing: .18em; }
  .header-right { gap: .7rem; }
}
/* Phones: with equal side columns the language pill + Hablemos did not fit and the
   button overflowed on the right. The logo sits next to the menu icon (true centring
   would collide with the right group, and slightly off-centre read as a mistake). */
@media (max-width: 480px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: .5rem; padding: 0 1rem; }
  .header-brand { padding: 0 .5rem; justify-self: start; }
  .header-brand img { height: 40px; }
  .btn-header { padding: .45rem .65rem; letter-spacing: .14em; }
  .header-right { gap: .5rem; }
}

/* Menú overlay estilo Bentley: hamburguesa siempre visible,
   panel a pantalla completa con ítems alineados a la derecha */
.nav-toggle {
  display: block;
  justify-self: start;
  background: none;
  border: none;
  width: 44px; height: 36px;
  position: relative;
  z-index: 110;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 6px; right: 6px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-neutro-oscuro);
  transition: transform .35s ease, top .35s ease, background .35s;
}
/* la barra clara queda sobre el overlay: la X se mantiene oscura */
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 22px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

body.nav-lock { overflow: hidden; }

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 99; /* debajo del header: la barra clara queda visible sobre el overlay */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.4rem;
  padding-top: 7rem;
  padding-left: clamp(2rem, 12vw, 10rem);
  background: rgba(24, 48, 41, .97);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.site-nav.open { opacity: 1; visibility: visible; }
.site-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-neutro-claro);
  transition: color .3s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--color-acento); }
.site-nav .nav-pendiente { opacity: .4; pointer-events: none; }
.site-nav .nav-pendiente small {
  display: block;
  font-family: var(--font-text);
  font-size: .58rem;
  letter-spacing: .3em;
  color: var(--color-acento);
  text-align: right;
  margin-top: .2rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
  .nav-toggle span { transition: none; }
}

/* ===== 1 · Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  /* Hero image reveal (ref. Norda): arranca enmarcado y se abre a pantalla
     completa. El marco deja ver el fondo Verde Grafito alrededor. */
  clip-path: inset(0 round 0);
  transition: clip-path 1.5s cubic-bezier(.66, 0, .2, 1);
}
.hero.intro { clip-path: inset(7% 6% round 22px); }
/* el contenido (form) aparece recién cuando el hero terminó de abrirse */
.hero .hero-inner { opacity: 1; transition: opacity .8s ease .5s; }
.hero.intro .hero-inner { opacity: 0; transition: none; }
.hero {
  /* Height of the hero image area; the lead form centres on it */
  --hero-video-h: min(80vh, calc(100vh - var(--header-h)));
}
/* Hero image sequence (.hero-media): see css/hero.css — shared with /presentacion */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(94vw, 1700px); /* mismo ancho que las galerías: el form queda pegado a la derecha */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* frase a la izquierda, form a la derecha */
  gap: 3rem;
  padding: 4rem 0; /* banda de contenido debajo del video (sección oscura) */
}

/* Frase del hero (#6) — entra palabra por palabra al cargar; 2 líneas (#8) */
.hero-content { flex: 1 1 0; min-width: 0; text-align: left; }
.hero-content .kicker {
  color: var(--color-neutro-claro);
  margin-bottom: 1.1rem;
}
.hero-frase {
  font-size: clamp(3rem, 8vw, 6rem); /* tipografía con impacto */
  line-height: 1.04;
  max-width: 11em;
  color: #fff;
}
.hero-agendar { margin-top: 1.8rem; color: var(--color-neutro-claro); border-bottom-color: var(--color-neutro-claro); }
/* Botones deshabilitados (ej. brochure pendiente de subir) */
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
@media (max-width: 860px) {
  .hero-content { text-align: center; }
  .hero-frase { max-width: 100%; }
  .hero-agendar { justify-content: center; }
}

/* Form de leads — flota SOBRE el video, a la derecha (el texto va en la banda de abajo) */
.hero-form {
  position: absolute;
  top: calc(var(--hero-video-h) / 2); right: 3vw; /* centred on the hero image area */
  transform: translateY(-50%);
  z-index: 3;
  width: 330px;
}
.hero-form-toggle { display: none; }
/* Short screens (laptops, Windows 125% scaling): compact form so it fits inside the video */
@media (max-height: 800px) and (min-width: 861px) {
  .lead-form { padding: 1.4rem 1.6rem 1.2rem; gap: .7rem; }
  .lead-form-title { font-size: 1.1rem; margin-bottom: 0; }
  .lead-form input { padding: .5rem 0; }
}
.lead-form {
  background: rgba(24, 48, 41, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 2rem 1.8rem 1.6rem;
  display: grid;
  gap: 1.1rem;
}
.lead-submit, .hero-form-toggle { border-radius: 8px; }
.lead-form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: .4rem;
}
.lead-form input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(196, 202, 186, .5);
  color: var(--color-neutro-claro);
  font-family: var(--font-text);
  font-size: .88rem;
  padding: .65rem 0;
}
.lead-form input::placeholder { color: var(--color-secundario); }
.lead-form input:focus { outline: none; border-bottom-color: var(--color-acento); }
.lead-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.2rem;
}
.lead-submit { width: 100%; margin-top: .6rem; }
.lead-submit:disabled { opacity: .45; cursor: not-allowed; }
.lead-submit:disabled:hover { background: none; color: inherit; }
.lead-note {
  font-size: .68rem;
  letter-spacing: .12em;
  text-align: center;
  color: var(--color-secundario);
}

@media (max-width: 860px) {
  .hero { --hero-video-h: 58vh; }
  .hero-inner { flex-direction: column; align-items: center; gap: 1.5rem; padding: 2.5rem 1.25rem; }
  /* En mobile el form vuelve al flujo (entre el video y la banda de texto) */
  .hero-form { position: static; transform: none; top: auto; right: auto; width: 100%; max-width: 420px; margin: 2rem auto 0; padding: 0 1.25rem; }
  .hero-form-toggle { display: block; width: 100%; }
  .lead-form { display: none; }
  .hero-form.open .lead-form { display: grid; margin-top: 1rem; }
}

/* ===== 2/4 · Bloques narrativos ===== */
/* "Las vistas" on phones: the centred portrait crop showed only the wall; shift towards the window */
@media (max-width: 760px) { #living { background-position-x: 72%; } }
.narrative {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 6rem 1.5rem;
  will-change: background-position;
}
.narrative::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(24, 48, 41, .55);
}
.narrative-content { position: relative; text-align: center; }
/* Narrative blocks whose image is a tower exterior: the tower is never cut (standing rule,
   2026-10-05). The render is shown whole in the middle; a blurred copy fills the rest. */
.narrative--whole { isolation: isolate; overflow: hidden; }
.narrative--whole .nw-fill, .narrative--whole .nw-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; background-position: center; background-repeat: no-repeat; }
.narrative--whole .nw-fill { background-size: cover; filter: blur(30px) brightness(.6) saturate(.85); transform: scale(1.12); }
.narrative--whole .nw-img { background-size: contain; }
.narrative--whole::before { z-index: -1; }
.narrative-content h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 1.2rem 0 2.4rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Encabezados de sección ===== */
.section .kicker { margin-bottom: .9rem; }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 3rem; max-width: 24ch; }
/* Títulos sobre fondo claro en Pantone 5535 (#485956), ref. cabanamountain */
.section-light h2, .section-light h3 { color: var(--color-verde-mar); }

/* ===== 3 · El proyecto ===== */
#proyecto .wrap { max-width: min(92vw, 1500px); } /* galería más grande, responsive */
.proyecto-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr; /* la galería ocupa más ancho */
  gap: 3.5rem;
  align-items: stretch; /* la galería iguala el alto del bloque de texto */
}
/* Galería de El Proyecto — crossfade auto-run; iguala el alto del bloque de texto */
.proyecto-galeria { position: relative; height: 100%; min-height: 420px; overflow: hidden; background: var(--color-neutro-claro); }
.proyecto-galeria img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; /* mostrar la imagen completa, sin recortar */
  opacity: 0;
  transition: opacity 1.4s ease;
}
.proyecto-galeria img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .proyecto-galeria img { transition: none; }
}
.proyecto-texto p { text-align: justify; text-justify: inter-word; }
.proyecto-texto p + p { margin-top: 1.2rem; }
.proyecto-credito {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-principal);
}
.proyecto-credito a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--color-acento);
  transition: color .3s;
}
.proyecto-credito a:hover, .proyecto-credito a:focus-visible { color: var(--color-acento); }
.proyecto-texto .proyecto-brochure { margin-top: 3.6rem; }
.cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4.5rem;
  text-align: center;
}
.cifras dt {
  font-family: var(--font-text);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--color-neutro-oscuro);
}
/* Animación blur + escala: aparecen desenfocadas y chicas, se enfocan creciendo */
.cifra-blur {
  opacity: 0;
  filter: blur(14px);
  transform: scale(.8);
  transition: opacity 1s ease, filter 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.cifra-blur.in { opacity: 1; filter: blur(0); transform: none; }
.cifras dd { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; margin-top: .5rem; }

/* ===== 5 · Residencias ===== */
#residencias .wrap { max-width: min(94vw, 1700px); } /* galería responsive al ancho */
.residencias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
.residencia { text-align: center; }
/* Cards de Residencias: muestran el plano (vectorial transparente) de la tipología.
   object-fit: contain para verlo completo; sin fondo (se apoya sobre el gris de la sección). */
.residencia-img { aspect-ratio: 1 / 1; width: 80%; margin: 0 auto 1.6rem; overflow: hidden; } /* plano 20% más chico, centrado */
.residencia-img img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* Card-carrusel (4 dorm): crossfade auto-run entre plano técnico y plano en color */
.residencia-img.is-carousel { position: relative; }
.residencia-img.is-carousel img {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.residencia-img.is-carousel img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .residencia-img.is-carousel img { transition: none; }
}
.residencia h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.residencia p { font-size: .9rem; color: var(--color-principal); margin-bottom: 1.4rem; }
/* m² totales — protagonista de la card, con contador */
#residencias .residencia-total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--color-neutro-oscuro);
  margin: .4rem 0 .7rem;
}
#residencias .residencia-total .residencia-m2 {
  font-family: var(--font-text);
  font-size: .3em;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-acento);
  margin-left: .3em;
  vertical-align: super;
}
#residencias .residencia-sub {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-neutro-oscuro);
  opacity: .65;
  margin-bottom: 1.6rem;
}
.residencias-extra { margin-top: 3.5rem; text-align: center; }

/* ===== Vistas (recorrido 360) ===== */
.vistas-video {
  max-width: min(94vw, 1700px);
  margin: 2.5rem auto 0;
  overflow: hidden;
  background: #3A4744; /* tono más oscuro de Pantone 5535 para el letterbox del video */
}
.vistas-video video { width: 100%; height: auto; display: block; }
/* The horizontal cut carries the legal line burned in; the vertical one (phones) does not, so it is set as text. */
.vistas-legal { display: none; margin: 0; padding: .7rem 1rem; text-align: center; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-neutro-claro); }
@media (orientation: portrait) and (max-width: 860px) {
  .vistas-video video { width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
  .vistas-legal { display: block; }
}

/* ===== 6 · Amenities y servicios ===== */
.amenities-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.amenities-lista.cols-2 {
  column-count: 2;
  column-gap: 3rem;
}
.amenities-lista.cols-2 li { break-inside: avoid; }
.amenities-cols h3 {
  font-family: var(--font-text);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-acento);
  margin-bottom: 1.4rem;
}
.amenities-lista { list-style: none; }
.amenities-lista li {
  padding: .85rem 0;
  border-bottom: 1px solid rgba(188, 160, 108, .25);
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--color-neutro-claro);
}
.amenities-lista li:last-child { border-bottom: none; }

/* Animated amenities plan block (component in css/amenities-plan.css): exactly as wide as the
   amenities gallery below it (same breakout as .gallery), at the plan's own proportion. */
.aplan-wrap {
  width: min(94vw, 1500px);
  margin: 4.5rem 0 0 calc(50% - min(47vw, 750px));
}
/* Galerías de amenities y apartamentos: ver css/gallery.css */

/* Video flotante que acompaña el scroll (cerrable) */
.float-video {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 120;
  /* Height tied to the viewport: it used to reach 460px and cover content on laptops */
  height: min(36vh, 340px);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(24, 48, 41, .4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.float-video.show { opacity: 1; transform: none; pointer-events: auto; }
.float-video.closed { display: none; }
.float-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-video-close {
  position: absolute;
  top: .4rem; right: .4rem;
  z-index: 1;
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(24, 48, 41, .65);
  color: var(--color-neutro-claro);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.float-video-close:hover { background: var(--color-neutro-oscuro); }

/* ===== Trayectoria / Le Parc ===== */
.trayectoria-wrap { max-width: 820px; text-align: center; }
.trayectoria-texto { color: var(--color-secundario); max-width: 62ch; margin: 0 auto 2.4rem; }
.trayectoria-sub {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-neutro-claro);
  margin-bottom: 2.2rem;
}
.sello-img { width: 100%; max-width: 640px; margin: 0 auto 2.6rem; }
.legado {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.legado li {
  flex: 1 1 180px;
  max-width: 230px;
  padding: 1.4rem 1rem;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--color-secundario);
}
.legado li span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-acento);
  margin-bottom: .5rem;
}
.legado .legado-actual {
  border-color: var(--color-acento);
  background: rgba(188, 160, 108, .12);
  color: var(--color-neutro-claro);
}

/* ===== Prensa (esquema) ===== */
.prensa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.prensa-card {
  border: 1px solid rgba(24, 48, 41, .15);
  padding: 1.6rem;
  background: rgba(255, 255, 255, .35);
}
.prensa-medio {
  width: 80px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(24, 48, 41, .3);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-principal);
  margin-bottom: 1.2rem;
}
.prensa-card h3 { font-size: 1.15rem; color: var(--color-verde-mar); margin-bottom: .6rem; }
.prensa-fecha { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-principal); margin-bottom: 1rem; }
.prensa-link { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-neutro-oscuro); }
.prensa-nota { margin-top: 2.5rem; text-align: center; font-size: .8rem; color: var(--color-principal); }
@media (max-width: 860px) { .prensa-grid { grid-template-columns: 1fr; } }

/* Pop-up de Ubicación — panel propio (foto + datos + acciones) + mapa con pin */
.maps-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(24, 48, 41, .92);
  display: none; align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.maps-modal.open { display: flex; }
.maps-box {
  position: relative;
  background: var(--color-neutro-claro);
  border-radius: 12px;
  width: min(960px, 100%);
  height: min(600px, 92vh);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}
.maps-close {
  position: absolute; top: .6rem; right: .8rem; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); border: none;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  color: var(--color-neutro-oscuro);
}
.maps-close:hover { color: var(--color-acento); }
.maps-panel { display: flex; flex-direction: column; overflow-y: auto; }
.maps-photo { width: 100%; height: auto; aspect-ratio: 1920 / 1452; object-fit: cover; display: block; } /* whole image: the tower is never cut */
.maps-panel-body { padding: 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.maps-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; color: var(--color-verde-mar); }
.maps-addr { font-size: .85rem; color: var(--color-principal); }
.maps-actions { display: flex; flex-direction: column; align-items: stretch; gap: .55rem; margin-top: .9rem; }
.maps-action {
  font-family: var(--font-text);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; text-decoration: none; cursor: pointer;
  color: var(--color-neutro-oscuro);
  border: 1px solid var(--color-neutro-oscuro); border-radius: 6px;
  padding: .7rem .85rem; background: none;
  transition: background .25s, color .25s;
}
.maps-action:hover, .maps-action:focus-visible { background: var(--color-neutro-oscuro); color: var(--color-neutro-claro); }
.maps-frame-wrap { min-height: 0; }
.maps-frame { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 760px) {
  .maps-box { grid-template-columns: 1fr; height: auto; max-height: 92vh; overflow-y: auto; }
  .maps-frame-wrap { height: 48vh; }
}
@media (max-width: 560px) {
  .float-video { height: min(24vh, 190px); right: .8rem; bottom: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .float-video { transition: none; }
}

/* ===== 7 · Ubicación ===== */
.ubicacion-texto { max-width: 60ch; margin-bottom: 2.5rem; text-align: justify; text-justify: inter-word; }
.ubicacion-media { position: relative; }
.ubicacion-media .mapa { position: relative; margin: 0; line-height: 0; }
.ubicacion-media .mapa img { width: 100%; display: block; aspect-ratio: 1536 / 1024; height: auto; } /* reserva el espacio: evita CLS */
/* La imagen de ubicación va sin filtros (color natural). */
/* Pin de ubicación animado sobre el mapa (posición aproximada del predio) */
.map-pin {
  position: absolute;
  left: 42.2%; top: 42.4%; /* alineado a la punta de la gota dibujada en el mapa */
  width: 25px; height: 25px; /* -15% respecto del anterior */
  margin: -12.5px 0 0 -12.5px;
  z-index: 2;
}
.map-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-neutro-oscuro); /* verde oscuro sólido para más destaque */
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(24, 48, 41, .55);
}
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 25px; height: 25px;
  margin: -12.5px 0 0 -12.5px;
  border-radius: 50%;
  background: var(--color-neutro-oscuro);
  animation: pin-pulse 2s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(3.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin::after { animation: none; }
}
/* Etiqueta de dirección animada, a la derecha del pin (entra al hacer scroll).
   Prefijo .mapa para ganar especificidad sobre las reglas .reveal (definidas más abajo). */
.mapa .map-pin-label {
  position: absolute;
  left: 44%; top: 42.4%;
  z-index: 3;
  font-family: var(--font-text);
  font-size: .88rem; /* +2pt respecto del .72rem original */
  letter-spacing: .06em;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap; /* el <br> fuerza las 2 líneas; nowrap evita cortes extra */
  color: var(--color-neutro-claro);
  background: var(--color-neutro-oscuro);
  padding: .42rem .7rem;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(24, 48, 41, .4);
  opacity: 0;
  transform: translate(-10px, -50%);
  transition: opacity .6s ease, transform .6s ease;
}
.mapa .map-pin-label.in { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) {
  .mapa .map-pin-label { transition: none; }
}
@media (max-width: 560px) {
  .mapa .map-pin-label { font-size: .76rem; padding: .35rem .55rem; left: 45%; }
}
.distancias {
  list-style: none;
  background: #fff; /* lámina blanca */
  padding: 1.8rem 2rem;
  display: grid;
  gap: 1.1rem;
}
/* En desktop: franja horizontal de 3 columnas debajo del mapa */
@media (min-width: 900px) {
  .distancias {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 2rem;
    padding: 2rem 2.6rem;
    box-shadow: 0 10px 30px rgba(24, 48, 41, .12);
  }
}
.distancias li {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border-bottom: 1px solid var(--color-secundario);
  padding-bottom: 1rem;
}
.distancias li:last-child { border-bottom: none; padding-bottom: 0; }
@media (min-width: 900px) {
  .distancias li { border-bottom: none; border-right: 1px solid var(--color-secundario); padding: 0 2.4rem; }
  .distancias li:first-child { padding-left: 0; }
  .distancias li:last-child { border-right: none; padding-right: 0; }
}
.distancias strong {
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-principal);
}
.distancias span {
  font-size: .98rem;
  letter-spacing: .02em;
  color: var(--color-neutro-oscuro);
}

/* ===== 8 · Contacto ===== */
.contacto-wrap { text-align: center; }
.contacto-wrap .kicker { margin-bottom: 1.6rem; }
.contacto-texto {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--color-neutro-claro);
  max-width: 22ch;
  margin: 0 auto 2.8rem;
}
.contacto-wa[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.contacto-datos {
  list-style: none;
  margin-top: 2.2rem;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-secundario);
  display: grid;
  gap: .6rem;
}
.contacto-datos a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.contacto-datos a:hover, .contacto-datos a:focus-visible {
  color: var(--color-acento);
  border-bottom-color: var(--color-acento);
}
/* Dirección: mismo tamaño que el teléfono (hereda .contacto-datos), legible (sin mayúsculas) */
.contacto-datos .contacto-direccion {
  text-transform: none;
  letter-spacing: .04em;
  margin-top: .4rem;
}

/* ===== Responsive de secciones ===== */
@media (max-width: 860px) {
  .section { padding: 5rem 1.25rem; }
  .proyecto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .proyecto-galeria { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .residencias-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .amenities-cols { grid-template-columns: 1fr; gap: 3rem; }
  .amenities-lista.cols-2 { column-count: 1; }
  .cifras { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===== Carrusel de equipo (créditos del proyecto) — auto-loop ===== */
.partners {
  background: var(--color-neutro-oscuro);
  border-top: 1px solid rgba(188, 160, 108, .25);
  border-bottom: 1px solid rgba(188, 160, 108, .25);
  overflow: hidden;
  padding: 1.6rem 0;
}
.partners-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.partners:hover .partners-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.partner {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 0 3.5rem;
  border-right: 1px solid rgba(241, 239, 232, .15);
  white-space: nowrap;
}
.partner-rol {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-acento);
}
.partner-nombre {
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--color-neutro-claro);
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-neutro-oscuro);
  color: var(--color-secundario);
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(188, 160, 108, .35);
}
.site-footer img { margin: 0 auto 1rem; }
.site-footer p { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.site-footer .social {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.site-footer .social a {
  color: var(--color-secundario);
  transition: color .3s;
}
.site-footer .social a:hover, .site-footer .social a:focus-visible { color: var(--color-acento); }
.site-footer .social svg { width: 40px; height: 40px; }
.ubicacion-maps { margin-top: 2rem; }
.site-footer .legal {
  max-width: min(100%, 150ch); /* wide measure on desktop: fewer lines for the legal copy */
  margin: 2rem auto 0;
  font-size: .68rem;
  letter-spacing: .03em;
  text-transform: none;
  line-height: 1.7;
  color: var(--color-neutro-claro); /* mandatory legal copy must be legible (Verde Pinar on this background had ~1.4:1 contrast) */
  text-align: center;
}

/* ===== Loader de entrada (anillo de puntos, identidad del placeholder) ===== */
.loader {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto;
}
.loader-dot {
  position: absolute;
  inset: 0;
  animation: loader-orbit 2.4s cubic-bezier(0.55, 0.08, 0.45, 0.92) infinite;
}
.loader-dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--color-acento);
}
.loader-dot:nth-child(2) { animation-delay: -2.22s; }
.loader-dot:nth-child(3) { animation-delay: -2.04s; }
.loader-dot:nth-child(4) { animation-delay: -1.86s; }
.loader-dot:nth-child(5) { animation-delay: -1.68s; }
.loader-dot:nth-child(6) { animation-delay: -1.50s; }

@keyframes loader-orbit {
  from { transform: rotate(0turn); }
  to   { transform: rotate(1turn); }
}

/* ===== Loader de página (overlay de entrada) ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-neutro-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .6s ease;
}
.page-loader.done { opacity: 0; pointer-events: none; }

/* ===== Animaciones de aparición ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Títulos palabra por palabra (ref. Mariven): cada palabra sube desde
   una máscara con leve escalonado */
.reveal .w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.reveal .w {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .7s cubic-bezier(.22, .61, .21, 1);
}
.reveal.in .w { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-dot { animation: none; }
  .loader-dot:nth-child(n+2) { display: none; }
  .page-loader { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal .w { transform: none; transition: none; }
  .cifra-blur { opacity: 1; filter: none; transform: none; transition: none; }
  .hero, .hero.intro { clip-path: inset(0); transition: none; }
  .narrative { background-attachment: scroll !important; }
}
