/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f6f8;
  color: #222;
}

/* CONTENEDOR */
.carta-container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
}

/* HEADER */
.carta-header {
  text-align: center;
  margin-bottom: 30px;
}

.carta-header h1 {
  font-size: 34px;
  margin-bottom: 8px;
}

.carta-header p {
  color: #666;
  font-size: 16px;
}

/* GRID */
.grid-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* TARJETA */
.categoria {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* IMAGEN */
.categoria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.categoria::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.15)
  );
}

/* TEXTO */
.categoria span {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  z-index: 2;
}

/* MÓVIL */
@media (max-width: 480px) {
  .categoria {
    height: 180px;
  }

  .categoria span {
    font-size: 20px;
  }
}
