/* ═══════════════════════════════════════════
   PLANET WAFFLE — menu.css
═══════════════════════════════════════════ */

:root {
  --bg:       #0A1235;
  --bg-mid:   #0D1640;
  --bg-card:  #111E58;
  --cloud:    #172066;
  --gold:     #F7C229;
  --gold-dim: rgba(247,194,41,0.18);
  --white:    #ffffff;
  --gray:     rgba(255,255,255,0.65);
  --radius:   20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--white); overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { cursor: pointer; }

.gold { color: var(--gold); }

/* ════════════════════════════════════════════
   STARFIELD
════════════════════════════════════════════ */
#stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star-dot {
  position: absolute;
  border-radius: 50%;
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--lo, 0.2); transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.6); }
}
.sparkle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  animation: sparklePulse var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes sparklePulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50%       { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

/* ════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes floatAlt {
  0%, 100% { transform: translateY(-6px); }
  50%       { transform: translateY(8px); }
}
@keyframes rocketBob {
  0%, 100% { transform: translateY(0) rotate(-35deg); }
  50%       { transform: translateY(-10px) rotate(-35deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header unificado — estilos en styles.css */

/* ════════════════════════════════════════════
   HERO DEL MENÚ
════════════════════════════════════════════ */
.menu-hero {
  position: relative;
  z-index: 1;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

.menu-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(247,194,41,0.12) 0%, transparent 70%);
}

.menu-hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.7s ease both;
}

.menu-hero-tag {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.menu-hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.menu-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
}

/* Decorativos (hero) */
.deco-planet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.deco-planet--purple {
  width: 90px; height: 90px;
  top: 12%; left: 4%;
  background: radial-gradient(circle at 35% 30%, #be80e8, #4A235A);
  box-shadow: 0 0 24px rgba(190,128,232,0.3);
  animation: float 6s ease-in-out infinite;
}
.deco-planet--blue {
  width: 70px; height: 70px;
  top: 10%; right: 6%;
  background: radial-gradient(circle at 35% 30%, #5ab4ee, #1A5276);
  box-shadow: 0 0 20px rgba(90,180,238,0.3);
  animation: floatAlt 7s ease-in-out infinite;
}
.planet-ring {
  position: absolute;
  width: 145%; height: 30%;
  top: 35%; left: -22%;
  border: 2.5px solid rgba(247,194,41,0.55);
  border-radius: 50%;
  transform: rotateX(68deg);
}
.deco-planet--blue .planet-ring { border-color: rgba(180,220,255,0.5); }

.deco-rocket {
  position: absolute;
  font-size: 3.8rem;
  bottom: 10%; left: 5%;
  z-index: 1;
  pointer-events: none;
  animation: rocketBob 3.5s ease-in-out infinite;
}
.deco-comet {
  position: absolute;
  top: 20%; right: 8%;
  width: 90px; height: 6px;
  border-radius: 50px;
  background: linear-gradient(to right, transparent, #FF8C00, #FFD700);
  transform: rotate(28deg);
  pointer-events: none;
  z-index: 1;
}
.deco-comet::before {
  content: '';
  position: absolute;
  right: -3px; top: -11px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD700 30%, #FF4500);
}

/* ════════════════════════════════════════════
   FILTROS
════════════════════════════════════════════ */
.filters-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 1rem 2.5rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.filter-btn {
  background: var(--bg-card);
  color: var(--gray);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.22s;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--white);
}
.filter-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ════════════════════════════════════════════
   GRID DE MENÚ
════════════════════════════════════════════ */
.menu-main {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ── Tarjeta ── */
.menu-card {
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(247,194,41,0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  animation: cardIn 0.5s ease both;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 0 1.5px var(--gold-dim);
  border-color: rgba(247,194,41,0.35);
}
.card--combo {
  border-color: rgba(247,194,41,0.35);
  background: linear-gradient(145deg, #111E58, #1a2870);
}
.card--combo .card-img-box {
  background: linear-gradient(135deg, #1a2870 0%, #0D1640 100%);
}
.combo-placeholder {
  font-size: 3.2rem;
  letter-spacing: 0.3rem;
  filter: drop-shadow(0 4px 16px rgba(247,194,41,0.35));
  user-select: none;
}

/* Imagen */
.card-img-box {
  position: relative;
  height: 200px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s;
}
.menu-card:hover .card-img-box img { transform: scale(1.06); }


/* Badge */
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Fredoka One', cursive;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}
.badge--red    { background: #E63946; color: #fff; }
.badge--purple { background: #6B3FA0; color: #fff; }
.badge--blue   { background: #2E7BC4; color: #fff; }
.badge--orange { background: #FF6B35; color: #fff; }

/* Precio sobre la imagen */
.card-price {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--bg);
  color: var(--gold);
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 2px solid var(--gold);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* Lista de specs / personalizables */
.card-specs {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.card-specs li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
}
.card-specs .spec-label {
  display: inline-block;
  font-family: 'Fredoka One', cursive;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-right: 0.4rem;
  text-transform: uppercase;
}

/* Bloque "Personalizable" — encabezado dorado */
.card-custom-title {
  font-family: 'Fredoka One', cursive;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Opcional con upcharge */
.card-optional {
  margin-top: 0.4rem;
  padding: 0.55rem 0.8rem;
  background: rgba(247,194,41,0.08);
  border: 1px dashed rgba(247,194,41,0.4);
  border-radius: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.card-optional strong {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.card-extra {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Fredoka One', cursive;
  font-size: 0.78rem;
  padding: 0.1rem 0.55rem;
  border-radius: 50px;
  margin-left: 0.3rem;
  letter-spacing: 0.04em;
}

/* Body */
.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.2;
}

.card-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.55;
  flex: 1;
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  background: rgba(247,194,41,0.12);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  border: 1px solid rgba(247,194,41,0.25);
}

/* Botón de tarjeta */
.card-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.45rem;
  margin-top: auto;
}
.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.55rem 0.4rem;
  border-radius: 50px;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  min-width: 0;
}
.card-btn:hover { opacity: 0.85; transform: scale(1.03); }
.card-btn--uber  { background: #ffffff; }
.card-btn--rappi { background: #ffffff; }
.card-btn--didi  { background: #ffffff; grid-column: 1 / -1; }
.card-btn-logo   { height: 20px; width: auto; display: block; }

/* Estado vacío */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray);
}
.empty-state span { font-size: 4rem; display: block; margin-bottom: 1rem; }
.empty-state p    { font-size: 1.1rem; }

/* ════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 3rem auto 0;
  background: linear-gradient(135deg, #111E58 0%, #1a2870 100%);
  border: 1.5px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 32px rgba(0,0,0,0.25);
}

.cta-inner { max-width: 600px; margin: 0 auto; }

.cta-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.cta-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botones plataforma */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.2s;
  min-width: 180px;
}
.btn:hover { opacity: 0.88; transform: scale(1.04); }
.btn-uber  { background: #fff; color: #0A1235; }
.btn-rappi { background: #fff; color: #0A1235; }
.btn-logo  { height: 28px; width: auto; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.menu-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--gray);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-home-link {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.footer-home-link:hover { opacity: 0.75; }

/* ════════════════════════════════════════════
   WHATSAPP FAB
════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-fab-tooltip {
  position: absolute;
  right: 68px;
  background: #111E58;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--gold-dim);
}
.whatsapp-fab:hover .whatsapp-fab-tooltip { opacity: 1; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 700px) {
  .menu-grid { grid-template-columns: 1fr; }
  .deco-rocket { font-size: 2.8rem; bottom: 4%; left: 3%; }
  .deco-planet--purple { width: 60px; height: 60px; }
  .deco-planet--blue   { width: 48px; height: 48px; }
}

@media (max-width: 420px) {
  .menu-hero { padding: 7rem 1rem 3.5rem; }
  .cta-btns  { flex-direction: column; align-items: center; }
  .btn       { width: 100%; max-width: 280px; }
  .card-btns { flex-direction: column; }
  .card-btn  { width: 100%; }
}
