/* Fondo de la sección */
.conferencias-section {
    background: linear-gradient(135deg, #ffb6b6, #ffdada);
    padding: 300px 20px;
    min-height: 100vh;
    font-family: 'Forma DJR', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conferencias-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* espacio entre texto y logos */
    width: 100%;
}


/* Contenedor de texto */
.texto-conferencias {
    max-width: 800px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-2deg);
}

.texto-conferencias::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid #000;
    border-radius: 20px;
    transform: rotate(2deg);
    z-index: -1;
}

/* Título */
.texto-conferencias h2 {
    font-family: 'Decorya DEMO', cursive;
    font-size: 2.5rem;
    color: #FF5470;
    margin-bottom: 20px;
}

/* Párrafos */
.texto-conferencias p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
}

/* Cita */
.texto-conferencias p:last-child {
    margin-top: 30px;
    font-style: italic;
    color: #FF5470;
    font-weight: bold;
}

.logos-instituciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.logo-comic {
    width: 120px;
    height: 120px;
    border: 3px solid black;
    border-radius: 15px;
    transform: rotate(-2deg);
    box-shadow: 5px 5px 0px #000;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: white;
    padding: 10px;
}

.logo-comic:hover {
    transform: rotate(2deg) scale(1.05);
}

.logo-comic img {
    width: 100%;
    height: auto;
}

/* Modal Comic */
.modal-comic {
    display: none;
    position: fixed;
    z-index: 10000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content-comic {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border: 3px solid black;
    border-radius: 15px;
    max-width: 900px;
    transform: rotate(-2deg);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 3rem;
    right: 15px;
    font-size: 3rem;
    font-weight: bold;
    color: #FF5470;
    cursor: pointer;
    border: 1 solid #ff5470;
}

.slider-comic {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
}

.slider-comic img {
    width: 100%;
    max-width: 600px;
    height: auto;
    scroll-snap-align: center;
    border-radius: 10px;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #000;
}



@keyframes comicZoomIn {
    0% {
        transform: scale(0.7) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(-2deg);
        opacity: 1;
    }
}

.modal-content-comic {
    animation: comicZoomIn 0.4s ease forwards;
}

.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}


.swiper-slide img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #000;
    transform: rotate(-1deg);
}



@media (max-width: 768px) {
    .logos-instituciones {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .logo-comic {
        width: 150px;  /* Aumenta el tamaño */
        height: auto;
        padding: 10px;
    }

    .logo-comic img {
        width: 100%;
        height: auto;
    }

    .slider-comic img {
        max-width: 95%;
    }

    .modal-content-comic {
        margin: 30px auto;
        width: 90%;
    }

    .texto-conferencias {
        padding: 30px 20px;
        max-width: 95%;
    }

    .texto-conferencias p {
        font-size: 1rem;
        text-align: center;
    }

    .texto-conferencias h2 {
        text-align: center;
    }
}

.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #000;
    transform: rotate(-1deg);
}

.swiper-button-next,
.swiper-button-prev {
    color: #FF5470;
    transform: rotate(2deg);
    filter: drop-shadow(2px 2px 0px #000);
}
