body {
  /*
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  margin: 0;
  padding: 0;
  color: #111;
  */
margin: 0;
  padding: 0;
  background: #fafafa;         /* igual que index */
  color: #333;                  /* igual que index */
  font-family: 'Poppins', sans-serif;  /* igual que index */

}




/*
 HEADER 
.main-header {
  position: relative;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}*/
.header-content { 

  max-width: 1200px;   /* limita el ancho del header */
  margin: 0 auto;      /* centra horizontalmente */
  padding: 0 20px;     /* espacio a los lados */
  box-sizing: border-box;
}  
.nav-main,
.nav-categories {
  max-width: 1200px;   /* igual al header-content */
  margin: 15px auto;   /* agrega márgenes blancos a los costados */
  border-radius: 8px;  /* opcional, para que coincida con el estilo */
}


/* Barra superior */
/*
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(135deg,#e0e0e0,#f5f5f5);
  flex-wrap: wrap;
  max-width: 1600px;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

*/




.header-top .logo { height: 65px; }

/*
.search-wrap input {
  padding: 8px 14px 8px 30px;
  border-radius: 25px;
  border: 1px solid #ccc;
}
.social-icons img {
  width: 50px; height: 50px;
  margin-left: 15px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.social-icons img:hover { opacity: 0.8; }

*/

/* Nav principal */
/*
.nav-main {
  display: flex;
  justify-content: space-around;
  background: #2d2d2d;
  padding: 12px 0;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  max-width: 1600px;
}
.nav-main .nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}
.nav-main .nav-btn img {
  width: 50px; height: 50px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.nav-main .nav-btn.blog img { width: 100px; height: 100px; }
.nav-main .nav-btn:hover img {
  filter: brightness(0) saturate(100%) invert(72%) sepia(20%) saturate(1500%) hue-rotate(360deg) brightness(95%) contrast(95%);
  transform: scale(1.1);
}
*/

/* Categorías */
/*
.nav-categories {
  background: #d4a93f;
  margin: 0 auto 25px auto;
  border-radius: 8px;
  max-width: 1600px;
}
.nav-categories ul {
  display: flex;
  justify-content: space-around;
  margin: 0; padding: 12px 0;
  list-style: none;
}
.nav-categories li {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  cursor: pointer;
  transition: color .3s;
}
.nav-categories li:hover { color: #000; }
*/

/* Hero */
.hero {
  background: url('https://source.unsplash.com/1600x600/?pizza,restaurant') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}



/* Contenedor principal del menú */.menu-container {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
}




.category-header {
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-size: 1.4rem;
  background: #000;
  color: #fff;
  border: 2px solid #d4af37;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: .5rem;
  transition: all 0.3s ease;
}

.category-header i {
  margin-right: 10px;
  color: #d4af37;
}

.category-header:hover {
  background: #222;
  color: #d4af37;
}

.category-content.open {
  max-height: 650px;   /* antes 500px → ahora 30% más */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #111;
}


/*.category-content.open {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #111;
}*/

/* Scrollbar Chrome/Edge/Safari */
.category-content.open::-webkit-scrollbar {
  width: 8px;
}
.category-content.open::-webkit-scrollbar-track {
  background: #111;
}
.category-content.open::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 10px;
}

.subcat-header {
  width: 100%;
  text-align: left;
  padding: .8rem 1rem;
  font-size: 1.2rem;
  background: #1c1c1c;
  color: #fff;
  border: none;
  border-left: 4px solid #d4af37;
  border-radius: 8px;
  cursor: pointer;
  margin: .3rem 0;
  transition: background 0.3s ease;
}

.subcat-header i {
  margin-right: 10px;
  transition: transform 0.3s ease;
  color: #d4af37;
}

.subcat-header:hover {
  background: #333;
}

/* Subcategorías ocultas por defecto */
.subcat-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* Subcategorías cuando están abiertas */
.subcat-content.open {
  /* no ponemos max-height fijo aquí, el JS lo manejará dinámicamente */
  overflow: hidden;
}




/* Scrollbar Chrome/Edge/Safari */
/*.subcat-content.open::-webkit-scrollbar {
  width: 8px;
}*/
.subcat-content.open::-webkit-scrollbar-track {
  background: #111;
}
.subcat-content.open::-webkit-scrollbar-thumb {
  background-color: #d4af37;
  border-radius: 10px;
}

.subcat-header.open i {
  transform: rotate(90deg);
}

.menu-item-card {
  background: #fff;
  color: #000;
  padding: 1rem;
  margin: .5rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-left: 5px solid #d4af37;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-item-info h3 {
  margin: 0 0 5px 0;
}

.price {
  background: #d4af37;
  color: #000;
  font-weight: bold;
  padding: .3rem .6rem;
  border-radius: 8px;
}


/* === Modern square cards for menu items ===
   Reemplaza cualquier regla previa para article.menu-item y article.menu-item img
*/
:root{
  --card-size: 260px;    /* ajusta tamaño de los cuadrados */
  --card-radius: 12px;
  --gold: #d4af37;
  --card-bg: #ffffff;
  --card-text: #111;
  --muted: #555;
}

/* Contenedor tipo tarjeta, cuadrado y moderno */
article.menu-item {
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: var(--card-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: var(--card-size);
  min-width: var(--card-size);
  height: var(--card-size);        /* hace la card cuadrada */
  position: relative;
  transition: transform .22s cubic-bezier(.2,.9,.3,1), box-shadow .22s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Imagen obligatoria: ocupa ~60% de la altura del cuadrado */
article.menu-item img {
  width: 100%;
  height: 60%;
  object-fit: cover;
  display: block;
  background: #ddd; /* placeholder visual por si falta imagen */
}

/* Cuerpo con título/descr/price ocupa el 40% inferior */
.menu-item-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 40%;
  box-sizing: border-box;
}

/* Título y descripción */
.menu-item-body h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--card-text);
  line-height: 1.05;
}
.menu-item-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  /* cortar texto si es muy largo */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Precio elegante como "pill" */
article.menu-item .price {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  align-self: flex-start;
  margin-top: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


/* === Pizza size prices: 3 ovals in one horizontal row === */
article.menu-item .price-pills{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;   /* quedan alineados a la izquierda dentro de la card */
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;            /* CLAVE: evita que se bajen uno debajo del otro */
  margin-top: 6px;
}

article.menu-item .price-pill{
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;         /* óvalo */
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;          /* evita salto dentro del óvalo */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}




/* Hover / focus effect */
article.menu-item:hover,
article.menu-item:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 48px rgba(0,0,0,0.24);
  cursor: pointer;
}

/* Móvil / pequeño ancho: las cards ocupan ancho visible (scroll horizontal) */




/* Distribución de los ítems en filas */
.items-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Info text (notes) in white */
.category-note{
  color: #fff !important;
}




/* Contenedor principal del menú */
.menu-container {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  background: #111;   /* fondo oscuro solo en el contenedor */
  border-radius: 12px;
  box-sizing: border-box;
}


/* === Responsive ajustes para menu-container === */
@media (max-width: 768px) {
  .menu-container {
    width: 95%;       /* más ancho en pantallas pequeñas */
    margin: 10px auto;
    padding: 15px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .menu-container {
    width: 100%;      /* ocupa todo el ancho en móviles muy chicos */
    margin: 0;
    padding: 10px;
    border-radius: 0; /* sin bordes redondeados en móviles */
  }
}

/* Ajustes de header para que se vea igual que en index */
.header-top {
  padding: 10px 20px;
}

.nav-main {
  padding: 8px 0;
}
.nav-categories {
  max-width: 1200px;
  margin: 0 auto 20px;
  border-radius: 8px;

}
.nav-categories {          /* su barra tiene un poco más de margen abajo en index */
  margin-bottom: 8px;
}
