/* ============================================================
   Vía Verde Conjunto Residencial — tema selva: verde + azul marino
   Paleta tomada del logotipo (#40B449 verde, #0D4B81 azul) y del
   brochure (fondo crema #F2F1DF, títulos verde bosque).
   ============================================================ */

:root {
  --c-primary: #2F7D3A;        /* verde marca */
  --c-primary-dark: #17401F;   /* verde selva profundo (hero/CTA) */
  --c-primary-light: #40B449;  /* verde brillante del logo */
  --c-accent: #40B449;         /* verde brillante */
  --c-accent-dark: #2b8a35;
  --c-accent-2: #0D4B81;       /* azul marino del logo (barra superior) */
  --c-cream: #F5F4E6;          /* crema del brochure */
  --c-cream-strong: #EDEBD6;
  --c-bg: #ffffff;
  --c-text: #16261A;
  --c-muted: #66755F;
  --c-border: #dbe4d3;
  --shadow-sm: 0 2px 12px rgba(12,45,20,.08);
  --shadow-md: 0 8px 32px rgba(12,45,20,.12);
  --shadow-lg: 0 20px 60px rgba(12,45,20,.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: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: -.005em;
}
.section-title { font-size: clamp(1.85rem, 3vw, 2.7rem); 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: transparent;
  padding: .2rem .2rem !important;
  border-radius: 14px;
  transition: all .3s ease;
}
.navbar-brand:hover { transform: translateY(-1px); }
.navbar-brand img { height: 46px; 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: 40px; }
.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; }

/* ============== OFERTA STRIP ============== */
.oferta-strip {
  background: linear-gradient(90deg, var(--c-accent-2) 0%, #145f9e 100%);
  color: #ffffff; text-align: center; padding: .7rem 1rem;
  font-size: .92rem; font-weight: 600;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1031;
}
.oferta-strip i { color: #A8E6AE; margin-right: .35rem; }
.oferta-strip a { color: #ffffff; text-decoration: underline; font-weight: 700; }
@media (max-width: 768px) { .oferta-strip { font-size: .78rem; padding: .45rem .6rem; line-height: 1.35; } }

body.has-oferta .navbar { top: 38px; }
body.has-oferta { padding-top: 38px; }
/* En móvil la tira lleva texto corto de 1 renglón */
@media (max-width: 768px) { body.has-oferta .navbar { top: 34px; } body.has-oferta { padding-top: 34px; } }

/* ============== HERO ============== */
.hero {
  position: relative; min-height: 95vh; display: flex; align-items: center;
  background:
    linear-gradient(135deg, rgba(12,40,18,.82) 0%, rgba(23,64,31,.55) 55%, rgba(13,75,129,.45) 100%),
    url('../assets/hero/hero.jpg') center/cover no-repeat;
  color: #fff; padding: 8rem 0 4rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block; background: rgba(64,180,73,.95); color: #0c2812;
  padding: .4rem 1.1rem; border-radius: 50px; font-size: .85rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.5rem); line-height: 1.05; margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero h1 em { font-style: italic; color: var(--c-accent); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 660px; margin-bottom: 2rem; opacity: .95; }
.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: #143309;
  padding: .9rem 2rem; border-radius: 50px; font-weight: 700;
  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: 2.2rem; color: var(--c-accent); font-family: 'Cormorant Garamond', serif; line-height: 1; }
.hero-stat span { font-size: .88rem; opacity: .9; letter-spacing: .03em; }

/* ============== SECTIONS ============== */
section { padding: 5rem 0; }
.section-eyebrow {
  color: var(--c-accent-dark); text-transform: uppercase; letter-spacing: .18em;
  font-size: .82rem; font-weight: 700; margin-bottom: .5rem;
  font-family: 'Inter', sans-serif;
}

/* ============== 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 { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.modelo-card .modelo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.modelo-card:hover .modelo-img img { transform: scale(1.06); }
.modelo-tipo-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(13,75,129,.95); color: #fff;
  padding: .3rem .75rem; border-radius: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.modelo-body { padding: 1.75rem; }
.modelo-body h3 { font-size: 1.65rem; margin-bottom: .35rem; }
.modelo-tag { color: var(--c-accent-dark); font-weight: 600; font-size: .88rem; margin-bottom: 1rem; letter-spacing: .05em; }
.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-icon i { font-size: 2rem; color: var(--c-primary); line-height: 1; }
.amenidad:hover .amenidad-icon i { color: var(--c-accent); }
.amenidad h5 { font-size: 1rem; margin-bottom: 0; font-family: 'Inter', sans-serif; font-weight: 600; }

/* ============== PILARES (brochure: sustentabilidad/frescura/bienestar/privacidad) ============== */
.pilar {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 1.25rem; height: 100%; transition: all .25s;
}
.pilar:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.pilar-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  background: var(--c-cream-strong); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.pilar h5 { font-size: 1.05rem; margin-bottom: .2rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--c-primary-dark); }
.pilar p { font-size: .9rem; color: var(--c-muted); margin: 0; line-height: 1.5; }

/* Medida de construcción en la card de modelo */
.modelo-m2 {
  display: inline-block; background: var(--c-cream-strong); color: var(--c-primary-dark);
  padding: .3rem .8rem; border-radius: 50px; font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; margin-bottom: .85rem;
}

/* ============== GALERÍA ============== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem; grid-auto-rows: 220px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; transition: all .25s;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* ============== 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(12,40,18,.94), rgba(13,75,129,.90)),
    url('../assets/galeria/g02.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(10,77,104,.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 ============== */
/* Crema del brochure, con tipografía verde bosque (así se ve el logo a color, como en el impreso) */
footer { background: var(--c-cream); color: #24361f; padding: 3.5rem 0 1.5rem; border-top: 4px solid var(--c-accent); }
footer h6 { color: var(--c-primary-dark); font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
footer a { color: #24361f; text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--c-primary); }
footer .footer-logo { height: 66px; margin-bottom: 1rem; }
footer .footer-logos { display: block; }
footer .social-links { display: flex; gap: .75rem; margin-top: 1rem; }
footer .social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(47,125,58,.12); color: var(--c-primary-dark); display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
footer .social-links a:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
footer .text-accent { color: var(--c-primary) !important; }
/* Tira de logos del desarrollador y la certificación */
.footer-certs {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.75rem; padding-top: 2rem;
  border-top: 1px solid rgba(36,54,31,.18);
}
.footer-certs img { height: 62px; width: auto; display: block; }
@media (max-width: 576px) { .footer-certs { gap: 1.75rem; } .footer-certs img { height: 48px; } }

.footer-bottom {
  border-top: 1px solid rgba(36,54,31,.18); margin-top: 1.75rem; padding-top: 1.5rem;
  font-size: .85rem; opacity: .9;
}
.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); }
}

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

/* ============== GALERÍA LIGHTBOX ============== */
.gallery-item img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,20,6,.92);
  display: none; align-items: center; justify-content: center;
  padding: 3rem 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer; opacity: .85; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.lightbox-nav:hover { background: var(--c-accent); color: #143309; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 768px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 14px; }
}
