/* Los Álamos Suites — estilo "Mediterráneo tranquilo" */
:root {
  --sand: #f6f1ea;
  --sand-2: #ede4d8;
  --sand-3: #e2d6c5;
  --sea: #1f3a4d;
  --sea-2: #16293a;
  --terra: #c8744b;
  --terra-2: #b0613b;
  --ink: #2a3238;
  --muted: #6e747a;
  --line: #e2d8ca;
  --white: #fff;
  --r: 22px;
  --r-s: 14px;
  --shadow: 0 18px 50px rgba(31, 58, 77, .12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--sea); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--terra); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

html[lang="es"] [data-l="en"],
html[lang="en"] [data-l="es"] { display: none !important; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; }
.title-l { font-size: clamp(32px, 4.2vw, 52px); }
.lead { font-size: 19px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 999px; border: 0;
  cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-2); }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-2); }
.btn-line { background: transparent; color: var(--sea); box-shadow: inset 0 0 0 1.5px var(--sea); }
.btn-line:hover { background: var(--sea); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb957; }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 60; background: rgba(246, 241, 234, .94);
  backdrop-filter: blur(10px); transition: background .3s, box-shadow .3s;
}
.header.scrolled, .header-solid { box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--sea); }
.nav a:hover { color: var(--terra); }
.head-actions { display: flex; align-items: center; gap: 16px; }
.head-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--sea); }
.head-phone svg { width: 17px; height: 17px; }
.lang { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 700; }
.lang button { background: none; border: 0; cursor: pointer; padding: 4px 6px; color: inherit; opacity: .5; }
.lang button[aria-pressed="true"] { opacity: 1; }
.head-actions .btn { padding: 11px 22px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--sea); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Cabecera sobre la foto (solo portada, antes de hacer scroll) */
.header-over { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.header-over:not(.scrolled) .logo-light { display: block; }
.header-over:not(.scrolled) .logo-dark { display: none; }
.header-over:not(.scrolled) .nav a,
.header-over:not(.scrolled) .head-phone,
.header-over:not(.scrolled) .lang,
.header-over:not(.scrolled) .menu-toggle { color: #fff; }
.header-over.scrolled { background: rgba(246, 241, 234, .96); backdrop-filter: blur(10px); }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); display: flex; align-items: flex-end;
  color: #fff; background: var(--sea) url("../img/terraza-vistas.jpg") center 60% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,41,58,.55) 0%, rgba(22,41,58,.05) 35%, rgba(22,41,58,.15) 55%, rgba(22,41,58,.75) 100%);
}
.hero .wrap { position: relative; padding: 130px 0 110px; }
.hero .kicker { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(46px, 8vw, 104px); font-weight: 400; max-width: 12ch; margin-bottom: 18px; }
.hero h1 em { color: #f3cdb5; }
.hero p { font-size: clamp(18px, 1.8vw, 21px); max-width: 44ch; opacity: .95; margin: 0; }

/* ---------- Buscador (cápsula) ---------- */
.search { position: relative; z-index: 5; margin-top: -58px; }
.search form, .bk-search form {
  display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; align-items: center;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 8px; max-width: 980px; margin: 0 auto;
}
.field { position: relative; padding: 8px 26px; border-right: 1px solid var(--line); min-width: 0; }
.field:nth-child(3) { border-right: 0; }
.field label, .field .lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.field input[type="date"] {
  width: 100%; border: 0; padding: 2px 0; font-size: 17px; font-weight: 500; color: var(--sea);
  background: transparent; outline: none; cursor: pointer; min-height: 30px;
}
.occ-btn {
  width: 100%; text-align: left; background: none; border: 0; padding: 2px 0; font-size: 17px; font-weight: 500;
  color: var(--sea); cursor: pointer; min-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search form > .btn, .bk-search form > .btn { padding: 0 34px; height: 62px; font-size: 16px; }
.form-error { color: #b3412a; font-size: 14px; margin: 12px 0 0; text-align: center; display: none; }
.form-error.show { display: block; }

.occ-pop {
  position: absolute; top: calc(100% + 16px); left: 0; width: 330px; max-width: calc(100vw - 32px); z-index: 20;
  background: #fff; border-radius: var(--r-s); box-shadow: var(--shadow); padding: 16px 20px 20px; display: none;
}
.occ-pop.open { display: block; }
.occ-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.occ-row:last-of-type { border-bottom: 0; }
.occ-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--sand-3); background: #fff; color: var(--sea);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.stepper button:hover:not(:disabled) { border-color: var(--sea); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; color: var(--sea); }
.occ-hint { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.occ-pop .btn { width: 100%; padding: 12px; }

/* ---------- Ventajas ---------- */
.perks { padding: 56px 0 10px; }
.perks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.perks li { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 16px; color: var(--sea); }
.perks svg { width: 24px; height: 24px; color: var(--terra); }

/* ---------- Intro ---------- */
.intro { padding: 110px 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-text p { font-size: 18px; }
.facts { display: flex; gap: 44px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; color: var(--sea); }
.facts span { font-size: 14px; color: var(--muted); }
.photo-stack { position: relative; padding: 0 0 70px 60px; }
.photo-stack img { border-radius: var(--r); object-fit: cover; }
.photo-stack .main { width: 100%; aspect-ratio: 4 / 5; }
.photo-stack .over {
  position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--sand); border-radius: 26px;
}

/* ---------- Apartamento ---------- */
.apt { padding: 110px 0; background: var(--white); border-radius: 48px 48px 0 0; }
.apt-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.apt-head h2 { margin: 0; max-width: 16ch; }
.apt-head p { max-width: 42ch; margin: 0; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 12px; }
.mosaic button, .gallery-grid button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: var(--r-s); background: var(--sand-2); position: relative; }
.mosaic img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic button:hover img, .gallery-grid button:hover img { transform: scale(1.04); }
.mosaic .big { grid-row: span 2; }
.mosaic .more::after {
  content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(22,41,58,.45); color: #fff; font-weight: 700; font-size: 22px; z-index: 1;
}
.apt-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin-top: 50px; align-items: start; }
.apt-info h3 { font-size: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--sand); color: var(--sea); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; }
.chip svg { width: 17px; height: 17px; color: var(--terra); }
.equip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 28px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 16px; }
.equip li { display: flex; align-items: center; gap: 12px; }
.equip svg { width: 22px; height: 22px; color: var(--terra); flex: none; }
.price-card { background: var(--sand); border-radius: var(--r); padding: 34px; position: sticky; top: 110px; }
.price-card small { display: block; color: var(--muted); font-size: 14px; }
.price-card .amount { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--sea); margin: 4px 0 6px; }
.price-card .amount span { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.price-card .btn { width: 100%; margin-top: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 15px; }
.price-card li { display: flex; gap: 10px; padding: 6px 0; }
.price-card li svg { width: 18px; height: 18px; color: var(--terra); margin-top: 4px; flex: none; }

/* ---------- Edificio ---------- */
.building { background: var(--sea); color: #e9eef1; padding: 120px 0; }
.building h2 { color: #fff; }
.building h2 em { color: #f3cdb5; }
.building .eyebrow { color: #f3cdb5; }
.building .lead { color: #bfcbd3; }
.building-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; align-items: center; }
.arches { display: flex; justify-content: center; }
.arches img { width: 100%; max-width: 420px; aspect-ratio: 300 / 760; max-width: 340px; object-fit: cover; border-radius: 999px 999px var(--r-s) var(--r-s); }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.checks li { display: flex; gap: 14px; }
.checks svg { width: 26px; height: 26px; color: #f3cdb5; flex: none; margin-top: 2px; }
.checks b { color: #fff; display: block; font-weight: 700; }
.checks span { font-size: 15px; color: #bfcbd3; }

/* ---------- Galería ---------- */
.gallery { padding: 110px 0; }
.gallery-head { text-align: center; margin-bottom: 44px; }
.gallery-grid { columns: 3 280px; column-gap: 14px; }
.gallery-grid button { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; }
.gallery-grid img { height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(22,41,58,.96); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; }
.lightbox button svg { width: 32px; height: 32px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Ubicación ---------- */
.location { padding: 40px 0 110px; }
.location-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1; background: var(--sand-2); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }
.addr { font-size: 19px; color: var(--sea); font-weight: 700; margin-bottom: 4px; }
.access { display: flex; gap: 12px; align-items: flex-start; background: #fff; padding: 14px 18px; border-radius: var(--r-s); margin: 18px 0 26px; font-size: 15px; color: var(--sea); }
.access svg { width: 20px; height: 20px; color: var(--terra); flex: none; margin-top: 3px; }
.dist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 32px; }
.dist b { display: block; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--sea); }
.dist span { font-size: 14px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { padding: 0 0 110px; }
.contact-card { background: var(--terra); color: #fff; border-radius: 36px; padding: 70px 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.contact-card h2 { color: #fff; }
.contact-card .eyebrow { color: #fbe3d4; }
.contact .phone { font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); line-height: 1; color: #fff; text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-actions .btn-sea { background: var(--sea); }
.hours { display: grid; gap: 12px; }
.hours > div { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.14); padding: 18px 22px; border-radius: var(--r-s); }
.hours svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.hours b { display: block; }
.hours span { opacity: .9; font-size: 15px; }

/* ---------- Pie ---------- */
.footer { background: var(--sea-2); color: #aebbc4; font-size: 15px; padding: 70px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer img { height: 44px; width: auto; margin-bottom: 20px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* ---------- Fijos ---------- */
.reg-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 90; background: var(--sand); color: var(--sea);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 7px 13px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(22,41,58,.18); pointer-events: none;
}
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Interiores ---------- */
.page-head { padding: 70px 0 20px; }
.legal { padding: 20px 0 110px; max-width: 820px; }
.legal h2 { font-size: 30px; margin-top: 1.6em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .head-phone span { display: none; }
}
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 84px; left: 0; right: 0; background: var(--sand); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 24px 24px; box-shadow: 0 20px 30px rgba(22,41,58,.12); display: none;
  }
  .nav.open { display: flex; }
  .nav a, .header-over:not(.scrolled) .nav a { color: var(--sea); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .head-actions .btn { display: none; }
  .intro-grid, .building-grid, .location-grid, .apt-info, .contact-card { grid-template-columns: 1fr; }
  .intro-grid { gap: 50px; }
  .building-grid { gap: 60px; }
  .apt-head { flex-direction: column; align-items: start; }
  .price-card { position: static; }
  .contact-card { padding: 50px 34px; }
  .checks { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .search form, .bk-search form { grid-template-columns: 1fr 1fr; border-radius: var(--r); padding: 6px; }
  .field { padding: 10px 16px; }
  .field:nth-child(2) { border-right: 0; }
  .field:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .search form > .btn, .bk-search form > .btn { grid-column: 1 / -1; height: 54px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px 130px; }
  .mosaic .big { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header .wrap { height: 70px; gap: 12px; }
  .nav { top: 70px; }
  .brand img { height: 36px; }
  .head-phone { display: none; }
  .hero .wrap { padding: 120px 0 150px; }
  .field input[type="date"], .occ-btn { font-size: 16px; }
  .perks ul { justify-content: flex-start; gap: 12px 24px; }
  .perks li { width: calc(50% - 12px); font-size: 15px; }
  .intro, .apt, .building, .gallery { padding: 72px 0; }
  .apt { border-radius: 28px 28px 0 0; }
  .facts { gap: 24px; }
  .facts b { font-size: 36px; }
  .photo-stack { padding: 0 0 50px 30px; }
  .equip { grid-template-columns: 1fr; }
  .price-card { padding: 26px; }
  .dist b { font-size: 28px; }
  .contact-card { padding: 40px 22px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .reg-badge { font-size: 10.5px; padding: 6px 10px; left: 8px; bottom: 10px; }
  .wa-float { width: 50px; height: 50px; right: 10px; bottom: 10px; }
}
