/* === SLIDER DE VIDEOS TESTIMONIALES === */
.video-slider-wrapper {
  gap: 2.5rem !important;
  margin-bottom: 1.5rem;
}
.video-slide-card {
  background: var(--blanco);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(30,58,95,0.13);
  overflow: visible;
  position: relative;
  width: 320px;
  height: 210px;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
  cursor: pointer;
  z-index: 1;

}
.video-slide-card.zoomed {
  transform: scale(1.08) translateY(-10px);
  box-shadow: 0 8px 40px 0 rgba(30,58,95,0.22);
  z-index: 2;
  border-color: var(--azul_corporativo);
}
.video-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--azul_corporativo) 60%, var(--azul_secundario) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  filter: brightness(0.85) blur(0.5px);
  transition: filter 0.3s;
}
.video-slide-card.zoomed .video-thumb {
  filter: brightness(1) blur(0px);
}
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30,58,95,0.85);
  color: var(--dorado_suave);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(30,58,95,0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 3;
  font-size: 1.7rem;
}
.play-btn:hover {
  background: var(--dorado_suave);
  color: var(--azul_corporativo);
  transform: translate(-50%, -50%) scale(1.12);
}
@media (max-width: 991px) {
  .video-slider-wrapper {
    flex-direction: column;
    gap: 1.5rem !important;
  }
  .video-slide-card {
    width: 95vw;
    max-width: 340px;
    height: 200px;
  }
}
/* Global styles for Casa Para Todos - Paleta profesional para inmobiliaria */
:root {
  --primary: #dc3545; /* rojo principal */
  --accent: #6c757d;
  --bg: #002c66; /* fondo cambiado a #002c66 */
  --bg-light: #003d8f;
  --bg-dark: #001a40;
  --muted: #f8f9fa;
  --font: 'Poppins', sans-serif;
}
: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: #ffffff;
  --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;
}

/* Reset y configuración base */
* { 
  box-sizing: border-box; 
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: #f5f7fa; /* texto claro para contraste */
  min-height: 100vh;
  position: relative;
}

/* Imagen de fondo con desenfoque */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('imagenes/ciudad_casa_para_todos.png') no-repeat center center fixed;
  background-size: cover;
  filter: blur(3px);
  z-index: -2;
  pointer-events: none;
}

/* Overlay azul oscuro sobre el fondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 44, 102, 0.3); /* azul oscuro con 30% opacidad */
  z-index: -1;
  pointer-events: none;
}


/* Títulos con tipografía elegante */
 h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--azul_corporativo);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Navegación profesional */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(30, 58, 95, 0.1);
  background: #2F4156 !important;
  transition: background .3s;
}
/* hacer navbar transparente para que se vea la imagen superior */


.navbar-brand {
  color: var(--blanco) !important;
  font-weight: 600;
  font-size: 1.4rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--blanco) !important;
  transform: translateY(-1px);
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Header de páginas internas */
.page-header {
  background: linear-gradient(135deg, var(--bg) 0%, #001a3d 100%);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 44, 102, 0.3);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #ff6b6b);
}
/* Filtros profesionales */
.property-filters {
  background: var(--blanco);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
  border: 1px solid var(--gris_bordes);
}

.form-label {
  font-weight: 600;
  color: var(--azul_corporativo);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-select, .form-control {
  border: 2px solid var(--gris_bordes);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  color: var(--texto_principal);
  background: var(--blanco);
  transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
  border-color: var(--azul_secundario);
  box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
  outline: none;
  transform: translateY(-1px);
}

/* Botones profesionales */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--azul_secundario);
  color: var(--blanco);
  box-shadow: 0 3px 12px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
  background: var(--azul_corporativo);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(44, 90, 160, 0.4);
}

.btn-outline-secondary {
  border: 2px solid var(--gris_bordes);
  color: var(--texto_secundario);
}

.btn-outline-secondary:hover {
  background: var(--gris_texto);
  color: var(--blanco);
  border-color: var(--gris_texto);
}

/* Tarjetas de propiedades elegantes */
.property-card {
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gris_bordes);
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.15);
  border-color: var(--azul_secundario);
}

.property-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.property-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image-wrapper img {
  transform: scale(1.05);
}

.property-code {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(30, 58, 95, 0.9);
  color: var(--blanco);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Información de propiedades */
.property-location {
  color: var(--azul_secundario);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.property-location i {
  margin-right: 6px;
}

.property-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1rem;
}



.property-price .price-currency {
  font-size: 1rem;
  color: var(--texto_secundario);
  font-weight: 500;
}

/* Detalles de propiedades */
.property-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gris_bordes);
}

.detail-item {
  text-align: center;
  padding: 0.5rem;
}

.detail-item i {
  color: var(--azul_secundario);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--texto_principal);
  margin: 0.25rem 0;
}

.detail-label {
  color: var(--texto_secundario);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Layout profesional para detalle de propiedad */
.property-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: var(--gris_elegante);
}

/* Galería de imágenes profesional */
.main-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30, 58, 95, 0.12);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.main-image-container:hover {
  transform: scale(1.01);
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges elegantes */
.property-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.badge-code {
  background: linear-gradient(135deg, var(--azul_corporativo), var(--azul_secundario));
  color: var(--blanco);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 3px 12px rgba(30, 58, 95, 0.3);
}

.property-type-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.type-label {
  background: var(--dorado_suave);
  color: var(--blanco);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(201, 169, 97, 0.3);
}

/* Grid de imágenes secundarias */
.secondary-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 500px;
}

.secondary-image-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
}

.secondary-image-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.2);
}

.secondary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Información detallada profesional */
.property-info-section {
  margin-top: 3rem;
}

.property-header {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

.property-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--azul_corporativo);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.property-location {
  font-size: 1.2rem;
  color: var(--azul_secundario);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Grid de características elegante */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--blanco);
  border: 2px solid var(--gris_bordes);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.05);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.12);
  border-color: var(--azul_secundario);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--azul_claro), var(--azul_secundario));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(51, 122, 183, 0.3);
}

.feature-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.feature-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--azul_corporativo);
  margin-bottom: 0.25rem;
}

.feature-label {
  font-size: 0.95rem;
  color: var(--texto_secundario);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Descripción elegante */
.description-section {
  background: var(--blanco);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--azul_corporativo);
  margin-bottom: 1.5rem;
}

.description-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--texto_principal);
  text-align: justify;
}

/* Sidebar de contacto premium */
.contact-sidebar {
  background: linear-gradient(135deg, var(--blanco) 0%, var(--gris_elegante) 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15);
  border: 1px solid var(--gris_bordes);
  position: sticky;
  top: 100px;
}

/* Sección de precio destacada */
.price-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--azul_corporativo), var(--azul_secundario));
  border-radius: 16px;
  color: var(--blanco);
}

.price-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.8;
}

/* Botones de acción profesionales */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-whatsapp {
  background: var(--verde_confianza);
  color: var(--blanco);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-whatsapp:hover {
  background: var(--verde_oscuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-schedule {
  background: var(--azul_secundario);
  color: var(--blanco);
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-schedule:hover {
  background: var(--azul_corporativo);
  transform: translateY(-2px);
}

.btn-share {
  background: var(--dorado_suave);
  color: var(--blanco);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-share:hover {
  background: #b8965a;
  transform: translateY(-2px);
}

/* Formulario de contacto elegante */
.contact-form-section {
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

.form-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--azul_corporativo);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gris_bordes);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: var(--azul_secundario);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
  outline: none;
}

.phone-input {
  display: flex;
  border: 2px solid var(--gris_bordes);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.phone-input:focus-within {
  border-color: var(--azul_secundario);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.country-code {
  background: var(--gris_elegante);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--azul_corporativo);
  border-right: 1px solid var(--gris_bordes);
}

.btn-submit {
  background: linear-gradient(135deg, var(--azul_corporativo), var(--azul_secundario));
  color: var(--blanco);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Información adicional */
.additional-info {
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gris_bordes);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--texto_secundario);
  font-weight: 500;
}

.info-value {
  color: var(--azul_corporativo);
  font-weight: 600;
}

.status-available {
  color: var(--verde_oscuro);
  background: var(--verde_claro);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Navegación elegante */
.navigation-section {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--azul_secundario);
  color: var(--azul_secundario);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: var(--azul_secundario);
  color: var(--blanco);
  transform: translateY(-2px);
}

/* Footer profesional */
#footer {
  background: "#2F4156 !important";
  color: var(--blanco);
  margin-top: 4rem;
}


/* Elementos flotantes */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 90px;
  background: var(--verde_confianza);
  color: var(--blanco);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--azul_secundario);
  color: var(--blanco);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Calculadora de financiación - Diseño profesional */
.financing-calculator {
  background: var(--blanco);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(41, 61, 96, 0.08);
  border: 1px solid #dee2e6;
}

.calculator-title {
  color: var(--naranja);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calculator-inputs {
  margin-bottom: 1rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 0.75rem;
  text-align: center;
}

.input-display {
  background: var(--blanco);
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--azul);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0.75rem;
}

.home-price-display {
  background: #f8f9fa;
  border: 2px solid var(--azul);
  color: var(--azul);
  font-size: 1.2rem;
  font-weight: 700;
}

.currency-symbol {
  color: var(--azul);
  font-size: 1.1rem;
  font-weight: 600;
}

.currency-code {
  color: var(--gris);
  font-size: 0.9rem;
}

.percentage-display {
  color: var(--azul);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Range sliders estilo profesional */
.range-container {
  position: relative;
  margin: 1rem 0 0.5rem 0;
}

.financing-range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.financing-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--naranja);
  border: 3px solid var(--blanco);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 117, 20, 0.3);
  transition: all 0.3s ease;
}

.financing-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(255, 117, 20, 0.5);
}

.financing-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--naranja);
  border: 3px solid var(--blanco);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 117, 20, 0.3);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gris);
  font-weight: 500;
}

/* Resultados de la calculadora */
.calculator-results {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.results-title {
  color: var(--naranja);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.result-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--azul);
}

.result-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--azul);
}

.result-value .currency-symbol {
  color: var(--azul);
}

/* Resultado destacado - Cuota mensual */
.estimated-monthly {
  background: linear-gradient(135deg, var(--azul), var(--azul_claro));
  color: var(--blanco) !important;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
}

.estimated-monthly .result-label {
  color: var(--blanco);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.estimated-monthly .result-value {
  color: var(--blanco);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Responsive para calculadora */
@media (max-width: 768px) {
  .financing-calculator {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .calculator-title {
    font-size: 1.1rem;
  }
  
  .input-display {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }
  
  .estimated-monthly .result-value {
    font-size: 1.2rem;
  }
}

/* Responsive Design Profesional */
@media (max-width: 1200px) {
  .property-detail-container {
    padding: 1.5rem 1rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .propiedades-header h1 {
    font-size: 2.5rem;
  }
  
  .property-title {
    font-size: 2.2rem;
  }
  
  .main-image-container,
  .secondary-images-grid {
    height: 350px;
  }
  
  .contact-sidebar {
    margin-top: 2rem;
    position: static;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .propiedades-header {
    padding: 2.5rem 0;
  }
  
  .propiedades-header h1 {
    font-size: 2rem;
  }
  
  .property-filters {
    padding: 1.5rem;
  }
  
  .secondary-images-grid {
    height: 200px;
    gap: 8px;
  }
  
  .property-header {
    padding: 1.5rem;
  }
  
  .property-title {
    font-size: 1.8rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .property-detail-container {
    padding: 1rem;
  }
  
  .main-image-container {
    height: 250px;
  }
  
  .secondary-images-grid {
    height: 150px;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-sidebar {
    padding: 1.5rem;
  }
  
  .propiedades-header h1 {
    font-size: 1.75rem;
  }
}

/* Estados de loading y alertas */
.spinner-border {
  color: var(--azul_secundario) !important;
}

.alert-danger {
  background-color: var(--fondo_rojo);
  border-color: var(--fondo_rojo_oscuro);
  color: var(--fondo_rojo_oscuro);
}

/* Animaciones suaves para una experiencia premium */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.property-card,
.feature-card,
.contact-sidebar {
  animation: fadeInUp 0.6s ease-out;
}

/* Modal de galería profesional */
.modal-content {
  background: var(--negro);
}

.modal-header {
  background: rgba(30, 58, 95, 0.9);
  border: none;
}

.modal-title {
  color: var(--blanco);
  font-weight: 600;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

/* Utilidades compartidas extraídas */
.carousel-img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.barlow-condensed {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

#sobre-section h2 {
  color: #ffd200 !important;
}

.servicios-title {
  font-family: 'Barlow Condensed', serif;
  font-weight: bold;
  font-size: 2rem;
}

.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);
}

.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;
}

@media (max-width:767px) {
  .floating-banner,
  .floating-banner-wrapper {
    display: none !important;
  }
}

.hero {
  background-image: url('../images/descargar.jfif');
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 50px solid #2F4156;
}
.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;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 aspect ratio */
  z-index: 0;
  pointer-events: none; /* que no interfiera con clicks */
  border: none;
}
.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.container-white-bg {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  padding: 2rem;
  color: #333333;
}

/* ========================================
   VIDEO VERTICAL CONTAINER - Estilo móvil
   ======================================== */
.video-vertical-container {
  position: relative;
  width: 280px;
  height: 420px;
  background: #000;
  border-radius: 20px;
  padding: 0;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.1);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.video-vertical-container:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 35px 60px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* Eliminar efectos decorativos que causan problemas */
.video-vertical-container::before,
.video-vertical-container::after {
  display: none;
}

.video-vertical-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  display: block;
}

/* Botón de audio overlay */
.btn-audio-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-audio-overlay:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a2e;
  border-color: #fff;
  transform: translateX(-50%) scale(1.05);
}

.btn-audio-overlay i {
  font-size: 16px;
}

.btn-audio-overlay.hidden {
  display: none;
}

/* Responsive para video vertical */
@media (max-width: 991px) {
  .video-vertical-container {
    width: 260px;
    height: 400px;
    margin: 2rem auto;
  }
}

@media (max-width: 575px) {
  .video-vertical-container {
    width: 240px;
    height: 380px;
    border-radius: 16px;
  }
}

/* ========================================
   SLIDER 3D TIPO ABANICO
   ======================================== */
.slider-3d-wrapper {
  perspective: 1200px;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.slider-3d {
  position: relative;
  width: 350px;
  height: 420px;
  transform-style: preserve-3d;
}

.slide-3d {
  position: absolute;
  width: 180px;
  height: 300px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center bottom;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  left: 50%;
  margin-left: -90px;
  bottom: 20px;
}

.slide-3d .video-vertical-container {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 12px;
}

/* Posiciones del slider - Efecto abanico */
.slide-3d.position-left {
  transform: translateX(-100px) rotate(-15deg) scale(0.85);
  z-index: 1;
  opacity: 1;
  filter: brightness(0.85);
}

.slide-3d.position-center {
  transform: translateX(0) rotate(0deg) scale(1);
  z-index: 3;
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.slide-3d.position-right {
  transform: translateX(100px) rotate(15deg) scale(0.85);
  z-index: 1;
  opacity: 1;
  filter: brightness(0.85);
}

.slide-3d.position-hidden {
  transform: translateX(0) rotate(0deg) scale(0.6);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* Responsive slider 3D */
@media (max-width: 991px) {
  .slider-3d-wrapper {
    height: 420px;
  }
  
  .slide-3d {
    width: 160px;
    height: 260px;
    margin-left: -80px;
  }
  
  .slide-3d.position-left {
    transform: translateX(-85px) rotate(-12deg) scale(0.85);
  }
  
  .slide-3d.position-center {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  
  .slide-3d.position-right {
    transform: translateX(85px) rotate(12deg) scale(0.85);
  }
}

@media (max-width: 575px) {
  .slider-3d-wrapper {
    height: 380px;
  }
  
  .slide-3d {
    width: 140px;
    height: 230px;
    margin-left: -70px;
  }
  
  .slide-3d.position-left {
    transform: translateX(-70px) rotate(-10deg) scale(0.8);
  }
  
  .slide-3d.position-center {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  
  .slide-3d.position-right {
    transform: translateX(70px) rotate(10deg) scale(0.8);
  }
}
