/* =========================================
   CONTENEDOR GENERAL
   ========================================= */

.actos-contenedor {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 40px 20px 70px;
}


/* =========================================
   CABECERA GENERAL
   ========================================= */

.actos-cabecera {
    text-align: center;
    margin-bottom: 60px;
}

.actos-cabecera h1 {
    font-size: 40px;
    color: #ffd27f;
    margin-top: 50px;
    margin-bottom: 25px;
}

.actos-cabecera p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.7;
    color: #e6e6e6;
}

.actos-cabecera strong {
    color: #ffd27f;
}


/* =========================================
   BLOQUE DEL ACTO
   ========================================= */

.acto {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 184, 92, 0.55);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 60px;
}


/* =========================================
   CABECERA DEL ACTO
   ========================================= */

.acto-cabecera {
    text-align: center;
    margin-bottom: 45px;
}

.acto-fecha {
    display: inline-block;
    color: #ffb85c;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.acto-cabecera h2 {
    color: #ffd27f;
    font-size: 30px;
    margin: 5px 0 12px;
}

.acto-cabecera h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: normal;
    margin: 0;
}


/* =========================================
   PRESENTACIÓN DEL ACTO
   ========================================= */

.acto-presentacion {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 45px;
    align-items: center;
    margin-bottom: 60px;
}


/* CARTEL */

.acto-cartel {
    text-align: center;
}

.acto-cartel img {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    border: 2px solid #ffb85c;
    border-radius: 12px;
    cursor: pointer;
}


/* TEXTO */

.acto-texto {
    color: #e6e6e6;
    font-size: 19px;
    line-height: 1.8;
}

.acto-texto p {
    margin: 0 0 20px;
}

.acto-texto p:last-child {
    margin-bottom: 0;
}

.acto-texto strong {
    color: #ffd27f;
}


/* =========================================
   SECCIONES
   ========================================= */

.acto-seccion {
    margin-top: 60px;
}

.seccion-titulo {
    color: #ffd27f;
    font-size: 27px;
    text-align: center;
    margin-bottom: 30px;
}


/* =========================================
   GALERÍA DE FOTOS
   ========================================= */

.galeria-actos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.foto-acto {
    background: #000;
    border: 2px solid #ffb85c;
    border-radius: 12px;
    overflow: hidden;
}

.foto-acto img {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.foto-acto img:hover {
    transform: scale(1.04);
}


/* =========================================
   VÍDEOS
   ========================================= */

.videos-actos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Todas las cajas mantienen
   exactamente el mismo tamaño */
.video-acto {
    width: 100%;
    aspect-ratio: 16 / 9;

    background: #000;

    border: 2px solid #ffb85c;
    border-radius: 12px;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* El vídeo se adapta dentro de la caja
   sin deformarse ni recortarse */
.video-acto video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #000;
}


/* =========================================
   REPERCUSIÓN EN MEDIOS
   ========================================= */

.medios-actos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.medio-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ffb85c;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.medio-item h3 {
    color: #ffd27f;
    font-size: 21px;
    margin: 0 0 15px;
}

.medio-item p {
    color: #e6e6e6;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 22px;
}

.medio-item a {
    display: inline-block;

    color: #ffd27f;
    font-size: 17px;
    text-decoration: none;

    border: 1px solid #ffd27f;
    border-radius: 6px;

    padding: 9px 20px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.medio-item a:hover {
    background: #ffd27f;
    color: #000000;
}


/* =========================================
   VISOR DE FOTOGRAFÍAS
   ========================================= */

.visor-foto {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.94);

    display: none;

    justify-content: center;
    align-items: center;

    padding: 30px;

    z-index: 99999;
}

.visor-foto.activo {
    display: flex;
}

.visor-foto img {
    display: block;

    max-width: 95%;
    max-height: 92vh;

    object-fit: contain;
}

.cerrar-visor {
    position: absolute;

    top: 15px;
    right: 30px;

    border: none;
    background: transparent;

    color: #ffffff;

    font-size: 55px;
    line-height: 1;

    cursor: pointer;

    z-index: 100000;
}


/* =========================================
   TABLETS
   ========================================= */

@media (max-width: 900px) {

    .actos-contenedor {
        padding: 25px 20px 60px;
    }

    .actos-cabecera h1 {
        font-size: 34px;
    }

    .actos-cabecera p {
        font-size: 18px;
    }

    .acto {
        padding: 25px;
    }

    .acto-presentacion {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .acto-cartel img {
        max-width: 400px;
    }

    .galeria-actos {
        grid-template-columns: repeat(2, 1fr);
    }

    .foto-acto img {
        height: 320px;
    }

    .videos-actos {
        grid-template-columns: 1fr;
    }

    .medios-actos {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   MÓVILES
   ========================================= */

@media (max-width: 600px) {

    .actos-contenedor {
        margin-top: 20px;
        padding: 20px 12px 50px;
    }

    .actos-cabecera {
        margin-bottom: 40px;
    }

    .actos-cabecera h1 {
        font-size: 29px;
        margin-bottom: 20px;
    }

    .actos-cabecera p {
        font-size: 16px;
        line-height: 1.6;
    }


    /* ACTO */

    .acto {
        padding: 20px 12px;
        border-radius: 12px;
    }

    .acto-cabecera {
        margin-bottom: 35px;
    }

    .acto-fecha {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .acto-cabecera h2 {
        font-size: 23px;
        line-height: 1.3;
    }

    .acto-cabecera h3 {
        font-size: 17px;
        line-height: 1.4;
    }


    /* PRESENTACIÓN */

    .acto-presentacion {
        gap: 25px;
        margin-bottom: 45px;
    }

    .acto-cartel img {
        max-width: 100%;
    }

    .acto-texto {
        font-size: 16px;
        line-height: 1.7;
    }


    /* SECCIONES */

    .acto-seccion {
        margin-top: 50px;
    }

    .seccion-titulo {
        font-size: 23px;
        margin-bottom: 25px;
    }


    /* FOTOS */

    .galeria-actos {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .foto-acto img {
        height: auto;
        max-height: 550px;
        object-fit: contain;
    }


    /* VÍDEOS */

    .videos-actos {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* MEDIOS */

    .medio-item {
        padding: 20px 15px;
    }

    .medio-item h3 {
        font-size: 19px;
    }


    /* VISOR */

    .visor-foto {
        padding: 10px;
    }

    .visor-foto img {
        max-width: 100%;
        max-height: 90vh;
    }

    .cerrar-visor {
        top: 8px;
        right: 15px;
        font-size: 45px;
    }

}