/* Global styles for Casa Para Todos */
/* Global styles for Casa Para Todos - Paleta profesional para inmobiliaria */
:root {
  --blanco: #ffffff;
  --gris: #aaa9a9;
  --grisoscuro: #5e5e5e;
  --negro: #000000;
  --azul: #293d60;
  --azul_claro: #337ab7;
  --naranja: #ff7514;
  --fondo_rojo: #ffe5e5;
  --fondo_rojo_oscuro: #c9302c;
  --verde_claro: #e4f9e4;
  --verde_oscuro: #008000;
  --azul_negro: #00324b;
  --amarillo: #ffc500;
 
  
  /* Paleta profesional inmobiliaria */
  --azul_corporativo: #1e3a5f;
  --azul_secundario: #2c5aa0;
  --gris_elegante: #f8f9fa;
  --gris_texto: #495057;
  --gris_bordes: #dee2e6;
  --dorado_suave: #c9a961;
  --verde_confianza: #28a745;
  --texto_principal: #2c3e50;
  --texto_secundario: #6c757d;
  
  /* Tipografía profesional */
  --font-primary: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-headings: 'Barlow Condensed', 'Arial Black', sans-serif;
}

* { box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg); /* fondo actualizado */
  color: #f5f7fa; /* texto claro para contraste */
}

.hero {
  background-image: url('../images/descargar.jfif');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35));
}
.hero .container { z-index: 2; }

/* Video de fondo en hero */
.hero { position: relative; overflow: hidden; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* cubrir el contenedor, recortará si es necesario */
  z-index: 0;
  pointer-events: none; /* que no interfiera con clicks */
  filter: brightness(0.85); /* opcional: oscurece ligeramente para mejorar contraste del texto */
}

/* asegurar orden de capas: video (0) -> overlay (1) -> contenido (2) */
.hero .overlay { z-index: 1; position: absolute; inset: 0; }
.hero .container { z-index: 2; position: relative; }

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 90px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  z-index: 999;
}
#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

/* hacer navbar transparente para que se vea la imagen superior */
.navbar {
  background: #2F4156 !important;
  transition: background .3s;
}

/* marca y enlaces en blanco */
.navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
}

/* hover/active de los links */
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #e6eef6 !important;
  text-decoration: none;
}

/* toggler: borde y icono más visibles sobre fondo oscuro */
.navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.15);
}
.navbar .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

/* cuando el menú está colapsado en pantallas pequeñas, mantener fondo y separación */
@media (max-width: 991px) {
  .navbar .navbar-collapse {
    background: #2F4156;
    padding: .5rem;
    border-radius: .25rem;
  }
  .navbar .navbar-collapse .nav-link {
    color: #ffffff !important;
  }
}

/* Responsive tweaks */
@media (max-width:767px) {
  .hero { height: 50vh; }
}

.card .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* small utility */
.z-2 { z-index: 2; }

/* Footer */
footer { font-size: .9rem; }
.brand-logo {
  height: 36px;
  width: auto;
  display: inline-block;
  object-fit: contain;
}
@media (max-width:576px) {
  .brand-logo { height: 28px; }
}

.btn-outline-primary {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

/* hover / focus: fondo verde y texto blanco */
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 0 0 .2rem rgba(40,167,69,.2);
}

/* mantener contraste al hacer active/pressed */
.btn-outline-primary:active {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
  color: #fff !important;
}

/* color personalizado para los iconos dentro de la sección "Servicios" */
#services .fa-solid.text-primary {
  color: #567c8d !important;
}

/* Color específico para el texto de la sección "Quiénes somos" */
#nosotros p {
  color: #092f5b !important;
}

/* Color específico para el título de la sección "Quiénes somos" */
#nosotros h4 {
  color: #092f5b !important;
}

/* Aplicar color a todo el contenido dentro de #nosotros (incluyendo h4 anidados en p) */
#nosotros {
  color: #092f5b !important;
  padding: 2rem 3rem; /* vertical: 2rem, horizontal: 3rem */
}
#nosotros * {
  color: #092f5b !important;
}

/* clase para imágenes del carrusel que respetan su tamaño real */
.carousel-img {
  width: 100%;
  height: auto;            /* mantiene proporción natural */
  max-height: 300px;      /* limita la altura al contenedor del carousel */
  object-fit: contain;    /* muestra la imagen completa (sin recortar) */
  display: block;
  margin: 0 auto;
}

/* Título "Sobre Casa Para Todos" con Barlow Condensed */
.barlow-condensed {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Banner flotante lateral izquierdo con estilos consolidados */
.floating-banner {
  position: fixed;
  left: 20px;
  bottom: 120px;
  z-index: 9999;
  display: block;
  width: 260px;
  max-width: 36vw;
  transition: transform .18s ease, opacity .18s ease;
  opacity: 1;
}
.floating-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
}
.floating-banner:hover {
  transform: translateY(-6px);
}

/* Banner flotante lateral izquierdo con botón de cerrar */
.floating-banner-wrapper {
  position: fixed;
  left: 20px;
  bottom: 1px;
  z-index: 1000;
  transition: opacity 0.3s;
  width: 260px;
  max-width: 36vw;
}

.floating-banner-wrapper.hidden {
  display: none;
}

.close-banner-btn {
  position: absolute;
  top: -306px;
  right: -29px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.close-banner-btn:hover {
  background: #c82333;
}

/* ocultar en pantallas pequeñas */
@media (max-width:767px) {
  .floating-banner,
  .floating-banner-wrapper {
    display: none !important;
  }
}

/* Color del título "Sobre Casa Para Todos" */
#sobre-section h2 {
  color: #ffd200 !important;
}

/* Estilos para tarjetas de propiedades (design mejorado) */
.property-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15) !important;
}

.property-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.property-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-code {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.property-location {
  color: #0066cc;
  font-size: 0.95rem;
}

.property-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.property-price .price-amount {
  font-size: 1.4rem;
  font-weight: 700; 
   
    color: var(--azul_corporativo);
}
.property-price .price-currency {
  font-size: 0.9rem;
  color: #999;
}

.property-details {
  margin-top: auto;
  display: flex;
  justify-content: around;
  border-top: 1px solid #eee;
  padding-top: 8px;
}
.detail-item {
  flex: 1;
  text-align: center;
}
.detail-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin: 4px 0;
}
.detail-label {
  color: #666;
  font-size: 0.95rem;
}

/* Tamaño más pequeño para los detalles de propiedad */
.property-details .detail-item i {
  font-size: 1.2rem;
}
.property-details .detail-value {
  font-size: 1rem;
}
.property-details .detail-label {
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Estilos para la sección de servicios */
.servicios-title {
  font-family: 'Barlow Condensed', serif;
  font-weight: bold;
  font-size: 2rem;
}