body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}
footer {
    width: 80%;
    margin: 40px auto 20px auto;
    background: #222;
    color: #fff;
    padding: 16px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95em;
}
.workload_item{
    float: left;
    margin: 10px
}
header {
    margin: 40px auto 0 auto;
    width: 40%;
    color: #fff;
    align-items: center;
    justify-content: center;
    text-align: center;
}
header img {
    width: 90%;
    height: 90%;
    object-fit: cover;   /* Hace que la imagen llene todo el header */
}


@media (max-width: 900px) {
    footer {
        width: 95%;
    }
}

/* === BLOQUE PRINCIPAL DE CATEGORÍAS === */
.categoria {
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  background-color: #fafafa;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* === TÍTULO DE CATEGORÍA === */
.categoria-nombre {
    margin: auto;
  display: flex;
  text-align: left;
  font-size: 1.7em;
  margin-bottom: 24px;
  font-weight: 700;
  width: 100%;
  text-transform: uppercase;
  color: #2c2c2c;
  letter-spacing: 1px;
  border: 2px solid #e5e5e5;
  background-color: #a33;
  color: #ddd;
  vertical-align: middle;
  padding: 5px;;
}

/* === TABLA DE ELEMENTOS === */
.categoria-tabla {
  display: grid;
  margin: auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; /* separación entre columnas y filas */
  width: 95%;
  box-sizing: border-box;
}

/* === CADA ELEMENTO (NOMBRE + PRECIO) === */
.col {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.col:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === NOMBRE DEL PLATO === */
.elemento {
  text-align: left;
  font-size: 1em;
  color: #222;
  flex: 1;
  font-family: "Poppins", sans-serif;
}

/* === PRECIO === */
.precio {
  text-align: right;
  font-weight: 700;
  color: #000;
  margin-left: 12px;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
}

/* === EFECTOS GLOBALES === */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: #f7f7f7;
  color: #333;
}

.container {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
}

/* === RESPONSIVE DESIGN === */

/* 📱 Pantallas pequeñas (móviles) */
@media (max-width: 600px) {
  .categoria {
    padding: 16px;
    border-radius: 10px;
  }

  .categoria-nombre {
    font-size: 1.4em;
    margin-bottom: 16px;
  }

  .categoria-tabla {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .col {
    padding: 10px 12px;
  }

  .elemento {
    font-size: 0.95em;
  }

  .precio {
    font-size: 0.95em;
  }
}

/* 💻 Pantallas medianas (tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
  .categoria-tabla {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .categoria-nombre {
    font-size: 1.5em;
  }
}

/* 🖥️ Pantallas grandes (escritorio) */
@media (min-width: 1025px) {
  .categoria-tabla {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
