/*
Theme Name: Km 0 Bar Café
Theme URI: https://kilometro-cero.lovable.app
Author: Km 0 Bar · Café
Description: Tema personalizado para el menú digital de Km 0 Bar · Café
Version: 1.0
Text Domain: km0-bar
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --fg: #f2f2f2;
  --card: #171717;
  --muted: #242424;
  --muted-fg: #999;
  --primary: #e53e3e;
  --primary-glow: rgba(229, 62, 62, 0.3);
  --secondary: #e89830;
  --border: #2e2e2e;
  --whatsapp: #25d366;
  --radius: 0.75rem;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===== LAYOUT ===== */
.site-wrapper {
  max-width: 672px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ===== HERO ===== */
.menu-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1.5rem;
}

.menu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(229, 62, 62, 0.1), var(--bg) 70%);
  pointer-events: none;
}

.menu-hero img {
  position: relative;
  z-index: 10;
  width: 12rem;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  margin-bottom: 1rem;
}

.menu-hero h1 {
  position: relative;
  z-index: 10;
  font-size: 2.25rem;
  letter-spacing: 0.2em;
  text-shadow: 0 0 20px rgba(229, 62, 62, 0.5);
}

.menu-hero .subtitle {
  position: relative;
  z-index: 10;
  color: var(--secondary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.3em;
  margin-top: 0.25rem;
}

.menu-hero .divider {
  position: relative;
  z-index: 10;
  margin-top: 1rem;
  height: 1px;
  width: 8rem;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* ===== ACCORDION / MENU SECTIONS ===== */
.menu-section {
  padding: 0.5rem 1rem;
}

.menu-group {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background-color 0.3s, border-color 0.3s;
}

.menu-group.is-open {
  background-color: rgba(229, 62, 62, 0.08);
  border-color: rgba(229, 62, 62, 0.2);
}

.menu-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem;
  cursor: pointer;
  user-select: none;
}

.menu-group-header:hover .group-title {
  color: var(--primary);
}

.menu-group-header .group-icon {
  font-size: 1.875rem;
  margin-right: 0.75rem;
}

.menu-group-header .group-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.menu-group.is-open .group-title {
  color: var(--primary);
}

.menu-group-header .chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
  color: var(--muted-fg);
}

.menu-group.is-open .chevron {
  transform: rotate(180deg);
}

.menu-group-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 0.75rem;
}

.menu-group.is-open .menu-group-content {
  max-height: 2000px;
  padding-bottom: 1rem;
}

/* ===== MENU ITEMS ===== */
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s;
}

.menu-item:hover {
  background-color: rgba(23, 23, 23, 0.6);
}

.menu-item-name {
  color: rgba(242, 242, 242, 0.9);
  font-weight: 500;
  font-size: 0.875rem;
}

.menu-item-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(229, 62, 62, 0.15);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(229, 62, 62, 0.2);
  margin-left: 0.5rem;
}

.menu-item-desc {
  font-size: 11px;
  color: var(--muted-fg);
  margin-top: 2px;
}

.menu-item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.125rem;
  color: var(--secondary);
  white-space: nowrap;
  margin-left: 1rem;
}

.menu-item-price .currency {
  font-size: 10px;
  color: var(--muted-fg);
  margin-left: 2px;
}

.category-note {
  display: inline-block;
  font-size: 10px;
  color: var(--muted-fg);
  background: var(--muted);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

/* ===== GAMES SECTION ===== */
.games-section {
  padding: 1.5rem 1rem 6rem;
}

.games-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  text-align: center;
}

.games-card h2 {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin: 0.75rem 0 0.5rem;
}

.games-card p {
  color: var(--muted-fg);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.games-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.games-tags span {
  background: var(--muted);
  color: var(--fg);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--whatsapp);
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2s ease-in-out infinite;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

.whatsapp-fab svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: white;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
