/*base.css | Estilo principa, de categorías*/

/* ================================ Fondo y tipografía general ================================ */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: url('../../../media/carta/carta.avif') no-repeat center center fixed;
}

/* ================================ CONTENEDOR PRINCIPAL ================================ */
.section-scroll {
  background-position: top;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px;
  margin-bottom: 60px;
}
/* section-scroll de categorías */
.categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* Tarjeta de categoría */
.categoria {
  background: linear-gradient(145deg, var(--negro), #111);
  color: var(--blanco);
  border-radius: 14px;
  padding: 30px 25px;
  text-decoration: none;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.categoria:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.categoria img {
  display: inline-block;
  width: 130px;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

/* efecto al pasar el mouse */
.categoria:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px var(--rojo)) brightness(1.2);
  box-shadow: 0 0 20px var(--rojo);
}
/* ================================ RESPONSIVE ================================*/
/* Pantallas menores a 1024px (Movil) */
@media (max-width: 1024px) {
  .categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .categoria {
    position: relative;
    padding: 15px 20px;
    font-size: 1.4rem;
    border-radius: 0 0 14px 14px;
    flex-direction: row;
    gap: 10px;
    box-shadow: 0 2px 8px #822626;
  }
  /* borde inferior sutil estilo sombra */
  .categoria::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 14px 14px;
    box-shadow: inset 0 -6px 8px rgba(255,0,0,0.4);
    pointer-events: none;
  }
  .categoria img {
    display: none;
  }
}

/* Pantallas mayores a 1024px (PC) */
@media (min-width: 1024px) {
  body {
    height: auto;
    display: block;
  }
  .section-scroll {
    overflow-y: visible;
    height: auto;
    margin-bottom: 0;
    padding-bottom: 80px;
  }
}
