@charset "utf-8";
/* CSS Document */

        

       /* Asegurar centrado del contenedor */
.contenedor-principal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Espacio entre elementos */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    justify-content: center; /* Centrar elementos */
}

/* Estilos de los contenedores */
.contenedor {
    background: white;
    /*border-radius: 10px;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.contenedor:hover {
    transform: scale(1.05);
}

/* Imágenes dentro de los contenedores */
.contenedor img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
}

/* Texto de los contenedores */
.contenedor h5 {
    font-size: 1rem;
    margin: 10px 0;
    color: #333;
	font-family: 'Poppins', sans-serif;
}

.contenedor p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

/* Botón dentro del contenedor */
.boton {
    display: inline-block;
    padding: 10px 10px;
    background: #1D4B1D;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.boton:hover {
    background: #f5a425;
}

/* Ajustes para pantallas grandes (4 columnas) */
@media (min-width: 1024px) {
    .contenedor-principal {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ajustes para pantallas medianas (2 columnas) */
@media (max-width: 1023px) {
    .contenedor-principal {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para dispositivos móviles (1 columna) */
@media (max-width: 600px) {
    .contenedor-principal {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    /*border: 1px solid #888;*/
    width: 80%;
    max-width: 950px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

