/* ============================================================
   Campestre La Joya — tema azul marino + cian + naranja (rebrand 2026)
   ============================================================ */

:root {
  --c-primary: #0E2A47;        /* azul marino (antes verde) */
  --c-primary-dark: #081d33;   /* azul marino oscuro */
  --c-primary-light: #1f6fa8;  /* azul medio */
  --c-accent: #29ABE2;         /* azul cian (antes dorado) */
  --c-accent-dark: #1d87b5;
  --c-accent-2: #F7941E;       /* naranja (tercer color de paleta) */
  --c-cream: #eef4f9;
  --c-bg: #ffffff;
  --c-text: #16273a;
  --c-muted: #5f6f7d;
  --c-border: #d8e2ec;
  --shadow-sm: 0 2px 12px rgba(8,29,51,.08);
  --shadow-md: 0 8px 32px rgba(8,29,51,.12);
  --shadow-lg: 0 20px 60px rgba(8,29,51,.18);
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: -.01em;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: .5rem; }
.section-subtitle { color: var(--c-muted); font-size: 1.05rem; }
.text-accent { color: var(--c-accent); }
.text-primary-c { color: var(--c-primary); }
.bg-cream { background: var(--c-cream); }
.bg-primary-c { background: var(--c-primary); color: #fff; }

/* ============== NAVBAR ============== */
.navbar-brand {
  background: var(--c-primary-dark);
  padding: .55rem 1.1rem !important;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(8,29,51,.25);
  transition: all .3s ease;
}
.navbar-brand:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(8,29,51,.35); }
.navbar-brand img { height: 44px; width: auto; display: block; }
.navbar { transition: all .3s ease; padding: .9rem 0; }
.navbar.scrolled { background: rgba(255,255,255,.97) !important; box-shadow: var(--shadow-sm); padding: .5rem 0; }
.navbar.scrolled .navbar-brand { padding: .45rem .95rem !important; }
.navbar.scrolled .navbar-brand img { height: 38px; }
.nav-link { font-weight: 500; color: var(--c-text) !important; padding: .5rem 1rem !important; }
.nav-link:hover { color: var(--c-primary) !important; }
.btn-nav-cta {
  background: var(--c-primary); color: #fff !important; border-radius: 50px;
  padding: .55rem 1.4rem !important; font-weight: 600;
}
.btn-nav-cta:hover { background: var(--c-primary-dark); color: #fff !important; }

/* ============== HERO ============== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background:
    linear-gradient(135deg, rgba(8,29,51,.72) 0%, rgba(14,42,71,.55) 100%),
    url('../assets/hero/hero.jpg') center/cover no-repeat;
  color: #fff; padding: 7rem 0 4rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block; background: rgba(41,171,226,.95); color: #16273a;
  padding: .4rem 1.1rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.1; margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--c-accent); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 640px; margin-bottom: 2rem; opacity: .96; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-primary-c {
  background: var(--c-primary); border: none; color: #fff;
  padding: .9rem 2rem; border-radius: 50px; font-weight: 600;
  box-shadow: var(--shadow-md); transition: all .25s;
}
.btn-primary-c:hover { background: var(--c-primary-dark); transform: translateY(-2px); color: #fff; }
.btn-accent {
  background: var(--c-accent); border: none; color: #16273a;
  padding: .9rem 2rem; border-radius: 50px; font-weight: 600;
  box-shadow: var(--shadow-md); transition: all .25s;
}
.btn-accent:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-light-c {
  border: 2px solid #fff; color: #fff; padding: .85rem 2rem; border-radius: 50px;
  font-weight: 600; background: transparent; transition: all .25s;
}
.btn-outline-light-c:hover { background: #fff; color: var(--c-primary-dark); }

.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 2rem; color: var(--c-accent); font-family: 'Playfair Display', serif; }
.hero-stat span { font-size: .9rem; opacity: .9; }

/* ============== SECTIONS ============== */
section { padding: 5rem 0; }
.section-eyebrow {
  color: var(--c-accent); text-transform: uppercase; letter-spacing: .15em;
  font-size: .85rem; font-weight: 700; margin-bottom: .5rem;
}

/* ============== MODELOS ============== */
.modelo-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all .3s; height: 100%;
  border: 1px solid var(--c-border);
}
.modelo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.modelo-card .modelo-img { overflow: hidden; }
.modelo-card .modelo-img img { width: 100%; height: auto; display: block; transition: transform .5s; }
.modelo-card:hover .modelo-img img { transform: scale(1.06); }
.modelo-body { padding: 1.75rem; }
.modelo-body h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.modelo-tag { color: var(--c-accent); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.modelo-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.modelo-features li {
  display: flex; align-items: center; gap: .65rem; padding: .35rem 0;
  border-bottom: 1px dashed var(--c-border); font-size: .95rem;
}
.modelo-features li:last-child { border-bottom: none; }
.modelo-features i { color: var(--c-primary); width: 20px; }

/* ============== AMENIDADES ============== */
.amenidad {
  background: #fff; padding: 1.75rem 1.25rem; border-radius: var(--radius);
  text-align: center; border: 1px solid var(--c-border); height: 100%;
  transition: all .25s;
}
.amenidad:hover { border-color: var(--c-primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.amenidad-icon {
  width: 70px; height: 70px; margin: 0 auto 1rem;
  background: var(--c-cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.amenidad-icon img { width: 42px; height: 42px; object-fit: contain; }
.amenidad h5 { font-size: 1rem; margin-bottom: 0; font-family: 'Inter', sans-serif; font-weight: 600; }

/* ============== GALERÍA ============== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  position: relative; transition: all .25s;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "\F4FE"; font-family: "bootstrap-icons"; /* lupa */
  position: absolute; top: 10px; right: 12px; color: #fff;
  font-size: 1.1rem; opacity: 0; transition: opacity .25s;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.gallery-item:hover::after { opacity: .9; }
@media (max-width: 992px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ===== Lightbox ===== */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(8,29,51,.93);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 2rem;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 94vw; max-height: 88vh; border-radius: 8px;
  box-shadow: 0 12px 50px rgba(0,0,0,.55); object-fit: contain;
}
.lb-close { position: absolute; top: 14px; right: 24px; color: #fff;
  font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: .9; }
.lb-close:hover { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 3rem; cursor: pointer; user-select: none;
  padding: .5rem 1rem; opacity: .8; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
@media (max-width: 560px) { .lb-nav { font-size: 2.2rem; } }

/* ============== UBICACIÓN ============== */
.location-features { list-style: none; padding: 0; }
.location-features li {
  padding: .9rem 0; border-bottom: 1px solid var(--c-border);
  display: flex; justify-content: space-between; align-items: center;
}
.location-features li:last-child { border-bottom: none; }
.location-features strong { color: var(--c-primary-dark); }
.location-features .badge-min {
  background: var(--c-cream); color: var(--c-primary-dark);
  padding: .35rem .8rem; border-radius: 50px; font-weight: 600; font-size: .85rem;
}
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrap iframe { width: 100%; height: 460px; border: 0; display: block; }

/* ============== FINANCIAMIENTO ============== */
.fin-card {
  background: #fff; padding: 1.75rem; border-radius: var(--radius);
  border: 1px solid var(--c-border); height: 100%; transition: all .25s;
}
.fin-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); }
.fin-card .fin-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--c-cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  color: var(--c-primary); font-size: 1.5rem;
}
.fin-card h5 { font-size: 1.15rem; margin-bottom: .35rem; }

/* ============== CTA / FORM ============== */
.cta-section {
  background:
    linear-gradient(135deg, rgba(8,29,51,.93), rgba(14,42,71,.92)),
    url('../assets/amenidades/caseta.jpg') center/cover no-repeat;
  color: #fff; padding: 5rem 0;
}
.cta-section h2 { color: #fff; }
.form-card {
  background: #fff; padding: 2.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); color: var(--c-text);
}
.form-card .form-control, .form-card .form-select {
  border: 1px solid var(--c-border); border-radius: 10px;
  padding: .8rem 1rem; font-size: .95rem;
}
.form-card .form-control:focus, .form-card .form-select:focus {
  border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(14,42,71,.15);
}
.form-card label { font-size: .85rem; font-weight: 600; color: var(--c-primary-dark); margin-bottom: .35rem; }
.LoadForm { min-height: 24px; }

/* ============== ASESOR ============== */
.asesor-card {
  background: #fff; padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--c-border); display: flex; gap: 1.5rem; align-items: center;
}
.asesor-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--c-cream); display: flex; align-items: center; justify-content: center;
  color: var(--c-primary); font-size: 2.5rem; flex-shrink: 0; overflow: hidden;
}
.asesor-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ============== FAQ ============== */
.accordion-item { border: 1px solid var(--c-border); border-radius: var(--radius) !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--c-primary-dark); padding: 1.15rem 1.25rem; }
.accordion-button:not(.collapsed) { background: var(--c-cream); color: var(--c-primary-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--c-primary); }

/* ============== FOOTER ============== */
footer { background: #143155; color: #cfe3f2; padding: 3.5rem 0 1.5rem; }
footer h6 { color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
footer a { color: #cfe3f2; text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--c-accent); }
footer .footer-logo { height: 56px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
footer .social-links { display: flex; gap: .75rem; margin-top: 1rem; }
footer .social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
footer .social-links a:hover { background: var(--c-accent); color: #16273a; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .85rem; opacity: .85;
}
.credit-pm { color: var(--c-accent); font-weight: 600; }

/* ============== WhatsApp Float ============== */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  font-size: 1.7rem; transition: all .25s; text-decoration: none;
  animation: wa-pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1) rotate(-8deg); color: #fff; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============== UTIL ============== */
.divider-leaf {
  text-align: center; margin: 1rem 0; color: var(--c-accent); font-size: 1.5rem;
}
.text-justify { text-align: justify; }

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-stats { gap: 1.25rem; }
  .form-card { padding: 1.5rem; }
  .asesor-card { flex-direction: column; text-align: center; }
}
