/* CONTENEDOR GENERAL */
.menus-premium {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
}

/* TARJETA RESTAURANTE */
.restaurante-card h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* CATEGORÍA */
.categoria {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column; /* 🔥 necesario para alinear labels */
}

/* NOMBRE CATEGORÍA */
.nombre-categoria {
  font-size: 1.5em;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

/* LABEL PRECIOS (Pulga | Bocadillo) */
.linea-precios-categoria,
.labels {
  align-self: flex-end; /* 🔥 mueve el bloque a la derecha */
  text-align: right;
  font-weight: bold;
  font-size: 0.95em;
  margin-bottom: 10px;
  color: #444;

  display: flex;              /* 🔥 mejora visual */
  justify-content: flex-end;
  gap: 15px;                 /* separación entre etiquetas */
}

/* LISTADO DE PLATOS */
.platos-listado .plato {
  margin-bottom: 12px;
}

/* PRIMERA LÍNEA */
.primera-linea,
.linea1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* 🔥 clave para móvil */
  gap: 10px;
}

/* NOMBRE DEL PLATO */
.nombre-plato,
.linea1 span:first-child {
  text-align: left;
  flex: 1;
  font-weight: bold;
}

/* PRECIO */
.precio,
.linea1 span:last-child {
  text-align: right;
  white-space: nowrap; /* 🔥 evita salto de línea */
  font-weight: bold;
}

/* SEGUNDA LÍNEA (INGREDIENTES) */
.segunda-linea,
.linea2 {
  font-size: 0.9em;
  color: #666;
  margin-top: 2px;
  text-align: left;
}

/* SEPARADOR SUAVE ENTRE PLATOS */
.plato {
  border-bottom: 1px dotted #ddd;
  padding-bottom: 6px;
}

/* BOTÓN GUARDAR FRONTEND */
#guardar-menu-frontend {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#guardar-menu-frontend:hover {
  background: #218838;
}

/* FILTROS (SI LOS USAS) */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.filtro {
  padding: 6px 12px;
  background: #000;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  border: none;
}

.filtro:hover {
  background: #444;
}

/* -------------------- */
/* 📱 RESPONSIVE MÓVIL */
/* -------------------- */

@media (max-width: 600px) {

  .menus-premium {
    padding: 10px;
  }

  .nombre-categoria {
    font-size: 1.3em;
  }

  .primera-linea,
  .linea1 {
    flex-direction: row;
  }

  .precio {
    font-size: 0.95em;
  }

  .segunda-linea {
    font-size: 0.85em;
  }

  .labels {
    gap: 10px; /* menos espacio en móvil */
    font-size: 0.85em;
  }

}

/* -------------------- */
/* 🎨 COLORES POR CATEGORÍA */
/* -------------------- */

.categoria-bocadillos .nombre-categoria {
  color: #3498db;
}

.categoria-papas-locas .nombre-categoria {
  color: #e67e22;
}

.categoria-hamburguesas .nombre-categoria {
  color: #2ecc71;
}

.categoria-bebidas .nombre-categoria {
  color: #9b59b6;
}

.categoria-postres .nombre-categoria {
  color: #e74c3c;
}