/* =======================================================================
   Vista Park -- Design system
   Paleta: azul de marca (oficial, extraido del logo/renders encontrados)
   + navy profundo de apoyo + neutros calidos editoriales.
   ======================================================================= */

:root {
  --blue-50:  #eaf7fd;
  --blue-100: #cdeefb;
  --blue-300: #6cd0f2;
  --blue-500: #00a8e5; /* brand */
  --blue-600: #0090c7;
  --blue-700: #04739e;
  --navy-900: #0b2a45;
  --navy-800: #123a5e;
  --navy-700: #1b4a73;
  --sand-50:  #faf8f4;
  --sand-100: #f3efe6;
  --sand-200: #e9e2d3;
  --warm-gray-500: #6b6660;
  --warm-gray-700: #443f3a;
  --ink: #14202b;
  --white: #ffffff;

  --status-available: #1f9d55;
  --status-reserved: #d98c0c;
  --status-sold: #8b8b8b;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(11, 42, 69, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 42, 69, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 42, 69, 0.18);

  --font-display: 'Poppins', 'Montserrat', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container-w: 1240px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--navy-900);
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--warm-gray-700); }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; width: 100%; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
}
.section--sand { background: var(--sand-50); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.8); }
.section--navy .timeline-body p { color: rgba(255,255,255,.7); }

/* Secciones con foto de fondo (reemplaza el navy plano donde aporta contexto visual) */
.section--photo {
  position: relative; background-size: cover; background-position: center;
  overflow: hidden;
}
.section--photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,69,.88) 0%, rgba(11,42,69,.80) 55%, rgba(11,42,69,.92) 100%);
}
.section--photo .container { position: relative; z-index: 1; }
.section--photo[data-parallax-bg] { background-attachment: initial; }
.section--photo .section-head h2,
.section--photo .section-head p,
.section--photo .timeline-body h4 { color: var(--white); }
.section--photo .timeline-body p { color: rgba(255,255,255,.75); }
.section--photo .eyebrow { background: rgba(0,168,229,.15); color: var(--blue-300); }
.section--photo > .container > p { color: rgba(255,255,255,.8); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--navy .eyebrow { background: rgba(0,168,229,.15); color: var(--blue-300); }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-900); }
.btn-ghost { color: var(--blue-600); font-weight: 600; }
.btn-ghost:hover { color: var(--blue-700); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; min-height: 46px; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header .logo { height: 34px; }
.site-header .logo-dark { display: block; }
.site-header .logo-light { display: none; }
.site-header:not(.is-scrolled) .logo-dark { display: none; }
.site-header:not(.is-scrolled) .logo-light { display: block; }
body.page-inner .site-header .logo-dark { display: block; }
body.page-inner .site-header .logo-light { display: none; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-900);
  position: relative;
  padding: 6px 0;
}
body:not(.page-inner) .site-header:not(.is-scrolled) .main-nav a { color: var(--white); }
.main-nav a.active { color: var(--blue-500); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue-500); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-project-indicator {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue-50); color: var(--blue-700); padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}

.header-cta { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px;
}
.hamburger span { width: 26px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: .25s; }
body:not(.page-inner) .site-header:not(.is-scrolled) .hamburger span { background: var(--white); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 600; background: var(--navy-900);
  display: flex; flex-direction: column; padding: 100px 32px 40px;
  transform: translateX(100%); transition: transform .35s ease;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  color: var(--white); font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease;
}
.mobile-nav.is-open a { opacity: 1; transform: none; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: .05s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: .09s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: .13s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: .17s; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: .21s; }
.mobile-nav.is-open a:nth-child(7) { transition-delay: .25s; }
.mobile-nav.is-open a:nth-child(8) { transition-delay: .29s; }
.mobile-nav.is-open a:nth-child(9) { transition-delay: .33s; }
.mobile-nav .btn { margin-top: 24px; min-height: 52px; }
.mobile-nav-close { position: absolute; top: 24px; right: 20px; background: none; border: none; color: var(--white); font-size: 2rem; line-height: 1; padding: 10px; }

@media (max-width: 960px) {
  .main-nav, .header-cta .btn-outline, .header-cta .btn-outline-light { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .header-cta > a.btn { display: none; }
  .site-header .container { padding: 0 16px; }
  .mobile-nav { padding: 90px 22px 32px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero-media { position: absolute; inset: -12% 0; z-index: 0; height: 124%; will-change: transform; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,69,.55) 0%, rgba(11,42,69,.35) 40%, rgba(11,42,69,.85) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 160px 0 140px; width: 100%; }
.hero-content h1 { color: var(--white); max-width: 820px; }
.hero-content .lede { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Badge flotante con specs clave, reconstruido en HTML (no depende de texto quemado en la imagen) */
.hero-spec-badge {
  display: inline-flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  background: rgba(11,42,69,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-md);
  padding: 16px 22px; margin-top: 24px; font-family: var(--font-display);
}
.hero-spec-badge span { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--white); }
.hero-spec-badge .divider { width: 1px; height: 16px; background: rgba(255,255,255,.3); }
.hero-spec-badge strong { color: var(--blue-300); font-weight: 700; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.75); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll-cue::after { content: ''; width: 1px; height: 26px; background: rgba(255,255,255,.5); }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-cue { animation: none; } }

@media (max-width: 640px) {
  .hero-content { padding: 120px 0 100px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; min-height: 50px; }
  .hero-spec-badge { padding: 14px 16px; gap: 8px 16px; width: 100%; }
  .hero-spec-badge span { font-size: .82rem; }
  .hero-scroll-cue { display: none; }
}

.project-cards {
  position: relative; z-index: 2; margin-top: -60px; padding-bottom: 40px;
}
.project-cards .container { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .project-cards .container { grid-template-columns: 1fr; } }

.project-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-6px); }
.project-card__media { aspect-ratio: 4/3; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card__price { font-family: var(--font-display); font-weight: 700; color: var(--blue-600); font-size: 1.1rem; }
.project-card__list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.project-card__list li { font-size: .92rem; color: var(--warm-gray-700); display: flex; gap: 8px; align-items: flex-start; }
.project-card__list li::before { content: '✓'; color: var(--blue-500); font-weight: 700; }
.project-card__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Feature / amenity cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: var(--blue-100); }
.feature-card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(.22,1,.36,1), background .3s ease;
}
.feature-card:hover .icon { transform: scale(1.1) rotate(-4deg); background: var(--blue-100); }
.feature-card h4 { margin: 0; font-size: 1rem; }
.feature-card p { margin: 0; font-size: .9rem; }

.icon-flat { width: 22px; height: 22px; color: inherit; }
.icon-lg { width: 30px; height: 30px; }

.testimonial-carousel { display: flex; align-items: center; gap: 10px; }
.testimonial-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 10px; flex: 1 1 auto; scrollbar-width: none; justify-content: center;
}
.testimonial-track::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .testimonial-track { justify-content: flex-start; } }
.testimonial-nav {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--sand-200); box-shadow: var(--shadow-sm); display: flex; align-items: center;
  justify-content: center; color: var(--blue-600); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.testimonial-nav:hover { background: var(--blue-50); transform: scale(1.08); }
.testimonial-nav .icon-flat { width: 15px; height: 15px; }
@media (max-width: 640px) { .testimonial-nav { display: none; } }

.testimonial-card { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; width: 140px; scroll-snap-align: start; }
.testimonial-card__video-wrap {
  position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 16px;
  overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
}
.testimonial-card:hover .testimonial-card__video-wrap { box-shadow: var(--shadow-md); transform: translateY(-4px) scale(1.03); }
.testimonial-card__video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-card__name { text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--navy-900); font-size: .8rem; }
@media (max-width: 480px) { .testimonial-card { width: 112px; } }
.icon-sm { width: 16px; height: 16px; }

.pillar-card { text-align: left; }
.pillar-card .icon { background: var(--navy-900); color: var(--blue-300); }
.pillar-card:hover .icon { background: var(--blue-600); color: var(--white); }

/* ---------- Timeline (payment plan) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; margin: 32px 0; }
.timeline-step { display: flex; gap: 20px; position: relative; padding-bottom: 40px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: var(--sand-200);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-500); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
}
.timeline-body h4 { margin-bottom: 4px; }

/* ---------- Calculator ---------- */
.calc-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 760px) { .calc-card { grid-template-columns: 1fr; padding: 26px; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--sand-200); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: var(--font-body); background: var(--sand-50);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  min-height: 48px;
}
.field textarea { min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 4px var(--blue-50);
}
.calc-results { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; background: var(--sand-50); border-radius: var(--radius-sm); }
.calc-result-row strong { font-family: var(--font-display); color: var(--navy-900); }
.calc-note { font-size: .82rem; color: var(--warm-gray-500); margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.gallery-filters button {
  background: var(--sand-100); border: none; padding: 9px 18px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--navy-900);
  transition: background .2s ease, color .2s ease;
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--navy-900); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 900; background: rgba(11,20,28,.94);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: none;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .88rem; padding: 0 60px; }
@media (max-width: 480px) {
  .lightbox { padding: 14px; }
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-caption { bottom: 12px; font-size: .78rem; padding: 0 50px; }
}

/* ---------- Availability ---------- */
.availability-toolbar {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md);
  padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; align-items: end;
  box-shadow: var(--shadow-sm); margin-bottom: 32px;
}
.availability-summary { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.availability-summary .stat { background: var(--sand-50); border-radius: var(--radius-sm); padding: 16px 22px; }
.availability-summary .stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-900); }
.availability-summary .stat span { font-size: .8rem; color: var(--warm-gray-500); text-transform: uppercase; letter-spacing: .05em; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-family: var(--font-display); }
.status-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.status-badge.available { background: #eafaf0; color: var(--status-available); }
.status-badge.available::before { background: var(--status-available); }
.status-badge.reserved { background: #fdf3e2; color: var(--status-reserved); }
.status-badge.reserved::before { background: var(--status-reserved); }
.status-badge.sold { background: #f0f0f0; color: var(--status-sold); }
.status-badge.sold::before { background: var(--status-sold); }

.units-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.units-table th, .units-table td { padding: 14px 16px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--sand-100); }
.units-table th { font-family: var(--font-display); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; color: var(--warm-gray-500); background: var(--sand-50); }
.units-table tbody tr:hover { background: var(--sand-50); }
.units-table td.price { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); }

.unit-cards { display: none; flex-direction: column; gap: 14px; }
.unit-card { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.unit-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.unit-card__code { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.unit-card__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: .82rem; color: var(--warm-gray-700); margin-bottom: 14px; }
.unit-card__price { font-family: var(--font-display); font-weight: 700; color: var(--blue-600); font-size: 1.1rem; margin-bottom: 12px; }

@media (max-width: 820px) {
  .units-table-wrap { display: none; }
  .unit-cards { display: flex; }
}
@media (max-width: 480px) {
  .availability-toolbar { padding: 16px; grid-template-columns: 1fr; }
  .availability-summary { gap: 12px; }
  .availability-summary .stat { flex: 1 1 calc(50% - 6px); padding: 12px 14px; }
  .unit-card__grid { grid-template-columns: repeat(2, 1fr); }
  .unit-card { padding: 16px; }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--sand-200); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left; padding: 22px 4px;
  display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display);
  font-weight: 600; font-size: 1rem; color: var(--navy-900);
}
.faq-question .plus { transition: transform .25s ease; font-size: 1.3rem; color: var(--blue-500); }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 4px 22px; margin: 0; }

/* ---------- Forms / modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,20,28,.6); z-index: 800;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.modal-card {
  background: var(--white); border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: 36px;
  max-height: 90vh; overflow-y: auto; position: relative;
  transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.modal-overlay.is-open .modal-card { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 1.6rem; color: var(--warm-gray-500); padding: 8px; line-height: 1; transition: color .2s ease, transform .2s ease; }
.modal-close:hover { color: var(--navy-900); transform: rotate(90deg); }
@media (max-width: 480px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-card { max-width: none; width: 100%; border-radius: 24px 24px 0 0; padding: 28px 20px; max-height: 92vh; }
}
.form-confirm { display: none; text-align: center; padding: 20px 0; }
.form-confirm.is-visible { display: block; }
.form-confirm .icon-check { width: 64px; height: 64px; border-radius: 50%; background: #eafaf0; color: var(--status-available); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.field-error { color: #c0392b; font-size: .78rem; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field.has-error .field-error { display: block; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--warm-gray-500); margin: 16px 0; }
.consent-row input { margin-top: 3px; }

/* ---------- Floating buttons ---------- */
.floating-actions { position: fixed; right: 24px; bottom: 24px; z-index: 400; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.fab-whatsapp {
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); font-size: 1.6rem;
  transition: transform .2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-visit { box-shadow: var(--shadow-md); }

@media (max-width: 640px) {
  /* En movil el CTA de agendar visita ya vive en el header y el menu;
     el boton flotante solo queda el de WhatsApp para no tapar contenido. */
  .floating-actions { right: 16px; bottom: 16px; }
  .fab-visit { display: none; }
  .fab-whatsapp { width: 50px; height: 50px; font-size: 1.4rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.85); padding: 72px 0 28px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255,255,255,.7); font-size: .9rem; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--blue-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- Skeleton loaders ---------- */
.skeleton {
  position: relative; overflow: hidden; background: var(--sand-100); border-radius: var(--radius-sm);
}
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }
.skeleton-row { height: 52px; margin-bottom: 10px; }
.skeleton-card { height: 168px; border-radius: var(--radius-md); margin-bottom: 14px; }
.skeleton-text { height: 14px; width: 60%; border-radius: 4px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* red de seguridad: nunca ocultar texto si JS falla */

/* ---------- Video cards ---------- */
.video-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--navy-900); max-width: 340px; margin: 0 auto;
}
.video-card video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }
.video-card--wide video { aspect-ratio: 16/9; }
.video-feature { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .video-feature { grid-template-columns: 1fr; } .video-card { max-width: 280px; } }

/* ---------- Counters ---------- */
.counter-row { display: flex; gap: 48px; flex-wrap: wrap; }
.counter { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy-900); }
.counter-label { font-size: .85rem; color: var(--warm-gray-500); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue-500); color: var(--white);
  padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Admin (panel simple de prospectos) ---------- */
.admin-body { background: var(--sand-50); min-height: 100vh; }
.admin-topbar {
  background: var(--navy-900); color: var(--white); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-topbar a { color: rgba(255,255,255,.8); font-size: .85rem; transition: color .2s ease; }
.admin-topbar a:hover { color: var(--white); }
.admin-topbar-user { font-size: .82rem; color: rgba(255,255,255,.6); }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.admin-nav a {
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-family: var(--font-display); font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-nav a.active { background: var(--blue-500); color: var(--white); }
.admin-card { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.admin-stat-grid .admin-card { text-align: left; }
.admin-stat-grid strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-900); }
.admin-stat-grid span { font-size: .8rem; color: var(--warm-gray-500); text-transform: uppercase; letter-spacing: .05em; }
.admin-stat-grid a.admin-card { transition: transform .2s ease, box-shadow .2s ease; }
.admin-stat-grid a.admin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (max-width: 760px) { .admin-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-shell { padding: 40px 0 80px; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-900); padding: 20px; }
.admin-login-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; max-width: 400px; width: 100%; box-shadow: var(--shadow-lg); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: end; background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-md); padding: 20px; }
.admin-toolbar .field { margin-bottom: 0; min-width: 160px; }
.admin-alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 20px; }
.admin-alert.success { background: #eafaf0; color: var(--status-available); }
.admin-alert.error { background: #fdeaea; color: #c0392b; }
.admin-actions-cell { display: flex; gap: 8px; }
.admin-actions-cell form { display: inline; }
.admin-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.admin-pagination a, .admin-pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--sand-200); font-size: .85rem; }
.admin-pagination .active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

@media (max-width: 640px) {
  .admin-topbar .container { flex-wrap: wrap; gap: 10px; }
  .admin-login-card { padding: 28px 22px; }
  .admin-toolbar { padding: 16px; }
  .admin-toolbar .field { min-width: 100%; }
  .admin-shell { padding: 24px 0 60px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge-location { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--blue-700); background: var(--blue-50); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
