/* ========================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oleo+Script:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #DAE1D4;
    border: 0;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth; 
   /* scroll-padding-top: 220px;  Ajustado para que el scroll respete el header fijo grande */
}

/* ========================================================
   TIPOGRAFÍAS Y ELEMENTOS BÁSICOS
======================================================== */
h1 {            
    color: blue;
}

h2 {
    color: green;
}

#soporte {
    color: red;
}

.textos_parrafo_descriptivo {
    text-align: justify; 
    padding: 10px;
    font-size: 18px;                
    font-family: 'Poppins', sans-serif; 
    font-weight: normal;            
    font-style: normal;            
    color: darkblue;
}

.yellow {
    color: yellow;
}

h3.yellow {
    color: pink;
}

h4 {
    font-family: "Oleo Script", system-ui;
}

/* ========================================================
   HEADER FIJO Y MENÚ HAMBURGUESA
======================================================== */
.fixed {
    background-color: #DAE1D4; 
    width: 100%;            
    /* position: sticky;           
    top: 0;
    z-index: 1000;  */
    padding: 10px 0;            
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Sombra sutil para destacar el header fijo */
}

.cabecera_fixed{
   background-color: #DAE1D4; 
    width: 100%;            
    position: sticky;           
    top: 0;
    z-index: 1000;
    padding: 10px 0;            
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Sombra sutil para destacar el header fijo */
 
}

.social {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1;
}

#icono_facebook:hover {
    opacity: 0.8;
    transform: scale(1.3);
    /* background-color:white; */
    
}

/* Efecto hover para Instagram */
#icono_instagram:hover {
    opacity: 0.8;
    transform: scale(1.3);
}

/* Efecto hover para WhatsApp */
#icono_whatsapp:hover {
    opacity: 0.8;
    transform: scale(1.3);
}

/* Enlaces de cabecera (Escritorio) */
#textos_cabecera {
    text-align: center;
    font-size: 18px;                
    font-family: 'Poppins', sans-serif; 
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#textos_cabecera div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#textos_cabecera a {
    color: midnightblue;
    padding: 2px 5px; 
    text-decoration: none;
    font-weight: 600;
} 

#textos_cabecera a:hover {
    color: red;
}

/* Botón hamburguesa (Oculto en pantallas grandes) */
.menu-toggle-btn {
    display:none;
    background: #0f4791;
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    margin: 8px auto;
    align-items: center;
    gap: 8px;
}

/* ========================================================
   LISTAS Y HORARIOS
======================================================== */
.lista-check {
    font-size: 18px;
    list-style: none; 
    padding-left: 15px;
    text-align: left;
}

.lista-check li {
    margin-bottom: 12px; 
}

.lista-check li::before {
    content: "✔ "; 
    color: green;   
    font-weight: bolder;
    margin-right: 8px; 
}

.lista-horarios {
    list-style: none;
    padding-left: 0;
}

.lista-horarios li {
    margin-bottom: 6px;
    font-size: 16px;
}

.lista-horarios li::before {
    content: "🕒 "; 
    margin-right: 8px;
}

/* ========================================================
   SLIDERS DE IMÁGENES Y TEXTOS (CORREGIDO GRID)
======================================================== */
/* Contenedor general de los sliders en forma de Cuadrícula responsiva */
.sliders-wrapper {
    display: grid;
    /* Se adapta dinámicamente: mínimo 280px por tarjeta y se expande en varias columnas */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
    padding: 20px; 
    width: 100%;
    max-width: 1400px; /* Limita ancho máximo en pantallas gigantes */
    margin: 0 auto; /* Centra el grid en PC */
    box-sizing: border-box;
}

/* Tarjeta individual de producto */
.slider-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box; 
}

.slider-title {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 6px;
    min-height: 44px; /* Asegura alineación uniforme de títulos */
}

.slider-cost {
    font-weight: 700;
    color: #0f4791;
    font-size: 16px;
    margin-bottom: 10px;
}

.slider-frame {
    position: relative;
    width: 100%;
    height: 250px; 
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-track img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover; 
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    font-size: 12px;
}

.prev-btn { left: 8px; }
.next-btn { right: 8px; }

/* Slider de texto */
.text-slider-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
    overflow: hidden; 
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px 40px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.text-slider-track {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
}

.text-slide {
    flex: 0 0 100%; 
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
}

.text-slide p {
    margin: 0;
}

.text-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 30px;
    padding: 5px;
    z-index: 10;
    transition: color 0.3s;
}

.text-slider-btn:hover {
    color: red;
}

.text-slider-container .prev-btn { left: 5px; }
.text-slider-container .next-btn { right: 5px; }

/* ========================================================
   BÚSQUEDA Y BOTONES DE WHATSAPP
======================================================== */
.search-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important; 
    box-sizing: border-box !important;
    margin-bottom: 10px;
    text-align: center;
    position: fixed;
}

#ubicacionSearch {
    width: 100% !important;
    max-width: 450px !important; 
    padding: 10px 15px !important;
    font-size: 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    outline: none !important;
    box-sizing: border-box !important; 
    background: #fff;
}

.contenedor_busqueda{
    text-align: center;
    width: 100%;
}

.whatsapp-btn {
    display: block;
    margin-top: 12px;
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
}

/* ========================================================
   SERVICIOS INMOBILIARIOS
======================================================== */
.inmo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.inmo-card {
    background-color: #ffffff;
    border: 1px solid #0f4791;
    border-radius: 16px;
    padding: 20px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inmo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.inmo-icon {
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.inmo-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

.inmo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.inmo-list.ordered {
    list-style: decimal;
    padding-left: 20px;
}

.inmo-list:not(.ordered) li::before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.inmo-list li {
    font-size: 1.1rem;
    color: #64748b;
}

/* ========================================================
   REELS MULTIMEDIA
======================================================== */
.reels-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px; 
    box-sizing: border-box;
}

.reel-grid-card {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.reel-grid-card iframe {
    width: 100%;
    max-width: 100%;
    height: 476px;
    border: none;
    display: block;
}

/* ========================================================
   MEDIA QUERIES (ADAPTACIÓN MÓVIL Y MENÚ HAMBURGUESA)
======================================================== */
@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 200px;
    }

    .social {
        position:fixed;
        display: flex;
        justify-content:end; 
          
    }



    .fixed img {
        width: 180px !important;
    }

    /* Muestra y ajusta el botón hamburguesa */
    .menu-toggle-btn {
        display: flex; 
    }

    /* Oculta los enlaces originalmente y los convierte en un menú flotante desplegable */
    #textos_cabecera {
        display: none;
        flex-direction: column;
        background: rgba(15, 71, 145, 0.98);
        position: absolute;
        top: 200px; 
        left: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 6px 15px rgba(126, 25, 25, 0.11);
        z-index: 1000;
        box-sizing:border-box;
    }

    /* Clase activa controlada por JS para mostrar el menú */
    #textos_cabecera.active {
        display: flex;
    }

    #textos_cabecera div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
        width: 100%;
    }

    #textos_cabecera a {
        color: white !important;
        font-size: 15px;
        text-decoration: none;
        padding: 6px 0;
    }
    
    #textos_cabecera a:hover {
        color: #ffcccc !important;
    }

    .quienes-somos-container, 
    .soporte-container {
        flex-direction: column !important;
    }
}

@media screen and (max-height: 320px) {
    html {
        scroll-padding-top: 200px;
    }

    .social {
        position:fixed;
        display: flex;
        justify-content:end; 
          
    }

    .fixed img {
        display: none !important;
    }

    /* Muestra y ajusta el botón hamburguesa */
    /* .menu-toggle-btn {
        display: flex; 
        
    } */

    /* Oculta los enlaces originalmente y los convierte en un menú flotante desplegable */
    #textos_cabecera {
        display: none;
        flex-direction: column;
        background: rgba(15, 71, 145, 0.98);
        position: absolute;
        top: 160px; 
        left: 0;
        width: 100%;
        padding: 1px 0;
        box-shadow: 0 6px 15px rgba(126, 25, 25, 0.11);
        z-index: 1000;
        box-sizing:border-box;
    }

    /* Clase activa controlada por JS para mostrar el menú */
    #textos_cabecera.active {
        display: flex;
    }

    #textos_cabecera div {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
        width: 100%;
    }

    #textos_cabecera a {
        color: white !important;
        font-size: 15px;
        text-decoration: none;
        padding: 6px 0;
    }
    
    #textos_cabecera a:hover {
        color: #ffcccc !important;
    }

    .quienes-somos-container, 
    .soporte-container {
        flex-direction: column !important;
    }

    h1#catalogo{
        display: none !important;
    }
}


/*ESTILOS PARA MENU LATERAL*/

/* Estilo del botón para abrir */
.open-btn {
    font-size: 20px;
    cursor: pointer;
    background-color: #002488;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    margin: 20px;
    position:fixed;
    z-index: 1;               /* Se muestra por encima de otros elementos */
   
}

.open-btn:hover {
    background-color: #4baf1c;
}

/* Estilos del Menú Lateral */
.side-menu {
    height: 100%;             /* Ocupa toda la altura de la pantalla */
    width: 260px;             /* Ancho fijo del menú */
    position: fixed;          /* Posición fija para que flote sobre la página */
    z-index: 2;               /* Se muestra por encima de otros elementos */
    top: 0;
    left: -260px;             /* ¡Oculto inicialmente fuera de la pantalla a la izquierda! */
    background-color: #002488;   /* Color de fondo oscuro */
    padding-top: 60px;
    transition: 0.9s;         /* Transición suave para la animación */
    box-shadow: 5px 0 15px rgba(0,0,0,0.8);
}

/* Enlaces dentro del menú lateral */
.side-menu a {
    padding: 10px 20px 10px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #ffffff;
    display: block;
    transition: 0.3s;
}

/* Efecto al pasar el cursor sobre los enlaces */
.side-menu a:hover {
    color: rgb(0, 0, 0);
    background-color: #DAE1D4;

}

/* Botón para cerrar dentro del menú ("X") */
.side-menu .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.side-menu .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    padding: 0;
}



/* --- Estilos para la Sección de IA Demo / Assistant --- */
        .ai-chat-container {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 5px;
            max-width: 100%;
            max-height: 90%;
            margin: 0 auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            max-height: 100%;
        }

        .chat-box {
            background: rgba(115, 135, 184, 0.6);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            height: 100%;
            overflow-y: auto;
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            max-height: 400px;
        }   

.message {
            max-width: 80%;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 0.95rem;
            line-height: 1.4;
            word-break: break-word;
        }

        .message.bot {
            background: rgba(0, 242, 254, 0.1);
            border: 1px solid rgba(0, 242, 254, 0.2);
            color: var(--text-main);
            align-self: flex-start;
            
            /* PROPIEDADES DE JUSTIFICACIÓN */
            text-align: justify;
            text-justify: inter-word; /* Mejora la distribución de los espacios en español */
            hyphens: auto;
        }

        .message.user {
            background: rgba(79, 172, 254, 0.2);
            border: 1px solid rgba(254, 79, 79, 0.3);
            color: #fff;
            align-self: flex-end;
            text-align: left; /* Los mensajes del usuario se ven mejor alineados a la izquierda o derecha normal */
        }

        .chat-input-group {
            display: flex;
            gap: 12px;
        }

        .chat-input-group input {
            flex: 1;
            background: rgba(167, 182, 223, 0.6);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            padding: 3px 3px;
            color: var(--text-main);
            font-family: 'Outfit', sans-serif;
            font-size: 0.95rem;
            outline: none;
            transition: border-color 0.3s;
        }


        .chat-input-group input:focus {
            border-color: var(--accent-cyan);
        }

        .chat-input-group button {
            border: none;
            cursor: pointer;
        }

        .btn-cta {
            background: linear-gradient(135deg, rgba(41, 211, 223, 0.6), rgba(50, 122, 163, 0.6));
            color: #000000;
            padding: 10px 22px;
            border-radius: 50px;
            font-weight: 700;
            text-decoration: none;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
            white-space: nowrap;
            text-align: center;
        }

        .btn-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
        }


/*ESTILOS PARA MENU LATERAL IA*/

/* Estilo del botón para abrir */
.open-IA-btn {
    font-size: 40px;
    cursor: pointer;
    background-color: #002488;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 20px;
    margin-top: 100px;
    position:fixed;
    z-index: 1;               /* Se muestra por encima de otros elementos */
   
}

.open-IA-btn:hover {
    background-color: #4baf1c;
}

/* Estilos del Menú Lateral IA */
.side-menu-IA {
    height: auto;             /* Ocupa toda la altura de la pantalla */
    width: 100%;             /* Ancho fijo del menú */
    position: fixed;          /* Posición fija para que flote sobre la página */
    /*z-index: 1;                Se muestra por encima de otros elementos */
    top: 0;
    left: -100%;             /* ¡Oculto inicialmente fuera de la pantalla a la izquierda! */
    background-color: #e9ecf7;   /* Color de fondo oscuro */
    padding-top: 60px;
    transition: 0.9s;         /* Transición suave para la animación */
    /* box-shadow: 5px 0 15px rgba(0,0,0,0.8); */
    z-index: 2;
    border-radius: 20px;
    max-width: 400px;
    max-height: 100%;
}

.side-menu-IA h2{
    font-size: 25px;
    margin: 0 0 0 0;
}

/* Botón para cerrar dentro del menú IA ("X") */
.side-menu-IA .close-IA-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.side-menu-IA .close-IA-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    padding: 0;
}
