/* ----------------------------------------- */
/* BLOQUE: products              */
/* ----------------------------------------- */
.products {
    /* Contenedor principal con ancho máximo */
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* ----------------------------------------- */
/* ELEMENTO: products__grid        */
/* ----------------------------------------- */
.products__grid {
    display: grid;
    /* Espacio entre las tarjetas */
    gap: 1.5rem;
    /* Por defecto (móvil), una columna */
    grid-template-columns: 1fr;
}

/* ----------------------------------------- */
/* ELEMENTO: products__card        */
/* ----------------------------------------- */
.products__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    /* Sombra suave para dar profundidad */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* ----------------------------------------- */
/* ELEMENTO: products__card-image     */
/* ----------------------------------------- */
.products__card-image {
    max-width: 180px;
    /* Ancho controlado para la imagen */
    height: auto;
    margin: 0 auto 1rem auto;
}

/* ----------------------------------------- */
/* ELEMENTO: products__card-title     */
/* ----------------------------------------- */
.products__card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    margin: 0 0 1.5rem 0;
}

/* ----------------------------------------- */
/* ELEMENTO: products__card-button    */
/* ----------------------------------------- */
.products__card-button {
    display: inline-block;
    background-color: var(--green);
    /* Verde similar al de la imagen */
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.products__card-button:hover {
    opacity: .8;
}

/* ----------------------------------------- */
/* MEDIA QUERIES (ENFOQUE MOBILE FIRST) */
/* ----------------------------------------- */

/* Estilos para tablets y pantallas pequeñas (a partir de 600px) */
@media (min-width: 600px) {
    .products__grid {
        /* Dos columnas para tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilos para desktops (a partir de 992px) */
@media (min-width: 992px) {
    .products__grid {
        /* Cuatro columnas para pantallas de escritorio */
        grid-template-columns: repeat(4, 1fr);
    }
}