#ponentes {
    display: flex;
    margin: 40px 0;
    width: 100%;
}

#ponentes .main-container {
    background-color: #003351;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

#ponentes .text-side {
    padding: 0 40px;
    min-width: 280px;
    z-index: 20;
    background-color: #003351;
}

#ponentes .yellow-text {
    font-family: 'FuturaPTCondensed-Bold', sans-serif;
    color: #fad623;
    font-size: 35px;
    font-weight: bold;
    display: block;
}

#ponentes .blue-text {
    font-family: 'FuturaPTCondensed-ExtraBold', sans-serif;
    color: #fad623;
    font-size: 50px;
    margin: 0;
    line-height: 0.9;
}

#ponentes .carousel-area {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#ponentes .slider {
    display: flex;
    gap: 20px;
    padding: 40px 0;
    overflow-x: hidden;
    white-space: nowrap;
    z-index: 10;
}

/* --- CARDS --- */

#ponentes .card {
    width: 220px;
    height: 280px;
    background: #000000;
    color: black;
    transition: all 0.4s ease-in-out;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

#ponentes .card:hover {
    border-radius: 15px;
    cursor: pointer;
    transform: scale(1.15);
    z-index: 50;
    background: #298387;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.5);
}

#ponentes .first-content {
    height: 100%;
    width: 100%;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

#ponentes .photo-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
}

#ponentes .photo-area img {
    width: 85%;
    height: auto;
}


#ponentes .flag-circle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
    background: white;
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

#ponentes .flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#ponentes .card:hover .first-content {
    height: 0px;
    opacity: 0;
}

#ponentes .second-content {
    height: 0%;
    width: 100%;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s;
    transform: rotate(90deg) scale(-1);
    padding: 20px;
    text-align: center;
    color: white;
    box-sizing: border-box;
}

#ponentes .info-box h3 {
    font-family: 'FuturaPTCondensed-Bold', sans-serif;
    font-size: 29px;
    margin-bottom: 8px;
}

#ponentes .info-box p {
    width: 100%;
    font-family: 'FuturaPTCondensed-Book', sans-serif;
    font-size: 19px;
    line-height: 1.4;
    margin: 0;
    white-space: normal;
}

#ponentes .card:hover .second-content {
    opacity: 1;
    height: 100%;
    transform: rotate(0deg) scale(1);
}

/* --- BOTONES --- */
#ponentes .btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    /* Tamaño fijo para asegurar el círculo */
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fad623;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;

    /* Flexbox para centrar contenido */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#ponentes .btn-nav:hover {
    background: #fad623;
    transform: translateY(-50%) scale(1.1);
}

#ponentes .btn-prev {
    left: 15px;
}

#ponentes .btn-next {
    right: 15px;
}

#ponentes .arrow {
    width: 12px;
    height: 12px;
    border-top: 3px solid #fad623;
    border-right: 3px solid #fad623;
    transition: border-color 0.3s;
}

#ponentes .arrow-left {
    transform: rotate(-135deg);
    margin-left: 4px;
}

#ponentes .arrow-right {
    transform: rotate(45deg);
    margin-right: 4px;
}

#ponentes .btn-nav:hover .arrow {
    border-color: #003351;
}


@media (max-width: 768px) {
    #ponentes .main-container {
        flex-direction: column;
        /* Texto arriba, carrusel abajo */
        height: auto;
        padding: 40px 0;
    }

    #ponentes .text-side {
        width: 100%;
        min-width: unset;
        text-align: center;
        padding: 0 20px;
        margin-bottom: 30px;
        background-color: transparent;
        /* Permitir que se vea el fondo azul */
    }

    #ponentes .carousel-area {
        width: 100%;
        padding: 0 10px;
    }

    #ponentes .slider {
        padding: 20px 0;
        gap: 15px;
        /* Un poco menos de espacio en móvil */
    }

    #ponentes .card {
        min-width: 180px;
        /* Tarjetas ligeramente más pequeñas para que quepan mejor */
        height: 240px;
    }

    /* Botones más pequeños en móvil para no tapar tanto la card */
    #ponentes .btn-nav {
        width: 40px;
        height: 40px;
        z-index: 110;
    }

    #ponentes .btn-prev {
        left: 5px;
    }

    #ponentes .btn-next {
        right: 5px;
    }
}