@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #f4f4f4;
}

.main-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 120px;
    border-radius: 5px;
    margin-bottom: 80px;
}

.description-container {
    margin-bottom: 40px;
}

.description-container h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-align: center;
    color: #c80d0d;
    font-weight: bold;
}

.description-container p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Contenedor para misión, visión y políticas */
.info-flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.info-box {
    flex: 1;
    background-color: #eaeaea;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.info-box h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.info-box p {
    font-size: 1em;
    line-height: 1.4;
}

.info-box:first-of-type, .info-box:last-of-type {
    background-color: rgb(244, 232, 232);
    border: 2px solid #c80d0d;
    box-shadow: 0 0 5px rgb(255, 2, 2);
}

.informacion-taller {
    padding: 20px;
}

.contenido-taller {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 40px;
    flex-wrap: wrap;
}

.contenedor-slider {
    position: relative;
    min-width: 500px;
    height: 500px;
    overflow: hidden;
}

.imagenes-taller {
    display: flex;
    height: 100%;
}

.slide {
    max-width: 500px;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    display: none;
}

.slide.activo {
    display: block;
}

.btn-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 10px;
    cursor: pointer;
    z-index: 10;
}

.btn-slider.previo {
    left: 0;
}

.btn-slider.siguiente {
    right: 0;
}

.texto-taller {
    /* text-align: center; */
    margin-top: 20px;
}

.texto-taller h2 {
    font-size: 1.5rem;
    color: #c80d0d;
}

.texto-taller h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.texto-taller p {
    font-size: 1rem;
    line-height: 1.6;
}

.equipo-trabajo {
    text-align: center;
    padding: 50px 50px;
    background-color: #f8f8f8;
}

.equipo-trabajo h2 {
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.contenedor-imagenes {
    display: flex;
    justify-content: center;
}

.carusel-imagen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    max-width: 1000px;
}

.equipo-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(226, 4, 4, 0.562);
    cursor: pointer;
}

.equipo-img:hover {
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .main-container {
        width: 90%;
        padding: 15px;
        margin-top: 100px; 
        margin-bottom: 60px; 
    }

    .description-container h1 {
        font-size: 2.5em;
    }

    .description-container p {
        font-size: 1.1em; 
    }

    .info-box {
        flex: 1 1 100%; /* Los elementos ocupan el 100% del ancho disponible */
    }

    .informacion-taller {
        flex-direction: column;
        text-align: center;
    }

    .contenido-taller {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    .contenedor-slider {
        min-width: 100%;
        max-width: 100%;
        height: auto;
    }

    .slide {
        max-width: 100%;
        height: 400px;
        object-fit: cover;
    }

    .btn-slider {
        font-size: 1.5rem;
        padding: 5px 8px;
    }

    .texto-taller {
        max-width: 100%;
        text-align: center;
    }

    .texto-taller h2 {
        font-size: 1.2rem;
    }

    .texto-taller h3 {
        font-size: 1.5rem;
    }

    .texto-taller p {
        font-size: 0.95rem;
    }

    .equipo-trabajo {
        padding: 30px 20px;
    }

    .equipo-trabajo h2 {
        font-size: 1.5rem;
    }

    .carusel-imagen {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas por fila */
        gap: 20px;
        padding: 0 10px;
    }

    .equipo-img {
        height: 180px; /* Más pequeño para pantallas chicas */
    }
}

@media screen and (max-width: 700px) {
    .main-container {
        width: 95%;
        padding: 10px;
        margin-top: 100px; 
        margin-bottom: 40px; 
    }

    .description-container h1 {
        font-size: 2em; 
    }

    .description-container p {
        font-size: 1em; 
    }

    .info-flex {
        flex-direction: column;
        gap: 10px;
    }

    .info-box {
        width: 100%; 
    }
}
