

.intro {

    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 90px auto 50px;
    width: 70%;

}

.intro h1 {
 
            font-family: 'Montserrat', sans-serif;
            
        
    font-style: italic;
    color:#ffb300;
    font-size: 3rem;
    font-weight: 800;
}

.intro p {
    
    text-align: center;
    font-weight: 400;
    color:#ffb300;
    font-size: 1.1rem;
    color: #ffffff;

}



.contenedor-galeria{

    width: 70%;
    margin: 0 auto 40px auto; 
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fuerza 3 columnas */
    gap: 30px;
    justify-items: center; 
}


.cursos-port {
    background-color: #133800;
    width: 80%; 
    height: 400px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.cursos-port > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.animacion {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    background: rgba(0, 0, 0, 0.906);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: transform 0.3s ease, background 0.3s ease;
}

.animacion img {
    width: 100px;
    margin-bottom: 20px;
}

.animacion p {
    text-decoration: none;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.animacion h1 {
    font-style: italic;
    font-weight: 900;
    text-decoration: none;
    color: #ffffff;
}


.cursos-port h2{

    text-align: center;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

.cursos-port:hover .animacion {
    transform: scale(1.01);
}

.cursos-port:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1024px) {
    .contenedor-galeria {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .contenedor-galeria {
        grid-template-columns: repeat(1, 1fr); /* 1 columna en pantallas pequeñas */
        width: 95%;
    }

    .cursos-port {
        width: 100%; /* Que ocupe todo el ancho disponible */
        height: auto;
    }
}
