/* Estilos para Magic Box */
/* Archivo: magicbox.css */

/* Div vidrio - está detrás de la imagen con la misma apariencia que glass */
.vidrio {
    width: 85%;
    height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 0;
}

/* Div de imagen - ocupa la totalidad del espacio del contenedor padre */
.img_magicbox {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 1;
    overflow: hidden;

    /* Funciona como máscara de recorte */
    clip-path: inset(0 0 0 0);
}

/* Estilos para la imagen dentro del div */
.img_magicbox img {
    object-fit: contain;
    border-radius: 10px;
    position: absolute;
    width: 50%;
    height: auto;
    left: 100vw; /* Posición inicial: fuera de la pantalla */
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0; /* Inicialmente invisible */

    /* Animación de deslizamiento desde la derecha */
    animation: slideInFromRight 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Contenedor glass específico para magicbox */
.glass_1 {
    width: 85%;
    height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;

    /* Flexbox para distribución automática del espacio */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Estilos para los divs internos de glass_1 */
.glass_1 .intro,
.glass_1 .title,
.glass_1 .description {
    width: 100%;
    height: auto;
    position: relative;
    padding: 20px;
    left: 0;
}

/* Posicionamiento específico para intro en la parte superior */


/* Título en el centro - toma el espacio restante */
.glass_1 .title {
    /* Tomar el espacio restante disponible */
    flex: 1;

    /* Layout flexbox interno */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}



/* Estilos para los títulos del intro */
.glass_1 .titulo {
    font-family: 'museo-sans', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    text-align: left;
    font-weight: 300;
}

.glass_1 .aula {
    font-family: 'museo-sans', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estilos para los títulos H3 del title */
.glass_1 .title h3 {
    font-family: 'museo-sans', sans-serif;
    font-size: 11rem;
    font-weight: 900;
    color: #ffffff;
    margin: 5px 0;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
}

/* Estilos para el botón de acción */
.glass_1 .btn-action {
    font-family: 'museo-sans', sans-serif;
    background: #ffffff;
    border: none;
    outline: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 117, 59, 0.2);
    margin-bottom: 0;
    margin-right: 20px;
    display: inline-block;
    vertical-align: top;
}

.glass_1 .btn-action span {
    font-size: 1rem;
    font-weight: 600;
    
    /* El degradado aplicado exclusivamente al texto interior */
    background: linear-gradient(135deg, #fe753b 0%, #ff8a58 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    transition: all 0.3s ease;
}

.glass_1 .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 117, 59, 0.4);
}

.glass_1 .btn-action:hover span {
    /* Efecto al pasar el cursor (se mantiene en el texto) */
    background: linear-gradient(135deg, #ff8a58 0%, #fe753b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilos para el subtítulo */
.glass_1 .subtitulo {
    font-family: 'museo-sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-align: right;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Estilos para el párrafo de descripción */
.glass_1 .descripcion {
    font-family: 'museo-sans', sans-serif;
    font-size: 0.95rem;
    color: #f0f0f0;

    line-height: 1.6;
    margin: 0;
    text-align: right;

    /* Fondo para mejorar legibilidad */
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* Contenedor texcont para alineación horizontal */
.glass_1 .texcont {
    width: 33.3%;
    float: right;
}

/* Media Query para formatos verticales */
@media screen and (max-width: 1199px) {
    /* En pantallas verticales, texcont va debajo del botón */
    .glass_1 .texcont {
        display: block;
        float: none;
        width: 100%;
        text-align: left;
    }
}

/* Media Query para formatos verticales */
@media screen and (max-width: 1199px) {
    /* En pantallas verticales, texcont va debajo del botón */
    .glass_1 .btn-action {
        display: block;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }



    .glass_1 .subtitulo,
    .glass_1 .descripcion {
        text-align: left;
    }

    /* En pantallas verticales, los títulos se apilan verticalmente y se alinean a la izquierda */
    .glass_1 .title {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
    }

    .glass_1 .title h3 {
        text-align: left;
        font-size: 9vw;
    }


}

/* Media Query para formatos horizontales */
@media screen and (min-width: 1200px) {
    /* En pantallas horizontales, el tamaño de fuente es proporcional al contenedor padre */
    .glass_1 .title h3 {
        font-size: 9vw;
    }
}

/* Media Query para formatos tablet verticales */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* Ajustar el tamaño de fuente para tablets */
    .glass_1 .title h3 {
        font-size: 7vw;
    }

    /* Ajustar imagen para tablets */
    .img_magicbox img {
        width: 60%;
        height: auto;
        left: 100vw; /* Posición inicial: fuera de la pantalla */
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Inicialmente invisible */

        /* Animación de deslizamiento desde la derecha para tablets */
        animation: slideInFromRightTablet 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
}

/* Media Query para formatos móviles */
@media screen and (max-width: 768px) {
    /* En pantallas móviles, glass distribuye el espacio entre sus contenedores */
    .glass_1 {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
    }

    /* Ajustar imagen para móviles */
    .img_magicbox img {
        width: 70%;
        height: auto;
        left: 100vw; /* Posición inicial: fuera de la pantalla */
        top: 45%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Inicialmente invisible */

        /* Animación de deslizamiento desde la derecha para móviles */
        animation: slideInFromRightMobile 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    /* Aumentar el tamaño de fuente en móviles */
    .glass_1 .title h3 {
        font-size: 9vw;
    }
}

/* Media Query para móviles pequeños */
@media screen and (max-width: 480px) {
    /* Ajustar imagen para móviles pequeños */
    .img_magicbox img {
        width: 80%;
        height: auto;
        left: 100vw; /* Posición inicial: fuera de la pantalla */
        top: 40%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Inicialmente invisible */

        /* Animación de deslizamiento desde la derecha para móviles pequeños */
        animation: slideInFromRightSmallMobile 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    /* Ajustar el tamaño de fuente para móviles pequeños */
    .glass_1 .title h3 {
        font-size: 12vw;
    }

    /* Reducir tipografía de intro para móviles pequeños */
    .glass_1 .titulo {
        font-size: 1.5rem;
    }

    .glass_1 .aula {
        font-size: 2rem;
    }
}

/* Definición de las animaciones keyframes */

/* Animación para desktop */
@keyframes slideInFromRight {
    0% {
        left: 100vw;
        opacity: 0;
    }
    100% {
        left: 65%;
        opacity: 1;
    }
}

/* Animación para tablets */
@keyframes slideInFromRightTablet {
    0% {
        left: 100vw;
        opacity: 0;
    }
    100% {
        left: 60%;
        opacity: 1;
    }
}

/* Animación para móviles */
@keyframes slideInFromRightMobile {
    0% {
        left: 100vw;
        opacity: 0;
    }
    100% {
        left: 60%;
        opacity: 1;
    }
}

/* Animación para móviles pequeños */
@keyframes slideInFromRightSmallMobile {
    0% {
        left: 100vw;
        opacity: 0;
    }
    100% {
        left: 50%;
        opacity: 1;
    }
}


