/* Estilos para Pizarra */
/* Archivo: pizarra.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_pizarra {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

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

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

    /* ❌ ELIMINADO: Animación automática que se ejecuta al cargar */
    /* animation: slideInFromRightPizarra 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; */
}

/* Contenedor glass específico para pizarra */
.glass_3 {
    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_3 */
.glass_3 .intro,
.glass_3 .title,
.glass_3 .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_3 .title {
    /* Tomar el espacio restante disponible */
    flex: 1;

    /* Layout flexbox interno - contenedores en vertical y centrados */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px !important;
}

/* Estilos para los títulos H3 del title */
.glass_3 .title h3 {
    font-family: 'museo-sans', sans-serif;
    font-size: 12vh;
    font-weight: 900;
    color: #ffffff;
    margin: 5px 0;
    text-align: left;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    width: 100%;
    display: block;
    height: 12vh;
    line-height: 12vh;
    box-sizing: border-box;
}

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

.glass_3 .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 el botón de acción */
.glass_3 .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_3 .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_3 .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 117, 59, 0.4);
}

.glass_3 .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_3 .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_3 .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_3 .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_3 .btn-action {
        display: block;
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .glass_3 .texcont {
        display: block;
        float: none;
        width: 100%;
        text-align: left;
    }

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

}

/* Media Query para formatos tablet horizontales */
@media screen and (min-width: 1025px) and (max-width: 1199px) and (orientation: landscape) {
    /* En tablets horizontales, ajustar el tamaño y posición de la imagen */
    .img_pizarra img {
        width: 60%;
        height: auto;
        left: 100vw; /* Posición inicial: fuera de la pantalla derecha */
        top: 45%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Inicialmente invisible */
    }

    /* ❌ ELIMINADO: Estilos de title h3 para tablets horizontales */
    /* Solo mantener estilos de imagen */
}

/* Media Query para formatos tablet verticales */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* En tablets verticales, ajustar el tamaño y posición de la imagen */
    .img_pizarra img {
        width: 70%;
        height: auto;
        left: 100vw; /* Posición inicial: fuera de la pantalla derecha */
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Inicialmente invisible */
    }

    /* Ajustar el tamaño de fuente para tablets verticales */
    .glass_3 .title h3 {
        font-size: 10vh;
        height: 10vh;
        line-height: 10vh;
    }
}

/* Media Query para formatos móviles */
@media screen and (min-width: 481px) and (max-width: 768px) {
    /* En pantallas móviles, ajustar el tamaño y posición de la imagen */
    .img_pizarra img {
        width: 70%;
        height: auto;
        left: 100vw; /* Posición inicial: fuera de la pantalla derecha */
        top: 45%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Inicialmente invisible */
    }

    /* Ajustar el tamaño de fuente para móviles */
    .glass_3 .title h3 {
        font-size: 9vw;
        height: 9vw;
        line-height: 9vw;
    }
}

/* Media Query para formatos móviles pequeños */
@media screen and (max-width: 480px) {
    /* En móviles pequeños, ajustar el tamaño y posición de la imagen */
    .img_pizarra img {
        width: 90%;
        height: auto;
        left: 100vw; /* Posición inicial: fuera de la pantalla derecha */
        top: 43%;
        transform: translate(-50%, -50%);
        opacity: 0; /* Inicialmente invisible */
    }

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

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

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

/* Definición de las animaciones keyframes para pizarra */

/* Animación para formato original (desktop) */
@keyframes slideInFromRightPizarra {
    0% {
        left: 100vw;
        opacity: 0;
    }
    100% {
        left: 70%;
        opacity: 1;
    }
}

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

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

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

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

