/* Estilos generales */
.grid-ril {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrar los elementos horizontalmente */
}

.grid-item  {
  width: 50%;
  padding: 0 15px 15px 0;
  box-sizing: border-box;
  opacity: 0; /* Inicialmente oculto */
  transform: translateY(20px); /* Inicialmente desplazado hacia abajo */
  transition: opacity 0.3s, transform 0.3s;
}

.grid-item.trescolumnas {
  width: 33.3%;
}

.grid-item.show {
  opacity: 1; /* Mostrar el elemento */
  transform: translateY(0); /* Sin desplazamiento */
  transition: opacity 0.3s, transform 0.3s;
}

.grid-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #e52420; /* Color de texto inicial */
    transition: color 0.3s;
}

.grid-thumbnail {
    width: 100%; /* Ancho completo de la imagen */
    padding-bottom: 100%;
    position: relative;
}

.grid-thumbnail>div {
    transition: opacity 0.3s;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
}




.grid-title {
    margin-top: 10px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Estilos de hover */
.grid-content:hover {
    color: #444; /* Cambia el color del texto al hacer hover */
}

.grid-thumbnail div:hover {
    opacity: 0.6; /* Hace la imagen un 60% transparente al hacer hover */
}

.div-button {
  margin: 20px;
}

.div-button button {
  cursor: pointer;
}

.lista-categorias-grid {
  text-align: left;
  margin-bottom: 20px !important;
}

.lista-categorias-grid a.active, .lista-categorias-grid a:hover, .lista-categorias-grid a:focus, .lista-categorias-grid a:active {
    background-color: #e52420 !important;
    border: 1px solid #e52410 !important;
    color: #fff !important;
}
.lista-categorias-grid a {
  margin-bottom: 5px;
  display: inline-block;
  padding: 5px 10px !important;
  color: #e52420 !important;
  font-size: 15px !important;
  background-color: #fff !important;
  border: 1px solid #e52410 !important;
  text-transform: uppercase;
}

/* Estilos para dispositivos móviles (tamaño de pantalla máximo de 767px) */
@media screen and (max-width: 767px) {
    .grid-item {
        width: 100%; /* Una columna por fila en dispositivos móviles */
    }

    .grid-item.trescolumnas {
       width: 100%;
       margin-left: 15px;
    }
}
