/* ============================================================
   Almazara Residencial — tema verde limón + negro + naranja (rebrand 2026)
   ============================================================ */

:root {
  --c-primary: #2f6b1f;        /* verde (antes azul) */
  --c-primary-dark: #1c4513;   /* verde oscuro (footer/hero) */
  --c-primary-light: #8DC63F;  /* verde limón */
  --c-accent: #8DC63F;         /* verde limón (antes dorado) */
  --c-accent-dark: #6fa12e;
  --c-accent-2: #F7941E;       /* naranja/mostaza (barra superior) */
  --c-cream: #f4f7ee;
  --c-bg: #ffffff;
  --c-text: #1a1f14;
  --c-muted: #6a7563;
  --c-border: #dde3d2;
  --shadow-sm: 0 2px 12px rgba(20,51,9,.08);
  --shadow-md: 0 8px 32px rgba(20,51,9,.12);
  --shadow-lg: 0 20px 60px rgba(20,51,9,.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: #000;
  padding: .55rem 1.1rem !important;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20,51,9,.25);
  transition: all .3s ease;
}
.navbar-brand:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20,51,9,.35); }
.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%, #d97e10 100%);
  color: #1a1f14; 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: #143309; margin-right: .35rem; }
.oferta-strip a { color: #143309; text-decoration: underline; font-weight: 700; }
@media (max-width: 768px) { .oferta-strip { font-size: .8rem; padding: .5rem; } }

body.has-oferta .navbar { top: 38px; }
body.has-oferta { padding-top: 38px; }
@media (max-width: 768px) { body.has-oferta .navbar { top: 32px; } body.has-oferta { padding-top: 32px; } }

/* ============== HERO ============== */
.hero {
  position: relative; min-height: 95vh; display: flex; align-items: center;
  background:
    linear-gradient(135deg, rgba(20,51,9,.78) 0%, rgba(47,107,31,.55) 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(141,198,63,.95); color: #143309;
  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(10,77,104,.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 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(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(20,51,9,.94), rgba(10,77,104,.92)),
    url('../assets/amenidades/alberca.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 ============== */
footer { background: rgb(134,174,63); color: #1a2410; padding: 3.5rem 0 1.5rem; }
footer h6 { color: #14210a; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
footer a { color: #1a2410; text-decoration: none; transition: color .2s; }
footer a:hover { color: #000; }
footer .footer-logo { height: 60px; 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(0,0,0,.12); color: #14210a; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
footer .social-links a:hover { background: #14350c; color: #fff; transform: translateY(-2px); }
footer .text-accent { color: #14350c !important; }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.18); margin-top: 2.5rem; 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; }
}
