/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    height: auto;
    min-height: 100vh;
}

main.contenido-principal {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* ENCABEZADO */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.cintillo img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    display: block;
}

/* MENÚ DE GRADOS */
.menu-grados {
    background: #f8f8f8;
    padding: 10px 0;
}

.menu-grados ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-grados li {
    margin: 0 10px;
}

.menu-grados a {
    color: rgb(8, 8, 8);
    text-decoration: none;
    padding: 8px 15px;
    display: block;
    transition: background 0.3s;
}

.menu-grados a:hover {
    background: #8dbceb;
}

/* CONTENIDO PRINCIPAL */
.contenedor-principal {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 20px;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contenido-principal h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    /*border-bottom: 2px solid #eee;*/
}

/* FRANJAS DESPLEGABLES */
.franja {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.franja-titulo {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.franja-titulo h2 {
    margin: 0;
    font-size: 1.2em;
    color: white;
}

.flecha {
    font-size: 1.2em;
    color: white;
    transition: transform 0.3s;
}

.franja-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

/* CONTENEDOR DE IMAGEN PRINCIPAL */
.imagen-franja-container {
    padding: 15px;
    text-align: center;
    background: white;
}

.imagen-franja {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s;
}

.imagen-franja:hover {
    transform: scale(1.02);
}

/* COLORES DE FRANJAS */
.azul .franja-titulo {
    background: #201b51;
}

.roja .franja-titulo {
    background: #0f744d;
}

.amarilla .franja-titulo {
    background: #26b473;
}

.verde .franja-titulo {
    background: #f8b517;
}

.negro .franja-titulo {
    background: #ed5824;
}

.dorado .franja-titulo {
    background: #e81e27;
}

.morado .franja-titulo {
    background: #ed5824;
}

.blanco .franja-titulo {
    background: #ec4d7f;
}

.verde2 .franja-titulo {
    background: #e81e27;
}

.verde3 .franja-titulo {
    background: #f8b517;
}

/* ESTADO ABIERTO */
.franja.abierta .franja-contenido {
    max-height: 2000px;
}

.franja.abierta .flecha {
    transform: rotate(180deg);
}

/* PIE DE PÁGINA */
footer {
    background: white;
    padding: 20px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    display: block;
}

/* TAMAÑOS DE IMAGEN RESPONSIVE */
@media (min-width: 1200px) {
    .imagen-franja {
        max-height: 500px;
    }
}

@media (min-width: 992px) {
    .imagen-franja {
        max-height: 450px;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .imagen-franja {
        max-height: 400px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .imagen-franja {
        max-height: 350px;
    }
}

@media (max-width: 575px) {
    .imagen-franja {
        max-height: 300px;
    }
}

/* BOTÓN PARA MÓVILES */
.menu-btn {
    display: none;
    background: #ffffff;
    color: rgb(3, 3, 3);
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.menu-btn:after {
    content: '☰';
    margin-left: 10px;
}

/* VERSIÓN MÓVIL DEL MENÚ */
@media (max-width: 768px) {
    .menu-grados ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu-grados ul.mostrar {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .menu-grados li {
        margin: 0;
        border-top: 1px solid #34495e;
    }

    .menu-grados a {
        padding: 12px 15px;
    }

    .franja-titulo {
        padding: 12px 15px;
    }

    .franja-titulo h2 {
        font-size: 1em;
    }
}

/* MODAL */
.modal-imagen {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.contenido-modal {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin: 5% auto;
}

.pie-modal {
    color: white;
    text-align: center;
    padding: 10px 0;
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar-modal:hover {
    color: #bbb;
}

/* IMÁGENES PEQUEÑAS */
.imagen-pequena {
    width: 100%;
    height: 180px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.imagen-pequena:hover {
    transform: scale(1.03);
}

/* CONTENEDOR DE DOS COLUMNAS */
.contenedor-dos-columnas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
}

.columna {
    flex: 1;
    min-width: 300px;
}

/* TARJETAS */
.tarjeta {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta-contenido {
    padding: 15px;
}

/* TARJETA ESPECIAL */
.tarjeta-especial {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 15px;
    padding: 15px;
}

.imagenes-dobles {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.imagenes-dobles img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .imagenes-dobles {
        flex-direction: column;
    }

    .contenedor-dos-columnas {
        flex-direction: column;
    }

    .columna {
        min-width: 100%;
    }
}

/* ESTILOS PARA PATROCINADORES */
.carrusel-patrocinadores a {
    display: inline-block;
    margin: 0 25px;
    text-decoration: none;
}

.carrusel-patrocinadores img {
    width: 180px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carrusel-patrocinadores a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}


/* ESTILOS PARA PATROCINADORES franja inferior */
.patrocinadores-container {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-top: 50px;
    border-top: 2px solid #e9ecef;
}

.patrocinadores-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2em;
}

.carrusel-patrocinadores {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carrusel-inner {
    display: flex;
    animation: scroll 25s linear infinite;
    width: calc(200px * 16);
    /* Ancho de imagen * cantidad duplicada */
}

.carrusel-patrocinadores img {
    width: 180px;
    height: 100px;
    object-fit: contain;
    margin: 0 5px;
    filter: grayscale(50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carrusel-patrocinadores img:hover {
    filter: grayscale(00%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 4));
        /* Mover el ancho de las imágenes originales */
    }

    /* Responsive comentado laurio
    @media (max-width: 768px) {
        .carrusel-inner {
            animation: scroll 20s linear infinite;
        }

        .carrusel-patrocinadores img {
            width: 140px;
            margin: 0 15px;
        }
    }*/
}


/* Estilos para la lupa */
.contenedor-imagen {
    position: relative;
    display: inline-block;
}

.lupa-icono {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.lupa-icono:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lupa-icono svg {
    width: 20px;
    height: 20px;
}

/* Carrusel de patrocinadores optimizado */
.patrocinadores-container {
    padding: 15px 0;
    margin-top: 30px;
    background: #f8f9fa;
}

.carrusel-patrocinadores {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carrusel-inner {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
    padding: 10px 0;
}

.item-patrocinador {
    margin: 0 15px;
    flex: 0 0 auto;
    cursor: default;
    /* Cambia el cursor a normal */
}

.item-patrocinador img {
    height: 100px;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: all 0.3s;
}

.item-patrocinador:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .item-patrocinador {
        margin: 0 10px;
    }

    .item-patrocinador img {
        height: 80px;
        max-width: 120px;
    }

    .lupa-icono {
        width: 15px;
        height: 15px;
        bottom: 5px;
        right: 5px;
    }
}

/* comienzan los estilos nuevos sobre los grados */

/* Estilos para la estructura de las tarjetas */
.autor-container {
    position: relative;
    padding: 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.foto-autor {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    border: 2px solid #3498db;
}

.foto-autor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nombre-autor {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: #333;
}

.reseña-proyecto {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-right: 3px solid #3498db;
}

.reseña-docente {
    margin-top: 15px;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 5px;
    font-style: italic;
    font-size: 0.9em;
}

.audio-protegido {
    margin: 15px 0;
    position: relative;
}

.audio-protegido h4 {
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 0.9em;
}

.proteccion-audio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Ajustes para la imagen protegida */
.imagen-protegida {
    position: relative;
}

.proteccion-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Estilos para la Franja 2: Inventos Oceánicos */
.proyecto-invento {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 15px;
    padding: 15px;
}

.encabezado-invento h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.video-reseña-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.video-container {
    flex: 1;
    min-width: 300px;
}

.video-container video {
    width: 100%;
    border-radius: 8px;
}

.reseña-proyecto {
    flex: 1;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.reseña-proyecto h4 {
    margin-top: 0;
    color: #3498db;
}

.reseña-proyecto h2 {
    /*margin-top: 0;*/
    color: #000000;
}

.alumno-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.foto-alumno {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;

}

.foto-alumno img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nombre-alumno {
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
}

.reseña-alumno {
    flex: 1;
    padding: 15px;
    background: #f0f7ff;
    border-radius: 8px;
}

.reseña-alumno h4 {
    margin-top: 0;
    color: #3498db;
}

/* Estilos para la Franja 3: Galería de 7 imágenes */
.galeria-musica {
    text-align: center;
    padding: 15px;
}

.titulo-galeria {
    color: #2c3e50;
    margin-bottom: 5px;
}

.descripcion-galeria {
    color: #666;
    margin-bottom: 20px;
}

.contenedor-siete-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.instrumento {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.instrumento:hover {
    transform: translateY(-5px);
}

.imagen-instrumento {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
}

.nombre-instrumento {
    padding: 10px;
    font-weight: bold;
    background: #f8f8f8;
}

.audio-colectivo {
    max-width: 500px;
    margin: 20px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
    .video-reseña-container {
        flex-direction: column;
    }

    .alumno-container {
        flex-direction: column;
        text-align: center;
    }

    .reseña-alumno {
        margin-top: 15px;
    }

    .contenedor-siete-imagenes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contenedor-siete-imagenes {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el título con imagen - tutulo de cada laurio */
.titulo-con-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.imagen-grado {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    /*overflow: hidden;*/
}

.imagen-grado img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 480px) {
    .titulo-con-imagen {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .imagen-grado {
        width: 50px;
        height: 50px;
    }
}

/* imagen sobre reproductor */
/* Estilos para el contenedor de audio con imagen */
.audio-con-imagen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.imagen-referencia-audio {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.imagen-referencia-audio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Ajustes para el reproductor de audio */
.audio-protegido {
    width: 100%;
    max-width: 500px;
    position: relative;
}

/* Estilo para la frase destacada */
.frase-destacada {
    color: #3498db;
    font-style: italic;
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .imagen-referencia-audio {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .imagen-referencia-audio {
        width: 180px;
        height: 180px;
    }

    .frase-destacada {
        font-size: 1.1em;
    }
}

/* ajustes para jardin para centrar el contenido del reporductor */
/* Ajustes solo para móviles (menos de 768px) */
@media (max-width: 768px) {

    /* Centrar el contenedor de audio con imagen */
    .audio-con-imagen {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Ajustar tamaño de la imagen en móviles */
    .imagen-referencia-audio {
        width: 200px;
        height: 200px;
    }

    .audio-protegido {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .audio-protegido audio {
        width: 90%;
        max-width: 250px;
        /* Mismo ancho que la imagen */
    }

    /* Centrar el texto de la reseña */
    .reseña-proyecto {
        text-align: center;
        padding: 0 15px;
    }

    /* Ajustar la frase destacada */
    .frase-destacada {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* contendor de imagenes para quinto grado */

/* Estilos para las imágenes en Franja 1 */
.imagenes-dobles2 {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    gap: 30px;
    /* Espacio entre imágenes */
    flex-wrap: wrap;
    /* Permite que se apilen en móviles */
    margin: 0 auto;
    max-width: 800px;
}

.imagen-contenedor2 {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.imagen-pequena2 {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.lupa-icono2 {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.lupa-icono2:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lupa-icono2 svg {
    width: 20px;
    height: 20px;
}

/* franja 2 quinto grado */
/* Estilos para la foto del alumno en Franja 2 */
.foto-alumno {
    width: 210px;
    height: 280px;
    overflow: hidden;
    border-radius: 0;
    /* Cambiado a cuadrado */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.foto-alumno img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón para agrandar foto de alumno */
.boton-ampliar {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.boton-ampliar:hover {
    background-color: rgba(41, 128, 185, 0.9);
    transform: scale(1.05);
}


/* contenedor del video mas pequeño */

/* Estilos para el contenedor de video en Franja 2 */
.video-container {
    width: 100%;
    max-width: 600px;
    /* Tamaño máximo predeterminado */
    margin: 0 auto;
    /* Centrar el video */
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .video-container {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .video-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* contenedor de videos */
/* Contenedor principal del video */
.video-container {
    width: 100%;
    max-width: 50px;
    margin: 0 auto;
    padding: 10px;
}

/* Contenedor del video pequeño */
.video-contenedor-pequeno {
    position: relative;
    width: 100px;
    /* Tamaño pequeño */
    height: 180px;
    /* Relación 16:9 */
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Estilo del video */
.video-invento {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lupa para maximizar (igual que en imágenes) */
.lupa-icono {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.lupa-icono:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lupa-icono svg {
    width: 16px;
    height: 16px;
}

/* Modal para video maximizado */
.modal-video {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-video-contenido {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.modal-video video {
    max-width: 90%;
    max-height: 90vh;
    outline: none;
    border-radius: 8px;
}

.cerrar-modal-video {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Efecto hover para el contenedor pequeño */
.video-contenedor-pequeno:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Estilos para el carrusel de horarios */
.carrusel-horario {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carrusel-contenedor {
    display: flex;
    transition: transform 0.5s ease;
}

.carrusel-slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.imagen-carrusel {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Controles del carrusel */
.carrusel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carrusel-control.prev {
    left: 10px;
}

.carrusel-control.next {
    right: 10px;
}

/* Indicadores */
.carrusel-indicadores {
    text-align: center;
    padding: 15px 0;
}

.indicador {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicador.active {
    background-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .imagen-carrusel {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .imagen-carrusel {
        height: 200px;
    }

    .carrusel-control {
        padding: 10px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

.lupa-iconoc {
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 50%;
}

/* pie de fotografia grupal */

/* Estilos para el pie secundario por grado */
.pie-secundario-grado {
    background-color: #f8f8f8;
    padding: 40px 20px;
    border-top: 3px solid #5d2d86;
    /* Morado institucional */
    margin-top: 30px;
}

.contenedor-pie-secundario {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.imagen-pie-secundario {
    flex: 1;
    min-width: 300px;
}

.imagen-pie-secundario img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contenido-pie-secundario {
    flex: 2;
    min-width: 300px;
}

.contenido-pie-secundario h2 {
    color: #5d2d86;
    margin-bottom: 20px;
    font-size: 28px;
}

.texto-pie-secundario p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.firma {
    font-style: italic;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .contenedor-pie-secundario {
        flex-direction: column;
    }

    .imagen-pie-secundario,
    .contenido-pie-secundario {
        min-width: 100%;
    }
}

/* Estilos para la lupa en el pie secundario */
.contenedor-imagen-pie {
    position: relative;
    display: inline-block;
    width: 100%;
}

.imagen-ampliable {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.imagen-ampliable:hover {
    transform: scale(1.02);
}

.lupa-icono-pie {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.lupa-icono-pie:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.lupa-icono-pie svg {
    width: 24px;
    height: 24px;
}

/* Asegurar que la imagen no se distorsione */
.imagen-pie-secundario {
    flex: 1;
    min-width: 300px;
    overflow: hidden;
    border-radius: 8px;
}

/* nuevo script para la franja de tarjetas en quinto grado */

/* En tu archivo CSS - Ajustar para la galería de tarjetas */
.contenedor-siete-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 15px;
}

@media (max-width: 768px) {
    .contenedor-siete-imagenes {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
        overflow-x: auto;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(120px, 1fr);
        -webkit-overflow-scrolling: touch;
    }

    .instrumento {
        width: 120px;
    }
}

/* Estilos para móvil específicos */
@media (max-width: 480px) {
    .contenedor-siete-imagenes {
        grid-auto-columns: minmax(100px, 1fr);
    }

    .instrumento {
        width: 100px;
    }

    .imagen-instrumento {
        width: 100%;
        height: auto;
    }

    .galeria-musica {
        overflow: hidden;
    }

    .franja-contenido {
        padding: 0 5px;
    }
}

/* script para cuarto grado */

/* Estilos para la Franja 1 - Animales Africanos */
.centrado-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.imagen-audio-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    max-width: 500px;
    width: 100%;
}

.imagen-contenedor-audio {
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

.imagen-audio {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.audio-container {
    width: 100%;
    text-align: left;
}

.audio-container2 {
    width: 100%;
    text-align: left;
}

/* Estilos para la Franja 2 - Cuentos Africanos */
.cuento-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 30px;
}

.imagen-cuento {
    flex: 1;
    min-width: 300px;
}

.contenido-cuento {
    flex: 2;
    min-width: 300px;
}

.estudiante-cuento {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.foto-estudiante {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.foto-estudiante img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-estudiante {
    flex: 1;
}

/* Estilos para el pie secundario (ya proporcionados anteriormente) */
/* Estilos para la Franja 1 - Animales Africanos */
.contenido-invento-ajustado {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.reseña-izquierda {
    flex: 2;
    min-width: 300px;
}

.contenido-derecha {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.imagen-contenedor-audio {
    position: relative;
    width: 100%;
}

.imagen-audio {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.audio-container {
    width: 100%;
}

/* Estilos para la Franja 2 - Cuentos Africanos */
.cuento-container-simple {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 30px;
}

.imagen-cuento-simple {
    flex: 1;
    min-width: 250px;
}

.contenido-cuento-simple {
    flex: 2;
    min-width: 300px;
}

.estudiante-cuento {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.foto-estudiante {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.foto-estudiante img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-estudiante {
    flex: 1;
}

/* Estilos para el pie secundario */
.pie-secundario-grado {
    background-color: #f8f8f8;
    padding: 40px 20px;
    border-top: 3px solid #5d2d86;
    margin-top: 30px;
}

.contenedor-pie-secundario {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.imagen-pie-secundario {
    flex: 1;
    min-width: 300px;
}

.contenedor-imagen-pie {
    position: relative;
    display: inline-block;
    width: 100%;
}

.imagen-ampliable {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.lupa-icono-pie {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contenido-pie-secundario {
    flex: 2;
    min-width: 300px;
}

.texto-pie-secundario p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.firma {
    font-style: italic;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {

    .contenido-invento-ajustado,
    .cuento-container-simple,
    .contenedor-pie-secundario {
        flex-direction: column;
    }

    .reseña-izquierda,
    .contenido-derecha,
    .imagen-cuento-simple,
    .contenido-cuento-simple,
    .imagen-pie-secundario,
    .contenido-pie-secundario {
        min-width: 100%;
    }

    .estudiante-cuento {
        flex-direction: column;
        text-align: center;
    }
}

/* franja superios en l apagina principal */

/* Estilos para la franja superior */
.franja-superior {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 5px solid #5d2d86;
}

/* Asignación de colores específicos para cada franja */
.franja-superior:nth-child(1) { border-left-color: #f8b517; } /* Jardín */
.franja-superior:nth-child(2) { border-left-color: #ed5824;} /* Primer grupo */
.franja-superior:nth-child(3) { border-left-color: #e81e27; } /* Segundo grupo */
.franja-superior:nth-child(4) { border-left-color: #ec4d7f; } /* Tercer grupo */
.franja-superior:nth-child(5) { border-left-color: #201b51; } /* Primer grado */
.franja-superior:nth-child(6) { border-left-color: #0f744d; } /* Segundo grado */
.franja-superior:nth-child(7) { border-left-color: #26b473; } /* Tercer grado */
.franja-superior:nth-child(8) { border-left-color: #f8b517; } /* Cuarto grado */
.franja-superior:nth-child(9) { border-left-color: #ed5824; } /* Quinto grado */
.franja-superior:nth-child(10) { border-left-color: #e81e27; } /* Sexto grado */
.franja-superior:nth-child(11) { border-left-color: #0f744d; } /* Media */
.franja-superior:nth-child(12) { border-left-color: #f8b517; } /* docentes */
.franja-superior:nth-child(13) { border-left-color: #ed5824;} /*espera */
.franja-superior:nth-child(14) { border-left-color: #e81e27; } /* espera */
.franja-superior:nth-child(15) { border-left-color: #ec4d7f; } /* espera */


.contenedor-franja-superior {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.icono-franja-superior {
    flex: 0 0 120px;
}

.icono-franja-superior img {
    width: 100%;
    height: auto;
    max-width: 120px;
}

.contenido-franja-superior {
    flex: 1;
}

.contenido-franja-superior h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.contenido-franja-superior h4 {
    color: #177bdf;

}

.contenido-franja-superior p {
    color: #1b1b1b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.redes-sociales {
    margin-top: 20px;
}

.redes-sociales p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #fcfcfc;
}

.botones-redes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.boton-ir {
    display: inline-block;
    background-color: #5d2d86;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.boton-ir:hover {
    background-color: #4a2470;
}

.red-social {
    display: inline-block;
    background-color: #fffefe;
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.red-social:hover {
    background-color: #ed5824;
}

/* Responsive */
@media (max-width: 768px) {
    .contenedor-franja-superior {
        flex-direction: column;
        text-align: center;
    }
    
    .icono-franja-superior {
        margin-bottom: 20px;
    }
    
    .botones-redes {
        justify-content: center;
    }
}

/* Estilos para la franja de enlace */
.franja-enlace {
    display: block;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.franja-enlace .franja-titulo {
    cursor: pointer;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.franja-enlace .franja-titulo h2 {
    margin: 0;
    font-size: 1.2em;
}

.franja-enlace .flecha {
    font-size: 1.5em;
    transition: transform 0.3s ease;
}


/* Mantener colores consistentes con las franjas normales */


/* Estilos para el botón Atrás en las paginas principales*/ 
.contenedor-boton-atras {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.boton-atras {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.boton-atras:hover {
    transform: translateY(-50%) scale(1.1);
}

.boton-atras img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .boton-atras {
        width: 50px;
        height: 50px;
        left: 10px;
    }
    
    .boton-atras img {
        width: 25px;
        height: 25px;
    }
    
    .contenedor-boton-atras p {
        font-size: 32px !important;
        padding-left: 60px;
        text-align: left;
    }
}

/* Estilos específicos para la imagen y el botón */
.imagen-atras {
    width: 30px;  /* Tamaño fijo */
    height: 30px;
    object-fit: contain; /* Asegura que la imagen no se distorsione */
    display: block; /* Elimina espacios no deseados */
}

.boton-atras {
    width: 60px;
    height: 60px;
    background-color: #5d2d86;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Contenedor para alinear el botón y el título */
.contenedor-boton-atras {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.titulo-principal {
    font-size: 40px;
    color: #2c3e50;
    font-weight: bold;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .imagen-atras {
        width: 25px;
        height: 25px;
    }
    .boton-atras {
        width: 50px;
        height: 50px;
    }
    .titulo-principal {
        font-size: 32px;
        text-align: left;
        padding-left: 15px;
    }
}

/* Estilos para el menú con iconos circulares */
.menu-grados ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.menu-grados li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
    gap: 8px;
    text-align: center;
}

/*.menu-grados li a:hover {
    color: #5d2d86;
    transform: translateY(-3px);
}*/

.menu-icono {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.menu-grados li a:hover .menu-icono {
    background-color: #ffffff;
    transform: scale(1.1);
}

.menu-icono img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/*.menu-grados li a:hover .menu-icono img {
    filter: brightness(0) invert(1);
}*/

/* Estilos para el botón móvil */
.menu-btn {
    display: none;
    background-color: #5d2d86;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
        margin: 10px auto;
    }
    
    .menu-grados ul {
        flex-direction: column;
        display: none;
        gap: 10px;
    }
    
    .menu-grados ul.active {
        display: flex;
    }
    
    .menu-grados li a {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px;
        background-color: #f8f8f8;
        border-radius: 5px;
    }
    
    .menu-icono {
        width: 40px;
        height: 40px;
    }
    
    .menu-icono img {
        width: 25px;
        height: 25px;
    }
}
/* Estilos para el menú con iconos circulares (VERSIÓN ESCRITORIO) */
.menu-grados {
    display: flex;
    justify-content: center; /* Centra el menú horizontalmente */
    padding: 15px 0;
    background-color: #fff; /* Fondo opcional */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Sombra opcional */
}

.menu-grados ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; /* Espacio entre elementos */
    max-width: 1200px; /* Ancho máximo para pantallas grandes */
    width: 100%;
    justify-content: center; /* Centra los elementos del menú */
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
}

.menu-grados li {
    display: flex;
}

.menu-grados li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
    gap: 8px;
    text-align: center;
    width: 80px; /* Ancho fijo para cada elemento */
}

/* Estilos para móviles (se mantienen iguales) */
@media (max-width: 768px) {
    .menu-grados {
        flex-direction: column;
        padding: 10px;
    }
    
    .menu-grados ul {
        flex-direction: column;
        display: none;
        gap: 10px;
        width: 100%;
    }
    
    .menu-grados ul.active {
        display: flex;
    }
    
    .menu-grados li a {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 15px;
        background-color: #f8f8f8;
        border-radius: 5px;
        width: auto;
    }
    
    .menu-btn {
        display: block;
        margin: 10px auto;
    }
}

/* titulos y centrado de los encabezados de los proyectos */
/* Estilos para el encabezado del grado */
.encabezado-grado {
    margin-bottom: 30px;
    text-align: center;
}

.icono-titulo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.imagen-grado img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.encabezado-grado h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.5em;
}

.reseña-grado {
    max-width: 800px;
    margin: 0 auto;
   /* padding: 15px;*/
    background-color: #ffffff;
}

.reseña-grado p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #6b6b6b;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .icono-titulo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .imagen-grado img {
        width: 70px;
        height: 70px;
    }
    
    .encabezado-grado h1 {
        font-size: 2em;
    }
    
    .reseña-grado {
        padding: 10px;
    }
}

/* Estilos para la nueva estructura */
.foto-alumno-sin-marco {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.foto-alumno-sin-marco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alumno-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.video-reseña-container-invertido {
    display: flex;
    gap: 20px;
}

.video-reseña-container-invertido .reseña-proyecto {
    order: 1;
    flex: 1;
}

.video-reseña-container-invertido .video-container {
    order: 2;
    flex: 1;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .alumno-container,
    .video-reseña-container-invertido {
        flex-direction: column;
    }
    
    .video-reseña-container-invertido .reseña-proyecto,
    .video-reseña-container-invertido .video-container {
        order: initial;
    }
    
    .foto-alumno-sin-marco {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* estilo para 4to grado */
/* Estilos para la estructura de imagen + audio */
.imagen-audio-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 250px;
}

.imagen-contenedor-audio {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.imagen-audio {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}

.imagen-audio:hover {
    transform: scale(1.02);
}

.audio-container {
    /* background: #f5f5f5;*/
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.audio-container h4 {
    margin-top: 0;
    color: #333;
}

/* Ajustes para el layout invertido */
.video-reseña-container-invertido {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.video-reseña-container-invertido .reseña-proyecto {
    flex: 1;
    order: 1;
}

.video-reseña-container-invertido .imagen-audio-container {
    order: 2;
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .video-reseña-container-invertido {
        flex-direction: column;
    }
    
    .video-reseña-container-invertido .reseña-proyecto,
    .video-reseña-container-invertido .imagen-audio-container {
        order: initial;
    }
}

/* mejors para el contenedor de quinto muestre mejor la foto del alumno y el video, proporciones iguales */

/* Estilos para la foto del alumno */
.foto-alumno {
    width: 105px;
    height: 140px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.foto-alumno img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para el contenedor del video */
.video-contenedor-pequeno {
    position: relative;
    width: 210px; /* Mismo ancho que la foto del alumno */
    height: 280px; /* Misma altura que la foto del alumno */
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.video-invento {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para que el video cubra todo el espacio */
    display: block;
}

.video-reseña-container-invertido {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Alinea los elementos en la parte superior */
}

@media (max-width: 768px) {
    .video-reseña-container-invertido {
        flex-direction: column;
        align-items: center;
    }
    
    .foto-alumno, .video-contenedor-pequeno {
        margin-bottom: 20px;
    }
}
.video-container {
    flex: 0 0 auto; /* Evita que el video se estire */
    width: 210px; /* Mismo ancho que la foto */
}

/* estilos para los coleccionables en movil */
/* Estilos para la galería de tarjetas en móvil */
@media (max-width: 768px) {
    .contenedor-siete-imagenes {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 1fr); /* Imágenes más grandes */
        gap: 10px;
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .instrumento {
        width: 150px;
        scroll-snap-align: start;
    }

    .imagen-instrumento {
        width: 150px;
        height: 200px; /* Más grande que antes */
        object-fit: contain;
    }

    /* Lupa más pequeña y mejor posicionada */
    .lupa-icono2 {
        width: 24px;
        height: 24px;
        bottom: 5px;
        right: 5px;
    }

    .lupa-icono2 svg {
        width: 12px;
        height: 12px;
    }

    .nombre-instrumento {
        font-size: 0.8em;
        padding: 5px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .contenedor-siete-imagenes {
        grid-auto-columns: minmax(130px, 1fr);
    }

    .instrumento {
        width: 130px;
    }

    .imagen-instrumento {
        width: 130px;
        height: 180px;
    }
}
/* evitar la solapa en las tarjetas de originales y replicas*/

/* Estilos base para el contenedor de imagen y texto */
.imagen-contenedor2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

/* Ajuste para la imagen */
.imagen-pequena2 {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-bottom: 5px; /* Espacio entre imagen y texto */
}

/* Posición de la lupa - Versión escritorio */
.lupa-icono2 {
    position: absolute;
    bottom: 80px; /* Posicionamos desde el borde inferior de la imagen */
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Texto debajo de la imagen */
.texto-imagen {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9em;
    margin-top: 0;
}

/* Ajustes específicos para móviles */
@media (max-width: 768px) {
    .imagen-contenedor2 {
        width: 150px; /* Ancho reducido para móvil */
    }
    
    .imagen-pequena2 {
        width: 150px;
        height: 150px;
        margin-bottom: 0;
    }
    
    .lupa-icono2 {
        bottom: 40px; /* Ajuste fino para móvil */
        right: 10px;
        width: 28px;
        height: 28px;
    }
    
    .lupa-icono2 svg {
        width: 14px;
        height: 14px;
    }
    
    .texto-imagen {
        font-size: 0.8em;
        padding: 5px 0;
    }
}

/* primer grado */

/* Estilos para la cuadrícula de proyectos */
.fila-proyectos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.proyecto-caballo {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color1 {
    background-color: #f0f7ff; /* Azul claro */
    border-left: 5px solid #3498db;
}

.color2 {
    background-color: #fff0f5; /* Rosa claro */
    border-left: 5px solid #e91e63;
}

.contenido-proyecto {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contenido-proyecto h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.contenido-proyecto p {
    margin: 5px 0;
    line-height: 1.4;
}

.audio-protegido {
    margin-top: auto;
    padding-top: 15px;
}

.audio-protegido audio {
    width: 100%;
}

/* Encabezado ajustado */
.encabezado-grado {
    text-align: center;
    margin-bottom: 30px;
}

.icono-titulo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.imagen-grado img {
    width: 80px;
    height: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .proyecto-caballo {
        min-width: 100%;
    }
    
    .fila-proyectos {
        flex-direction: column;
    }
}

/* encabezados reorganizados */
/* Estilos para el encabezado con logo pegado */
.encabezado-grado {
    text-align: center;
    margin-bottom: 30px;
}

.grado-superior {
    font-size: 2rem;
    color: #000;
    margin-bottom: 5px;
       font-weight: bold;
}

.contenedor-titulo {
    display: inline-flex;
    align-items: center;
    margin: 0 auto 15px;
} 

.logo-grado {
    width: 70px;
    height: 70px;
    margin-right: 10px; /* Elimina el margen derecho */
}

.titulo-principal {
    font-size: 1.5rem;
    color: #000;
    margin: 0 0 0 5px; /* Solo margen izquierdo mínimo */
    font-weight: bold;
    display: inline;
}

/* Ajustes específicos para móvil (max-width: 768px) */
@media (max-width: 768px) {
    /* Encabezado más compacto */
    .grado-superior {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .contenedor-titulo {
        margin-bottom: 10px;
    }
    
    .logo-grado {
        width: 60px;
        height: 60px;
    }
    
    .titulo-principal {
        font-size: 0.9rem;
        margin-left: 3px;
    }
    
    
    /* Ajustes para la cuadrícula de proyectos */
    .fila-proyectos {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .proyecto-caballo {
        padding: 15px;
        min-width: calc(40% - 15px); /* Mantiene 2 columnas */
    }
    
    .contenido-proyecto h3 {
        font-size: 1rem;
    }
    
    .contenido-proyecto p {
        font-size: 0.85rem;
        margin: 3px 0;
    }
    
    .audio-protegido {
        padding-top: 10px;
    }
    
    /* Ajuste adicional para pantallas muy pequeñas */
    @media (max-width: 480px) {
        .proyecto-caballo {
            min-width: calc(100% - 10px); /* 1 columna */
        }
    }
}

/* Alinear reproductor a la izquierda */
.audio-protegido {
    text-align: left;
    margin-right: auto;
    padding-top: 15px;
}

.audio-protegido audio {
    margin-left: 0;
    width: 100%;
    max-width: 250px; /* Controla el ancho del reproductor */
}

/* Ajuste para móvil */
@media (max-width: 768px) {
    .audio-protegido audio {
        max-width: 100%; /* Ocupa todo el ancho en móvil */
    }
}

/* cuarto grado */

/* Contenedor principal del cuento - ESCRITORIO */
.cuento-container {
    display: flex;
    min-height: 300px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cuento-container {
    display: flex;
    min-height: 300px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Columna izquierda (imagen portada) - ESCRITORIO */
.columna-izquierda {
    flex: 1;
    position: relative;
    min-width: 250px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}


.imagen-contenedor-portada {
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.imagen-portada {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lupa-icono {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Columna derecha - ESCRITORIO */
.columna-derecha {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    min-width: 350px;
}


/* Parte superior - ESCRITORIO */
.parte-superior {
    flex: 1;
}

.titulo-cuento {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.5em;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.reseña-cuento {
    color: #555;
    margin: 0 0 20px 0;
    line-height: 1.6;
    font-size: 0.95em;
}

.audio-container {
    width: 100%;
    margin: 20px 0;
}

.audio-container audio {
    width: 100%;
}

/* Parte inferior - ESCRITORIO */
.parte-inferior {
    display: flex;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.foto-alumno-container {
    width: 180px;
    height: 250px;
    margin-right: 25px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.foto-alumno {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-alumno {
    flex: 1;
}

.info-alumno h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.info-alumno p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.9em;
}

/* ---------------------------------- */
/* RESPONSIVE PARA cuento-container */
/* ---------------------------------- */

@media (max-width: 1024px) {
    .cuento-container {
        min-height: 280px;
    }
    
    .columna-derecha {
        padding: 20px;
    }
    
    .foto-alumno-container {
        width: 9%;
        height: 9%;
    }
}

@media (max-width: 768px) {
    .cuento-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .columna-izquierda {
        min-height: 200px;
        min-width: 100%;
    }
    
    .imagen-portada {
        max-height: 180px;
    }
    
    .columna-derecha {
        min-width: 100%;
    }
    
    .parte-inferior {
        flex-direction: column;
    }
    
    .foto-alumno-container {
        width: 50%;
        height: 30%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .cuento-container {
        margin: 20px 0;
        border-radius: 6px;
    }
    
    .columna-izquierda {
        min-height: 180px;
    }
    
    .columna-derecha {
        padding: 15px;
    }
    
    .titulo-cuento {
        font-size: 1.3em;
    }
    
    .foto-alumno-container {
        height: 180px;
    }
}

