/* El contenido de styles.css permanece igual, ya que las clases CSS existentes fueron reutilizadas en index.html para el modal de video. */
/* =========================================
   CONFIGURACIÓN GENERAL
   ========================================= */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --header-dark: #1b4d3e; /* Verde oscuro del header */
    --header-light: #2ecc71; /* Verde claro del header */
    --text-gray: #666;
    --bg-light: #f8f9fa;
    /* Colores para las Stats para mejor contraste */
    --stat-bg: #99ff33; /* Fondo Verde Limón */
    --stat-number: #c0392b; /* Rojo/Granate oscuro para números */
    --stat-text: #2c3e50; /* Gris/Azul oscuro para texto */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    color: #333;
    /* PADDING DE ESCRITORIO: top-bar(60px) + hero-section(100px) = 160px */
    padding-top: 160px; 
    padding-bottom: 50px;
    transition: padding-top 0.3s ease;
}

/* =========================================
   1. ENCABEZADO (HEADER) - SÓLO CONTENEDOR
   ========================================= */
header {
    position: relative;
    top: auto; 
    width: 100%;
    z-index: 100;
    background-color: white; 
    box-shadow: none; 
}

.top-bar {
    /* PROPIEDADES DE FIJACIÓN Y SOMBRA: SOLO PARA ESTA BARRA */
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    
    /* PROPIEDADES DE DISEÑO */
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 10px 5%;
    background-color: white;
    border-bottom: 1px solid #eee;
    height: 60px; /* Altura fija en escritorio */
    flex-wrap: nowrap; /* Evita que se envuelva en escritorio */
}

.logo-area {
    display: none; 
    flex-shrink: 0;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px; 
    flex-wrap: nowrap; 
    justify-content: flex-end;
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 8px; 
}

.social-icons a {
    width: 35px; 
    height: 35px; 
    font-size: 18px; 
    background-color: #f0f2f5;
    color: #555;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--header-light);
    color: white;
    transform: translateY(-2px);
}

/* Botones de Apps */
.store-buttons {
    display: flex;
    gap: 8px; 
    flex-wrap: nowrap;
}

/* ESTILO UNIFICADO (CONTÁCTANOS & APP DOWNLOAD) */
.contact-button-style {
    background-color: var(--header-light);
    color: white;
    padding: 8px 18px; 
    border-radius: 20px; 
    text-decoration: none;
    font-weight: 600; 
    font-size: 13px; 
    text-transform: none; 
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s; /* Añadir box-shadow a la transición */
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.3); 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; 
}

.contact-button-style:hover { 
    background-color: #219150; 
    transform: scale(1.03);
    /* CAMBIO 2: Mejorar el efecto hover con una sombra pulsante */
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.7), 0 0 15px rgba(46, 204, 113, 0.5);
}

.contact-button-style i {
    font-size: 1em; 
}

/* Barra de Estadísticas */
.stats-bar {
    background-color: var(--stat-bg); 
    color: var(--stat-text); 
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 5%; 
    text-align: center;
    flex-wrap: wrap;
    gap: 20px; 
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-item h3 {
    font-size: 2.2rem; 
    font-weight: 800;
    margin: 0;
    color: var(--stat-number); 
}
.stat-item p { 
    margin: 3px 0 0 0; 
    font-size: 0.9rem; 
    opacity: 1; 
    color: var(--stat-text); 
    font-weight: 600;
} 

/* =========================================
   1B. ESTILOS DE LOGO/TITULO PRINCIPAL (HERO) - MODIFICADO PARA SER FIJO
   ========================================= */

.hero-section {
    background-color: #ffffff;
    height: 100px; 
    
    /* >>> CAMBIOS CLAVE APLICADOS PARA FIJAR HERO SECTION <<< */
    position: fixed; 
    top: 60px; /* Anclado justo debajo del .top-bar (60px) */
    width: 100%;
    z-index: 999; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    /* <<< FIN CAMBIOS CLAVE >>> */
    
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    padding-left: 5%; 
    border-bottom: 1px solid #eee;
    text-align: left;
}

.hero-overlay {
    background: transparent; 
    width: auto;
    height: 100%;
    display: flex; 
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    padding: 0; 
}

/* Contenedor del Título y Subtítulo (Agrupamiento de Texto) */
.hero-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 15px; 
    max-width: 80%; 
}

/* NUEVO ESTILO: Contenedor para alinear Título y Slogan horizontalmente */
.hero-title-line {
    display: flex;
    align-items: baseline; /* Alinea los textos a la línea base para que se vean nivelados */
    gap: 15px; /* Espacio entre el Título y el Slogan */
    flex-wrap: nowrap;
    margin-bottom: 3px; /* Espacio antes del subtítulo */
}


.hero-logo-container {
    padding: 4px; 
    border-radius: 12px; 
    box-shadow: 0 3px 8px rgba(0, 166, 80, 0.5); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.hero-logo-container:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 166, 80, 0.7);
}

.hero-logo-container .logo-img-hero {
    width: 65px; 
    height: auto;
    display: block; 
}

.hero-title {
    color: #00A650 !important;
    text-shadow: none;
    font-size: 2.2rem; 
    font-weight: 800;
    text-transform: uppercase;
    margin: 0; 
    line-height: 1; 
    text-align: left; 
    white-space: nowrap; 
}

/* ESTILO AJUSTADO PARA EL SLOGAN AL LADO DEL TÍTULO (Contraste Mejorado) */
.hero-slogan {
    color: var(--primary-color); /* CAMBIO: Uso de primary-color para mejor contraste */
    font-size: 0.8rem; /* Fuente pequeña para un efecto discreto */
    font-weight: 500; 
    margin: 0; 
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    
    /* Agrega una línea sutil antes del texto */
    padding-left: 15px;
    position: relative;
}

.hero-slogan::before {
    content: "|"; /* Usa un carácter como separador */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #999; /* Color gris oscuro para la línea/separador */
    font-size: 1.2rem;
}

.hero-subtitle {
    color: #000000 !important;
    text-shadow: none;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.75rem; 
    text-transform: uppercase;
    margin-top: 3px;
    text-align: left; 
    white-space: nowrap; 
}

/* =========================================
   2. BUSCADOR Y FILTROS
   ========================================= */
.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 0 5%; 
}

.search-box {
    flex: 2 1 350px; 
    position: relative;
    min-width: 250px; 
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.1em;
}

#buscador-texto {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 15px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
/* CAMBIO 3: Mejorar el efecto flotante del buscador al hacer focus */
#buscador-texto:focus { 
    border-color: var(--header-light); 
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.3); /* Sombra más grande y visible */
}

.filters-box {
    flex: 1 1 350px;
    display: flex;
    gap: 10px;
    min-width: 250px;
}

select {
    width: 100%;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232ecc71%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
}
select:focus { border-color: var(--header-light); }

/* =========================================
   3. CARRUSEL DE PROPIEDADES (ACTUALIZADO)
   ========================================= */
.currency-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-style: italic;
    margin-top: 0;
    margin-bottom: 20px;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

#galeria-propiedades, #galeria-videos {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 30px 10px;
    width: 100%;
    scrollbar-width: none;
    align-items: stretch; 
}
#galeria-propiedades::-webkit-scrollbar, #galeria-videos::-webkit-scrollbar { display: none; }

.propiedad-card {
    background: white;
    min-width: 260px;
    max-width: 260px;
    height: 100%; 
    border-radius: 15px; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.06); 
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    border: none;
}

/* CAMBIO 4 (parcial): Sombra de tarjeta al hacer hover con color de acento */
.propiedad-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.4); /* Sombra con matiz de --accent-color */
}

.card-header {
    height: 160px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; 
    border-top-left-radius: 15px; 
    border-top-right-radius: 15px;
}

.propiedad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.propiedad-card:hover .propiedad-img { transform: scale(1.05); }

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.badge-available { background-color: var(--success-color); }
.badge-sold { background-color: var(--accent-color); }

.card-body {
    padding: 15px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 5px 0 5px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em; 
}

.ubicacion { 
    font-size: 0.8rem; 
    color: #888; 
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.precio {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    margin: 5px 0 10px 0;
}

.btn-card-action {
    margin-top: auto;
    padding: 8px 25px;
    border-radius: 40px;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}

.propiedad-card:hover .btn-card-action {
    background-color: var(--accent-color);
    color: white;
}

.nav-btn {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}
.dot { width: 8px; height: 8px; background-color: #ddd; border-radius: 50%; }
.dot.active { background-color: var(--accent-color); width: 20px; border-radius: 10px; }

/* =========================================
   4. VENTANA MODAL Y WHATSAPP
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-body-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #555;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.close-btn:hover { background-color: var(--accent-color); color: white; }

/* Galería de Imágenes en Modal */
.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 5px;
    padding: 5px;
    background: #111;
    min-height: 250px;
    position: relative; /* Para posicionar los botones de navegación */
}

/* Nuevos botones de navegación para la galería */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary-color);
    border: none;
    width: 30px;
    height: 60px; /* Más rectangular para un mejor target de click */
    font-size: 20px;
    cursor: pointer;
    z-index: 15;
    transition: background 0.3s, color 0.3s;
    opacity: 0.8;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    opacity: 1;
}

#gallery-prev-btn { left: 5px; border-radius: 0 5px 5px 0; }
#gallery-next-btn { right: 5px; border-radius: 5px 0 0 5px; }


.gallery-img {
    height: 400px;
    border-radius: 5px;
    object-fit: contain;
    scroll-snap-align: start; /* Cambio a 'start' para un desplazamiento más preciso */
    flex-shrink: 0;
    margin: 0; /* Cambio a 0 para que el scroll-snap funcione correctamente */
}

.modal-info { padding: 20px; }

#modal-titulo { color: var(--primary-color); font-size: 1.6em; margin-top: 0;}
.modal-price { color: var(--success-color); font-size: 2em; font-weight: bold; margin: 10px 0; }

.modal-description-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
}
#modal-descripcion { white-space: pre-wrap; color: #444; margin: 0; }

.whatsapp-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    background-color: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    border: 2px solid #25D366;
}
.whatsapp-btn:hover {
    background-color: #fff;
    color: #25D366;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* =========================================
   5. FOOTER (PIE DE PÁGINA)
   ========================================= */
.site-footer {
    background-color: var(--header-dark); 
    color: white;
    padding-top: 40px;
    margin-top: 40px; 
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 30px; 
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px; 
}

.footer-col h3 {
    color: #4ade80; 
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-col p {
    line-height: 1.6;
    color: #ddd;
    margin: 5px 0;
}

/* Enlaces Rápidos */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #4ade80;
    transform: translateX(3px); 
}

/* Botones de App en el Footer */
.footer-buttons {
    display: flex;
    flex-direction: row; 
    gap: 10px;
    align-items: center; 
    flex-wrap: wrap; 
}

/* Aplicar el mismo tamaño a los botones en el footer */
.footer-buttons .contact-button-style {
    min-width: 150px; 
    max-width: 150px;
    text-align: center;
    padding: 8px 15px; 
}


/* LOGO DEL FOOTER (Servicios) */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
    min-width: 250px; 
}

/* Estilos para la lista de servicios adicionales en el footer */
/* =========================================
   ESTILOS ADICIONALES PARA LISTA DE SERVICIOS
   ========================================= */
.additional-services-list {
    list-style: none;
    padding: 0;
    /* Forzamos a una sola columna en escritorio para que se vea mejor */
    display: grid;
    grid-template-columns: 1fr; 
    gap: 8px 15px;
}

.additional-services-list li {
    color: #ddd; 
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex; 
    align-items: center;
    transition: color 0.3s;
}

.additional-services-list li:hover {
    color: var(--header-light); 
}

.additional-services-list li i {
    color: var(--header-light); 
    margin-right: 8px;
    font-size: 1.1em;
    flex-shrink: 0; 
}

/* NUEVOS CONTENEDORES PARA MOVER ELEMENTOS EN MÓVIL */
.footer-social-mobile, .footer-lang-mobile {
    display: none; /* Oculto en escritorio */
    margin-bottom: 20px;
    width: 100%;
}
.footer-social-mobile .social-icons {
    justify-content: flex-start;
}


.footer-firma, .footer-logo {
    display: none; 
}

/* Copyright */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2); 
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   ESTILOS DE VISITAS EN FOOTER (NUEVO)
   ========================================= */
#visitas-container {
    font-size: 0.8em;
    color: #bbb;
    margin-bottom: 10px;
    font-weight: 500;
}

#visitas-container span {
    font-weight: 700;
    color: #4ade80; /* El color verde de los enlaces del footer */
}

/* =========================================
   ESTILOS ADICIONALES PARA CONTACTO EN FOOTER
   ========================================= */
.footer-contact-info {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem; 
    color: var(--bg-light); 
}

.footer-icon {
    color: var(--header-light); 
    font-size: 1.2rem;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.footer-contact-link {
    color: var(--bg-light); 
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-contact-link:hover {
    color: var(--header-light); 
    text-decoration: underline;
}

.footer-contact-info p:hover .footer-icon {
    transform: scale(1.1); 
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */
.float-wa {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.float-wa:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0,0,0,0.4);
}

/* =========================================
   RESPONSIVE (CELULARES Y TABLETS) - AJUSTES CLAVE
   ========================================= */
@media (max-width: 992px) {
    
    .top-bar {
        /* PROPIEDADES ACTUALIZADAS */
        flex-direction: row; /* Volvemos a fila para que todo esté en una línea */
        justify-content: space-between;
        padding: 10px 5%;
        gap: 10px;
        height: 120px; /* ALTURA REDUCIDA EN MÓVIL (Antes 210px) */
        flex-wrap: wrap; 
        align-items: flex-start;
    }

    body {
        /* PADDING CORREGIDO: top-bar (120px) + hero-section (80px) = 200px */
        padding-top: 200px; 
        padding-bottom: 80px;
    }

    .hero-section { 
        height: 80px; 
        top: 120px; /* Anclado justo debajo del .top-bar (120px) */
        padding-left: 0;
        justify-content: center; 
    }
    
    /* OCULTAR ELEMENTOS NO CRÍTICOS EN LA BARRA SUPERIOR */
    .social-icons { display: none; }
    .lang-select { display: none; }

    .top-actions {
        justify-content: center;
        width: 100%;
        gap: 10px; 
        flex-wrap: wrap; 
    }
    
    /* ESTILOS PARA LA NUEVA DISPOSICIÓN EN MÓVIL */
    .store-buttons { 
        order: 1; /* Pone los botones de app primero */
        justify-content: space-between;
        width: 65%;
        flex-wrap: nowrap;
    }
    .store-buttons a {
        min-width: 48%; /* Hace que ambos botones ocupen casi la mitad del espacio */
        flex-grow: 1; 
    }

    .contact-header-btn {
        order: 2; /* Pone el botón de contacto al final */
        width: 30%; /* Le da un ancho fijo para que quepa al lado de los botones de app */
        padding: 10px 10px;
        font-size: 12px;
        text-align: center;
    }
    
    .logo-area {
        justify-content: center;
        width: 100%;
    }

    .nav-btn { display: none; }
    
    /* MOSTRAR ELEMENTOS EN EL FOOTER */
    .footer-social-mobile, .footer-lang-mobile {
        display: block; /* Muestra en móvil */
    }

    .footer-social-mobile {
        order: -3; /* Mueve las redes sociales arriba en el footer */
    }
    .footer-lang-mobile {
        order: -2; /* Mueve el selector de idioma arriba en el footer */
    }
    .footer-lang-mobile .lang-select {
        display: block;
        width: 100%;
        max-width: 100%;
    }


    /* Ajuste Hero Section Responsive */
    .hero-title { font-size: 1.6rem; }
    .hero-title-line {
        gap: 8px; /* Reducir el espacio en móvil */
    }
    .hero-slogan { 
        font-size: 0.6rem; /* TAMAÑO DE FUENTE MÁS PEQUEÑO EN MÓVIL */
        padding-left: 10px; /* Reducir padding */
    }
    .hero-slogan::before {
        content: "|";
        font-size: 0.8rem; /* Separador más pequeño */
    }
    .hero-logo-container .logo-img-hero {
        width: 45px; 
    }
    .hero-text-group {
         margin-left: 8px;
         align-items: center; 
    }
    
    /* Stats Bar Móvil */
    .stats-bar { 
        flex-direction: row; 
        justify-content: space-between;
        padding: 20px 10px;
        gap: 10px;
    }
    .stat-item {
        flex: 1;
        min-width: 30%;
        max-width: 30%;
    }
    .stat-item h3 { font-size: 1.8rem; }
    .stat-item p { font-size: 0.8rem; }
    
    /* Búsqueda y Filtros Móvil */
    .search-container { 
        flex-direction: column; 
        padding: 0 5%;
        margin-top: 20px;
    }
    
    .filters-box { 
        /* CORRECCIÓN CRÍTICA: Apilamos los selects y ocupan el 100% del ancho */
        flex-direction: column; 
        gap: 15px; /* Aumentamos el espacio para separarlos */
    }
    .filters-box select {
        width: 100%; /* Aseguramos que ocupen todo el ancho */
        min-width: 100%; /* Sobreescribimos el valor anterior */
    }

    /* Carrusel Móvil */
    .carousel-wrapper {
        padding: 0 10px;
    }
    #galeria-propiedades, #galeria-videos {
        padding: 20px 0;
    }
    .propiedad-card {
        min-width: 85vw; 
        max-width: 85vw;
    }

    .gallery-img { height: 200px; }
    .modal-content { height: 100%; border-radius: 0; }
    
    /* Footer Móvil */
    .footer-content {
        flex-direction: column;
    }
    .footer-col {
        min-width: 100%;
    }
    .additional-services-list {
        grid-template-columns: 1fr; 
    }
    .footer-buttons {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px;
    }
    .footer-buttons .contact-button-style {
        min-width: 100%; 
        max-width: 100%;
    }

    /* Botón flotante móvil */
    .float-wa {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    /* Carrusel Banner Móvil */
    .banner-carousel-container {
        height: 250px;
    }
    .banner-item {
        padding-left: 5%;
        justify-content: center; 
    }
    .banner-content {
        max-width: 90%;
        text-align: center;
    }
    .banner-title { font-size: 1.5rem; }
    .banner-year { font-size: 2.2rem; }
    .banner-tag { font-size: 0.9rem; }
    .banner-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* =========================================
   ESTILOS EXTRA PARA VIDEOS
   ========================================= */

/* Icono de Play sobre la imagen del video */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: none; 
    transition: background 0.3s;
}

.propiedad-card:hover .play-overlay {
    background-color: var(--accent-color);
}

/* Ajuste para el Modal de Video */
.video-modal-content {
    max-width: 800px;
    height: auto;
    max-height: 90vh;
    background-color: white;
}


/* =========================================
   SELECTOR DE IDIOMAS (AJUSTADO)
   ========================================= */
.lang-select {
    padding: 5px 10px;       
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 12px;         
    cursor: pointer;
    outline: none;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    appearance: none;
    text-align: center;
    width: auto;             
    min-width: 80px;
    max-width: 80px;
    height: 35px;            
    line-height: 1;          
}

.lang-select:hover {
    border-color: var(--header-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =========================================
   ESTILOS SUGERIDOS (Testimonios y Calc)
   ========================================= */

/* Testimonios */
.testimonials-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
    border-top: 5px solid var(--header-light);
    display: flex;
    flex-direction: column;
    height: auto; 
    position: relative; /* Para la posición del ícono de cita */
}

/* CAMBIO 4: Estilo del icono de comillas en el testimonio */
.testimonial-card::before {
    content: "\f10d"; /* Código Unicode para fa-quote-left */
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 3rem;
    color: rgba(46, 204, 113, 0.2); /* Color verde claro y transparente */
    z-index: 1;
}

.stars { color: #f1c40f; margin-bottom: 15px; letter-spacing: 2px; position: relative; z-index: 2;}

.testimonial-card p { 
    font-style: italic; 
    color: #555; 
    line-height: 1.6; 
    flex-grow: 1; 
    position: relative;
    z-index: 2;
}

.testimonial-card h4 { 
    margin-top: 20px; 
    color: var(--primary-color); 
    font-weight: 700; 
}


/* =========================================
   NUEVO CARRUSEL DE BANNER 
   ========================================= */
.banner-carousel-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 300px; 
    background-color: #f0f0f0;
}

.banner-carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out; 
}

.banner-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    position: relative;
    padding-left: 5%;
    box-sizing: border-box;
}

.banner-content {
    max-width: 50%; 
    z-index: 5;
    text-align: left;
}

.banner-tag {
    background-color: var(--success-color); 
    color: white;
    display: inline-block;
    padding: 5px 15px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    border-radius: 5px;
}

.banner-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin: 5px 0;
    line-height: 1.1;
}

.banner-year {
    color: var(--primary-color);
    background-color: white;
    padding: 0 10px;
    display: inline-block;
    font-size: 3rem;
    font-weight: 900;
    margin-top: 5px;
    line-height: 1.1;
}

.banner-link {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 15px;
    display: inline-block;
    transition: background 0.3s;
    border: 2px solid #3498db;
}

.banner-link:hover {
    background-color: white;
    color: #3498db;
}

/* Navegación (Flechas) */
.banner-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none; 
}

.banner-nav-btn {
    pointer-events: auto; 
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s, color 0.3s;
}

.banner-nav-btn:hover {
    background: var(--header-light);
    color: white;
}

/* Indicadores (Puntos) */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #fff;
}

.indicator-dot.active {
    background-color: var(--accent-color);
    width: 25px;
    border-radius: 10px;
}

/* Responsivo de Banner */
@media (max-width: 768px) {
    .banner-carousel-container {
        height: 250px;
    }
    .banner-item {
        padding-left: 5%;
        justify-content: center; 
    }
    .banner-content {
        max-width: 90%;
        text-align: center;
    }
    .banner-title { font-size: 1.5rem; }
    .banner-year { font-size: 2.2rem; }
    .banner-tag { font-size: 0.9rem; }
    .banner-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* =========================================
   ESTILOS PARA VIDEO BANNER DE YOUTUBE (NUEVO)
   ========================================= */

.video-youtube-item {
    background-color: #000; /* Fondo negro si el video no carga */
    position: relative;
    z-index: 1; 
}

.banner-youtube-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%; 
    height: 150%; 
    transform: translate(-50%, -50%); 
    pointer-events: none; /* Crucial: Deshabilita la interacción para mantener el carrusel funcional */
    z-index: -1; /* Lo pone detrás del contenido del banner */
}

/* CAMBIO 1: Capa de filtro oscura sobre los videos para contraste */
.video-youtube-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa oscura semitransparente */
    z-index: 0; 
}

.video-youtube-item .banner-content {
    background: rgba(0, 0, 0, 0.1); /* Hacemos este fondo más sutil */
    padding: 20px; 
    border-radius: 10px;
    z-index: 5; /* Asegura que el contenido esté sobre el filtro */
}

@media (max-width: 768px) {
    .video-youtube-item .banner-content {
        background: rgba(0, 0, 0, 0.5); /* Más opacidad en móviles */
    }
}