/* =========================================================
   LAVISTA — Sistema de diseño
   Editorial / contemplativo / lujo contenido
   ========================================================= */

/* ---- Page curtain (load sequence) ---- */
#page-curtain {
  position: fixed;
  inset: 0;
  background: #F2EDE4;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  will-change: opacity;
}

:root {
  /* — Paleta base — */
  --paper: #F2EDE4;        /* crema cálido */
  --paper-soft: #EBE4D6;
  --stone: #DAD1BE;
  --ink: #161413;
  --ink-2: #2A2622;
  --ink-soft: #6B645A;
  --ink-mute: #9C948A;
  --line: rgba(22, 20, 19, 0.14);
  --line-soft: rgba(22, 20, 19, 0.07);

  /* — Acentos — */
  --terracota: #B8612C;
  --terracota-deep: #8C4520;
  --sage: #6F7E66;
  --water: #3D5A5E;

  /* — Tipografías — */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Manrope", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* — Métrica — */
  --measure: 64rem;
  --gutter: clamp(1.5rem, 4.5vw, 3.5rem);
  --section-y: clamp(7rem, 13vw, 12rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   Tipografía
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow.terracota { color: var(--terracota); }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.015em;
}

.serif-em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

p {
  text-wrap: pretty;
  color: var(--ink-2);
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   Layout helpers
   ========================================================= */

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* =========================================================
   NAV
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(242, 237, 228, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

/* Over the hero (transparent nav) — light text on dark image */
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  flex: 0 0 auto;
}

.nav-logo-img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-logo-dark { display: none; }
.nav.scrolled .nav-logo-light { display: none; }
.nav.scrolled .nav-logo-dark { display: block; }

.nav-links {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 2.25rem;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: rgba(242, 237, 228, 0.78);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: #F2EDE4; }

.nav-cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(242, 237, 228, 0.7);
  color: #F2EDE4;
  background: transparent;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #F2EDE4;
  color: var(--ink);
  border-color: #F2EDE4;
}

/* Scrolled state — dark text on paper backdrop */
.nav.scrolled .nav-logo { color: var(--ink); }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav.scrolled .nav-cta {
  border-color: var(--ink);
  color: var(--ink);
}
.nav.scrolled .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: var(--hero-bg, #243A2D);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image image-slot {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 35% at 50% 100%, rgba(61,90,94,0.45) 0%, transparent 68%),
    linear-gradient(180deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.0) 24%, rgba(0,0,0,0) 52%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 3;
}

/* InkReveal hint */
.hero-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.75);
  font-family: var(--font-body);
  pointer-events: none;
  transition: opacity 0.8s ease;
  white-space: nowrap;
}

.hero-hint--hidden {
  opacity: 0;
}

@media (pointer: coarse) {
  .hero-hint { display: none; }
}

.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  padding: 0 var(--gutter) clamp(2.5rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F2EDE4;
}

.hero-meta {
  padding-top: clamp(5rem, 9vh, 7rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.7);
}

.hero-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  line-height: 1.6;
}
.hero-meta-block span { display: block; }
.hero-meta-block strong {
  color: #F2EDE4;
  font-weight: 500;
  margin-top: 0.15rem;
}

.hero-headline {
  position: absolute;
  bottom: clamp(5rem, 12vh, 9rem);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-load-line {
  overflow: hidden;
  line-height: 0.88;
}

.hero-load-line > span {
  display: block;
  transform: translateY(108%);
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-load-line:nth-child(2) > span { transition-delay: 0.1s; }
.hero-load-line:nth-child(3) > span { transition-delay: 0.2s; }
.hero-load-line:nth-child(4) > span { transition-delay: 0.28s; }

.hero-headline.loaded .hero-load-line > span {
  transform: translateY(0);
}

.hero-caps {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 16vw, 20rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #F2EDE4;
  display: block;
}

.hero-caps-italic {
  font-style: italic;
  font-weight: 500;
}

.hero-caps-sub {
  margin-top: clamp(1rem, 2vw, 1.8rem);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.65);
  font-family: var(--font-body);
  font-weight: 500;
  overflow: visible;
}

.hero-caps-sub > span { display: block; }

@media (max-width: 640px) {
  .hero-caps { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-caps-sub { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 0.8rem; }
  .hero-scroll { display: none; }
  .hero-right { text-align: left; }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: end;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(242, 237, 228, 0.92);
  max-width: 22ch;
  line-height: 1.3;
}

.hero-scroll {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(242,237,228,0.7), transparent);
}

.hero-right {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.7);
  line-height: 1.7;
}

/* =========================================================
   Manifiesto
   ========================================================= */

.manifesto {
  padding: var(--section-y) 0;
  text-align: left;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  align-items: start;
  gap: 3rem;
}

.manifesto-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2rem;
  color: var(--ink-mute);
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 2.5rem;
  border-left: 1.5px solid var(--water);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.manifesto-quote em {
  font-style: italic;
  color: var(--terracota);
}

.manifesto-attrib {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.manifesto-attrib::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--ink-soft);
}

@media (max-width: 860px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* — Palabras clave Manifiesto: shimmer metálico — */
@keyframes mf-sheen {
  0%, 62%    { background-position: -260% center; }
  80%        { background-position: 260% center; }
  80.01%     { background-position: -260% center; }
  100%       { background-position: -260% center; }
}

.mf-key {
  display: inline;
  font-style: italic;
  background: linear-gradient(
    100deg,
    #9A4820 12%,
    #B8612C 32%,
    #D98840 44%,
    #F5C468 50%,
    #D98840 56%,
    #B8612C 68%,
    #9A4820 88%
  );
  background-size: 320% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: mf-sheen 6.5s ease-in-out infinite;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1),
              filter   0.45s ease;
  cursor: default;
  will-change: background-position;
}

.mf-key:hover {
  transform: scaleX(1.025) skewX(-0.8deg);
  filter: brightness(1.22) saturate(1.1);
}

/* =========================================================
   La Vista (the asset)
   ========================================================= */

.vista {
  background:
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(90,110,82,0.35) 0%, transparent 65%),
    #4A5E44;
  color: #F2EDE4;
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.vista h2, .vista h3, .vista .eyebrow {
  color: #F2EDE4;
}

.vista p { color: rgba(242, 237, 228, 0.85); }

.vista .eyebrow { color: #D4A574; }

.vista-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.vista-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.vista-title em {
  font-style: italic;
  color: var(--terracota);
}

/* — Vista: shimmer de fondo (luz sobre agua) — */
.vista-bg-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 95% 15%, rgba(210,165,55,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 5%  85%, rgba(80,120,70,0.09)  0%, transparent 60%);
  animation: vista-drift 16s ease-in-out infinite alternate;
}
@keyframes vista-drift {
  0%   { transform: translate(0,0) scale(1);       opacity: 0.75; }
  45%  { transform: translate(-2%,2.5%) scale(1.02); opacity: 1;   }
  100% { transform: translate(2%,-1.5%) scale(0.98); opacity: 0.82; }
}

/* — "libre" — glow luminoso en fondo oscuro — */
@keyframes vista-glow {
  from { text-shadow: 0 0 28px rgba(184,97,44,0.48), 0 0 56px rgba(184,97,44,0.20); }
  to   { text-shadow: 0 0 52px rgba(220,130,55,0.70), 0 0 90px rgba(200,110,40,0.36), 0 0 130px rgba(184,97,44,0.15); }
}
.vista-key {
  font-style: italic;
  color: var(--terracota);
  display: inline;
  animation: vista-glow 3.8s ease-in-out infinite alternate;
  transition: letter-spacing 0.55s ease, transform 0.45s ease;
  cursor: default;
}
.vista-key:hover {
  letter-spacing: 0.04em;
  transform: scaleX(1.025);
}

.vista-text {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 44ch;
}

.vista-stats {
  margin-top: 3rem;
  display: inline-grid;
  grid-template-columns: auto;
  gap: 1px;
  background: rgba(242,237,228,0.18);
  border-top: 1px solid rgba(242,237,228,0.18);
  border-bottom: 1px solid rgba(242,237,228,0.18);
  min-width: 240px;
}

.vista-stat {
  background: var(--ink);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vista-stat .n {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.vista-stat .l {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.55);
}

.vista-image image-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(242,237,228,0.14);
}

@media (max-width: 860px) {
  .vista-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* =========================================================
   Vista Nueva — cinematic full-height con torres
   ========================================================= */

.vista-nueva {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.vista-nueva-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vista-nueva-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08) translate(0,0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.vista-nueva-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 14, 8, 0.25) 0%,
      rgba(10, 14, 8, 0.08) 28%,
      rgba(8, 12, 6, 0.55) 65%,
      rgba(6, 10, 4, 0.92) 100%);
}

.vista-nueva-content {
  position: relative;
  z-index: 2;
  color: var(--paper);
  padding-top: clamp(5rem, 10vw, 9rem);
}

.vista-nueva-top {
  margin-bottom: 1.5rem;
}

.vista-nueva-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--paper);
  margin-bottom: 2.5rem;
}
.vista-nueva-title em {
  font-style: italic;
  color: var(--terracota);
}

.vista-nueva-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: rgba(242, 237, 228, 0.7);
  max-width: 60ch;
  margin-bottom: 3.5rem;
}

/* Specs bar */
.vista-nueva-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(242, 237, 228, 0.14);
  padding-top: 2rem;
}

.vista-nueva-spec {
  flex: 1;
  min-width: 120px;
  padding: 0 2rem 0 0;
  border-right: 1px solid rgba(242, 237, 228, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.vista-nueva-spec:last-child { border-right: none; }

.vista-nueva-spec-n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 300;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.vista-nueva-spec-l {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.45);
}

@media (max-width: 860px) {
  .vista-nueva-specs { gap: 1.5rem; }
  .vista-nueva-spec { flex: 0 0 45%; border-right: none; padding-right: 0; }
  .vista-nueva-br { display: none; }
}

/* =========================================================
   Arquitectura
   ========================================================= */

.arq {
  padding: var(--section-y) 0;
}

.arq-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}

.arq-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.arq-title em { font-style: italic; color: var(--terracota); }

.arq-intro {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 48ch;
}

.arq-gallery {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.arq-card image-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.arq-card-tall image-slot { aspect-ratio: 3 / 4; }

.arq-card-caption {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.arq-interiors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.arq-interior-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.arq-interior-card image-slot {
  width: 100%;
  height: 100%;
  display: block;
}

.material:nth-child(1) .material-swatch {
  background:
    linear-gradient(135deg, #B6B0A5 0%, #8C8579 100%);
}
.material:nth-child(2) .material-swatch {
  background:
    linear-gradient(135deg, rgba(220,225,225,0.4) 0%, rgba(180,200,210,0.4) 100%),
    linear-gradient(45deg, rgba(255,255,255,0.6), rgba(200,210,215,0.6));
  border: 1px solid var(--line);
}
.material:nth-child(3) .material-swatch {
  background:
    linear-gradient(135deg, #2A2622 0%, #0E0C0A 100%);
}
.material:nth-child(4) .material-swatch {
  background:
    repeating-linear-gradient(90deg,
      #8C6B4A 0px, #7A5B3D 8px, #8C6B4A 16px);
}

.material-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
}

.material-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .arq-header, .arq-gallery { grid-template-columns: 1fr; gap: 2rem; }
  .materials { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Departamento
   ========================================================= */

.dept {
  background: var(--paper-soft);
  padding: var(--section-y) 0;
}

.dept-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.dept-image image-slot {
  width: 100%;
  aspect-ratio: 16 / 11;
}

.dept-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.dept-title em { font-style: italic; color: var(--terracota); }

.dept-text {
  margin-top: 1.8rem;
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 46ch;
}

.dept-specs {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.dept-spec {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.dept-spec:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1rem; }
.dept-spec:nth-child(even) { padding-left: 1rem; }
.dept-spec:nth-last-child(-n+2) { border-bottom: none; }

.dept-spec .l {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dept-spec .v {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (max-width: 860px) {
  .dept-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =========================================================
   Amenidades
   ========================================================= */

.amen {
  padding: var(--section-y) 0;
}

.amen-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 4rem;
  gap: 3rem;
}

.amen-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.amen-title em { font-style: italic; color: var(--terracota); }

.amen-note {
  max-width: 32ch;
  font-size: 0.98rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
}

.amen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.amen-item-img {
  width: calc(100% + 3.6rem);
  margin: -2.2rem -1.8rem 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.amen-item-img image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.amen-item-img .amen-item-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.amen-item {
  background: var(--paper);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
  position: relative;
  transition: background 0.3s ease;
  overflow: hidden;
}

.amen-item:hover { background: var(--paper-soft); }

.amen-num {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
}

.amen-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-top: auto;
}

.amen-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.amen-icon {
  width: 36px;
  height: 36px;
  color: var(--terracota);
}

@media (max-width: 860px) {
  .amen-header { flex-direction: column; align-items: start; }
  .amen-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Sustentabilidad
   ========================================================= */

.sust {
  background: var(--sage);
  color: var(--paper);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

.sust h2, .sust .eyebrow { color: var(--paper); }
.sust p { color: rgba(242, 237, 228, 0.85); }

.sust-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: start;
}

.sust-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sust-title em { font-style: italic; }

.sust-text {
  margin-top: 1.5rem;
  font-size: 1rem;
  max-width: 36ch;
}

.sust-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sust-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(242, 237, 228, 0.18);
  align-items: baseline;
}

.sust-item:first-child { border-top: 1px solid rgba(242, 237, 228, 0.18); }

.sust-item-n {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sust-item-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.sust-item-desc {
  font-size: 0.95rem;
  line-height: 1.55;
}

.sust-unit {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 1rem;
  font-weight: 500;
  margin-left: 3px;
  opacity: 0.75;
}

/* — Sust: shimmer de fondo — */
.sust-bg-shimmer {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 95% 10%, rgba(200,180,100,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 5%  90%, rgba(100,140,100,0.08) 0%, transparent 60%);
  animation: sust-drift 18s ease-in-out infinite alternate;
}
@keyframes sust-drift {
  0%   { transform: translate(0,0)       scale(1);    opacity: 0.7; }
  50%  { transform: translate(-2%,2%)    scale(1.02); opacity: 1;   }
  100% { transform: translate(2.5%,-1%) scale(0.98); opacity: 0.8; }
}

/* — "declaración de intenciones" — glow sutil en oscuro — */
@keyframes sust-em-glow {
  from { text-shadow: 0 0 28px rgba(237,224,196,0.35), 0 0 55px rgba(237,224,196,0.12); }
  to   { text-shadow: 0 0 50px rgba(237,224,196,0.60), 0 0 95px rgba(237,224,196,0.24), 0 0 140px rgba(237,224,196,0.08); }
}
.sust-title em {
  font-style: italic;
  animation: sust-em-glow 3.8s ease-in-out infinite alternate;
}

@media (max-width: 860px) {
  .sust-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sust-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* =========================================================
   Entorno + conectividad
   ========================================================= */

.entorno {
  padding: var(--section-y) 0;
}

.entorno-header {
  margin-bottom: 4rem;
  max-width: 56rem;
}

.entorno-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.entorno-title em { font-style: italic; color: var(--terracota); }

.entorno-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: start;
}

.entorno-map {
  position: relative;
  background: var(--paper-soft);
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line);
  overflow: hidden;
}

.entorno-connect {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entorno-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.entorno-row:first-child {
  border-top: 1px solid var(--ink);
}

.entorno-row-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--terracota);
}

.entorno-row-place {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.entorno-row-mode {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.entorno-foot {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1rem;
}

@media (max-width: 860px) {
  .entorno-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* === ENTORNO MAP ANIMATIONS ===================================
   Triggered by .ent-map-vis on the <svg> element
   ============================================================ */

/* Topographic lines — draw in left-to-right, slow stagger */
@keyframes ent-topo-draw {
  to { stroke-dashoffset: 0; }
}
.ent-map-vis .ent-topo {
  animation: ent-topo-draw 3.0s cubic-bezier(0.22,1,0.36,1) forwards;
  /* per-element delay set via inline style (0.2s–1.3s stagger) */
}

/* Roads — draw in after topo settles */
.ent-map-vis .ent-road {
  animation: ent-topo-draw 2.5s cubic-bezier(0.22,1,0.36,1) 1.3s forwards;
}
.ent-map-vis .ent-road-2 {
  animation: ent-topo-draw 1.6s cubic-bezier(0.22,1,0.36,1) 2.0s forwards;
}

/* Water body — emerges while roads draw */
.ent-map-vis .ent-water      { transition: opacity 2.0s ease 0.6s;  opacity: 0.85 !important; }
.ent-map-vis .ent-water-edge { transition: opacity 1.2s ease 0.9s;  opacity: 0.40 !important; }

/* Labels — clearly staggered so each is readable before the next */
.ent-map-vis .ent-lbl-chamapa { transition: opacity 1.2s ease 1.1s; opacity: 1 !important; }
.ent-map-vis .ent-lbl-lago    { transition: opacity 1.2s ease 2.0s; opacity: 1 !important; }
.ent-map-vis .ent-lbl-presa   { transition: opacity 1.2s ease 2.5s; opacity: 1 !important; }

/* Stem line — draws after roads complete */
.ent-map-vis .ent-stem {
  animation: ent-topo-draw 1.0s ease 2.8s forwards;
}

/* Main dot — spring pop */
@keyframes ent-dot-in {
  0%   { transform: scale(0); }
  65%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.ent-dot { transform-box: fill-box; transform-origin: center; }
.ent-map-vis .ent-dot {
  animation: ent-dot-in 0.7s cubic-bezier(0.22,1,0.36,1) 3.0s forwards;
}

/* Static rings — appear just after dot */
.ent-map-vis .ent-ring-outer { transition: opacity 0.8s ease 3.2s; opacity: 0.4 !important; }
.ent-map-vis .ent-ring-inner { transition: opacity 0.8s ease 3.3s; opacity: 0.7 !important; }

/* Radar rings — pulsing outward, slow enough to feel intentional */
@keyframes ent-radar-pulse {
  0%   { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(7.5); opacity: 0; }
}
.ent-radar-1,
.ent-radar-2 {
  transform-box: fill-box;
  transform-origin: center;
}
.ent-map-vis .ent-radar-1 {
  animation: ent-radar-pulse 3.6s ease-out 3.2s infinite;
}
.ent-map-vis .ent-radar-2 {
  animation: ent-radar-pulse 3.6s ease-out 5.0s infinite;
}

/* LAVISTA text labels — after dot is settled */
.ent-map-vis .ent-lbl-lavista { transition: opacity 1.0s ease 3.3s; opacity: 1 !important; }
.ent-map-vis .ent-lbl-sub     { transition: opacity 1.0s ease 3.6s; opacity: 1 !important; }

/* Compass — last to appear */
.ent-map-vis .ent-compass { transition: opacity 1.0s ease 4.0s; opacity: 0.5 !important; }

/* =========================================================
   Ficha técnica
   ========================================================= */

.ficha {
  background: var(--terracota);
  color: #F2EDE4;
  padding: var(--section-y) 0;
}

.ficha h2, .ficha .eyebrow { color: #F2EDE4; }
.ficha .eyebrow { color: rgba(242,237,228,0.75); }

.ficha-header {
  margin-bottom: 4rem;
}

.ficha-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.ficha-title em { font-style: italic; }

.ficha-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(242,237,228,0.3);
}

.ficha-cell {
  padding: 1.8rem 1.5rem 1.8rem 0;
  border-bottom: 1px solid rgba(242,237,228,0.14);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ficha-cell:not(:nth-child(4n)) { border-right: 1px solid rgba(242,237,228,0.14); padding-right: 1.5rem; }
.ficha-cell:not(:first-child) { padding-left: 1.5rem; }
.ficha-cell:nth-child(4n+1) { padding-left: 0; }

.ficha-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.55);
}

.ficha-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.ficha-value-sub {
  font-size: 0.85rem;
  color: rgba(242,237,228,0.6);
  font-family: var(--font-body);
  font-style: normal;
}

@media (max-width: 860px) {
  .ficha-grid { grid-template-columns: repeat(2, 1fr); }
  .ficha-cell:not(:nth-child(4n)) { border-right: none; padding-right: 0; }
  .ficha-cell:nth-child(2n) { border-right: none; padding-left: 1.5rem; border-left: 1px solid rgba(242,237,228,0.14); }
  .ficha-cell:nth-child(2n+1) { padding-left: 0; padding-right: 1.5rem; }
}

/* =========================================================
   Contacto
   ========================================================= */

.contact {
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 5;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.contact-title em { font-style: italic; color: var(--terracota); }

.contact-lead {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 38ch;
}

.contact-info {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-info-row .l {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-info-row .v {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.contact-form {
  background: transparent;
  border: 1px solid var(--line);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #555;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--terracota);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 1rem 1.4rem;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-primary:hover {
  background: var(--terracota);
  border-color: var(--terracota);
}

.btn-primary .arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .arrow { transform: translateX(4px); }

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 0.4rem;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242,237,228,0.14);
}

.footer-brand-img {
  height: 56px;
  width: auto;
  display: block;
}

.footer-tag {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(242,237,228,0.7);
  max-width: 28ch;
  font-size: 1.05rem;
  line-height: 1.4;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.55);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(242,237,228,0.85);
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.55);
}

.footer-bottom strong {
  color: rgba(242,237,228,0.85);
  font-weight: 500;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-cell { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* =========================================================
   Image-slot placeholder styling
   ========================================================= */

image-slot {
  --slot-bg: rgba(22, 20, 19, 0.05);
  background: var(--slot-bg);
  position: relative;
}

.hero-image image-slot {
  --slot-bg: #4A5E44;
}

.cinema-media image-slot { width: 100%; height: 100%; --slot-bg: #4A5E44; }

/* =========================================================
   Subtle reveal on scroll
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Focus
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 1px solid var(--terracota);
  outline-offset: 3px;
}

/* =========================================================
   ===  CINEMATIC LAYER (MAIREN-inspired)  ===
   Oversized type · full-bleed · motion · horizontal gallery
   ========================================================= */

/* ---- Motion primitives ---- */
.line-reveal {
  --reveal-delay: 0ms;
}
.line-reveal .line {
  display: block;
  overflow: hidden;
}
.line-reveal .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay);
  will-change: transform;
}
.line-reveal.in .line > span { transform: translateY(0); }

/* stagger helper for multi-line headings */
.line-reveal .line:nth-child(2) > span { transition-delay: calc(var(--reveal-delay) + 90ms); }
.line-reveal .line:nth-child(3) > span { transition-delay: calc(var(--reveal-delay) + 180ms); }
.line-reveal .line:nth-child(4) > span { transition-delay: calc(var(--reveal-delay) + 270ms); }

.img-reveal {
  position: relative;
  overflow: hidden;
}
.img-reveal > * {
  transform: scale(1.18);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.img-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 2;
}
.img-reveal.dark-curtain::after { background: var(--ink); }
.img-reveal.in > * { transform: scale(1); }
.img-reveal.in::after { transform: scaleY(0); transform-origin: bottom; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---- Hero parallax wrapper ---- */
.hero-image[data-parallax] {
  will-change: transform;
}

/* ---- Full-bleed cinematic break ---- */
.cinema {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #4A5E44;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.cinema-media {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
}
.cinema-media image-slot { width: 100%; height: 100%; --slot-bg: var(--hero-bg, #243A2D); }
.cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.45));
  z-index: 2;
}
.cinema-inner {
  position: relative;
  z-index: 3;
  text-align: left;
  color: #F2EDE4;
  padding: 0 var(--gutter) clamp(4rem, 9vh, 7rem);
  max-width: 22ch;
}
.cinema-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.72);
  margin-bottom: 2rem;
  display: block;
}
.cinema-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ---- Horizontal pinned gallery ---- */
.hgallery {
  position: relative;
  background: var(--paper-soft);
}
.hgallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hgallery-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  will-change: transform;
  align-items: center;
}
.hpanel {
  flex: 0 0 auto;
  width: min(40vw, 560px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.hpanel.hpanel-intro {
  width: min(34vw, 460px);
  justify-content: center;
  padding-right: 2rem;
}
.hpanel.hpanel-tall image-slot { aspect-ratio: 3 / 4; }
.hpanel.hpanel-wide { width: min(54vw, 760px); }
.hpanel.hpanel-wide image-slot { aspect-ratio: 16 / 10; }
.hpanel image-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  scale: 1;
  transition: scale 1s cubic-bezier(0.22,1,0.36,1);
  will-change: transform, scale;
}
#galeria .hpanel:not(.hpanel-intro) {
  cursor: crosshair;
}
#galeria .hpanel:not(.hpanel-intro):hover image-slot {
  scale: 1.07;
}
#galeria .hpanel:not(.hpanel-intro) .img-reveal {
  overflow: hidden;
  border-radius: 2px;
}
.hpanel-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hpanel-caption span {
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hpanel.is-visible .hpanel-caption span:nth-child(1) {
  opacity: 1; transform: none; transition-delay: 0.05s;
}
.hpanel.is-visible .hpanel-caption span:nth-child(2) {
  opacity: 1; transform: none; transition-delay: 0.18s;
}
.hgallery-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.hgallery-title em { font-style: italic; color: var(--terracota); }
.hgallery-intro-text {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 38ch;
}
.hgallery-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.4rem;
  height: 1px;
  background: var(--line);
  z-index: 5;
}
.hgallery-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.hgallery-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 3.4rem;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
@media (max-width: 860px) {
  /* On small screens, fall back to a normal horizontal swipe strip */
  .hgallery { height: auto !important; }
  .hgallery-sticky { position: relative; height: auto; display: block; padding: 4rem 0; }
  .hgallery-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
  .hpanel { width: 78vw; scroll-snap-align: center; }
  .hpanel.hpanel-wide, .hpanel.hpanel-intro { width: 78vw; }
  .hgallery-progress, .hgallery-hint { display: none; }
}

/* ---- Tipologías / planos ---- */
.tipo {
  padding: var(--section-y) 0;
  background: var(--paper);
}
.tipo-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.tipo-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.tipo-title em { font-style: italic; color: var(--terracota); }
.tipo-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: start;
}

/* ---- Plan stage: 2D / 3D maquette ---- */
/* Sección oscura en modo 3D */
.tipo-dark {
  background: #0F0E0C;
  transition: background 0.6s ease;
}
.tipo-dark .tipo-header { padding-top: 0; }

/* Eyebrow en tema claro */
.eyebrow-light {
  color: rgba(242, 237, 228, 0.55);
}

/* Toggle oscuro */
.tipo-view-toggle-dark {
  background: rgba(242,237,228,0.08);
  border-color: rgba(242,237,228,0.18);
}
.tipo-view-toggle-dark button { color: rgba(242,237,228,0.5); }
.tipo-view-toggle-dark button:not(:last-child) { border-right-color: rgba(242,237,228,0.18); }
.tipo-view-toggle-dark button.active { background: var(--paper); color: var(--ink); }

/* Plano full-bleed */
.tipo-plan-wrap {
  width: 100%;
  overflow: hidden;
  margin: 0;
}

/* Imagen 3D — fondo negro se integra */
.tipo-plan-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.tipo-plan-img.is-3d-render {
  background: #0F0E0C;
}
.tipo-plan-img.is-2d-plan {
  background: var(--paper-soft);
  padding: 3rem;
  box-sizing: border-box;
}

.tipo-plan-stage {
  margin-bottom: 4rem;
}
.tipo-plan-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tipo-plan-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tipo-view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.tipo-view-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.tipo-view-toggle button:not(:last-child) { border-right: 1px solid var(--line); }
.tipo-view-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.tipo-plan-scene {
  perspective: 2400px;
  perspective-origin: 50% 42%;
  padding: 1rem 0;
  transition: padding 0.8s cubic-bezier(0.22,1,0.36,1);
}
.tipo-plan-stage.is-3d .tipo-plan-scene {
  padding: clamp(3rem, 9vw, 8rem) 0 clamp(4rem, 11vw, 10rem);
}

.tipo-plan-obj {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateZ(0deg);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.tipo-plan-stage.is-3d .tipo-plan-obj {
  transform: rotateX(51deg) rotateZ(calc(-26deg + var(--tilt-y, 0deg)));
}

.tipo-plan-face {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.tipo-plan-stage.is-3d .tipo-plan-face {
  box-shadow: 0 40px 80px -30px rgba(26,38,32,0.55);
}

/* slab thickness — sits just below the face, revealed by the tilt */
.tipo-plan-thickness {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--stone), color-mix(in srgb, var(--stone) 70%, #000));
  transform: translateZ(-26px);
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tipo-plan-stage.is-3d .tipo-plan-thickness { opacity: 1; }

@media (max-width: 860px) {
  .tipo-plan-stage.is-3d .tipo-plan-obj {
    transform: rotateX(46deg) rotateZ(-20deg);
  }
}

/* ---- Credits ---- */
.tipo-credits {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.tipo-credit-row { display: flex; flex-direction: column; gap: 0.25rem; }
.tipo-credit-row .l {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tipo-credit-row .v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.tipo-spaces {
  display: flex;
  flex-direction: column;
}
.tipo-space {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  cursor: default;
  transition: padding-left 0.3s ease;
}
.tipo-space:first-child { border-top: 1px solid var(--ink); }
.tipo-space:hover { padding-left: 0.6rem; }
.tipo-space-name {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}
.tipo-space-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 0.2rem;
}
.tipo-space-area {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tipo-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
}
.tipo-total-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tipo-total-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  color: var(--terracota);
}
@media (max-width: 860px) {
  .tipo-header, .tipo-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---- Oversized scroll counter row ---- */
.bignum {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Mapa de ubicación
   ========================================================= */

.mapa {
  padding: var(--section-y) 0 0;
}

.mapa-header {
  padding: 0 var(--gutter);
  margin-bottom: 3rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.mapa-embed {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 700px);
  overflow: hidden;
  background: var(--paper-soft);
}

.mapa-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

.mapa-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem 2rem;
  max-width: 280px;
  z-index: 2;
}

.mapa-overlay-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 0.6rem;
  display: block;
}

.mapa-overlay-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.mapa-overlay-addr {
  font-size: 0.82rem;
  color: rgba(242,237,228,0.65);
  line-height: 1.5;
}

/* ---- Stagger animation for grids ---- */
.stagger-grid > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-grid.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger-grid.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.stagger-grid.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.stagger-grid.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
.stagger-grid.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }
.stagger-grid.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 400ms; }

/* ---- Signature: línea horizonte (orilla Presa Madín) ---- */
.horizon-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--water) 18%,
    rgba(61, 90, 94, 0.35) 82%,
    transparent 100%
  );
  display: block;
}

/* ---- Section index label (MAIREN-like) ---- */
.section-index {
  position: absolute;
  top: var(--section-y);
  right: var(--gutter);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  font-family: var(--font-body);
}

/* =========================================================
   LUJO SILENCIOSO — refinamientos globales
   ========================================================= */

/* Imágenes de sección más altas para más impacto */
.vista-image image-slot { aspect-ratio: 3 / 4; }
.dept-image image-slot  { aspect-ratio: 16 / 11; }
.arq-interior-card      { aspect-ratio: 2 / 3; }

/* Reveal más lento y elegante */
[data-reveal] {
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-reveal::after {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Headings: tracking más fino, peso más ligero */
h2 { letter-spacing: -0.03em; }

/* Eyebrow: más espacio entre letras */
.eyebrow { letter-spacing: 0.28em; }

/* Párrafos editoriales: interlineado más generoso */
.arq-intro,
.dept-text,
.sust-text,
.contact-lead,
.hgallery-intro-text { line-height: 1.8; }

/* Separadores de sección más sutiles */
.horizon-line { opacity: 0.35; }

/* Ficha: celdas con más respiro */
.ficha-cell { padding: 1.5rem 0; }

/* Mapa overlay: refinado */
.mapa-overlay {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(22, 20, 19, 0.82);
}

/* Botón principal: más elegante */
.btn-primary {
  letter-spacing: 0.28em;
  padding: 1.1rem 2rem;
  font-size: 10px;
}

/* Nav: más delgada y etérea */
.nav { padding: 1.4rem var(--gutter); }

/* Galería horizontal: paneles más altos */
.hgallery-sticky { min-height: 88vh; }
.hpanel image-slot { min-height: 72vh; }

/* =========================================================
   CURSOR EDITORIAL
   ========================================================= */

.lv-cursor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99996;
  will-change: contents;
}

.lv-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  background: var(--terracota);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.3s ease, transform 0.08s linear;
}
.lv-cursor-dot--press {
  transform: scale(0.7) !important;
  background: var(--terracota-deep);
}

.lv-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(184, 97, 44, 0.45);
  border-radius: 50%;
  z-index: 99997;
  pointer-events: none;
  will-change: transform, width, height;
  transition:
    width  0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    opacity 0.3s ease;
}
.lv-cursor-ring--hover {
  width: 44px;
  height: 44px;
  border-color: rgba(184, 97, 44, 0.7);
}

/* =========================================================
   MICRO-ANIMACIONES FLOTANTES
   ========================================================= */

/* Estadísticas y cifras — entrada con flotado */
.vista-stat,
.sust-item-n,
.ficha-value {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Eyebrows — entrada suave */
.eyebrow {
  transition: letter-spacing 0.5s ease;
}

/* Cards de amenidad: elevación al hover */
.amen-item {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
}
.amen-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -12px rgba(22, 20, 19, 0.12);
}

/* Ficha celdas */
.ficha-cell {
  transition: background 0.3s ease;
}
.ficha-cell:hover {
  background: rgba(242, 237, 228, 0.08);
}

/* img-reveal: evita conflicto con cursor parallax */
.img-reveal {
  overflow: hidden;
  will-change: transform;
}

/* Elementos con cursor parallax: transición de regreso suave */
.img-reveal,
.arq-interior-card,
.dept-image,
.amen-item-img {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- WhatsApp flotante ---- */
@keyframes wa-float-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(184,97,44,0.35); }
  70%  { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 14px rgba(184,97,44,0); }
  100% { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(184,97,44,0); }
}
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--terracota);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: wa-float-bob 3s ease-in-out infinite, wa-pulse 2.5s ease-out infinite;
  transition: transform 0.25s ease;
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
.wa-float:hover {
  animation: none;
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* =========================================================
   MENÚ HAMBURGUESA + OVERLAY MÓVIL
   ========================================================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  color: #F2EDE4;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1), opacity 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav.scrolled   .nav-hamburger { color: var(--ink); }
.nav.menu-open  .nav-hamburger { color: #F2EDE4; }

/* Cuando el overlay está abierto, la nav no tapa el menú */
.nav.menu-open {
  z-index: 200;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
.nav.menu-open .nav-logo-light { display: block !important; }
.nav.menu-open .nav-logo-dark  { display: none  !important; }

/* Overlay */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-mobile-link {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(242,237,228,0.08);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.nav-mobile-menu.is-open .nav-mobile-link {
  opacity: 1;
  transform: none;
}

.nav-ml-num {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--terracota);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 2rem;
  padding-bottom: 0.15em;
}
.nav-ml-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  font-weight: 300;
  color: #F2EDE4;
  line-height: 1;
}

.nav-mobile-cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F2EDE4;
  border: 1px solid var(--terracota);
  padding: 0.9rem 1.75rem;
  width: fit-content;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nav-mobile-menu.is-open .nav-mobile-cta {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  .nav-cta       { display: none; }
}

/* =========================================================
   VERSIÓN MÓVIL — 480px
   ========================================================= */

@media (max-width: 480px) {

  /* Base */
  :root {
    --gutter: 1.2rem;
    --section-y: 3.5rem;
  }

  /* Hero */
  .hero-meta     { display: none; }
  .hero-tagline  { font-size: 0.875rem; max-width: 30ch; }
  .hero-scroll   { display: none; }
  .hero-right    { font-size: 0.78rem; line-height: 1.6; }
  .hero-bottom   { gap: 0.6rem; }

  /* Manifiesto — ocultar número de sección */
  .manifesto-num { display: none; }
  .manifesto-quote { font-size: clamp(1.25rem, 5.5vw, 2rem); line-height: 1.32; }

  /* Vista oscura */
  .vista-title { font-size: clamp(1.9rem, 8vw, 3.2rem); }

  /* Arquitectura */
  .materials { grid-template-columns: 1fr 1fr; }

  /* Departamento */
  .dept-title    { font-size: clamp(1.8rem, 7vw, 3rem); }
  .dept-spec .v  { font-size: 1.3rem; }
  .dept-spec .l  { font-size: 9px; }

  /* Amenidades */
  .amen-title { font-size: clamp(1.8rem, 7vw, 3rem); }

  /* Sustentabilidad */
  .sust-title    { font-size: clamp(1.8rem, 7vw, 3rem); }
  .sust-item-n   { font-size: 2rem !important; }
  .sust-unit     { font-size: 1rem !important; }

  /* Entorno — simplificar tabla de conectividad */
  .entorno-title { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .entorno-row   { grid-template-columns: 4.5rem 1fr; }
  .entorno-row-mode { display: none; }

  /* Ficha técnica — 2 columnas */
  .ficha-grid { grid-template-columns: 1fr 1fr !important; }
  .ficha-cell { border-right: none !important; padding-right: 0 !important; }
  .ficha-cell:nth-child(odd)  { padding-left: 0; }
  .ficha-cell:nth-child(even) { padding-left: 1rem; border-left: 1px solid rgba(242,237,228,0.14); }

  /* Contacto */
  .contact-form input,
  .contact-form textarea { font-size: 16px; } /* evita zoom en iOS */

  /* Footer */
  .footer-top   { grid-template-columns: 1fr 1fr !important; }
  .footer-bottom { gap: 0.75rem; }

  /* WhatsApp flotante — más pequeño */
  .wa-float     { width: 48px; height: 48px; bottom: 1rem; right: 1rem; }
  .wa-float svg { width: 24px; height: 24px; }
}
