/* ===========================
   Reset CSS
=========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
   Variables CSS
=========================== */
:root {
  --color-primario: #d62828;
  --color-secundario: #f77f00;
  --color-fondo: #fff;
  --color-texto: #333;
  --fuente-principal: 'Poppins', sans-serif;
  --espaciado-base: 1rem;
}

/* ===========================
   Estilos base
=========================== */
body {
  font-family: var(--fuente-principal);
  background: var(--color-fondo);
  color: var(--color-texto);
  padding-bottom: 60px;
}

h1, h2 {
  color: var(--color-primario);
}

img {
  max-width: 100%;
  display: block;
}

body.dark-mode {
  background: #121212;
  color: #eee;
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3 {
  color: var(--color-secundario);
}

body.dark-mode .menu-card {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .bottom-nav {
  background: #222;
}

body.dark-mode .bottom-nav__item {
  color: #ddd;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-primario);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* ===========================
   Menu Card (BEM)
=========================== */
.menu-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: var(--espaciado-base);
  margin-bottom: 1rem;
  text-align: center;
}

.menu-card__imagen {
  border-radius: 8px;
}

.menu-card__nombre {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.menu-card__descripcion {
  font-size: 0.9rem;
  color: #666;
}

.menu-card__precio {
  color: var(--color-primario);
  font-weight: bold;
  margin-top: 0.5rem;
}

.menu-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bottom-nav__item {
  transition: color 0.3s;
}

.sombra {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===========================
   Bandeja Inferior (Bottom Nav)
=========================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primario);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
}

.bottom-nav__item {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.bottom-nav__item:hover {
  color: var(--color-secundario);
}

.boton {
  background: var(--color-primario);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.boton:hover {
  background: var(--color-secundario);
}
