/* =========================================================
   El Salvaje · Chacras Marítimas — Landing
   Paleta y tipografía según Brandbook 2026
   ========================================================= */

/* Tipografía institucional (self-hosted, Alegreya Sans / Alegreya Sans SC) */
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/alegreya-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 300; font-display: swap; src: url(../fonts/alegreya-sans-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/alegreya-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/alegreya-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans SC"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/alegreya-sans-sc-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans SC"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/alegreya-sans-sc-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Institucionales */
  --verde: #007680;        /* Pantone 7714 C */
  --turquesa: #34A798;     /* Pantone 2401 C */
  --azul: #407EC9;         /* Pantone 660 C */
  --lima: #B5BD00;         /* Pantone 390 C */
  --blanco: #ffffff;
  --negro: #0f1a1b;

  /* Derivados (tintes 75/50/25 % permitidos por manual) */
  --verde-75: #408f97;
  --verde-25: #bfdcdf;
  --verde-10: #e6f1f2;
  --arena: #F5F3EE;
  --tinta: #1d2b2c;
  --tinta-2: #4a5a5b;
  --linea: rgba(0, 118, 128, .16);

  --ff: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --ff-sc: "Alegreya Sans SC", "Alegreya Sans", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 4.2vw, 60px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: clamp(1.02rem, .98rem + .2vw, 1.13rem);
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
em { font-style: normal; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--verde); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

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

/* ---------- Tipografía ---------- */
.eyebrow {
  font-family: var(--ff-sc);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .16em;
  color: var(--verde);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--lima); flex: none;
}
.eyebrow--light { color: #fff; }

.h2 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.75rem);
  color: var(--verde);
}
.h2 em, .display em, h1 em { font-weight: 700; }
.h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--verde); }
.h2, .h3, .display, .density-head h3 { text-wrap: balance; }

.display {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  line-height: 1.14;
  color: var(--verde);
}
.display em { color: var(--turquesa); }
.display--light { color: #fff; }
.display--light em { color: #fff; }

.lead {
  font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  color: var(--tinta-2);
  max-width: 36em;
  margin-top: 22px;
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--verde); --fg: #fff; --bd: var(--verde);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd); border-radius: var(--radius);
  font-family: var(--ff); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em;
  text-decoration: none; line-height: 1.1;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--lima); transform: translateX(-125%) skewX(-18deg); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn--primary:hover { color: var(--negro); border-color: var(--lima); }
.btn--primary:hover::after { transform: translateX(0) skewX(0); }
.btn--lime { --bg: var(--lima); --fg: var(--negro); --bd: var(--lima); }
.btn--lime::after { background: #fff; }
.btn--lime:hover { border-color: #fff; }
.btn--lime:hover::after { transform: translateX(0) skewX(0); }
.btn--outline { --bg: transparent; --fg: var(--verde); --bd: var(--verde); }
.btn--outline::after { background: var(--verde); }
.btn--outline:hover { color: #fff; }
.btn--outline:hover::after { transform: translateX(0) skewX(0); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,30,34,.45), rgba(0,30,34,0));
  transition: opacity .4s var(--ease);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; position: relative; }
.brand { position: relative; display: block; width: 150px; flex: none; }
.brand-logo { width: 150px; height: auto; transition: opacity .35s var(--ease); }
.brand-logo--green { position: absolute; inset: 0; opacity: 0; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.nav a {
  color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem;
  position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--lima); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav .nav-cta {
  background: var(--lima); color: var(--negro); font-weight: 700;
  padding: 11px 20px; border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav .nav-cta:hover { background: #fff; }
.header-cta { display: none; }
.burger { display: none; }

.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--linea);
  height: 66px;
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled .brand-logo--white { opacity: 0; }
.site-header.is-scrolled .brand-logo--green { opacity: 1; }
.site-header.is-scrolled .nav a { color: var(--tinta); }
.site-header.is-scrolled .nav a:hover { color: var(--verde); }
.site-header.is-scrolled .nav .nav-cta { background: var(--verde); color: #fff; }
.site-header.is-scrolled .nav .nav-cta:hover { background: var(--lima); color: var(--negro); }

@media (max-width: 1180px) {
  .hero-slash { display: none; }
  .hero-facts li:last-child { display: none; }
}
@media (max-width: 1080px) {
  .nav a:not(.nav-cta) { font-size: .95rem; }
  .nav { gap: 16px; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .brand, .brand-logo { width: 124px; }
  .header-cta { display: inline-flex; margin-left: auto; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; padding: 0; margin-right: -8px;
  }
  .burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .35s var(--ease), background .3s; }
  .site-header.is-scrolled .burger span, .site-header.menu-open .burger span { background: var(--verde); }
  .site-header.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 28px;
    box-shadow: 0 30px 40px -20px rgba(0,40,44,.25);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  }
  .site-header.is-scrolled .nav { top: 66px; }
  .nav a { color: var(--tinta); font-size: 1.2rem; padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin-top: 18px; text-align: center; padding: 16px; border: 0; background: var(--verde); color: #fff; }
  .site-header.menu-open { background: #fff; }
  .site-header.menu-open::before { opacity: 0; }
  .site-header.menu-open .brand-logo--white { opacity: 0; }
  .site-header.menu-open .brand-logo--green { opacity: 1; }
  .site-header.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .site-header.is-scrolled .header-cta, .site-header.menu-open .header-cta { --bg: var(--verde); --fg: #fff; --bd: var(--verde); }
}
@media (max-width: 380px) {
  .header-cta { padding: 0 12px; font-size: .88rem; }
  .brand, .brand-logo { width: 108px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3;
}
.hero-media img { object-fit: cover; object-position: 50% 60%; transform: scale(1.06); will-change: transform; }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,34,38,.72) 0%, rgba(0,34,38,.42) 42%, rgba(0,34,38,.08) 70%, rgba(0,34,38,.18) 100%),
    linear-gradient(0deg, rgba(0,34,38,.55) 0%, rgba(0,34,38,0) 35%);
}
.hero-slash {
  position: absolute; z-index: -1; bottom: 0;
  left: calc(max(0px, (100vw - var(--wrap)) / 2) + min(100vw, var(--wrap)) - var(--gutter) - 440px - 140px);
  width: 130px; height: 64%;
  transform-origin: bottom; animation: slashIn 1.4s .3s var(--ease) both;
}
@keyframes slashIn { from { transform: translateY(100%); } to { transform: none; } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 440px);
  gap: clamp(32px, 6vw, 110px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.4rem);
  line-height: 1.02; font-weight: 300; letter-spacing: -.02em;
  max-width: none;
}
.hero h1 em { color: #fff; font-weight: 700; }
@keyframes underline { to { transform: scaleX(1); } }
.hero-lead { margin-top: 26px; font-size: clamp(1.12rem, 1rem + .45vw, 1.35rem); max-width: 26em; color: rgba(255,255,255,.92); }

.hero-facts {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255,255,255,.28);
  max-width: 580px;
}
.hero-facts li {
  flex: 1 1 0; min-width: 150px; padding: 18px 22px 0 0; margin-right: 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.hero-facts li + li { border-left: 1px solid rgba(255,255,255,.28); padding-left: 22px; }
.hero-facts strong { font-size: clamp(1rem, .8rem + .4vw, 1.22rem); font-weight: 700; white-space: nowrap; }
.hero-facts span { font-size: .95rem; color: rgba(255,255,255,.78); line-height: 1.35; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.7); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: wheel 2s infinite var(--ease);
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Form card ---------- */
.form-card {
  background: #fff; color: var(--tinta);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0,20,24,.55), 0 0 0 1px rgba(255,255,255,.4);
  position: relative; overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.form-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--verde) 0 55%, var(--turquesa) 55% 72%, var(--lima) 72% 90%, var(--azul) 90%);
}
.form-card.is-highlight { box-shadow: 0 0 0 4px var(--lima), 0 40px 80px -30px rgba(0,20,24,.55); transform: translateY(-4px); }
.form-card-head { padding: 30px 30px 6px; }
.form-card-head .eyebrow { font-size: .85rem; margin-bottom: 10px; }
.form-card-head h2 { font-size: 1.65rem; line-height: 1.12; color: var(--verde); font-weight: 400; }
.form-card-head p { margin-top: 8px; font-size: 1rem; color: var(--tinta-2); line-height: 1.45; }
.form-card-body { padding: 18px 30px 28px; }

.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 700; color: var(--tinta); padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; height: 48px; padding: 0 14px;
  font: inherit; font-size: 1rem; color: var(--tinta);
  background: var(--arena); border: 1.5px solid transparent; border-radius: var(--radius);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder { color: #8c9899; }
.field input:hover { border-color: var(--verde-25); }
.field input:focus { outline: none; background: #fff; border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-10); }
.field.is-invalid input { border-color: #c2412d; background: #fff6f4; }
.field--choice legend { margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: flex; flex-direction: column; gap: 1px; height: 100%;
  padding: 11px 12px 11px 38px; border: 1.5px solid var(--linea); border-radius: var(--radius);
  background: #fff; transition: border-color .25s, background .25s; position: relative; line-height: 1.25;
}
.choice span::before {
  content: ""; position: absolute; left: 12px; top: 14px; width: 16px; height: 16px;
  border: 1.5px solid var(--verde-75); border-radius: 50%; background: #fff;
  transition: box-shadow .25s, border-color .25s;
}
.choice b { font-size: .98rem; color: var(--tinta); }
.choice small { font-size: .82rem; color: var(--tinta-2); }
.choice:hover span { border-color: var(--verde-75); }
.choice input:checked + span { border-color: var(--verde); background: var(--verde-10); }
.choice input:checked + span::before { border-color: var(--verde); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px var(--verde); }
.choice input:focus-visible + span { outline: 2px solid var(--lima); outline-offset: 2px; }
.field--choice.is-invalid .choice span { border-color: #c2412d; }
.lead-form .btn { margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--tinta-2); text-align: center; }
.form-error { font-size: .88rem; color: #c2412d; text-align: center; }
.form-success { text-align: center; padding: 24px 6px; }
.form-success h3 { font-size: 1.6rem; color: var(--verde); font-weight: 400; margin: 10px 0 8px; }
.form-success svg { width: 54px; height: 54px; margin: 0 auto; fill: none; stroke: var(--verde); stroke-width: 1.6; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 64px); padding-bottom: 0; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media img { object-position: 60% 50%; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(0,34,38,.5) 0%, rgba(0,34,38,.35) 38%, rgba(0,34,38,.72) 70%, rgba(0,34,38,.85) 100%);
  }
  .hero-slash { display: none; }
  .hero-facts li { min-width: 0; padding-right: 12px; margin-right: 12px; }
  .hero-facts li + li { padding-left: 12px; }
  .hero-facts strong { font-size: 1.05rem; }
  .hero-facts span { font-size: .84rem; }
  .form-card { margin: 0 calc(var(--gutter) * -1); border-radius: 0; box-shadow: none; }
  .form-card-head { padding: 34px var(--gutter) 4px; }
  .form-card-body { padding: 18px var(--gutter) 40px; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-facts li:last-child { display: none; }
  .choices { grid-template-columns: 1fr; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--tight { padding-bottom: clamp(60px, 8vw, 110px); }
.paisajes { padding-top: 0; }
.section--sand { background: var(--arena); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head--split > p { color: var(--tinta-2); max-width: 30em; font-size: 1.1rem; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Manifiesto ---------- */
.manifesto-grid { display: grid; grid-template-columns: minmax(200px, .5fr) 1.5fr; gap: clamp(24px, 5vw, 80px); }
.guarda { width: 170px; height: auto; margin-top: 12px; }
.stats {
  list-style: none; padding: 0; margin: clamp(60px, 8vw, 110px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--linea);
}
.stat { padding: 32px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--linea); }
.stat-num {
  font-size: clamp(2.8rem, 2rem + 2.8vw, 4.6rem); font-weight: 300; line-height: 1;
  color: var(--verde); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-num small { font-size: .38em; font-weight: 500; color: var(--turquesa); letter-spacing: 0; }
.stat-label { color: var(--tinta-2); font-size: 1rem; line-height: 1.4; max-width: 15em; }

@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .guarda { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px 26px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--linea); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--linea); }
}

/* ---------- Paisajes (acordeón) ---------- */
.panels {
  display: flex; gap: 10px; height: clamp(440px, 62vh, 620px);
  padding-inline: var(--gutter); max-width: calc(var(--wrap) + 200px); margin-inline: auto;
}
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--radius);
  cursor: pointer; transition: flex .8s var(--ease);
  isolation: isolate; outline-offset: 4px;
}
.panel.is-open { flex: 3.4; }
.panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.08); transition: transform 1.2s var(--ease);
}
.panel.is-open img { transform: scale(1); }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0,30,34,.78) 0%, rgba(0,30,34,.1) 55%, rgba(0,30,34,.05) 100%);
}
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; }
.panel-num { font-family: var(--ff-sc); font-size: .9rem; letter-spacing: .14em; color: var(--lima); font-weight: 700; }
.panel h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); margin-top: 6px; font-weight: 400; }
.panel p {
  max-width: 26em; margin-top: 10px; font-size: 1.05rem; line-height: 1.45; color: rgba(255,255,255,.9);
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.panel.is-open p { opacity: 1; transform: none; transition-delay: .3s; }
.panel:not(.is-open) h3 { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; bottom: 28px; left: 24px; margin: 0; }
.panel:not(.is-open) .panel-body { top: 0; }
.panel:not(.is-open) .panel-num { position: absolute; top: 24px; left: 26px; }

@media (max-width: 900px) {
  .panels {
    height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    padding-bottom: 8px; scrollbar-width: none;
  }
  .panels::-webkit-scrollbar { display: none; }
  .panel, .panel.is-open { flex: 0 0 82%; height: 460px; scroll-snap-align: center; }
  .panel img { transform: none; }
  .panel p { opacity: 1; transform: none; }
  .panel:not(.is-open) h3 { writing-mode: horizontal-tb; transform: none; position: static; margin-top: 6px; }
  .panel:not(.is-open) .panel-num { position: static; }
  .panel:not(.is-open) .panel-body { top: auto; }
}

/* ---------- Chacras ---------- */
.chacras-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.photo-frame { margin: 0; position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }
.frame-slash { position: absolute; top: -28px; right: 12%; width: 84px; height: 52%; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--tinta); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px;
  border-left: 2px solid var(--turquesa); border-bottom: 2px solid var(--turquesa); transform: rotate(-45deg);
}
.price-line { margin: 34px 0 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.price-line p { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-line small { font-size: 1rem; color: var(--tinta-2); }
.price-line strong { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 700; color: var(--verde); letter-spacing: -.01em; }
.tag {
  font-family: var(--ff-sc); font-weight: 700; font-size: .85rem; letter-spacing: .12em;
  padding: 7px 12px; border-radius: 2px; text-transform: lowercase;
}
.tag--lima { background: var(--lima); color: var(--negro); }

.density {
  margin-top: clamp(70px, 9vw, 120px);
  background: var(--arena); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: .9fr 1.6fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  position: relative; overflow: hidden;
}
.density-head h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); color: var(--verde); }
.density-head h3 em { color: var(--turquesa); }
.density-head p { margin-top: 14px; color: var(--tinta-2); }
.density-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: start; }
.density-vs { align-self: center; font-family: var(--ff-sc); letter-spacing: .1em; color: var(--tinta-2); margin-top: -60px; }
.ha { margin: 0; }
.ha svg { width: 100%; aspect-ratio: 1; border-radius: 2px; overflow: hidden; }
.ha-bg { fill: #dfe9d9; }
.ha-bg--grey { fill: #e7e5df; }
.ha-veg circle { fill: #9fbf8a; opacity: .75; }
.ha-lot { fill: #fff; stroke: var(--verde); stroke-width: .8; stroke-dasharray: 2 1.2; }
.ha-lot--grey { stroke: #9aa3a3; }
.ha-house { fill: var(--verde); }
.ha-house--grey { fill: #7d8889; }
.ha-street { fill: #cfccc4; }
.ha figcaption { margin-top: 14px; display: grid; gap: 2px; font-size: .98rem; color: var(--tinta-2); }
.ha figcaption strong { color: var(--tinta); font-size: 1.05rem; margin-bottom: 4px; }
.ha--salvaje figcaption strong { color: var(--verde); }
.ha--salvaje figcaption b { color: var(--verde); }
.density-quote {
  grid-column: 1 / -1; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-style: normal; font-weight: 500;
  color: var(--verde); border-top: 1px solid var(--linea); padding-top: 26px;
}
/* animación de lotes */
.density .ha-lot, .density .ha-house { transform-box: fill-box; transform-origin: center; transform: scale(.6); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.density.is-in .ha-lot, .density.is-in .ha-house { transform: none; opacity: 1; }
.density.is-in .ha-house { transition-delay: .35s; }
.density.is-in .ha--barrio .ha-lot { transition-delay: .5s; }
.density.is-in .ha--barrio .ha-house { transition-delay: .8s; }

@media (max-width: 900px) {
  .chacras-grid { grid-template-columns: 1fr; }
  .photo-frame img { aspect-ratio: 4 / 3; }
  .density { grid-template-columns: 1fr; }
  .density-compare { grid-template-columns: 1fr 1fr; gap: 16px; }
  .density-vs { display: none; }
}

/* ---------- Masterplan ---------- */
.masterplan { background: var(--verde); color: #fff; overflow: hidden; }
.masterplan .h2 { color: #fff; }
.masterplan .h2 em { color: var(--lima); }
.masterplan .lead { color: rgba(255,255,255,.86); }
.masterplan-trama { position: absolute; right: -40px; top: -30px; width: 260px; opacity: .1; pointer-events: none; }
.masterplan-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 90px); align-items: center; position: relative; }
.mp-list { margin: 36px 0 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.22); }
.mp-list div { padding: 20px 18px 20px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.mp-list div:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.22); }
.mp-list dt { font-size: 2rem; font-weight: 300; line-height: 1; color: #fff; }
.mp-list dd { margin: 8px 0 0; color: rgba(255,255,255,.8); font-size: .98rem; line-height: 1.4; }
.masterplan-figure { margin: 0; }
.mp-zoom {
  display: block; width: 100%; padding: 0; border: 0; background: #e9eaea; border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: zoom-in;
}
.mp-zoom img { width: 100%; transition: transform 1s var(--ease); }
.mp-zoom:hover img { transform: scale(1.03); }
.mp-zoom-hint {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--verde); color: #fff; padding: 9px 14px; border-radius: var(--radius); font-weight: 700; font-size: .92rem;
}
.mp-zoom-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.masterplan-figure figcaption { margin-top: 12px; font-size: .88rem; color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .masterplan-grid { grid-template-columns: 1fr; }
  .masterplan-figure { order: -1; }
}

/* ---------- Casas ---------- */
.casas-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.pills { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  padding: 8px 14px; border: 1px solid var(--linea); border-radius: 40px; font-size: .95rem; color: var(--verde); font-weight: 500;
  background: #fff;
}
.casas .price-line { margin-bottom: 0; }
.casas-photos { margin: 0; position: relative; aspect-ratio: 1 / .95; }
.casas-photos img { position: absolute; object-fit: cover; border-radius: var(--radius); }
.cp-a { width: 82%; height: 72%; right: 0; top: 0; }
.cp-b { width: 42%; height: 60%; left: 0; bottom: 0; box-shadow: 0 0 0 10px #fff; }

.steps {
  list-style: none; padding: 0; margin: clamp(70px, 9vw, 110px) 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: s;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--linea);
}
.steps li { position: relative; padding: 38px 18px 0 0; display: grid; gap: 4px; }
.steps li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--verde);
}
.steps li:last-child::before { background: var(--lima); border-color: var(--lima); }
.steps span { font-family: var(--ff-sc); font-size: .85rem; letter-spacing: .12em; color: var(--turquesa); font-weight: 700; }
.steps b { font-size: 1.12rem; color: var(--verde); font-weight: 700; line-height: 1.2; }
.steps small { font-size: .95rem; color: var(--tinta-2); line-height: 1.4; }

.styles { margin-top: clamp(80px, 10vw, 130px); }
.styles-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.styles-head p { color: var(--tinta-2); margin-top: 10px; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.c-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--verde); background: #fff; color: var(--verde);
  display: grid; place-items: center; transition: background .3s, color .3s, opacity .3s;
}
.c-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.c-btn:hover { background: var(--verde); color: #fff; }
.c-btn:disabled { opacity: .3; pointer-events: none; }
.carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-dragging * { pointer-events: none; }
.style-card { flex: 0 0 clamp(270px, 29vw, 380px); scroll-snap-align: start; }
.style-img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.1; background: var(--arena); }
.style-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.style-card:hover .style-img img { transform: scale(1.05); }
.style-kicker { font-family: var(--ff-sc); font-size: .9rem; letter-spacing: .14em; color: var(--turquesa); font-weight: 700; margin: 20px 0 4px; }
.style-card h4 { font-size: 1.55rem; color: var(--verde); font-weight: 400; }
.style-card p:last-child { margin-top: 8px; color: var(--tinta-2); font-size: 1rem; line-height: 1.5; }
.styles .center { margin-top: 36px; }

@media (max-width: 900px) {
  .casas-intro { grid-template-columns: 1fr; }
  .casas-photos { aspect-ratio: 1 / .8; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .steps::before { display: none; }
  .steps li { padding-top: 26px; border-top: 1px solid var(--linea); }
  .steps li::before { top: -7px; }
  .carousel-nav { display: none; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Vida (bento) ---------- */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(190px, 16vw));
}
.tile { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,30,34,.72), rgba(0,30,34,0) 55%); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; color: rgba(255,255,255,.88); font-size: .98rem; line-height: 1.4; }
.tile figcaption b { display: block; color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 2px; }
.tile--xl { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile--xl figcaption b { font-size: 1.7rem; }
.bento > :nth-child(2) { grid-column: 3 / 5; }
.bento > :nth-child(3) { grid-column: 3 / 4; }
.bento > :nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
.bento > :nth-child(5) { grid-column: 4 / 5; grid-row: 2; }
.bento > :nth-child(6) { grid-column: 3 / 5; grid-row: 3; }
.tile--info { background: var(--verde); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.tile--info::after { display: none; }
.tile--info b { font-size: 1.3rem; }
.tile--info p { color: rgba(255,255,255,.85); font-size: .98rem; line-height: 1.45; }
.tile-icon { width: 38px; height: 38px; fill: none; stroke: var(--lima); stroke-width: 1.6; margin-bottom: auto; }
.tile--lime { background: var(--lima); color: var(--negro); }
.tile--lime p { color: rgba(15,26,27,.8); }
.tile--lime .tile-icon { stroke: var(--verde); }
.vida .center { margin-top: 48px; }

@media (max-width: 900px) {
  .section-head--split { grid-template-columns: 1fr; gap: 16px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .tile--xl { grid-column: 1 / -1 !important; grid-row: span 1 !important; height: 280px; }
  .bento > :nth-child(4) { grid-column: 1 / -1 !important; }
  .tile--info { padding: 20px; }
}
@media (max-width: 480px) {
  .tile figcaption { padding: 14px; font-size: .88rem; }
  .tile figcaption b { font-size: 1.1rem; }
  .tile--info b { font-size: 1.1rem; }
  .tile--info p { font-size: .88rem; }
}

/* ---------- Ubicación ---------- */
.ubi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.times { list-style: none; padding: 0; margin: 34px 0 18px; border-top: 1px solid var(--linea); }
.times li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.times span { font-size: 1.1rem; }
.times i { flex: 1; border-bottom: 1px dotted var(--verde-25); transform: translateY(-4px); }
.times b { color: var(--verde); font-weight: 700; font-variant-numeric: tabular-nums; }
.times li:first-child span, .times li:first-child b { color: var(--verde); font-weight: 700; }
.small-note { color: var(--tinta-2); font-size: .98rem; margin-bottom: 30px; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: var(--radius); background: var(--arena); }
.map figcaption { margin-top: 10px; font-size: .85rem; color: var(--tinta-2); }
.map text { font-family: var(--ff); }
.map-town circle { fill: #fff; stroke: var(--tinta); stroke-width: 1.6; }
.map-town text { font-size: 14px; fill: var(--tinta); font-weight: 500; }
.map-town--far text { font-size: 13px; fill: var(--tinta-2); }
.map-sea { font-family: var(--ff-sc) !important; font-size: 13px; letter-spacing: .18em; fill: var(--azul); writing-mode: vertical-rl; }
.map-reserve { font-size: 13px; fill: #1f7a6d; font-weight: 700; }
.map-route rect { fill: #fff; stroke: #9aa9a8; }
.map-route text { font-size: 11px; font-weight: 700; fill: var(--tinta-2); text-anchor: middle; }
.map-label-t { font-size: 16px; font-weight: 700; fill: #fff; }
.map-label-s { font-size: 11px; fill: rgba(255,255,255,.85); }
.map-north text { font-size: 12px; font-weight: 700; fill: var(--tinta); }
.map-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s infinite var(--ease); }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }

@media (max-width: 900px) {
  .ubi-grid { grid-template-columns: 1fr; }
  .map { max-width: 480px; }
}

/* ---------- Trayectoria ---------- */
.trust { position: relative; color: #fff; padding: clamp(100px, 13vw, 180px) 0; isolation: isolate; overflow: hidden; }
.trust-media { position: absolute; inset: 0; z-index: -2; }
.trust-media img { width: 100%; height: 100%; object-fit: cover; }
.trust::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,70,76,.92) 0%, rgba(0,70,76,.78) 50%, rgba(0,70,76,.55) 100%); }
.trust .h2 { color: #fff; max-width: 14em; }
.trust .h2 em { color: var(--lima); }
.trust-stats { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-stats li { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 2px solid var(--lima); }
.trust-stats b { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); font-weight: 300; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.trust-stats li > span { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.4; max-width: 15em; }
@media (max-width: 900px) { .trust-stats { grid-template-columns: 1fr 1fr; gap: 34px 20px; } }

/* ---------- Valores ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 1080px; margin: 0 auto; }
.offer { border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.offer:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,60,66,.35); }
.offer-img { aspect-ratio: 16 / 8; overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; }
.offer-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.offer-body .style-kicker { margin-top: 0; }
.offer h3 { font-size: 1.7rem; color: var(--verde); font-weight: 400; }
.offer-price { font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3rem); font-weight: 700; color: var(--verde); margin: 16px 0 10px; letter-spacing: -.01em; line-height: 1; }
.offer-price small { font-size: 1rem; font-weight: 400; color: var(--tinta-2); display: block; margin-bottom: 6px; letter-spacing: 0; }
.offer-body > p:not(.offer-price):not(.style-kicker) { color: var(--tinta-2); margin-bottom: 26px; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer--featured { border-color: var(--verde); box-shadow: inset 0 5px 0 var(--lima); }

.financing {
  max-width: 1080px; margin: 34px auto 0;
  display: flex; align-items: center; gap: 20px 34px; flex-wrap: wrap;
  padding: 22px 28px; background: var(--verde-10); border-radius: var(--radius);
}
.financing-title { font-family: var(--ff-sc); font-weight: 700; letter-spacing: .14em; color: var(--verde); font-size: .95rem; text-transform: lowercase; }
.financing ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.financing li { color: var(--tinta-2); font-size: 1rem; position: relative; padding-left: 16px; }
.financing li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--lima); transform: rotate(45deg); }
.financing b { color: var(--tinta); }
.disclaimer { text-align: center; font-size: .85rem; color: var(--tinta-2); margin-top: 18px; }

@media (max-width: 800px) {
  .offers { grid-template-columns: 1fr; }
  .offer-body { padding: 24px 22px 28px; }
  .financing { flex-direction: column; align-items: flex-start; }
  .financing ul { flex-direction: column; gap: 8px; }
}

/* ---------- Cierre ---------- */
.closing { position: relative; color: #fff; min-height: 78vh; display: flex; align-items: center; padding: 120px 0; overflow: hidden; isolation: isolate; }
.closing-media, .closing-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.closing-media img { object-fit: cover; }
.closing-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(0,34,38,.78) 0%, rgba(0,34,38,.45) 55%, rgba(0,34,38,.15) 100%); }
.closing-slash { position: absolute; right: 16%; top: 0; width: 170px; height: 100%; z-index: -1; opacity: .95; }
.closing-inner .display { max-width: 15em; margin-bottom: 40px; }
@media (max-width: 900px) {
  .closing { min-height: 70vh; }
  .closing-slash { right: -40px; width: 110px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--verde); color: rgba(255,255,255,.85); padding: 80px 0 30px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 40px; }
.footer-brand img { width: 130px; }
.footer-brand p { margin-top: 18px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-title { font-family: var(--ff-sc); font-weight: 700; letter-spacing: .14em; color: var(--lima); margin-bottom: 14px; font-size: .95rem; text-transform: lowercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .98rem; line-height: 1.45; }
.footer-col a { text-decoration: none; color: #fff; }
.footer-col a:hover { color: var(--lima); }
.socials { display: flex !important; gap: 10px !important; margin-bottom: 26px !important; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--lima); border-color: var(--lima); color: var(--negro); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.footer-guarda { width: 260px; opacity: .22; margin: 50px auto 0; }
.footer-legal { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 30px; font-size: .82rem; color: rgba(255,255,255,.65); }
.footer-legal p:first-child { max-width: 70ch; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,22,24,.92); display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 90vh; width: auto; border-radius: var(--radius); background: #e9eaea; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 30px; line-height: 1; }

/* ---------- Revelado al scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .reveal[data-delay="3"] { transition-delay: .36s; }
.js .photo-frame.reveal { transform: none; opacity: 1; }
.js .photo-frame.reveal img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js .photo-frame.reveal.is-in img { clip-path: inset(0 0 0 0); }
.js .photo-frame.reveal .frame-slash { transform: translateY(-30px); opacity: 0; transition: transform 1s .6s var(--ease), opacity 1s .6s var(--ease); }
.js .photo-frame.reveal.is-in .frame-slash { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 20px 0 16px; border-radius: 30px;
  background: #25D366; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.02rem;
  box-shadow: 0 12px 30px -8px rgba(0, 40, 30, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(0, 40, 30, .55); }
@media (max-width: 900px) {
  .wa-float { right: 16px; bottom: 16px; width: 58px; padding: 0; justify-content: center; }
  .wa-label { display: none; }
}
