:root{
  --bg:#020617;

  /* ✅ OPCIONAL (más premium): separa tarjetas del fondo */
  /* --card:#071022; */
  --card:#020617;

  --primary:#22c55e;
  --primary-soft:#14532d;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:#1f2937;
}

/* Reset básico */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{ scroll-behavior:smooth; }

body{
  font-family: Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* ✅ Para que al dar clic en el menú, el navbar sticky NO tape el título */
#inicio, #terrenos, #galeria, #ubicacion, #contacto, #galeria-atardecer, #precios, #preguntas{
  scroll-margin-top:90px;
}

/* Imágenes controladas */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* Checkbox galería */
.toggle-galeria{ display:none; }

/* NAVBAR */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(2,6,23,0.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #111827;
}
.nav-inner{
  max-width:1100px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  gap:10px;
}
.nav-logo{
  font-weight:800;
  letter-spacing:0.04em;
  font-size:1rem;
  text-transform:uppercase;
  color:#e5e7eb;
  display:flex;
  align-items:center;
}
.nav-logo span{ color:var(--primary); }
.nav-links{
  display:flex;
  gap:14px;
  align-items:center;
  font-size:0.9rem;
}
.nav-links a{
  color:var(--muted);
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  transition:background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover{
  background:#0f172a;
  color:#e5e7eb;
}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  color:#e5e7eb;
  font-size:1.4rem;
  cursor:pointer;
}

/* HERO */
.hero{
  position:relative;
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  padding:40px 20px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.7), rgba(15,23,42,0.9)),
    url("img/portada.jpg")
    center/cover no-repeat;
  z-index:-1;
}
.hero-content{ max-width:800px; }
.hero h1{ font-size:2.6rem; margin-bottom:10px; }
.hero p{
  font-size:1.05rem;
  margin-bottom:20px;
  color:#e5e7eb;
}
.hero-tag{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(34,197,94,0.15);
  border:1px solid rgba(34,197,94,0.6);
  font-size:0.75rem;
  text-transform:uppercase;
  letter-spacing:1px;
  color:#bbf7d0;
}
.hero-cta{
  display:inline-flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

/* BOTONES GENERALES */
.btn-main,
.btn-ghost,
.boton-precio{
  display:inline-block;
  padding:12px 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:bold;
  font-size:0.95rem;
  cursor:pointer;
  transition:transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn-main{
  background:var(--primary);
  color:#022c22;
  box-shadow:0 10px 25px rgba(34,197,94,0.35);
  border:none;
}
.btn-ghost{
  background:rgba(15,23,42,0.8);
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,0.6);
}
.boton-precio{
  background:#0f172a;
  color:#e5e7eb;
  box-shadow:0 8px 20px rgba(15,23,42,0.4);
  border:none;
  font-size:0.9rem;
}
.btn-main:hover,
.btn-ghost:hover,
.boton-precio:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 14px 30px rgba(0,0,0,0.45);
  opacity:0.97;
}

/* BOTONES ESPECIALES LLAMAR / WHATSAPP */
.boton-llamar{
  background:#0ea5e9 !important;
  color:#f9fafb !important;
}
.boton-whatsapp{
  background:#22c55e !important;
  color:#022c22 !important;
  box-shadow:0 10px 24px rgba(34,197,94,0.35);
}

/* CONTENEDOR Y TITULOS */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:32px 16px;
}
h2{
  font-size:1.7rem;
  margin-bottom:8px;
}
.sub{
  color:var(--muted);
  font-size:0.95rem;
  margin-bottom:20px;
}

/* SELLOS */
.sellos{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:4px;
}
.sello{
  flex:1 1 180px;
  background:#020617;
  border:1px solid #1f2937;
  border-radius:999px;
  padding:8px 12px;
  font-size:0.85rem;
  color:#d1d5db;
}

/* GRID 3 */
.grid-3{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:18px;
  margin-top:18px;
}
.card{
  background:var(--card);
  border-radius:14px;
  border:1px solid var(--border);
  padding:16px 18px;
  box-shadow:0 10px 30px rgba(15,23,42,0.55);
}
.card h3{ font-size:1.05rem; margin-bottom:6px; }
.card p{ font-size:0.92rem; color:var(--muted); }

/* === GALERÍAS COMO TARJETA === */
#galeria .container,
#galeria-atardecer .container{
  background:radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
  border-radius:18px;
  border:1px solid #1f2937;
  box-shadow:0 18px 40px rgba(15,23,42,0.9);
}

/* GALERÍA – TARJETAS DE FOTO */
.galeria{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:10px;
  margin-top:18px;
}
.galeria figure{
  margin:0;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #111827;
  cursor:pointer;
  background:#020617;
  box-shadow:0 10px 25px rgba(15,23,42,0.7);
}
.galeria img{
  width:100%;
  height:170px;
  object-fit:cover;
  transition:transform 0.2s ease;
}
.galeria figure:hover img{ transform:scale(1.05); }
.galeria figure:hover{ box-shadow:0 14px 30px rgba(0,0,0,0.7); }
.galeria-atardecer img{ height:190px; }

/* LIGHTBOX */
#lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:200;
}
#lightbox img{
  max-width:90%;
  max-height:90vh;
  border-radius:10px;
}

/* ✅✅✅ TARJETAS DE TERRENOS DISPONIBLES */
.disponibles-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:18px;
  margin-top:20px;
}
.disp-card{
  background:#020617;
  border-radius:16px;
  border:1px solid #1f2937;
  overflow:hidden;
  box-shadow:0 12px 35px rgba(15,23,42,0.7);
  display:flex;
  flex-direction:column;
}
.disp-img img{
  width:100%;
  height:180px;
  object-fit:cover;
  transition:transform 0.2s ease;
}
.disp-card:hover .disp-img img{ transform:scale(1.05); }
.disp-content{ padding:14px 16px 16px; }
.disp-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}
.disp-nombre{ font-weight:bold; font-size:0.98rem; }
.disp-etiqueta{
  font-size:0.8rem;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid #16a34a;
  background:#052e16;
  color:#bbf7d0;
}
.disp-body{ font-size:0.9rem; color:var(--muted); margin:4px 0; }
.disp-precio{ font-weight:bold; margin:4px 0; color:#86efac; }
.disp-aclaracion{ font-size:0.82rem; color:#9ca3af; opacity:0.92; margin-bottom:8px; }
.disp-detalle{ font-size:0.86rem; color:var(--muted); }
.disp-agotado{
  background:#7f1d1d;
  border:1px solid #ef4444;
  color:#fecaca;
  font-weight:600;
  letter-spacing:0.3px;
  box-shadow:none;
}
.disp-nota-agotado{
  margin-top:6px;
  padding:0;
  border:none;
  background:none;
  color:#fca5a5;
  font-weight:500;
  font-size:0.78rem;
  letter-spacing:0.2px;
  text-transform:none;
  font-style:italic;
}

/* =========================
   ✅ CONTACTO Y UBICACIÓN (ESTILO FOTO PRO)
   ========================= */

/* Fondo “textura” y centrado del título como la referencia */
#ubicacion{
  position:relative;
  padding:22px 0;
  overflow:hidden;
}
#ubicacion::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(750px 380px at 50% 30%, rgba(34,197,94,0.05), transparent 62%),
    radial-gradient(900px 520px at 30% 80%, rgba(59,130,246,0.04), transparent 60%),
    radial-gradient(1100px 650px at 70% 90%, rgba(249,115,22,0.03), transparent 62%),
    linear-gradient(180deg, rgba(2,6,23,0.55), rgba(2,6,23,0.95));
  filter:contrast(1.05);
  pointer-events:none;
}
#ubicacion .container{
  position:relative;
  z-index:1;
}
#ubicacion h2{
  text-align:center;
  font-size:2.2rem;
  letter-spacing:0.2px;
  margin-bottom:10px;
}
#ubicacion .sub{
  text-align:center;
  max-width:820px;
  margin:0 auto 18px;
  font-size:1.05rem;
  color:#cbd5e1;
  opacity:0.9;
}

/* Aviso superior tipo “placa” */
.nota-atencion{
  position:relative;
  margin:16px auto 20px;
  padding:18px 18px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.35);
  background:linear-gradient(180deg, rgba(2,6,23,0.92), rgba(2,6,23,0.72));
  box-shadow:0 18px 44px rgba(0,0,0,0.5);
  overflow:hidden;
  max-width:1000px;
}
.nota-atencion::before{
  content:"";
  position:absolute;
  left:12px;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(34,197,94,0.85), rgba(34,197,94,0.12));
  box-shadow:0 0 18px rgba(34,197,94,0.2);
}
.nota-atencion p{
  margin:10px 0;
  color:#e5e7eb;
  font-size:0.96rem;
  padding-left:18px;
  line-height:1.5;
}
.nota-atencion p + p{
  border-top:1px solid rgba(148,163,184,0.22);
  padding-top:10px;
}
.nota-atencion b{ color:#ffffff; }

/* Layout */
.contacto-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:14px;
}

/* “Marco pro” (imitación dorado/azul) */
.contacto-box,
#ubicacion .contacto-layout > div:last-child{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(2,6,23,0.95), rgba(2,6,23,0.88));
  box-shadow:
    0 20px 55px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border:1px solid rgba(148,163,184,0.26);
}
.contacto-box::before,
#ubicacion .contacto-layout > div:last-child::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  padding:1px;
  background:
    linear-gradient(90deg, rgba(253,224,71,0.55), rgba(59,130,246,0.35), rgba(253,224,71,0.55));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  opacity:0.65;
}
.contacto-box::after,
#ubicacion .contacto-layout > div:last-child::after{
  content:"";
  position:absolute;
  inset:-40px;
  background:radial-gradient(circle at 30% 20%, rgba(253,224,71,0.08), transparent 60%);
  pointer-events:none;
}

/* Titulitos centrados dentro como la referencia */
.contacto-box h3{
  text-align:center;
  font-size:1.25rem;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,0.22);
}

/* Contenido del box */
.contacto-box{
  padding:18px 18px 18px;
}

/* Números */
.contacto-numeros{
  margin-top:12px;
  border-top:1px solid rgba(148,163,184,0.18);
  padding-top:12px;
}
.contacto-linea{
  display:flex;
  gap:10px;
  align-items:center;
  margin:10px 0;
  font-size:0.98rem;
}
.contacto-label{ color:#cbd5e1; opacity:0.85; min-width:88px; }
.contacto-link{
  color:#f1f5f9;
  text-decoration:none;
  font-weight:800;
  letter-spacing:0.4px;
}
.contacto-link:hover{ color:#bbf7d0; }

/* Botones como “barra” pro */
.contacto-acciones{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
#ubicacion .btn-main.boton-whatsapp{
  box-shadow:0 14px 32px rgba(34,197,94,0.35);
}
#ubicacion .btn-ghost.boton-llamar{
  border:1px solid rgba(59,130,246,0.45) !important;
  box-shadow:0 14px 32px rgba(59,130,246,0.18);
}

/* Caja del mapa */
#ubicacion .contacto-layout > div:last-child{
  padding:12px;
}

/* Iframe mapa */
.mapa{
  width:100%;
  min-height:270px;
  border:0;
  border-radius:14px;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.05);
  filter:saturate(1.05) contrast(1.02);
}

/* FAQ */
.faq-item{
  position:relative;
  background:linear-gradient(180deg, rgba(2,6,23,0.96), rgba(2,6,23,0.90));
  border-radius:14px;
  border:1px solid rgba(148,163,184,0.26);
  padding:14px 16px;
  margin-top:12px;
  box-shadow:0 14px 34px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow:hidden;
}
.faq-item::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(34,197,94,0.85), rgba(34,197,94,0.12));
  box-shadow:0 0 18px rgba(34,197,94,0.22);
  opacity:0.9;
}
.faq-q{ font-weight:bold; font-size:0.95rem; padding-left:10px; }
.faq-a{ margin-top:4px; font-size:0.9rem; color:var(--muted); padding-left:10px; }

/* === GALERÍA LATERAL COMPLETA === */
.galeria-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.85);
  display:flex;
  justify-content:flex-start;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.25s ease;
  z-index:150;
}
.galeria-drawer{
  width:min(480px, 100%);
  background:#020617;
  border-right:1px solid #1f2937;
  padding:18px 16px 24px;
  transform:translateX(-100%);
  transition:transform 0.3s ease;
  overflow-y:auto;
  box-shadow:0 15px 35px rgba(0,0,0,0.7);
}
.galeria-drawer::-webkit-scrollbar{ width:8px; }
.galeria-drawer::-webkit-scrollbar-track{ background:#0f172a; border-radius:999px; }
.galeria-drawer::-webkit-scrollbar-thumb{ background:#64748b; border-radius:999px; }

.cerrar-galeria{
  display:inline-block;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid #f97373;
  font-size:0.85rem;
  cursor:pointer;
  margin-bottom:10px;
  color:#f9fafb;
  background:#ef4444;
  font-weight:bold;
  box-shadow:0 8px 20px rgba(239,68,68,0.5);
}
.cerrar-galeria:hover{ opacity:0.9; transform:translateY(-1px); }
.cerrar-bottom{ margin-top:16px; }

.galeria-grande{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:10px;
}
.galeria-grande figure{
  margin:0;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #111827;
}
.galeria-grande img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.toggle-galeria:checked ~ .galeria-overlay{
  opacity:1;
  pointer-events:auto;
}
.toggle-galeria:checked ~ .galeria-overlay .galeria-drawer{
  transform:translateX(0);
}

/* FOOTER */
footer{
  margin-top:24px;
  padding:16px 16px;
  border-top:1px solid #111827;
  background:#020617;
  color:#9ca3af;
}
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:0.85rem;
}
.footer-brand{
  color:#e5e7eb;
  font-weight:800;
  letter-spacing:0.02em;
}
.footer-sub{
  margin-top:4px;
  color:#9ca3af;
  font-size:0.82rem;
}

/* ✅ Botón flotante WhatsApp */
.fab-whatsapp{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:999;
  width:56px;
  height:56px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:1.25rem;
  background:#22c55e;
  color:#022c22;
  box-shadow:0 16px 34px rgba(34,197,94,0.35);
  border:1px solid rgba(34,197,94,0.45);
  transition:transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.fab-whatsapp:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 20px 40px rgba(0,0,0,0.5);
  opacity:0.98;
}

/* ANIMACIONES */
.fade-in{
  opacity:0;
  transform:translateY(10px);
  animation:fadeInUp 0.6s ease forwards;
}
.delay-1{ animation-delay:0.12s; }
@keyframes fadeInUp{
  to{ opacity:1; transform:translateY(0); }
}

/* RESPONSIVE */
@media (max-width:900px){
  .contacto-layout{ grid-template-columns:1fr; }
}

@media (max-width:768px){
  .nav-inner{ padding-inline:12px; }
  .nav-links{
    position:absolute;
    top:100%;
    right:0;
    left:0;
    background:#020617;
    border-bottom:1px solid #111827;
    flex-direction:column;
    padding:10px 16px 12px;
    display:none;
    z-index:120;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:block; }

  .hero{ min-height:55vh; padding:32px 16px; }
  .hero h1{ font-size:2rem; }
  .hero p{ font-size:0.95rem; }

  /* ✅ EN CELULAR: SIN FOTO, SOLO DEGRADADO VERDE */
  .hero::before{
    background:linear-gradient(to bottom, rgba(34,197,94,0.28), rgba(2,6,23,0.98));
  }

  #ubicacion h2{ font-size:1.9rem; }
  #ubicacion .sub{ font-size:0.98rem; }
}

/* Igualar altura contacto / mapa en pantallas grandes */
@media (min-width:769px){
  /* ya se ve bien con grid */
}
