/* Contenedor principal */
.ponentes-container {
    padding-top: 80px !important ;
    width: 70%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

/* Estilo para cada ponente */
.ponente {
    flex: 1 1 calc(25% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.bandera {
    position: absolute;
    border-radius: 3px;
    top: 10px; /* Ajuste desde la parte superior */
    right: 10px; /* Ajuste desde la parte derecha */
    width: 55px !important; /* Ancho de la bandera */
    height: 30px !important; /* Altura de la bandera */
    z-index: 6; 
}
.ponente-imagen {
    width: 100%;
    height: auto;
    overflow: hidden; 
    position: relative;
}

.ponente-imagen img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; 
    z-index: 1;
}


.ponente-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    transition: background-color 0.3s ease; 
    z-index: 2; 
}


.ponente-imagen:hover::after {
    background-color: rgba(0, 0, 0, 0); 
}


.ponente-imagen:hover img {
    transform: scale(1.1); 
}


.ponente-imagen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 7px; 
    height: 25%; 
    transition: height 0.5s ease-in-out; 
    z-index: 3; 
}

.ponente-imagen:hover::before {
    height: 100%; 
}

/* Detalles del ponente (texto y enlace) */
.ponente-detalles {
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ponente-detalles h3 {
    margin: 0;
    font-size: 24px;
}

.ponente-nombre {
    color: white;
    font-size: 17px;
    margin-top: 10px;
}
.ponente-uni{
    color: rgb(206, 204, 204);
    font-size: 14px;
    margin-top: 5px;
}

.ponente-enlace span {
    font-size: 20px;
    margin-right: 5px;
}

/* Estilo de fondo para cada tarjeta */
.img1-bg {
    background-color: #00BCD4;
}
.img1-bg::before{
    background-color: #00BCD4;
}
/* ------------------------------*/
.img2-bg {
    background-color: #263248; 
}
.img2-bg::before{
    background-color: #263248;
}
/* ------------------------------*/
.img3-bg {
    background-color: #8C1F41; 
}
.img3-bg::before{
    background-color: #8C1F41;
}

/* ------------------------------*/
.img4-bg {
    background-color: #0067F5; 
}
.img4-bg::before{
    background-color: #0067F5;
}
/* ------------------------------*/

/* ------------------------------*/


/* ------------------------------*/
@media (max-width: 1024px) {
    .ponente {
        flex: 1 1 calc(33.33% - 20px); /* 3 contenedores */
    }
    .ponentes-container {
        width: 95%;

    }
}

/* Ajustar a 2 contenedores en pantallas más pequeñas */
@media (max-width: 768px) {
    .ponente {
        flex: 1 1 calc(50% - 20px); /* 2 contenedores */
    }
    .ponentes-container {
        width: 98%;

    }
}

/* Ajustar a 1 contenedor en pantallas muy pequeñas */
@media (max-width: 480px) {
    .ponente {
        flex: 1 1 100%; /* 1 contenedor */
    }
}