/* ============================================================
   BORCASA - Sitio Público
   ============================================================ */

:root {
  --azul:    #1a2f5a;
  --dorado:  #c9a84c;
  --dorado2: #e8c56a;
  --gris:    #f4f6f9;
  --texto:   #2d3748;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--texto);
}

h1, h2, h3, .font-display {
  font-family: 'Playfair Display', serif;
}

/* ---- Navbar ---- */
.borcasa-navbar {
  background: var(--azul);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.brand-borcasa {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dorado);
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-sub {
  color: rgba(255,255,255,.6);
  margin-left: 6px;
  font-size: .8rem;
}
.borcasa-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: .5rem .9rem;
  border-radius: .375rem;
  transition: background .2s;
}
.borcasa-navbar .nav-link:hover {
  background: rgba(255,255,255,.12);
  color: #fff !important;
}

/* ---- Hero ---- */
.hero-section {
  min-height: 92vh;
  background: linear-gradient(135deg, rgba(26,47,90,.85) 0%, rgba(26,47,90,.6) 100%),
              url('/assets/img/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.15;
}
.hero-title .gold { color: var(--dorado); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
}

/* ---- Buscador Hero ---- */
.buscador-hero {
  background: rgba(255,255,255,.97);
  border-radius: .75rem;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.buscador-hero .form-label { font-weight: 600; font-size: .8rem; color: var(--azul); }

/* ---- Sección ---- */
.section-title {
  font-size: 2rem;
  color: var(--azul);
  position: relative;
  padding-bottom: .5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--dorado);
  border-radius: 2px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ---- Cards de propiedad ---- */
.prop-card {
  border: none;
  border-radius: .75rem;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.prop-card img {
  height: 210px;
  object-fit: cover;
  width: 100%;
}
.prop-card .badge-op {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--azul);
  color: #fff;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.prop-card .badge-temporada { background: var(--dorado); color: var(--azul); }
.prop-card .badge-disponible { background: #198754; }
.prop-card .badge-reservado  { background: #fd7e14; }
.prop-card .badge-vendido    { background: #6c757d; }

.prop-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--azul);
}
.prop-meta {
  font-size: .82rem;
  color: #6c757d;
}
.prop-meta i { color: var(--dorado); }

/* ---- Filtros ---- */
.filtros-sidebar {
  background: #fff;
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 80px;
}
.filtros-sidebar .form-label { font-size: .82rem; font-weight: 600; color: var(--azul); }

/* ---- Detalle propiedad ---- */
.prop-detail-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--azul);
}
.prop-feature-icon {
  width: 48px; height: 48px;
  background: var(--gris);
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--dorado);
}
.prop-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
}

/* ---- Servicios home ---- */
.service-card {
  background: #fff;
  border-radius: .75rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
}
.service-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--azul), #2a4a8a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: var(--dorado);
}

/* ---- Por qué elegirnos ---- */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.why-num {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--dorado);
  color: var(--azul);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---- Testimonios ---- */
.testimonial-card {
  background: var(--azul);
  color: #fff;
  border-radius: .75rem;
  padding: 1.75rem;
}
.testimonial-card .stars { color: var(--dorado); }

/* ---- Footer ---- */
.borcasa-footer {
  background: #0f1d38;
  color: rgba(255,255,255,.8);
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  color: var(--dorado);
  font-size: 1.5rem;
  letter-spacing: 2px;
}
.footer-heading {
  color: var(--dorado);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--dorado); }
.footer-social {
  color: rgba(255,255,255,.7);
  font-size: 1.3rem;
  transition: color .2s;
  text-decoration: none;
}
.footer-social:hover { color: var(--dorado); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 0;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
}

/* ---- WhatsApp flotante ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px; height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 1050;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}

/* ---- Paginación ---- */
.pagination .page-link {
  color: var(--azul);
  border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
  background: var(--azul);
  border-color: var(--azul);
}

/* ---- Botones ---- */
.btn-borcasa {
  background: var(--azul);
  color: #fff;
  border: none;
}
.btn-borcasa:hover { background: #243f7a; color: #fff; }
.btn-dorado {
  background: var(--dorado);
  color: var(--azul);
  border: none;
  font-weight: 600;
}
.btn-dorado:hover { background: var(--dorado2); color: var(--azul); }

/* ---- Mapa ---- */
#map-propiedad { height: 320px; border-radius: .5rem; }

/* ---- Calendario embed ---- */
.fc-event { cursor: pointer; font-size: .78rem; }
