/* ===========================================================
   Arenas de Quilpué II — Landing
   Estética: limpia y moderna, fiel a la marca (fondo blanco)
   Plus Jakarta Sans (display) · Mulish (texto) · crema + café #6c4031 (logo) + naranjo #f58220
   =========================================================== */

:root {
  --bone:    #fdf9f4;   /* base / crema cálido (hogar) */
  --bone-2:  #f4ece2;   /* arena clara cálida para secciones alternas */
  --ink:     #2c1d15;   /* café-tostado oscuro: secciones cálidas acogedoras */
  --ink-2:   #3c2a1f;
  --clay:    #6c4031;   /* CAFÉ de marca (color exacto del logo oficial) */
  --clay-dk: #532f24;   /* café hover (más oscuro) */
  --sand:    #e0bda5;   /* café claro / arena sobre fondos oscuros */
  --accent:  #f58220;   /* naranjo: rellenos / destacados sobre fondos oscuros */
  --accent-ink: #b54d09; /* naranjo oscuro para TEXTO sobre claro (WCAG AA 4.97:1) */
  --muted:   #6e5f54;   /* café-gris cálido de texto secundario */
  --muted-d: #cab6a7;   /* texto tenue cálido sobre oscuro */
  --line:    rgba(70,45,30,.14);
  --line-d:  rgba(255,245,235,.18);
  --maxw:    1240px;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --sans:    "Mulish", system-ui, sans-serif;
  --ease:    cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--clay); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--maxw), 90%); margin-inline: auto; }

/* imagen base (fondo se setea desde JS; color de respaldo evita "rotos") */
.img { background: var(--bone-2) center/cover no-repeat; position: relative; }

/* ---------- Tipografía ---------- */
.kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay); display: inline-flex; align-items: baseline; gap: .7em; margin-bottom: 1.4rem;
}
.kicker span { font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: 0; color: var(--accent-ink); opacity: 1; }
.kicker--light { color: var(--sand); }
.kicker--light span { color: #fff; opacity: .6; }

.display {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.06; letter-spacing: -.025em;
}
.display--light { color: var(--bone); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; }
.section--dark .lede { color: var(--muted-d); }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--clay); --fg: #fff; --bd: var(--clay);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .95rem 1.7rem; border-radius: 11px; cursor: pointer;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--solid:hover { background: var(--clay-dk); border-color: var(--clay-dk); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--line:hover { --bd: var(--ink); }
.section--dark .btn--line, .hero .btn--line { --fg: #fff; --bd: rgba(255,255,255,.4); }
.section--dark .btn--line:hover, .hero .btn--line:hover { --bd: #fff; background: rgba(255,255,255,.08); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.nav.is-scrolled { background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav__inner { width: min(var(--maxw), 90%); margin-inline: auto; height: 80px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; line-height: 1; }
.brand__logo {
  display: block; width: 116px; height: 58px;
  background-color: #fff;                 /* color del logo sobre el hero */
  -webkit-mask: url(../assets/logo.svg) left center / contain no-repeat;
          mask: url(../assets/logo.svg) left center / contain no-repeat;
  transition: background-color .4s var(--ease);
}
.nav.is-scrolled .brand__logo { background-color: var(--clay); }

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.9); display: inline-flex; align-items: baseline; gap: .45em; transition: color .3s; }
.nav__links a span { font-size: .68rem; opacity: .55; font-variant-numeric: tabular-nums; }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav__links a:hover { color: #fff; }
.nav.is-scrolled .nav__links a:hover { color: var(--clay); }
.nav__cta { border: 1.5px solid rgba(255,255,255,.4); padding: .55rem 1.2rem; border-radius: 11px; }
.nav.is-scrolled .nav__cta { color: var(--clay) !important; border-color: var(--clay); }

.burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px 4px; }
.burger span { width: 26px; height: 1.5px; background: #fff; transition: .35s var(--ease); }
.nav.is-scrolled .burger span { background: var(--ink); }
.burger.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; padding: 6rem 0 0; }
.hero__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; background: var(--bone-2); }
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(120% 90% at 75% 20%, transparent 30%, rgba(8,16,24,.28) 100%); }
.hero__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8,16,24,.85) 0%, rgba(8,18,28,.5) 48%, rgba(8,18,28,.12) 100%); }

.hero__inner { width: min(var(--maxw), 90%); margin-inline: auto; }
.hero__eyebrow { display: flex; align-items: center; gap: 1rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 1.6rem; }
.hero__eyebrow .rule { width: 46px; height: 1px; background: rgba(255,255,255,.5); display: inline-block; }

.hero__title { font-family: var(--display); font-weight: 600; font-size: clamp(2.9rem, 8vw, 6rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 1.6rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; }
.hero__title em { font-style: normal; font-weight: 600; color: inherit; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 46ch; color: rgba(255,255,255,.9); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__meta { width: min(var(--maxw), 90%); margin: auto auto 0; padding: 2.2rem 0 2.6rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.22); }
.facts div { padding: 1.4rem 0 .2rem; border-left: 1px solid rgba(255,255,255,.16); padding-left: 1.4rem; }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: .5rem; }
.facts dd { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1; }
.facts dd small { font-family: var(--sans); font-size: .9rem; font-weight: 500; opacity: .7; margin-left: .2em; }

.hero__scroll { position: absolute; right: max(5vw, 1.5rem); bottom: 2rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 40px; background: rgba(255,255,255,.5); margin: .8rem auto 0; animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0%,100%{ transform: scaleY(.3); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* entradas escalonadas del hero */
[data-d] { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero__title .line[data-d] { transform: translateY(102%); }
[data-d="1"]{ animation-delay:.15s } [data-d="2"]{ animation-delay:.28s }
[data-d="3"]{ animation-delay:.45s } [data-d="4"]{ animation-delay:.58s } [data-d="5"]{ animation-delay:.72s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--ink); color: var(--bone); overflow: hidden; border-block: 1px solid var(--ink-2); }
.marquee__track { display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap; padding: 1rem 0; animation: scroll 38s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.marquee__track i { color: var(--clay); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- SECCIONES base ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--dark { background: var(--ink); color: var(--bone); }
.section--soft { background: var(--bone-2); }

/* ---------- PROYECTO ---------- */
.proyecto__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.proyecto__copy .lede { margin-bottom: 2.5rem; }

.specs { list-style: none; display: grid; gap: 0; }
.specs li { display: grid; grid-template-columns: 44px auto 1fr; align-items: center; gap: 1.1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.specs li:last-child { border-bottom: 1px solid var(--line); }
.specs__ico { width: 28px; color: var(--clay); }
.specs__ico svg { width: 28px; height: 28px; }
.specs__n { font-family: var(--display); font-size: 1.7rem; font-weight: 400; min-width: 1.4em; }
.specs__t { color: var(--muted); font-size: .98rem; }

.proyecto__figure { margin: 0; position: relative; }
.proyecto__figure .img--tall { aspect-ratio: 4/5; border-radius: 4px; }
.proyecto__figure figcaption { position: absolute; left: 1rem; bottom: 1rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(8,14,20,.45); backdrop-filter: blur(4px); padding: .35rem .7rem; border-radius: 3px; }

/* Offers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: clamp(3rem, 6vw, 5rem); }
.offer { border-radius: 6px; padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.offer--dark { background: var(--ink); color: var(--bone); }
.offer--light { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(20,24,28,.03), 0 16px 34px -24px rgba(20,24,28,.2); }
.offer__tag { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.6rem; }
.offer--dark .offer__tag { color: var(--sand); }
.offer--light .offer__tag { color: var(--clay); }
.offer__price { font-family: var(--display); font-weight: 400; line-height: 1; margin-bottom: .9rem; display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.offer__price strong { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; }
.offer__from { font-family: var(--sans); font-size: .85rem; font-weight: 500; opacity: .65; }
.offer__price small { font-size: 1.1rem; opacity: .75; }
.offer__promo { display: inline-block; align-self: flex-start; background: var(--clay); color: #fff; font-size: .8rem; font-weight: 600; padding: .35rem .85rem; border-radius: 100px; margin-bottom: 1rem; }
.offer__note { font-size: .95rem; margin-bottom: 1.8rem; }
.offer--dark .offer__note { color: var(--muted-d); }
.offer--light .offer__note { color: var(--muted); }
.offer .btn { margin-top: auto; }

/* ---------- AMENIDADES ---------- */
.amen { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-d); }
.amen__item { padding: 2.4rem 1.4rem 2.4rem 0; border-left: 1px solid var(--line-d); padding-left: 1.6rem; transition: background .4s var(--ease); }
.amen__item:first-child { border-left: 0; padding-left: 0; }
.amen__ico { color: var(--sand); display: block; margin-bottom: 1.4rem; }
.amen__ico svg { width: 34px; height: 34px; }
.amen__item h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.amen__item p { font-size: .9rem; color: var(--muted-d); }
.amen__item:hover { background: rgba(245,130,32,.07); }
.amen__item:hover .amen__ico { color: var(--accent); transform: translateY(-2px); }
.amen__ico { transition: color .4s var(--ease), transform .4s var(--ease); }

/* ---------- GALERÍA ---------- */
.gallery__intro { max-width: 60ch; margin: -1rem 0 2rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; grid-auto-flow: dense; gap: 12px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.g-cell { border: 0; padding: 0; cursor: pointer; border-radius: 11px; overflow: hidden; position: relative; background: var(--bone-2); }
.g-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.g-cell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(44,29,21,.72)); opacity: 0; transition: opacity .4s var(--ease); z-index: 1; }
.g-cell::after { content: attr(data-caption); position: absolute; left: 1rem; right: 1rem; bottom: .9rem; font-size: .82rem; font-weight: 600; line-height: 1.3; color: #fff; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); z-index: 2; }
.g-cell:hover::before, .g-cell:hover::after, .g-cell:focus-visible::before, .g-cell:focus-visible::after { opacity: 1; transform: none; }
.g-cell:hover img { transform: scale(1.06); }
.g-cell--lg { grid-column: span 2; grid-row: span 2; }
.g-cell--wide { grid-column: span 2; }

/* Bloque de visita / contacto (todo a WhatsApp) */
.visit { background: var(--ink); color: var(--bone); border-radius: 6px; padding: clamp(2.2rem, 5vw, 4rem); }
.visit__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.visit__head .kicker { color: var(--sand); }
.visit__head .kicker span { color: #fff; }
.visit__head .display { color: var(--bone); margin-bottom: 1.1rem; }
.visit__head .lede { color: var(--muted-d); }

.visit__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.vcard { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.8rem 1.6rem; border: 1px solid var(--line-d); border-radius: 6px; background: rgba(255,255,255,.02); transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.vcard:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); transform: translateY(-4px); }
.vcard__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-d); color: var(--sand); margin-bottom: .5rem; transition: color .4s var(--ease), border-color .4s var(--ease); }
.vcard__ico svg { width: 24px; height: 24px; }
.vcard:hover .vcard__ico { color: var(--clay); border-color: var(--clay); }
.vcard h4 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.vcard p { font-size: .92rem; color: var(--muted-d); margin-bottom: .4rem; flex: 1; }
.vcard__cta { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--sand); display: inline-flex; align-items: center; gap: .4em; }
.vcard__cta i { font-style: normal; transition: transform .35s var(--ease); }
.vcard:hover .vcard__cta { color: #fff; }
.vcard:hover .vcard__cta i { transform: translateX(4px); }

/* ---------- UBICACIÓN ---------- */
.ubic { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.ubic__info .display { margin-bottom: 1.2rem; }
.ubic__info .lede { margin-bottom: 2rem; }
.ubic__list { list-style: none; margin-bottom: 2.4rem; }
.ubic__list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.ubic__list li:last-child { border-bottom: 1px solid var(--line); }
.ubic__list li span { width: 24px; color: var(--clay); display: inline-flex; }
.ubic__list li span svg { width: 24px; height: 24px; }
.ubic__map { aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20,24,28,.4); }
.ubic__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.02); }

/* ---------- CONTACTO ---------- */
.contact { padding: clamp(5rem, 11vw, 9rem) 0; text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.03em; color: var(--bone); margin: 1.2rem 0; }
.contact__title em { font-style: normal; font-weight: 600; color: var(--sand); }
.contact__lead { color: var(--muted-d); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 2.4rem; }

/* ---------- FOOTER ---------- */
.footer { background: #1d130d; color: var(--muted-d); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-d); }
.footer__logo {
  display: block; width: 180px; height: 90px; margin: 0 0 1rem -4px;
  background-color: var(--bone);          /* crema cálido sobre fondo café oscuro */
  -webkit-mask: url(../assets/logo.svg) left center / contain no-repeat;
          mask: url(../assets/logo.svg) left center / contain no-repeat;
}
.footer__addr { font-size: .92rem; line-height: 1.7; }
.ubic__addr { margin-top: 1rem; font-weight: 700; color: var(--clay); font-size: .98rem; }

/* ---------- CÓMO ACCEDER ---------- */
.acceso__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: clamp(2rem, 4vw, 3rem); }
.acceso__card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2.2rem 1.9rem; display: flex; flex-direction: column; box-shadow: 0 2px 4px rgba(44,29,21,.03), 0 16px 34px -24px rgba(44,29,21,.2); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.acceso__card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(44,29,21,.04), 0 24px 44px -22px rgba(44,29,21,.28); }
.acceso__num { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--accent-ink); margin-bottom: 1rem; }
.acceso__card h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .8rem; }
.acceso__card p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin-bottom: 1.6rem; }
.acceso__cta { margin-top: auto; font-weight: 700; color: var(--clay); display: inline-flex; align-items: center; gap: .5em; transition: gap .3s var(--ease); }
.acceso__cta:hover { gap: .9em; }
.acceso__note { margin-top: 1.8rem; font-size: .82rem; color: var(--muted); max-width: 70ch; }

/* ---------- PLANO Y DIMENSIONES ---------- */
.planos__grid { display: grid; gap: 1.6rem; margin-top: clamp(2rem, 4vw, 3rem); }
.plano { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 4px rgba(44,29,21,.03), 0 16px 34px -24px rgba(44,29,21,.2); display: grid; grid-template-columns: 1fr 280px; align-items: stretch; }
.plano__zoom { position: relative; border: 0; padding: 0; margin: 0; cursor: zoom-in; background: #14110f; display: block; }
.plano__zoom img { width: 100%; height: auto; display: block; }
.plano__hint { position: absolute; top: .8rem; right: .9rem; background: rgba(44,29,21,.78); color: #fff; font-size: .72rem; font-weight: 600; padding: .35rem .7rem; border-radius: 8px; opacity: 0; transition: opacity .3s var(--ease); }
.plano__zoom:hover .plano__hint { opacity: 1; }
.plano figcaption { padding: 1.8rem; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.plano figcaption h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.plano__dims { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.plano__dims li { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.plano__dims li:last-child { border-bottom: 0; }
.plano__dims span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plano__dims strong { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--clay); }
.plano__dims li:last-child strong { font-size: 1.35rem; }
@media (max-width: 760px) {
  .plano { grid-template-columns: 1fr; }
  .plano figcaption { border-left: 0; border-top: 1px solid var(--line); }
}
.planos__cta { margin-top: 1.8rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center; }
.planos__pdf { font-size: .9rem; font-weight: 600; color: var(--clay); border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.planos__pdf:hover { color: var(--accent-ink); border-color: var(--accent-ink); }

/* Precio en pesos junto al valor UF */
.offer__clp { font-weight: 700; color: var(--clay); font-size: 1rem; margin-top: -.3rem; margin-bottom: .6rem; }
.offer--dark .offer__clp { color: var(--sand); }
.hero__urgency small { font-weight: 600; opacity: .85; }

/* ---------- INVERSIÓN ---------- */
.invest__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.invest__stat { border: 1px solid var(--line-d); border-radius: 14px; padding: 1.8rem 1.4rem; text-align: center; background: rgba(255,255,255,.03); }
.invest__stat strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; color: #fff; line-height: 1.05; }
.invest__stat span { display: block; margin-top: .5rem; font-size: .82rem; letter-spacing: .04em; color: var(--muted-d); }
.invest__cta { margin-top: 2rem; }
.invest__note { margin-top: 1.4rem; font-size: .8rem; color: var(--muted-d); max-width: 80ch; }
@media (max-width: 720px) {
  .invest__stats { grid-template-columns: repeat(2, 1fr); }
}
.contact__direct { margin-top: 1.6rem; font-size: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.contact__direct a { color: var(--bone); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); transition: color .3s, border-color .3s; }
.contact__direct a:hover { color: var(--accent); border-color: var(--accent); }
.contact__direct span { color: var(--muted-d); }
.footer__nav, .footer__links { display: flex; flex-direction: column; gap: .7rem; }
.footer__h { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: .5rem; }
.footer__nav a, .footer__links a { font-size: .95rem; transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__links a:hover { color: var(--clay); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; padding: 1.6rem 0; font-size: .8rem; opacity: .7; }
.footer__bottom a { color: var(--sand); }

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 120; width: 56px; height: 56px; border-radius: 11px; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.8); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 11px; border: 2px solid #25d366; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%{ transform: scale(1); opacity:.7 } 100%{ transform: scale(1.7); opacity:0 } }
.wa-float:hover { transform: scale(1.08); }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28,19,13,.96); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; }
.lightbox.is-open { display: flex; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 11px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lightbox__caption { color: var(--bone); font-family: var(--display); font-weight: 500; font-size: 1.05rem; text-align: center; }
.lightbox__counter { color: var(--muted-d); font-size: .8rem; letter-spacing: .1em; }
.lightbox__close { position: absolute; top: 20px; right: 28px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .8; transition: opacity .3s, transform .3s; z-index: 2; }
.lightbox__close:hover { opacity: 1; transform: rotate(90deg); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 52px; height: 52px; border-radius: 11px; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .3s; z-index: 2; }
.lightbox__nav:hover { background: var(--clay); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
@media (max-width: 600px) {
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .proyecto__grid, .ubic { grid-template-columns: 1fr; }
  .visit__cards { grid-template-columns: 1fr; }
  .amen { grid-template-columns: repeat(2, 1fr); }
  .amen__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-d); }
  .amen__item:first-child { border-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px); padding: .5rem 5% 1.5rem;
    transform: translateY(-130%); transition: transform .45s var(--ease); box-shadow: 0 24px 50px -24px rgba(0,0,0,.35);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { color: var(--ink) !important; width: 100%; padding: 1rem 0; border-top: 1px solid var(--line); font-size: 1.1rem; }
  .nav__links a:first-child { border-top: 0; }
  .nav__cta { border: 0; padding: 1rem 0; }
  .burger { display: flex; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .facts div { padding-left: .9rem; }
  .facts dd { font-size: 1.9rem; }
  .facts dt { font-size: .62rem; letter-spacing: .1em; }
  .offers { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .acceso__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 440px) {
  .amen { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .g-cell--lg { grid-column: span 2; grid-row: span 2; }
  .g-cell--wide { grid-column: span 2; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-d] { opacity: 1; transform: none; }
}

/* ===========================================================
   Componentes añadidos (upgrade integral)
   =========================================================== */

/* Skip link accesible */
.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* Foco visible por teclado */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Nav: sección activa (scrollspy) — claro sobre la foto, café cuando el header tiene fondo */
.nav__links a.is-active { color: #fff; }
.nav.is-scrolled .nav__links a.is-active { color: var(--clay); }
.nav__links a.is-active span { opacity: .9; }

/* Hero: urgencia */
.hero__urgency { margin-top: 1.4rem; font-size: .85rem; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; }
@keyframes blip { 0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.55) } 70%{ box-shadow: 0 0 0 8px rgba(255,255,255,0) } 100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0) } }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2rem 1.8rem; box-shadow: 0 2px 4px rgba(20,24,28,.03), 0 14px 30px -22px rgba(20,24,28,.18); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.benefit:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(20,24,28,.3); border-color: transparent; }
.benefit__ico { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: #f1e7e1; color: var(--clay); margin-bottom: 1.2rem; transition: background .4s var(--ease), color .4s var(--ease); }
.benefit__ico svg { width: 26px; height: 26px; }
.benefit:hover .benefit__ico { background: linear-gradient(135deg, var(--clay), var(--accent)); color: #fff; transform: translateY(-2px); }
.benefit__ico { transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.benefit h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.benefit p { font-size: .95rem; color: var(--muted); }

/* Financiamiento (banda) */
.finance { background: linear-gradient(135deg, #6c4031, #3f2419); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; overflow: hidden; }
.finance::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent); pointer-events: none; }
.finance__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.finance__txt .kicker { color: #ecd9cd; }
.finance__txt .kicker span { color: #fff; opacity: .8; }
.finance__txt .display { color: #fff; margin-bottom: 1.1rem; }
.finance__txt .lede { color: rgba(255,255,255,.92); margin-bottom: 1.8rem; }
.finance__txt .btn--solid { --bg: #fff; --fg: var(--clay-dk); --bd: #fff; }
.finance__txt .btn--solid:hover { --bg: #2c1d15; --fg: #fff; --bd: #2c1d15; }
.finance__points { list-style: none; display: grid; gap: .9rem; }
.finance__points li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 1.1rem 1.3rem; backdrop-filter: blur(3px); }
.finance__points strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: .2rem; }
.finance__points span { font-size: .9rem; color: rgba(255,255,255,.85); }

/* Testimonios */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testi__card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2rem 1.8rem; margin: 0; box-shadow: 0 2px 4px rgba(20,24,28,.03), 0 14px 30px -22px rgba(20,24,28,.18); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.testi__card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(20,24,28,.3); }
.testi__stars { color: var(--accent-ink); letter-spacing: .15em; font-size: .95rem; margin-bottom: 1rem; }
.testi__card blockquote { font-family: var(--display); font-weight: 500; font-size: 1.12rem; line-height: 1.45; letter-spacing: -.01em; margin-bottom: 1.4rem; }
.testi__card figcaption { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .92rem; }
.testi__card figcaption em { font-style: normal; font-weight: 500; color: var(--muted); }
.testi__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f1e7e1; color: var(--clay); font-family: var(--display); font-weight: 700; }
.testi__note { margin-top: 1.6rem; font-size: .82rem; color: var(--muted); opacity: .8; }

/* FAQ acordeón */
.faq__wrap { max-width: 860px; margin-inline: auto; }
.acc__item { border-top: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.25rem); letter-spacing: -.01em; color: var(--ink); padding: 1.4rem 3rem 1.4rem 0; position: relative; display: flex; justify-content: space-between; gap: 1rem; }
.acc__plus { position: relative; width: 18px; height: 18px; flex: none; margin-top: .2rem; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; background: var(--clay); transition: transform .35s var(--ease); }
.acc__plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.acc__plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc__q[aria-expanded="true"] .acc__plus::after { transform: scaleY(0); }
.acc__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.acc__a p { padding: 0 0 1.4rem; color: var(--muted); font-size: 1rem; max-width: 64ch; }

/* CTA sticky móvil */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(20,24,28,.96); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.12); transform: translateY(120%); transition: transform .4s var(--ease); }
.mcta.is-visible { transform: translateY(0); }
.mcta__info { display: flex; flex-direction: column; line-height: 1.2; color: #fff; }
.mcta__info strong { font-family: var(--display); font-weight: 600; font-size: .95rem; }
.mcta__info span { font-size: .76rem; color: var(--muted-d); }
.mcta__btn { background: #25d366; color: #fff; font-weight: 700; font-size: .92rem; padding: .8rem 1.4rem; border-radius: 11px; white-space: nowrap; }

/* Responsive de los componentes nuevos */
@media (max-width: 920px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .finance__inner { grid-template-columns: 1fr; }
  .testi { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .benefits { grid-template-columns: 1fr; }
  .mcta { display: flex; }
  .wa-float { bottom: 84px; }
  .footer__bottom { padding-bottom: 90px; }
}
