body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

/* =========================================
   HEADER PREMIUM MODULAR
========================================= */
.header-premium {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Sombra elegante */
    position: sticky; /* Hace que el menú persiga al usuario al bajar */
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 70px !important;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.02); /* Pequeño zoom al tocar el logo */
}

/* Enlaces del Menú */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

/* Efecto de subrayado verde animado */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #008080;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav ul li a:hover {
    color: #008080;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Botón de Contacto */
.btn-header {
    background-color: #008080;
    color: #ffffff !important;
    padding: 12px 26px;
    border-radius: 25px; /* Forma de píldora moderna */
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn-header:hover {
    background-color: #00635d;
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
    transform: translateY(-2px);
}

/* Adaptación fluida para móviles y tablets */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* =========================================
   HERO / BANNER PRINCIPAL
========================================= */
.hero {
    background-image: url('img/banner-nuevo.png?v=1');
    background-size: cover;
    background-position: center 85%;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: overlay;
}

/* =========================================
   TEXTO DEL HERO (DISEÑO TIPOGRÁFICO PREMIUM)
========================================= */
.hero-text-container {
    text-align: left;
    max-width: 600px;
    padding-left: 10%; /* Da el margen desde la izquierda */
    margin-top: -120px; /* Sube un poco el texto para no chocar con el buscador */
    z-index: 2;
}

.hero-script {
    font-family: 'Great Vibes', cursive;
    font-size: 65px;
    color: #ffffff; /* Blanco puro para destacar */
    display: block;
    margin-bottom: -15px;
    margin-left: 15px;
    font-weight: normal;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* Sombra suave */
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 95px;
    font-weight: 700;
    color: #ffffff; /* Blanco puro para destacar */
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7); /* Sombra más fuerte y difuminada */
}

.hero-divider {
    width: 100%;
    max-width: 320px;
    height: 2px;
    background-color: #b5a48b;
    margin: 25px 0;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.5); /* Sombra en la línea */
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #f6f5ef; /* Un blanco crema cálido */
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); /* Sombra bien oscura para legibilidad máxima */
}

.hero-icon {
    width: 45px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero-text-container {
        padding-left: 5%;
        padding-right: 5%;
        margin-top: -180px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-script {
        font-size: 45px;
        margin-left: 0;
    }
    .hero-title {
        font-size: 55px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-subtitle br {
        display: none; /* En móvil el texto fluye natural */
    }
}

/* =========================================
   BUSCADOR ÉPICO FLOTANTE (PÁGINA INICIO)
========================================= */
.epic-search-wrapper {
    position: absolute;
    bottom: -45px; /* Hace que el buscador flote mitad en la imagen y mitad fuera */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1050px;
    z-index: 10;
}

.epic-search-bar {
    background-color: #f6f5ef; /* Tono crema del diseño */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.search-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    text-align: left;
}

.search-group label {
    font-size: 11px;
    font-weight: bold;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-group label img {
    width: 16px;
    opacity: 0.7;
}

.search-group select {
    background: transparent;
    border: none;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none; /* Oculta la flecha por defecto del sistema */
    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%23333333%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.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px;
    padding-right: 20px;
    font-family: inherit;
}

.search-divider {
    width: 1px;
    height: 40px;
    background-color: #dcd9ce; /* Línea separadora tenue */
}

.search-button-group {
    margin-left: 10px;
}

.search-button-group button {
    background-color: #2b4438; /* Verde oscuro del diseño original */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-button-group button:hover {
    background-color: #1a2c24; /* Verde más oscuro al pasar el ratón */
}

/* Adaptación para Celulares y Tablets */
@media (max-width: 850px) {
    .epic-search-bar {
        flex-direction: column;
        gap: 15px;
        border-radius: 15px;
        padding: 25px 20px;
    }
    .search-divider {
        width: 100%;
        height: 1px;
    }
    .epic-search-wrapper {
        bottom: -220px; /* Se desplaza más abajo por el aumento de altura */
    }
    .search-button-group {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    .search-button-group button {
        width: 100%;
    }
    .hero {
        margin-bottom: 240px !important; /* Compensa el espacio flotante en móvil */
    }
}

/* =========================================
   BOTONES
========================================= */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary {
    background-color: #008080; /* Verde/Teal corporativo */
    color: #fff;
}

.btn-secondary {
    background-color: #f4f4f4;
    color: #333;
}

/* =========================================
   PROPIEDADES DESTACADAS
========================================= */
.properties-section {
    background-color: #f9f9f9;
    padding: 0px;
}

.properties-section h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.featured-properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.property-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.property-card img {
    margin-bottom: 20px;
}

.property-card h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.property-card p {
    margin-bottom: 10px;
    font-size: 14px;
}

.property-card .price {
    font-weight: bold;
    color: #008080;
}

.property-card .location {
    color: #888;
}

/* =========================================
   SECCIÓN: MÁS QUE INMOBILIARIA (NUEVA)
========================================= */
.about-section-custom {
    background-color: #fdfdfd;
    padding: 60px 20px;
    border-radius: 40px;
    margin: 60px auto;
    max-width: 1200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.about-section-custom h3 {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.about-section-custom h3 span {
    color: #00635d;
}

.about-section-custom .intro-text {
    color: #555;
    font-size: 15px;
    max-width: 850px;
    margin: 0 auto 60px auto;
    line-height: 1.7;
}

/* Grid de 6 columnas (Iconos Principales) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 60px;
}

.feature-item {
    padding: 0 15px;
    border-right: 1px solid #e0e0e0;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item img {
    height: 55px;
    margin-bottom: 20px;
}

.feature-item h4 {
    color: #00635d;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    min-height: 32px;
}

.feature-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* =========================================
   DISEÑO BARRA DE ESTADÍSTICAS VERDE
========================================= */
.stats-bar-verde {
    background-color: #004d4a; /* Verde oscuro corporativo */
    color: #ffffff;
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    box-shadow: 0 10px 25px rgba(0, 77, 74, 0.2);
}

.stats-bar-verde .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px;
    flex: 1;
    min-width: 200px;
}

.stats-bar-verde .stat-item img {
    width: 65px;
    height: 65px;
    border: 2px solid #ffffff; /* Círculo blanco alrededor del icono */
    border-radius: 50%;
    padding: 12px;
    object-fit: contain;
}

.stats-bar-verde .stat-text {
    text-align: left;
}

.stats-bar-verde .number {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 2px;
}

.stats-bar-verde .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    opacity: 0.9;
}

/* Responsive de la sección Nosotros y Barra Verde */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 10px; }
    .feature-item:nth-child(3) { border-right: none; }
    .feature-item:nth-child(6) { border-right: none; }
    
    .stats-bar-verde { padding: 25px; }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 10px; }
    .feature-item:nth-child(2), .feature-item:nth-child(4) { border-right: none; }
    
    .stats-bar-verde { 
        padding: 20px;
        justify-content: flex-start;
    }
    .stats-bar-verde .stat-item {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; gap: 40px 10px; }
    .feature-item { border-right: none; }
}

/* =========================================
   MAPA Y BUSCADOR
========================================= */
.map-section {
    background-color: #f9f9f9;
    padding: 0px;
}

.map-section h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

#map {
    margin-bottom: 50px;
}

.map-filter {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    align-items: center;
}

.map-filter input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* =========================================
   FOOTER PREMIUM
========================================= */
.footer-premium {
    background-color: #004d4a; /* Verde oscuro corporativo */
    color: #e0e0e0;
    padding: 70px 0 0 0;
    font-family: 'Arial', sans-serif;
    margin-top: 50px;
}

.footer-container {
    width: 85%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

/* Línea decorativa debajo de los títulos */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #00b3a6; /* Verde vibrante de contraste */
}

/* Columna de la Marca */
.footer-logo {
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}
.footer-logo span {
    color: #00b3a6;
}
.brand-col p {
    font-size: 14px;
    line-height: 1.8;
    color: #c4d4d3;
}

/* Enlaces Rápidos */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: #c4d4d3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Columna de Contacto */
.contacto-col p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 15px;
    color: #c4d4d3;
}
.contacto-col img {
    width: 20px;
    opacity: 0.8;
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a img {
    width: 35px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}
.social-icons a:hover img {
    transform: translateY(-5px);
    opacity: 1;
}

/* Barra inferior (Copyright) */
.footer-bottom {
    background-color: #003634; /* Un tono más oscuro para el final */
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #8da6a4;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   RESPONSIVE FOOTER (Móviles y Tablets)
========================================= */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contacto-col p {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* =========================================
   CORRECCIONES MÓVILES (CARRUSEL Y LOGO)
========================================= */
@media (max-width: 768px) {
    /* 1. Aumentar significativamente el tamaño del logo en móviles (Incrementado 20% más) */
    .logo-img {
        max-height: 192px !important;
        width: 90vw !important;
        max-width: 360px !important;
        object-fit: contain;
    }

    /* 2. Convertir el grid de propiedades destacadas en un carrusel horizontal */
    .featured-properties-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        gap: 15px;
        padding-bottom: 20px;
        padding-left: 5px;
        padding-right: 5px;
        
        /* Desactivamos el comportamiento grid original */
        grid-template-columns: none; 
    }

    /* Ocultar la barra de scroll nativa para un diseño más limpio */
    .featured-properties-grid::-webkit-scrollbar {
        display: none;
    }

    /* 3. Ajustar las tarjetas para que ocupen la pantalla casi por completo y se anclen */
    .property-card {
        flex: 0 0 85%; 
        max-width: 85%;
        scroll-snap-align: center; /* Centra la tarjeta al detener el dedo */
    }
}