/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 13 2025 | 16:09:36 */
/* =================================================================
   CÓDIGO CSS COMPLETO Y RESPONSIVE PARA CUADRÍCULA DE CATEGORÍAS
   ================================================================= */

/* --- 1. Definición de la Cuadrícula (Layout) --- */
.grid-subcategorias-visual {
    display: grid;
    gap: 20px; /* Espacio entre los elementos */
    margin: 20px 0 40px 0;
    padding: 0;
    list-style: none;

    /* -- Comportamiento en Móvil (por defecto) -- */
    grid-template-columns: repeat(2, 1fr); /* Muestra 2 columnas en móvil */
}

/* -- Adaptación para Tablets -- */
@media (min-width: 768px) {
    .grid-subcategorias-visual {
        grid-template-columns: repeat(3, 1fr); /* Muestra 3 columnas en tablets y escritorio */
    }
}

/* --- 2. Estilos de los Elementos (Enlaces, Imágenes y Títulos) --- */
.grid-subcategorias-visual a {
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.grid-subcategorias-visual a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.grid-subcategorias-visual img {
    /* Mantiene la proporción cuadrada y la nitidez */
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.grid-subcategorias-visual h3 {
    font-size: 1.1em;
    text-align: center;
    margin: 0;
    padding: 15px 10px;
    background-color: #f9f9f9;
    width: 100%;
    margin-top: auto; /* Empuja el título abajo si hay espacio extra */
}

.grid-subcategorias-visual a:hover h3 {
    background-color: #e9e9e9; /* Un gris un poco más oscuro */
    transition: background-color 0.3s ease;
}