/* ========================================================================= */
/* --- 1. CONFIGURACIÓN GLOBAL (SCROLL Y FUENTES) --- */
/* ========================================================================= */

/* Anulación de Scroll en Body/HTML para usar .scroll-wrapper */
html, body {
    height: 100vh !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important; /* Desactiva todo scroll principal */
    overflow-x: hidden !important; /* Asegura la eliminación de scroll horizontal */
    position: relative !important;
    font-family: peridot-pe-variable;
}

/* Habilitar Scroll en el Contenedor Específico */
.scroll-wrapper {
    height: 100vh !important;
    overflow-y: scroll !important; /* SOLO ESTE DIV HACE SCROLL */
    overflow-x: hidden !important;
    
    /* HACK PARA BARRA DE SCROLL DE MAC: Extiende el div para ocultar el borde */
    width: calc(100% + 15px); 
    
    position: relative;
    z-index: 1;
}

/* ========================================================================= */
/* --- 2. ELEMENTOS FIJOS (LOGO Y REDES) --- */
/* ========================================================================= */

/* Estilos base para Logo y Barra Social */
.logo-gaby-fijo, .social-bar-fija {
    position: fixed !important; 
    z-index: 99999 !important;
    margin: 0;
    padding: 0;
}

/* Logo Gaby Molina (Superior Izquierda) */
.logo-gaby-fijo {
    top: 30px; 
    left: 0;
}

.logo-gaby-fijo img {
    width: 220px;
    height: auto;
    display: block;
}

/* Barra de Redes Sociales (Superior Derecha) */
.social-bar-fija {
    top: 30px; 
    right: -10px; /* Cubre completamente la línea de renderizado */
    width: 80px;
    height: 200px;
    
    /* Ruta corregida (asumiendo que CSS está en 'css/' y la imagen en 'img/') */
    background-image: url('../img/envolventerrss.png'); 
    background-size: 100% 100%; 
    background-repeat: no-repeat; 
    background-position: left center; 
    border-bottom-left-radius: 10px;

    /* Reset de Borde */
    border: none;
    outline: none;
    box-shadow: none;
    
    /* Hacks de Renderizado */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.social-bar-fija a {
    color: white; 
    font-size: 1.8rem;
    transition: transform 0.3s ease-in-out;
}

.social-bar-fija a:hover {
    color: #e5e5e5;
    transform: scale(1.1);
}


/* ========================================================================= */
/* --- 3. CARRUSEL Y SECCIÓN PRINCIPAL --- */
/* ========================================================================= */

.seccion-principal {
    margin: 0;
    padding: 0;
    line-height: 0; 
}

.carousel-item img {
    height: 100vh; 
    object-fit: cover; 
    width: 100%;
}

/* ========================================================================= */
/* --- 4. CONTENEDORES DE CONTENIDO (Plataforma y Testimonios) --- */
/* ========================================================================= */

/* Contenedores Principales de Secciones */
.plataforma-contenedor, .plataforma-contenedor-escuela {
    position: relative;
    padding: 0;
    width: 100%;
}

.plataforma-contenedor{
    background-color: rgba(15, 163, 177, 0.8);
}

.plataforma-contenedor-escuela{
    background-color: white;
}

/* Contenido dentro de las secciones */
.plataforma{
    position: relative;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
}


/* --- TEXTOS (Consolidación) --- */
.texto-normal, .texto-normal-titulo, .texto-normal-titulo-negro, .boton-texto-normal {
    font-family: peridot-pe-variable;
    border-radius: 8px;
}

.texto-normal-titulo, .texto-normal-titulo-negro, .boton-texto-normal {
    font-variation-settings: "ital" 0, "wdth" 125, "wght" 950;
}

.texto-normal-titulo {
    font-size: 2.1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.texto-normal-titulo-negro {
    font-size: 2.1rem;
    color: black;
    text-shadow: none;
}

.texto-normal {
    font-variation-settings: "ital" 0, "wdth" 125, "wght" 500;
    font-size: 1.5rem;
    color: black;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


/* --- BOTÓN FLOTANTE (Optimizado) --- */
.contenedor {
    position: relative;
    width: 100%;
    text-align: center;
}

.boton-flotante {
    width: 200px;
    height: 80px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: oklch(0% 0 0);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
}

.boton-texto-normal{
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.boton-flotante:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- IMÁGENES DE LOGOS --- */
.imagen-logo-horizontal {
    width: 20%;
    height: auto;
}
.imagen-logo-plataforma{
    width: 16%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.imagen-logo-plataforma:hover {
    transform: scale(1.05);
}

/* --- FOOTER --- */
.footer-texto{
    padding: 20px;
    color: black;
    text-align: center;
    font-size: 1.5rem;
}

/* --- 5. TESTIMONIOS (Esqueleto mantenido) --- */
.testimonials-section-flex {
    padding: 60px 20px; 
    text-align: center;
    width: 100%; 
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 25px; 
}
/* ... (resto de reglas de testimonio) ... */


/* ========================================================================= */
/* --- 6. MEDIA QUERIES (OPTIMIZADO Y CONSOLIDADO) --- */
/* ========================================================================= */

/* Móviles (max-width: 825px) */
@media (max-width: 825px) {
    /* Logo Gaby Molina - Fijo */
    .logo-gaby-fijo img {
        width: 120px; 
    }
    
    /* Barra Social - Fija */
    .social-bar-fija {
        width: 45px; 
        height: 120px; 
        gap: 8px;
        right: -5px; /* Ajuste móvil para asegurar la cobertura */
        width: 50px;
    }
    .social-bar-fija a {
        font-size: 1.2rem;
    }

    /* Imagen Principal - Evita distorsión */
    .carousel-item img {
        height: auto !important; 
        max-height: 85vh; 
        object-fit: cover;
        width: 100%; 
    }
    
    /* Textos */
    .texto-normal-titulo, .texto-normal-titulo-negro {
        font-size: 1.7rem;
    }
    .texto-normal {
        font-size: 1.5rem;
    }
    
    /* Logos de contenido */
    .imagen-logo-horizontal {
        width: 40%;
    }
    
    /* Botones */
    .boton-flotante {
        width: 180px;
        height: 85px;
    }
    .boton-texto-normal {
        font-size: 1.2rem;
    }
}

/* Móviles pequeños (max-width: 375px) */
@media (max-width: 375px) {
    /* Logo Gaby Molina - Fijo */
    .logo-gaby-fijo img {
        width: 100px;
    }
    
    /* Barra Social - Fija */
    .social-bar-fija {
        width: 40px;
        height: 100px;
        right: -5px;
        width: 45px;
    }
    .social-bar-fija a {
        font-size: 1rem;
    }
    
    /* Textos (más pequeños) */
    .texto-normal, .texto-normal-titulo, .texto-normal-titulo-negro {
        font-size: 1rem;
    }
    
    /* Botones (más pequeños) */
    .boton-flotante {
        width: 150px;
        height: 50px;
    }
    .boton-texto-normal {
        font-size: .8rem;
    }
    
    /* Logos de contenido */
    .imagen-logo-horizontal {
        width: 50%;
    }
    .imagen-logo-plataforma{
        width: 18%;
    }
    
    /* Tarjetas de Testimonio (una por línea) */
    .testimonial-card {
        min-width: 90%; 
        max-width: 90%;
    }
}