/* ======================================================== */
/*               BOTONERA INFORMACIÓN MUNICIPAL             */
/* ======================================================== */

/* Contenedor: Alineación  de las tarjetas */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important; /* Espaciado entre tarjetas */
    width: 100% !important;
    max-width: 1240px !important; 
    margin: 20px auto 40px auto !important;
}

/* Items: Tamaño calculado para 6 columnas en pantallas grandes */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item {
    display: flex !important; /* Permitimos que el hijo ocupe todo el alto disponible */
    flex: 1 1 calc(16.66% - 20px) !important; 
    max-width: 180px !important; 
    min-width: 145px !important; 
    margin: 0 !important;
}

/*  Estilo de la tarjeta */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item-inner {
    border-radius: 8px !important; 
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important; /* Apila la imagen arriba y el texto abajo */
    width: 100% !important;
    height: 100% !important; /*Fuerza a que todas midan lo mismo en la misma fila */
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    border: none !important; 
}

/* El contenedor de la Imagen/Icono */
body .view-id-botonera_informacion_municipal .views-field-field-imagen {
    width: 100% !important;
    height: 120px !important;
    overflow: hidden !important;
    display: block !important;
}

body .view-id-botonera_informacion_municipal .views-field-field-imagen img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /*Estira la imagen de fondo de borde a borde */
    padding: 0 !important; 
    box-sizing: border-box !important;
}

/* Estructura general de la zona de texto  */
body .view-id-botonera_informacion_municipal .views-field-title,
body .view-id-botonera_informacion_municipal .views-field-title-1 {
    padding: 14px 10px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 1 !important; /*  Rellena el espacio para que el fondo llegue hasta abajo uniformemente */
}

/* Estilo común de las letras  */
body .view-id-botonera_informacion_municipal .views-field-title a,
body .view-id-botonera_informacion_municipal .views-field-title-1 a,
body .view-id-botonera_informacion_municipal .views-field-title span {
    color: #ffffff !important; /* Texto blanco como pedías */
    font-family: 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important; /* Todo en mayúsculas */
    line-height: 1.3 !important;
    text-decoration: none !important;
    display: block !important;
}

/* -------------------------------------------------------- */
/* LÓGICA DE COLORES ALTERNOS (PARES E IMPARES)            */
/* -------------------------------------------------------- */

/* BOTONES IMPARES (1, 3, 5, 7...): Morado un poco más oscuro */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(odd) .views-field-title,
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(odd) .views-field-title-1 {
    background-color: #8b629a !important; /* Versión elegante y oscura del morado original */
}

/* BOTONES PARES (2, 4, 6, 8...): Azul un poco más oscuro */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(even) .views-field-title,
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(even) .views-field-title-1 {
    background-color: #5190a4 !important; /* Versión elegante y oscura del azul original */
}

/* Hover */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item-inner:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   EFECTO DE CARGA EN ESCALERA (STAGGERED ANIMATION) 
   Aparecen secuencialmente de abajo hacia arriba al cargar la página
   ========================================================================== */
/* Definimos la animación maestro */
@keyframes entradaEscalera {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Empieza 20px más abajo */
    }
    100% {
        opacity: 1;
        transform: translateY(0);    /* Termina en su posición original */
    }
}

/* Aplicamos la animación base a todos los elementos del grid */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item {
    animation-name: entradaEscalera;
    animation-duration: 0.6s;              /* Duración del movimiento de cada tarjeta */
    animation-timing-function: ease-out;   /* Frenado suave al llegar a su sitio */
    animation-fill-mode: backwards;        /* [CRÍTICO] Mantiene la tarjeta invisible hasta que empiece su delay */
}

/* Retraso escalonado botón por botón (de 1 a 30) */
¡Oído cocina, socio! Toda la razón del mundo. Si los renders o los iconos de Drupal tardan un pelín más de la cuenta en cargar debido al servidor o a la caché, arrancar la animación en 0.1s puede hacer que el botón aparezca en blanco antes de que la imagen esté lista.

Subiendo el listón para que empiece en 0.4s y vaya escalando de 0.1s en 0.1s (0.4s, 0.5s, 0.6s...), le damos un colchón de tiempo perfecto al navegador para que descargue los recursos. Así, cuando el botón haga su entrada triunfal hacia arriba, la imagen ya estará completamente renderizada y el efecto quedará fino, fino.

Aquí tienes el bloque completo con los nuevos tiempos calculados para los 30 elementos:

CSS
/* ==========================================================================
   EFECTO DE CARGA EN ESCALERA (STAGGERED ANIMATION) - RETRASO DE SEGURIDAD
   Aparecen secuencialmente de abajo hacia arriba dando tiempo a que carguen las imágenes
   ========================================================================== */

/* 1. Definimos la animación maestro */
@keyframes entradaEscalera {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Empieza 20px más abajo */
    }
    100% {
        opacity: 1;
        transform: translateY(0);    /* Termina en su posición original */
    }
}

/* 2. Aplicamos la animación base a todos los elementos del grid */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item {
    animation-name: entradaEscalera;
    animation-duration: 0.6s;              /* Duración del movimiento de cada tarjeta */
    animation-timing-function: ease-out;   /* Frenado suave al llegar a su sitio */
    animation-fill-mode: backwards;        /* [CRÍTICO] Mantiene la tarjeta invisible hasta que empiece su delay */
}

/* 3. Retraso escalonado botón por botón (Iniciando en 0.4s para asegurar la carga de la imagen) */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(1)  { animation-delay: 0.4s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(2)  { animation-delay: 0.5s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(3)  { animation-delay: 0.6s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(4)  { animation-delay: 0.7s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(5)  { animation-delay: 0.8s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(6)  { animation-delay: 0.9s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(7)  { animation-delay: 1.0s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(8)  { animation-delay: 1.1s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(9)  { animation-delay: 1.2s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(10) { animation-delay: 1.3s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(11) { animation-delay: 1.4s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(12) { animation-delay: 1.5s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(13) { animation-delay: 1.6s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(14) { animation-delay: 1.7s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(15) { animation-delay: 1.8s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(16) { animation-delay: 1.9s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(17) { animation-delay: 2.0s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(18) { animation-delay: 2.1s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(19) { animation-delay: 2.2s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(20) { animation-delay: 2.3s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(21) { animation-delay: 2.4s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(22) { animation-delay: 2.5s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(23) { animation-delay: 2.6s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(24) { animation-delay: 2.7s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(25) { animation-delay: 2.8s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(26) { animation-delay: 2.9s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(27) { animation-delay: 3.0s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(28) { animation-delay: 3.1s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(29) { animation-delay: 3.2s; }
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(3

/* Red de seguridad por si en un futuro lejano superan los 30 elementos:
   Hacemos que aparezcan todos a los 3.1 segundos para que no se queden invisibles */
body .view-id-botonera_informacion_municipal .views-view-responsive-grid__item:nth-child(n+31) { 
    animation-delay: 3.1s; 
}

