/* ==========================================================================
   I&F Group LLC — v2 (oct-2026)
   Claro y arquitectónico. Motivo: líneas de cota y marcas de plano.
   ========================================================================== */

:root {
  --bg:       oklch(0.988 0.002 265);
  --surface:  oklch(0.958 0.006 265);
  --ink:      oklch(0.21 0.035 265);
  --ink-2:    oklch(0.40 0.025 265);
  --ink-3:    oklch(0.52 0.02 265);
  --line:     oklch(0.87 0.012 265);
  --line-2:   oklch(0.80 0.015 265);
  --blue:     #013396;
  --blue-d:   #012470;
  --blue-l:   oklch(0.93 0.03 264);
  --gold:     #e3aa41;
  --gold-ink: oklch(0.52 0.11 70);
  --red:      #e9313d;
  --white:    #fff;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 118%;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index */
  --z-sticky: 50;
  --z-menu: 60;
  --z-float: 70;
  --z-modal: 100;
  --z-lightbox: 110;
  --z-lang: 120;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.display, h1, h2 {
  font-stretch: var(--wide);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2.5rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.t-blue { color: var(--blue); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.body { color: var(--ink-2); max-width: 68ch; }
.label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Encabezado de sección: título + texto alineados a una regla */
.sec-head {
  display: grid; gap: 20px 48px; align-items: end;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding-bottom: 28px; margin-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line-2);
}
.sec-head .lead { justify-self: end; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } .sec-head .lead { justify-self: start; } }

section { padding-block: clamp(72px, 10vw, 140px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 0.9em; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f0bd5c; }
.btn:active { transform: translateY(1px); }
.btn-arrow i { transition: transform .3s var(--ease); }
.btn-arrow:hover i { transform: translateX(4px); }

/* ---------- Motivo: línea de cota ---------- */
.dim {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 14px;
  font-weight: 700; font-stretch: var(--wide);
}
.dim .rule { position: relative; height: 1px; background: currentColor; opacity: .55; }
.dim .rule::before, .dim .rule::after {
  content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: currentColor;
}
.dim .rule:first-of-type::before { left: 0; }
.dim .rule:last-of-type::after { right: 0; }
.dim .mid { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-stretch: 100%; opacity: .75; text-align: center; }

/* Marcas de esquina sobre fotos */
.marks { position: relative; }
.marks::before, .marks::after {
  content: ""; position: absolute; width: 22px; height: 22px; z-index: 2; pointer-events: none;
  border-color: var(--gold); border-style: solid;
}
.marks::before { top: -9px; left: -9px; border-width: 2px 0 0 2px; }
.marks::after { bottom: -9px; right: -9px; border-width: 0 2px 2px 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--bg) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@supports (backdrop-filter: blur(1px)) { .hdr { backdrop-filter: saturate(1.4) blur(14px); } }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 84px; }
.hdr-logo img { height: 60px; width: 60px; object-fit: contain; }
.hdr-nav { display: flex; gap: 4px; margin-left: auto; }
.hdr-nav a {
  position: relative; padding: 10px 12px; font-weight: 600; font-size: 0.92rem; color: var(--ink-2);
  transition: color .2s var(--ease);
}
.hdr-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a:hover::after, .hdr-nav a.active::after { transform: scaleX(1); }
.hdr-tel { display: flex; flex-direction: column; line-height: 1.15; padding-left: 20px; border-left: 1px solid var(--line); }
.hdr-tel small { font-size: 0.7rem; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hdr-tel strong { font-stretch: var(--wide); font-size: 1.02rem; color: var(--ink); white-space: nowrap; }
.hdr-tel:hover strong { color: var(--blue); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius); font-weight: 700; font-size: .82rem;
  transition: border-color .2s var(--ease);
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.hdr .btn { min-height: 46px; padding: 0 20px; }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: var(--radius); background: var(--ink); color: #fff; align-items: center; justify-content: center; }
.call-btn { display: none; width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--line-2); align-items: center; justify-content: center; color: var(--blue); }

@media (max-width: 1180px) { .hdr-tel { display: none; } }
@media (max-width: 1020px) {
  .hdr-nav, .hdr .btn-primary { display: none; }
  .menu-btn, .call-btn { display: inline-flex; }
  .hdr-in { gap: 10px; height: 72px; }
  .hdr-logo { margin-right: auto; }
  .hdr-logo img { height: 52px; width: 52px; }
}

/* Menú móvil a pantalla completa */
.mmenu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg);
  display: flex; flex-direction: column; padding: 96px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.mmenu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mmenu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mmenu nav a {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-stretch: var(--wide); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 7vw, 2.2rem); line-height: 1.1;
  display: flex; justify-content: space-between; align-items: center;
}
.mmenu nav a i { font-size: 1rem; color: var(--gold-ink); }
.mmenu-foot { margin-top: auto; display: grid; gap: 12px; }
.mmenu-close { position: absolute; top: 12px; right: var(--gutter); width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); background: var(--ink); color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 .l { display: block; }
.hero h1 .l2 { color: var(--blue); }
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  margin-top: clamp(24px, 3vw, 40px);
}
.hero-row .lead { color: var(--ink); font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.hero-row .sub { color: var(--ink-2); margin-top: 6px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } }

.hero-photo { margin-top: clamp(32px, 4vw, 56px); }
.hero-photo .frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 21 / 9; background: var(--surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero-badge {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--bg); padding: 18px 26px 0 0; display: flex; align-items: baseline; gap: 14px;
  border-top-right-radius: var(--radius);
}
.hero-badge b { font-stretch: var(--wide); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .9; color: var(--blue); }
.hero-badge span { font-weight: 700; font-size: .9rem; line-height: 1.25; max-width: 12ch; color: var(--ink); }
.hero-dim { margin-top: 26px; color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.35rem); }
@media (max-width: 700px) {
  .hero-photo .frame { aspect-ratio: 4 / 5; }
  .hero-photo img { object-position: 42% 80%; }
}

/* ==========================================================================
   Intro + Acerca
   ========================================================================== */
.about-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.about-top .copy { display: grid; gap: 20px; padding-top: 8px; }
.about-top .copy .body { font-size: 1.02rem; }
.about-top .copy .btn { justify-self: start; margin-top: 8px; }
.about-name { font-weight: 800; font-stretch: var(--wide); color: var(--blue); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 900px) { .about-top { grid-template-columns: 1fr; } }

.about-grid {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid; gap: 16px;
  grid-template-columns: 5fr 4fr 3fr;
  align-items: end;
}
.about-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.about-grid img { width: 100%; height: 100%; object-fit: cover; }
.about-grid .a1 { aspect-ratio: 4 / 5; }
.about-grid .a2 { aspect-ratio: 1 / 1; }
.about-grid .a3 { display: grid; gap: 16px; }
.about-grid .a3 figure { aspect-ratio: 3 / 4; }
.invest {
  background: var(--blue); color: #fff; border-radius: var(--radius); padding: 24px 22px;
  display: grid; gap: 6px;
}
.invest i { color: var(--gold); font-size: 1.4rem; margin-bottom: 8px; }
.invest h3 { font-stretch: var(--wide); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; }
.invest p { color: oklch(0.88 0.04 264); font-size: .9rem; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .a1 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .about-grid .a3 figure { display: none; }
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.services { background: var(--surface); }
.svc-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.svc { padding: 28px 24px 8px 0; display: grid; align-content: start; gap: 14px; }
.svc + .svc { padding-left: 24px; border-left: 1px solid var(--line-2); }
.svc figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.svc img { width: 100%; height: 100%; object-fit: cover; }
.svc .n { font-stretch: var(--wide); font-weight: 800; color: var(--gold-ink); font-size: .85rem; letter-spacing: .06em; }
.svc h3 { font-stretch: var(--wide); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: -0.005em; }
.svc p { color: var(--ink-2); font-size: .97rem; }
.svc-cta { margin-top: clamp(36px, 5vw, 56px); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1020px) {
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc:nth-child(3) { padding-left: 0; border-left: 0; }
  .svc:nth-child(n+3) { border-top: 1px solid var(--line-2); margin-top: 20px; }
}
@media (max-width: 560px) {
  .svc-list { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 24px 0 8px; border-left: 0; }
  .svc + .svc { border-top: 1px solid var(--line-2); margin-top: 16px; }
  .svc figure { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Banda Construcción
   ========================================================================== */
.build {
  position: relative; padding: 0; min-height: min(92vh, 900px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: oklch(0.25 0.04 265);
}
.build picture, .build .bg { position: absolute; inset: 0; }
.build .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.08); will-change: transform; }
.build::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0.16 0.04 265 / .82) 0%, oklch(0.16 0.04 265 / .25) 45%, transparent 70%);
}
.build .wrap { position: relative; z-index: 2; padding-bottom: clamp(36px, 6vw, 72px); }
.build .tag { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.build .word {
  display: block; white-space: nowrap; font-stretch: 125%; font-weight: 900; line-height: .86;
  text-transform: uppercase; letter-spacing: -0.01em; margin: 14px 0 26px;
  font-size: 9vw; /* JS ajusta para que llene el ancho */
}
.build .word .g { color: var(--gold); }
.build .facts { display: flex; flex-wrap: wrap; gap: 10px 0; border-top: 1px solid oklch(1 0 0 / .35); padding-top: 18px; }
.build .facts span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; padding-right: 22px; margin-right: 22px; border-right: 1px solid oklch(1 0 0 / .35); }
.build .facts span:last-child { border-right: 0; }
.build .facts i { color: var(--gold); }

/* ==========================================================================
   Última casa
   ========================================================================== */
.feat { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.feat-media { display: grid; gap: 12px; }
.feat-main { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--surface); }
.feat-main img { width: 100%; height: 100%; object-fit: cover; }
.feat-main .stamp-new {
  position: absolute; top: 18px; left: 18px; background: var(--red); color: #fff; padding: 7px 14px;
  font-weight: 800; font-stretch: var(--wide); letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; border-radius: 2px;
}
.feat-actions { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.feat-actions .btn { min-height: 48px; }
.feat-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat-thumbs button { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--surface); position: relative; }
.feat-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.feat-thumbs button:hover img { opacity: .82; }
.feat-thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: oklch(0.21 0.035 265 / .62); color: #fff; font-weight: 800; font-stretch: var(--wide); font-size: 1.2rem; }

.feat-info { display: grid; gap: 22px; position: sticky; top: 108px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.price { font-stretch: 125%; font-weight: 900; font-size: clamp(3rem, 6vw, 5rem); line-height: .9; color: var(--blue); letter-spacing: -0.015em; }
.addr { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.addr p { font-weight: 600; line-height: 1.4; }
.addr a { color: var(--blue); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; padding: 4px 0; }
.addr a:hover { text-decoration: underline; text-underline-offset: 4px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: var(--radius); }
.specs div { padding: 16px 12px; display: grid; gap: 6px; justify-items: start; }
.specs div + div { border-left: 1px solid var(--line-2); }
.specs i { color: var(--gold-ink); }
.specs span { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.feat-info .note { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: .88rem; }
.feat-info .note i { color: var(--gold-ink); }
@media (max-width: 960px) {
  .feat { grid-template-columns: 1fr; }
  .feat-info { position: static; }
}
@media (max-width: 560px) {
  .feat-main { aspect-ratio: 4 / 3.4; }
  .feat-actions .btn { flex: 1 1 0; padding: 0 12px; }
  .feat-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ==========================================================================
   Portafolio (vendidas)
   ========================================================================== */
.portfolio { background: var(--surface); }
.pf-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 22vw, 300px);
}
.pf {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line);
  text-align: left; display: block; width: 100%; height: 100%;
}
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pf:hover img { transform: scale(1.04); }
.pf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.16 0.04 265 / .75), transparent 50%); }
.pf .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.pf .cap b { display: block; font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.45rem); text-transform: uppercase; line-height: 1.05; }
.pf .cap small { display: block; margin-top: 4px; color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.pf .cap .go { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: background-color .3s var(--ease); }
.pf:hover .cap .go { background: var(--gold); }
.stamp {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  color: #fff; background: var(--red); padding: 6px 12px 5px; border-radius: 2px;
  font-weight: 900; font-stretch: var(--wide); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-4deg); box-shadow: 0 2px 6px oklch(0 0 0 / .25);
}
.pf-1 { grid-column: span 7; grid-row: span 2; }
.pf-2 { grid-column: span 5; }
.pf-3 { grid-column: span 5; }
.pf-4 { grid-column: span 12; grid-row: span 1; }
.pf-4 img { object-position: 50% 62%; }
.pf-foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-foot p { color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) {
  .pf-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .pf-1 { grid-column: 1 / -1; grid-row: span 1; }
  .pf-2, .pf-3 { grid-column: span 1; }
  .pf-4 { grid-column: 1 / -1; }
  .pf .cap .go { display: none; }
  .pf .cap { left: 14px; right: 14px; bottom: 12px; }
}

/* ==========================================================================
   Próximos
   ========================================================================== */
.up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.up { display: grid; gap: 12px; text-align: left; }
.up .big { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.up .big img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.up:hover .big img { transform: scale(1.03); }
.tape {
  position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--gold); color: var(--ink);
  font-weight: 900; font-stretch: var(--wide); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
  padding: 7px 14px; border-radius: 2px;
}
.up .smalls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up .smalls span { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--surface); display: block; }
.up .smalls img { width: 100%; height: 100%; object-fit: cover; }
.up .meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 6px; border-top: 1px solid var(--line-2); margin-top: 4px; }
.up .meta b { display: block; font-stretch: var(--wide); font-weight: 800; text-transform: uppercase; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.1; padding-top: 10px; }
.up .meta small { color: var(--ink-2); font-weight: 600; }
.up .meta .go { color: var(--blue); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.up-foot { margin-top: 28px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) { .up-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Beneficios
   ========================================================================== */
.ben-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.ben-side { position: sticky; top: 120px; display: grid; gap: 28px; }
.ben-side figure { margin: 0; aspect-ratio: 4 / 3.2; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.ben-side img { width: 100%; height: 100%; object-fit: cover; }
.ben-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.ben-list li { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.ben-list li:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line-2); }
.ben-list i { color: var(--blue); font-size: 1.35rem; }
.ben-list h3 { font-stretch: var(--wide); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; }
.ben-list p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 960px) { .ben-wrap { grid-template-columns: 1fr; } .ben-side { position: static; } }
@media (max-width: 560px) {
  .ben-list { grid-template-columns: 1fr; }
  .ben-list li, .ben-list li:nth-child(even) { padding: 22px 0; border-left: 0; }
}

/* ==========================================================================
   Compromiso (plano azul)
   ========================================================================== */
.plan { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.plan-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.plan h2 { white-space: pre-line; font-size: clamp(2rem, 4.4vw, 3.8rem); }
.plan .sub { font-size: 1.2rem; font-weight: 600; color: var(--gold); margin-top: 22px; }
.plan .body { color: oklch(0.9 0.035 264); margin-top: 14px; }
.plan-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.plan-photo img { width: 100%; height: 100%; object-fit: cover; }
.plan-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px;
  background: var(--gold); color: var(--ink); font-weight: 800; padding: 14px 20px; border-radius: var(--radius);
}
.plan-badge i { font-size: 1.1rem; }

.sheet { margin-top: clamp(56px, 8vw, 104px); border: 1px solid oklch(1 0 0 / .32); border-radius: var(--radius); }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid oklch(1 0 0 / .32); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: oklch(0.88 0.04 264); flex-wrap: wrap; }
.sheet-head b { color: #fff; font-stretch: var(--wide); font-size: 1rem; letter-spacing: .02em; }
.sheet-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-cell { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.sheet-cell + .sheet-cell { border-left: 1px solid oklch(1 0 0 / .32); }
.sheet-cell img { width: clamp(96px, 11vw, 150px); height: auto; aspect-ratio: 1; filter: invert(1); opacity: .95; }
.sheet-cell .dim { width: 100%; color: #fff; grid-template-columns: 1fr auto 1fr; }
.sheet-cell .dim .rule:first-of-type::before { left: 0; }
.sheet-cell .dim .rule:last-of-type::after { right: 0; }
.sheet-cell .dim b { font-size: clamp(1.15rem, 2vw, 1.6rem); white-space: nowrap; }
.sheet-cell p { color: oklch(0.88 0.04 264); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
@media (max-width: 860px) { .plan-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sheet-body { grid-template-columns: 1fr; }
  .sheet-cell + .sheet-cell { border-left: 0; border-top: 1px solid oklch(1 0 0 / .32); }
  .sheet-cell { grid-template-columns: 88px 1fr; justify-items: start; text-align: left; align-items: center; gap: 6px 20px; }
  .sheet-cell img { grid-row: span 2; width: 88px; }
  .sheet-cell .dim { grid-template-columns: auto; }
  .sheet-cell .dim .rule { display: none; }
}

/* ==========================================================================
   Ubicaciones
   ========================================================================== */
.loc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px clamp(32px, 4vw, 64px); align-items: start; }
.loc-list { display: grid; gap: 30px; }
.loc-region h3 { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.loc {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; width: 100%; text-align: left;
  padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line-2); position: relative;
  transition: background-color .25s var(--ease), padding .35s var(--ease);
}
.loc::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 0; background: var(--blue); transition: width .35s var(--ease); }
.loc:hover { background: var(--surface); }
.loc[aria-pressed="true"] { padding-left: 18px; background: var(--blue-l); }
.loc[aria-pressed="true"]::before { width: 4px; }
.loc b { font-stretch: var(--wide); font-weight: 800; font-size: 1.08rem; text-transform: uppercase; line-height: 1.15; }
.loc small { grid-column: 1; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.loc .chip { grid-column: 2; grid-row: 1 / span 2; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-build { background: var(--blue-l); color: var(--blue); }
.chip-prog { background: oklch(0.94 0.06 80); color: oklch(0.45 0.1 65); }
.chip-ok { background: oklch(0.94 0.05 150); color: oklch(0.42 0.11 150); }
.loc-lots { list-style: none; margin: 8px 0 0; padding: 0; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.loc-lots li { font-size: .82rem; color: var(--ink-2); }
.loc-map { position: sticky; top: 108px; display: grid; gap: 12px; }
.loc-map .frame { aspect-ratio: 4 / 4.2; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); }
.loc-map iframe { width: 100%; height: 100%; border: 0; }
.loc-map .bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.loc-map .bar p { font-weight: 700; }
.loc-map .bar a { color: var(--blue); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; padding: 6px 0; }
.loc-hint { color: var(--ink-3); font-size: .88rem; margin-bottom: 18px; }
@media (max-width: 900px) {
  .loc-wrap { grid-template-columns: 1fr; }
  .loc-map { position: sticky; top: 72px; z-index: 3; order: -1; background: var(--bg); padding-bottom: 10px; }
  .loc-map .frame { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { background: var(--surface); }
.ct-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.ct-side { display: grid; gap: 28px; }
.ct-side h2 .t-blue { display: block; }
.ct-phone { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 8px; }
.ct-phone .k { color: var(--ink-2); font-weight: 600; }
.ct-phone a.num { font-stretch: 125%; font-weight: 900; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1; color: var(--blue); letter-spacing: -0.01em; }
.ct-phone a.num:hover { color: var(--blue-d); }
.ct-phone .avail { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: oklch(0.42 0.11 150); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.ct-phone .avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ct-mail { border-top: 1px solid var(--line-2); padding-top: 18px; display: grid; gap: 4px; }
.ct-mail small { color: var(--ink-3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.ct-mail a { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.ct-mail a:hover { color: var(--blue); }

.form { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 44px); }
.form h3 { font-stretch: var(--wide); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; }
.form .fsub { color: var(--ink-2); margin-top: 6px; }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .85rem; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
  min-height: 52px; padding: 12px 14px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px oklch(0.36 0.18 264 / .15); }
.form .req-note { color: var(--ink-3); font-size: .85rem; margin-top: 16px; }
.form .req-note .req { color: var(--red); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#ctoFormMsg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; }
#ctoBtnEmail { width: 100%; margin-top: 20px; min-height: 56px; }
#ctoBtnEmail:disabled { opacity: .7; cursor: progress; }
#ctoBtnEmailLoader { display: none; align-items: center; gap: 10px; }
#ctoBtnEmailLoader svg { width: 18px; height: 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .ct-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: var(--ink); color: oklch(0.82 0.02 265); padding: clamp(56px, 7vw, 88px) 0 28px; }
.ftr-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ftr-logo { width: 84px; height: 84px; background: #fff; border-radius: var(--radius); padding: 6px; }
.ftr-logo img { width: 100%; height: 100%; object-fit: contain; }
.ftr p { max-width: 42ch; margin-top: 18px; }
.ftr .zone { margin-top: 16px; color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.ftr h4 { color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ftr ul a, .ftr ul span { display: inline-flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.ftr ul a:hover { color: #fff; }
.ftr ul i { color: var(--gold); width: 16px; }
.ftr-big {
  margin-top: clamp(48px, 7vw, 88px); padding-top: 22px; border-top: 1px solid oklch(1 0 0 / .14);
  font-stretch: 125%; font-weight: 900; text-transform: uppercase; color: #fff; line-height: .85;
  font-size: 9vw; white-space: nowrap; letter-spacing: -0.01em;
}
.ftr-big span { color: var(--gold); }
.ftr-bot { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: oklch(0.7 0.02 265); }
@media (max-width: 860px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Flotantes
   ========================================================================== */
#backToTop {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float);
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s;
}
#backToTop.show { opacity: 1; transform: none; pointer-events: auto; }
#backToTop:hover { background: var(--blue); }

.call-float {
  position: fixed; left: 16px; right: 80px; bottom: 16px; z-index: var(--z-float); display: none;
  transform: translateY(130%); transition: transform .45s var(--ease);
}
.call-float.show { transform: none; }
.call-float .btn { width: 100%; box-shadow: 0 6px 18px oklch(0.2 0.05 265 / .25); }
@media (max-width: 1020px) { .call-float { display: block; } }

#welcome-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: var(--z-float);
  display: none; width: min(440px, calc(100vw - 32px));
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 14px 14px 18px;
  box-shadow: 0 10px 30px oklch(0.15 0.04 265 / .3);
}
@media (max-width: 1020px) { #welcome-banner { bottom: 84px; } }
#welcome-banner .row { display: flex; align-items: center; gap: 12px; }
#welcome-banner .txt { flex: 1; min-width: 0; }
#welcome-banner .txt p:first-child { font-weight: 800; }
#welcome-banner .txt p:last-child { font-size: .82rem; color: oklch(0.8 0.02 265); }
#welcome-banner .pick { display: inline-flex; gap: 6px; align-items: center; background: var(--gold); color: var(--ink); height: 44px; padding: 0 14px; border-radius: var(--radius); font-weight: 800; font-size: .85rem; }
#welcome-banner .pick img { width: 16px; height: 11px; }
#welcome-banner .x { width: 44px; height: 44px; display: grid; place-items: center; color: oklch(0.8 0.02 265); }

/* ==========================================================================
   Modales, lightbox, idioma
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: oklch(0.15 0.03 265 / .82);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.modal.active { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal-panel {
  background: var(--bg); width: min(1180px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--radius);
  transform: translateY(16px) scale(.985); transition: transform .45s var(--ease);
  overscroll-behavior: contain;
}
.modal.active .modal-panel { transform: none; }
.modal-head {
  position: sticky; top: 0; z-index: 2; background: var(--bg); border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
}
.modal-head h3 { font-stretch: var(--wide); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; }
.modal-head p { color: var(--ink-2); font-size: .88rem; }
.modal-head .grow { flex: 1; min-width: 0; }
.modal-x { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: var(--radius); background: var(--ink); color: #fff; }
.modal-x:hover { background: var(--blue); }
.modal-body { padding: 20px; display: grid; gap: 28px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mgrid button { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--surface); cursor: zoom-in; }
.mgrid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.mgrid button:hover img { opacity: .85; }
.mgrid .wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.mgroup-h { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.mgroup-h b { font-stretch: var(--wide); font-weight: 800; text-transform: uppercase; }
.mgroup-h small { color: var(--ink-2); font-weight: 600; }
.mgroup-h .stamp, .mgroup-h .tape { position: static; transform: none; box-shadow: none; }
.mvideo { width: 100%; border-radius: var(--radius); background: #000; max-height: 70vh; }
#modal-video .modal-panel { width: min(460px, 100%); }
#modal-video video { width: 100%; max-height: calc(100dvh - 120px); background: #000; }

#lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox); background: oklch(0.1 0.02 265 / .95);
  display: none; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 2px; }
#lightbox .lb-btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: oklch(1 0 0 / .1); border-radius: var(--radius); transition: background-color .2s; }
#lightbox .lb-btn:hover { background: oklch(1 0 0 / .22); }
#lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-close { right: 14px; top: 14px; }
#lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: oklch(0.85 0.02 265); font-weight: 700; font-size: .9rem; }
@media (max-width: 640px) { #lightbox .lb-prev, #lightbox .lb-next { top: auto; bottom: 10px; transform: none; } }

#modal-lang { z-index: var(--z-lang); }
#modal-lang .modal-panel { width: min(560px, 100%); }
.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 20px; }
.lang-option { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border: 1.5px solid var(--line-2); border-radius: var(--radius); font-weight: 700; font-size: .78rem; transition: border-color .2s; }
.lang-option img { width: 40px; height: 27px; object-fit: cover; border-radius: 2px; }
.lang-option:hover { border-color: var(--ink); }
.lang-option.is-active { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
@media (max-width: 480px) { .lang-grid { grid-template-columns: repeat(2, 1fr); } }

body.locked { overflow: hidden; }

/* ==========================================================================
   Movimiento (solo mejora un estado ya visible)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .l { animation: rise 1s var(--ease-expo) both; }
  .js .hero h1 .l2 { animation-delay: .08s; }
  .js .hero-row { animation: fade 1s var(--ease) .25s both; }
  .js .hero-photo .frame { animation: wipe 1.4s var(--ease-expo) .2s both; }
  .js .hero-photo img { animation: settle 2.2s var(--ease-expo) .2s both; }
  .js .hero-dim .rule { transform-origin: center; animation: grow 1.2s var(--ease-expo) .7s both; }

  .js .rv { transition: opacity .9s var(--ease), transform 1s var(--ease-expo), clip-path 1.2s var(--ease-expo); }
  .js .rv.pre { opacity: 0; transform: translateY(28px); }
  .js .rv-img.pre { opacity: 1; transform: none; clip-path: inset(12% 0 0 0); }
  .js .rv-img { clip-path: inset(0 0 0 0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(18% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .build .bg img { transform: none !important; }
}
