/* =========================================================
   🌅 CI Bienes Raíces — DEVELOPMENTS TEMPLATE
   Aplicable a Bahía Serena, Vista Mar, etc.
   ========================================================= */

/* === Variables y base === */
:root {
  --ci-blue: #2f66cb;
  --ci-gold: #ddb868;
  --paper: #f8f8ff;
  --dark-bg: #0e1828;
}

main {
  color: var(--paper);

}

/* =========================================================
   🏔️ HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.15);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,34,53,0.6), rgba(13,34,53,0.85));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.hero-content h1 {
  position: relative;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: #fff8dc;
  line-height: 1.08;
  letter-spacing: 0.8px;
  text-shadow:
    0 0 3px rgba(0,0,0,0.55),
    0 0 14px rgba(47,102,203,0.4),
    0 5px 10px rgba(0,0,0,0.5),
    0 0 26px rgba(221,186,104,0.45);
  margin-bottom: 14px;
}

.hero-content h1::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transform: translate(3px, 3px);
  color: rgba(0,0,0,0.3);
  filter: blur(1px);
  z-index: -1;
  pointer-events: none;
}

.hero-content p {
  opacity: 0.95;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.45);
}

/* === Logo dentro del hero === */
.glass-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(216,220,255,0.25);
  box-shadow:
    0 0 22px rgba(47,102,203,0.55),
    0 0 36px rgba(221,186,104,0.35) inset;
}

/* =========================================================
   🧩 SECCIONES GENERALES
   ========================================================= */
.section {
  padding: clamp(60px, 6vw, 100px) 2rem;
  text-align: center;
}

.section h2 {
  color: var(--ci-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(221,186,104,0.35);
}

.section .lead {
  color: rgba(240,240,255,0.9);
  max-width: 720px;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}


/* =========================================================
   💎 BENEFICIOS GRID — Centrado y sin padding exagerado
   ========================================================= */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;       /* 🔹 centra horizontalmente cada card */
  align-items: stretch;        /* 🔹 misma altura en fila */
  gap: 32px;
  max-width: 1150px;
  margin: 0 auto;
  padding: 2rem 0;             /* 🔹 sin padding lateral */
  box-sizing: border-box;
}

.beneficios-grid .card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1.5px solid rgba(216, 220, 255, 0.25);
  border-radius: 16px;
  width: 100%;                 /* 🔹 ocupa su celda completa */
  max-width: 260px;            /* 🔹 tamaño parejo, evita overlap */
  text-align: center;          /* 🔹 contenido centrado */
  padding: 20px 16px;          /* 🔹 padding más compacto */
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.3),
    inset 0 0 18px rgba(47, 102, 203, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 🔹 Flecha a la izquierda del título, centrada */
.beneficios-grid .card h4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;     /* 🔹 centramos texto y flecha juntos */
  font-weight: 700;
  color: var(--ci-gold);
  margin-bottom: 10px;
  font-size: 1.1rem;
  text-align: center;
}

.beneficios-grid .card h4::before {
  content: "➤";
  color: var(--ci-blue);
  font-size: 1rem;
  margin-right: 8px;
  text-shadow:
    0 0 8px rgba(47, 102, 203, 0.6),
    0 0 16px rgba(221, 186, 104, 0.4);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover */
.beneficios-grid .card:hover h4::before {
  color: var(--ci-gold);
  transform: translateX(4px);
  text-shadow:
    0 0 14px rgba(221, 186, 104, 0.9),
    0 0 20px rgba(47, 102, 203, 0.6);
}

/* 🔹 Texto dentro del card */
.beneficios-grid .card p {
  color: rgba(240, 240, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.25rem 0;
}

/* 🔹 Leyenda “Clave Catastral” */
.beneficios-grid .card .clave {
  display: block;
  font-size: 0.9rem;
  color: rgba(221, 186, 104, 0.9);
  text-shadow: 0 0 6px rgba(47,102,203,0.45);
  margin-top: 6px;
}

/* 🔹 Efecto hover general */
.beneficios-grid .card:hover {
  transform: translateY(-6px);
  border-color: rgba(221, 186, 104, 0.6);
  box-shadow:
    0 0 24px rgba(47, 102, 203, 0.45),
    0 0 40px rgba(221, 186, 104, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
}

/* 📱 Responsive */
@media (max-width: 1024px) {
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .beneficios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================================================
   🌅 VISTAS DEL DESARROLLO (ex-Galería)
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  justify-items: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

/* 🎞️ Imagen estilo "vista panorámica" */
.gallery-img {
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  border: 1.8px solid rgba(221,186,104,0.35);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.45),
    0 0 28px rgba(47,102,203,0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  cursor: zoom-in;
  filter: brightness(0.94) saturate(1.05);
}

/* 💫 Hover: efecto foto brillante + relieve */
.gallery-img:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow:
    0 0 40px rgba(221,186,104,0.5),
    0 0 60px rgba(47,102,203,0.4);
  filter: brightness(1.03) saturate(1.15);
}

/* 📱 Responsive refinado */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-img {
    max-width: 100%;
    border-radius: 14px;
  }
}

/* =========================================================
   📐 TABLAS DE LOTES
   ========================================================= */
.table-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0,0,0,0.6);
  box-shadow: 0 0 18px rgba(47,102,203,0.35);
}

th, td {
  padding: 14px 16px;
  border: 1.5px solid rgba(0,0,0,0.65);
  text-align: center;
}

th {
  background: var(--ci-blue);
  color: #fff;
  font-weight: 700;
}

tr:nth-child(even) { background: rgba(255,255,255,0.12); }
tr:nth-child(odd)  { background: rgba(255,255,255,0.08); }

tr:hover {
  background: rgba(37,211,102,0.15);
  cursor: pointer;
  box-shadow: inset 0 0 8px rgba(37,211,102,0.4);
}

tr.selected {
  background: rgba(47,102,203,0.3) !important;
  font-weight: 600;
  box-shadow: inset 0 0 12px rgba(47,102,203,0.6);
}

.row-vendido {
  color: #999;
  background: rgba(200,200,200,0.16) !important;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* =========================================================
   🧾 PANEL DE LOTE SELECCIONADO
   ========================================================= */
.lote-info {
  display: none;
  max-width: 1000px;
  margin: 28px auto 0;
  padding: 24px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(221,186,104,0.75);
  box-shadow: 0 0 22px rgba(221,186,104,0.35);
}

.lote-detalles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 8px 0 4px;
}

/* =========================================================
   🟢 BOTONES / CTA
   ========================================================= */
.cta-opcion {
  background: linear-gradient(135deg, var(--ci-blue), #1b3e85);
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 8px;
  transition: all 0.25s ease;
}

.cta-opcion.active {
  color: #000;
  background: linear-gradient(135deg, #ffd700, #c5a200);
  box-shadow: 0 0 22px rgba(255,215,0,0.9);
}

.cta-emoji {
  font-size: 2.2em;
  margin-bottom: 6px;
  animation: floatSoft 3s ease-in-out infinite;
}

.cta-whatsapp {
  background: linear-gradient(135deg, #25d366, #128C7E);
  color: #fff;
  font-weight: 700;
  font-size: 1.05em;
  padding: 14px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(37,211,102,0.9);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.cta-whatsapp:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* =========================================================
   🗺️ MAPA Y SVG
   ========================================================= */
.svg-wrap object {
  width: 100%;
  height: 560px;
  border-radius: 14px;
  border: 2px solid rgba(47,102,203,0.65);
  box-shadow: 0 8px 24px rgba(47,102,203,0.35);
}

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(216,220,255,0.25);
}

/* =========================================================
   ✨ ANIMACIONES
   ========================================================= */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(47,102,203,0.3); }
  50% { box-shadow: 0 0 24px rgba(47,102,203,0.6); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =========================================================
   📱 RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero { height: 70vh; }
  .hero-content h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
  .section { padding: 3rem 1.2rem; }
  th, td { font-size: 0.9rem; padding: 10px; }
  .cta-whatsapp { width: 100%; }
}
