/* ============================================================
   Casa Olea — Sprint 2 — Styles
   Mobile-first · Playfair Display + Inter
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ── */
:root {
  --navy-dark:   #1A2B4A;
  --navy-mid:    #2C4A7A;
  --blue-accent: #4A7CB5;
  --sky-light:   #A8C4E0;
  --gold-accent: #C9A84C;
  --gold-hover:  #B8943E;
  --off-white:   #F5F7FA;
  --white:       #FFFFFF;
  --text-primary:#1A1A2E;
  --text-muted:  #6B7A99;
  --green-wa:    #25D366;
  --gradient:    linear-gradient(135deg, #1A2B4A 0%, #2C4A7A 50%, #4A7CB5 100%);

  --radius-card: 16px;
  --radius-btn:  8px;
  --shadow-card: 0 8px 32px rgba(26,43,74,0.15);
  --shadow-card-sm: 0 4px 16px rgba(26,43,74,0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utilidades ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   SECCIÓN 1 — HERO
   ============================================================ */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-bottom: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-dark);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(26,43,74,0.85) 0%,
      rgba(26,43,74,0.55) 35%,
      rgba(26,43,74,0.25) 60%,
      rgba(26,43,74,0.15) 100%
    ),
    linear-gradient(
      to top,
      rgba(26,43,74,0.55) 0%,
      transparent 40%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 720px;
  width: 100%;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--white);
  font-weight: 600;
}

/* ── Botón CTA gold ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold-accent);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
}
.btn-whatsapp:hover { background: #1fbe59; transform: translateY(-1px); }

.icon-whatsapp { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Títulos de sección reutilizables ── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}
.section-subtitle--light { color: rgba(255,255,255,0.85); }

/* ============================================================
   SECCIÓN 2 — STATS
   ============================================================ */
.section-stats {
  background: var(--off-white);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--white);
  border-left: 4px solid var(--gold-accent);
  border-radius: var(--radius-btn);
  padding: 24px 20px;
  box-shadow: var(--shadow-card-sm);
}

.stat-icon {
  width: 28px;
  height: 28px;
  color: var(--blue-accent);
  margin-bottom: 12px;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   SECCIÓN 3 — GALERÍA
   ============================================================ */
.section-galeria {
  padding: 64px 0;
  background: var(--white);
}

.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--navy-dark);
}

.galeria-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.galeria-item:not(:first-child) {
  aspect-ratio: 4/3;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}

.galeria-item:hover img { transform: scale(1.04); opacity: .85; }

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,43,74,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }

.galeria-caption {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
}

.galeria-ver-mas {
  text-align: center;
  margin-top: 16px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 8px;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ============================================================
   SECCIÓN 4 — DISTRIBUCIÓN
   ============================================================ */
.section-distribucion {
  padding: 0;
}

.distribucion-nivel {
  padding: 64px 0;
}
.distribucion-nivel--baja  { background: var(--navy-dark); }
.distribucion-nivel--alta  { background: var(--navy-mid); }
.distribucion-nivel--azotea { background: var(--off-white); }

.distribucion-nivel--azotea .section-title { color: var(--navy-dark); }
.distribucion-nivel--azotea .section-subtitle { color: var(--text-muted); }
.distribucion-nivel--azotea .dist-lista li { color: var(--text-primary); }
.distribucion-nivel--azotea .dist-lista li::before { color: var(--gold-accent); }

.dist-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dist-imagen img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.dist-info .section-title { color: var(--white); }
.dist-info .section-subtitle { color: rgba(255,255,255,0.7); }

.dist-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dist-lista li {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.dist-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-weight: 700;
}

/* ============================================================
   SECCIÓN 5 — ACABADOS
   ============================================================ */
.section-acabados {
  padding: 64px 0;
  background: var(--white);
}

.acabados-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.acabado-card {
  background: var(--off-white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  border-left: 4px solid var(--gold-accent);
}

.acabado-icon {
  width: 32px;
  height: 32px;
  color: var(--blue-accent);
  margin-bottom: 16px;
}

.acabado-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

.acabado-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acabado-lista li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.acabado-lista li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-weight: 700;
}

/* ============================================================
   SECCIÓN 6 — ENTORNO
   ============================================================ */
.section-entorno {
  padding: 64px 0;
  background: var(--gradient);
}

.entorno-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 8px;
}

.entorno-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entorno-icon {
  width: 36px;
  height: 36px;
  color: var(--gold-accent);
  flex-shrink: 0;
}

.entorno-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.entorno-copy {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

/* ============================================================
   SECCIÓN 7 — PRECIO
   ============================================================ */
.section-precio {
  padding: 64px 0;
  background: var(--off-white);
}

.precio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.precio-columna {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card-sm);
}

.precio-grupo-titulo {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.precio-grupo-fecha {
  color: var(--gold-accent);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: none;
}

.precio-opcion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--off-white);
  gap: 12px;
}
.precio-opcion:last-of-type { border-bottom: none; }

.precio-opcion--destacado {
  position: relative;
  background: rgba(201,168,76,0.08);
  border-radius: 8px;
  padding: 20px 12px 16px;
  margin: 8px -12px 0;
  border-bottom: none;
  border: 1px solid rgba(201,168,76,0.3);
}

/* #12 — Columna Preventa destacada */
.precio-columna--preventa {
  background: rgba(201, 168, 76, 0.06);
  border: 2px solid var(--gold-accent);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.15);
}

.precio-columna--preventa .precio-grupo-titulo {
  color: var(--gold-accent);
}

.precio-columna--preventa .precio-valor {
  font-size: 1.6rem;
}

.precio-opcion-nombre {
  font-size: 15px;
  color: var(--text-primary);
}

.precio-valor {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  white-space: nowrap;
}

.precio-valor--destacado { color: var(--gold-hover); }

.precio-badge-recomendado {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--gold-accent);
  color: var(--navy-dark);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.forma-pago {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card-sm);
  margin-bottom: 32px;
}

.forma-pago-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy-dark);
  margin-bottom: 16px;
}

.forma-pago-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forma-pago-lista li {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.forma-pago-lista li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-accent);
}

.texto-gold { color: var(--gold-accent); font-weight: 600; }

.precio-cta { text-align: center; }

/* ============================================================
   SECCIÓN 7.5 — CREDIBILIDAD
   ============================================================ */
.section-credibilidad {
  padding: 64px 0;
  background: var(--navy-dark);
}

.credibilidad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.credibilidad-item {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.1);
}

.credibilidad-icon {
  width: 36px;
  height: 36px;
  color: var(--gold-accent);
  margin-bottom: 16px;
}

.credibilidad-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.credibilidad-copy {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.credibilidad-nota {
  text-align: center;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.link-whatsapp {
  color: var(--gold-accent);
  font-weight: 600;
  transition: opacity 0.2s;
}
.link-whatsapp:hover { opacity: 0.8; }

/* ============================================================
   SECCIÓN 8 — URGENCIA
   ============================================================ */
.section-urgencia {
  padding: 48px 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(201,168,76,0.2);
}

.urgencia-banner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-card);
  padding: 32px 24px;
}

.urgencia-icon {
  width: 36px;
  height: 36px;
  color: var(--gold-accent);
  flex-shrink: 0;
}

.urgencia-alerta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.urgencia-copy {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.urgencia-copy strong { color: var(--white); }

/* ============================================================
   SECCIÓN 9 — CTA FINAL
   ============================================================ */
.section-cta-final {
  padding: 80px 0;
  background: var(--gradient);
  text-align: center;
}

.section-cta-final .section-title {
  color: var(--white);
}

.section-cta-final .section-subtitle {
  color: rgba(255,255,255,0.82);
}

.cta-final-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-final-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.cta-final-subtitulo {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.6;
}

.cta-final-nota {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.cta-final-nota a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   SECCIÓN 10 — FOOTER
   ============================================================ */
.footer, .section-footer {
  background: #111828;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* clases del HTML real */
.footer-proyecto {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--white);
  font-weight: 700;
}

.footer-ubicacion {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}

.footer-telefono {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-telefono:hover { color: var(--gold-accent); }

.footer-privacidad {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-privacidad:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* alias para retrocompatibilidad */
.footer-nombre { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--white); font-weight: 700; }
.footer-datos  { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.8; }
.footer-datos a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-datos a:hover { color: var(--gold-accent); }

/* ============================================================
   STICKY CTA — MOBILE ONLY
   ============================================================ */
.sticky-cta {
  display: none;
}

/* ============================================================
   MEDIA QUERIES — TABLET 600px
   ============================================================ */
@media (min-width: 600px) {
  .acabados-grid {
    grid-template-columns: 1fr 1fr;
  }

  .credibilidad-grid {
    grid-template-columns: 1fr 1fr;
  }

  .entorno-grid {
    grid-template-columns: 1fr 1fr;
  }

  .precio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   MEDIA QUERIES — DESKTOP 1024px
   ============================================================ */
@media (min-width: 1024px) {

  /* Hero */
  .section-hero { padding-bottom: 100px; }
  .hero-title { font-size: 64px; }
  .hero-subtitle { font-size: 20px; }

  /* Stats */
  .section-stats { padding: 100px 0; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-number { font-size: 48px; }

  /* Títulos */
  .section-title { font-size: 40px; }

  /* Galería */
  .section-galeria { padding: 100px 0; }
  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .galeria-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }

  /* Distribución */
  .distribucion-nivel { padding: 100px 0; }
  .dist-content {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .dist-imagen { flex: 1; }
  .dist-info { flex: 1; }
  .distribucion-nivel:nth-child(even) .dist-content { flex-direction: row-reverse; }

  /* Acabados */
  .section-acabados { padding: 100px 0; }
  .acabados-grid { grid-template-columns: repeat(3, 1fr); }

  /* Entorno */
  .section-entorno { padding: 100px 0; }
  .entorno-grid { grid-template-columns: repeat(3, 1fr); }
  .entorno-item { flex-direction: column; }

  /* Precio */
  .section-precio { padding: 100px 0; }

  /* Credibilidad */
  .section-credibilidad { padding: 100px 0; }
  .credibilidad-grid { grid-template-columns: repeat(3, 1fr); }

  /* Urgencia */
  .urgencia-banner {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
  .urgencia-texto { flex: 1; }

  /* CTA Final */
  .cta-final-titulo { font-size: 44px; }

}

/* ── Sticky CTA — visible solo en mobile ── */
@media (max-width: 767px) {
  /* Hero mobile: render 01 fachada frontal, centrado */
  .hero-media img,
  .hero-img {
    object-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(26,43,74,0.15) 0%,
        rgba(26,43,74,0.45) 45%,
        rgba(26,43,74,0.80) 70%,
        rgba(26,43,74,0.90) 100%
      );
  }

  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  .sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--green-wa);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    text-decoration: none;
  }
  .sticky-cta .icon-whatsapp { width: 22px; height: 22px; }

  /* Espacio al final para que el sticky no tape el footer */
  .footer, .section-footer { padding-bottom: 80px; }
}

/* ============================================================
   FADE-IN SCROLL (IntersectionObserver — main.js)
   ============================================================ */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   ALIASES — clases reales del HTML vs nombres del CSS
   ============================================================ */

/* ── Hero ── */
.hero-media {
  position: absolute;
  inset: 0;
  background: var(--navy-dark);
}
.hero-media img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

.badge-preventa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

@media (min-width: 1024px) {
  .hero-h1 { font-size: 64px; }
}

/* ── Galería ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--navy-dark);
  border: none;
  padding: 0;
  display: block;
  aspect-ratio: 4/3;
}

.gallery-item--main {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
  display: block;
}

.gallery-item:hover img { transform: scale(1.04); opacity: .85; }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26,43,74,0.8) 0%, transparent 100%);
  padding: 24px 12px 12px;
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.lightbox-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-caption {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
  }
  .gallery-item--main {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }
  .gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery-item:nth-child(3) { grid-column: 3; grid-row: 1; }
  .gallery-item:nth-child(4) { grid-column: 2; grid-row: 2; }
  .gallery-item:nth-child(5) { grid-column: 3; grid-row: 2; }
  .gallery-item:nth-child(n+6) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
}

/* ── Distribución ── */
.section-distribucion {
  background: var(--navy-dark);
  padding: 64px 0;
}
.section-distribucion .section-title--light { color: var(--white); }
.section-distribucion .section-subtitle--light { color: rgba(255,255,255,0.75); margin-bottom: 40px; }

.plantas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.planta {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.planta--baja  { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.planta--alta  { background: rgba(44,74,122,0.5);    border: 1px solid rgba(255,255,255,0.1); }
.planta--azotea { background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2); }

.planta-header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.planta-nivel {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-accent);
  display: block;
  margin-bottom: 4px;
}

.planta-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.planta-lista {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planta-lista li {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.planta-lista li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-weight: 700;
}

@media (min-width: 768px) {
  .plantas-grid { grid-template-columns: 1fr 1fr; }
  .planta--baja { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .plantas-grid { grid-template-columns: 1fr 1fr; }
  .planta--baja { grid-column: 1; grid-row: 1 / 3; }
  .planta--alta, .planta--azotea { grid-column: 2; }
}

/* ── Entorno ── */
.entorno-bloque {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* hereda entorno-icon, entorno-titulo, entorno-copy del CSS original */

/* ── CTA Final ── */
.btn-cta--grande {
  font-size: 18px;
  padding: 20px 48px;
}

.cta-respaldo {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.cta-telefono {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.cta-telefono:hover { color: var(--white); }

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-tel:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── scroll-margin-top (para future nav) ── */
[id] { scroll-margin-top: 80px; }

/* ── focus-visible (accesibilidad) ── */
.btn-cta:focus-visible,
.sticky-cta-btn:focus-visible,
.link-whatsapp:focus-visible,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--gold-accent);
  outline-offset: 3px;
}

