/* 🔥 RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🍕 ESTILO GENERAL */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #FFF8E1 0%, #FFE082 100%);
  color: #4E342E;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* 🌙 MODO OSCURO PIZZERÍA */
body.dark-mode {
  background: radial-gradient(circle, #3E2723 0%, #1B0000 100%);
  color: #FFEB3B;
}

body.dark-mode header,
body.dark-mode nav,
body.dark-mode section,
body.dark-mode footer {
  background-color: #B71C1C; /* rojo profundo */
  color: #FFF8E1;
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.3);
}

/* 🍕 ENCABEZADO */
header {
  background: linear-gradient(90deg, #E53935, #C62828);
  color: #FFF8E1;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 2.5em;
  letter-spacing: 1px;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

header p {
  color: #FFEB3B;
  font-style: italic;
}

/* LOGO (SIN CAMBIOS) */
.logo {
  width: 80px;
  height: auto;
}

/* 🍕 NAVEGACIÓN */
nav {
  background-color: #43A047;
  text-align: center;
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

nav a {
  color: #FFF8E1;
  text-decoration: none;
  margin: 0 18px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #FFEB3B;
  text-shadow: 0 0 8px #FFEB3B;
}

/* 🍕 SECCIONES */
.section {
  padding: 50px 25px;
  max-width: 1100px;
  margin: auto;
}

/* 🛒 CARRITO */
#carrito {
  background-color: #FFF8E1;
  border: 3px solid #FFEB3B;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFDE7;
  margin: 10px 0;
  padding: 10px;
  border-left: 6px solid #E53935;
  border-radius: 8px;
}

/* 🍕 BOTONES */
button {
  background: linear-gradient(90deg, #FFEB3B, #FFC107);
  color: #4E342E;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

button:hover {
  background: linear-gradient(90deg, #E53935, #C62828);
  color: white;
  transform: scale(1.05);
}

/* 🍕 TARJETAS DE PRODUCTOS */
.menu-item-con-imagen {
  display: flex;
  align-items: center;
  background: #FFFDE7;
  border: 2px solid #FFEB3B;
  border-radius: 12px;
  margin: 18px 0;
  padding: 12px;
  gap: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item-con-imagen:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(255, 235, 59, 0.4);
}

.menu-item-con-imagen img {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #E53935;
}

.menu-item-con-imagen h3 {
  color: #C62828;
  margin-bottom: 5px;
}

.menu-item-con-imagen p {
  color: #4E342E;
}

/* 🗺 MAPA */
.mapa-container iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  border: 3px solid #FFEB3B;
}

/* 🍕 FOOTER */
footer {
  background: linear-gradient(90deg, #E53935, #D32F2F);
  color: #FFF8E1;
  text-align: center;
  padding: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 💬 WHATSAPP (SIN CAMBIOS) */
.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.whatsapp-float {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #43b581; /* verde WhatsApp */
  padding: 10px 15px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.whatsapp-float img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

.whatsapp-tooltip {
  display: none;
  position: absolute;
  top: -30px;
  background: #43b581;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.whatsapp-float:hover .whatsapp-tooltip {
  display: block;
}

/* 🌗 BOTÓN DE TEMA */
#toggle-theme {
  background-color: #FFEB3B;
  color: #4E342E;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 999;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#toggle-theme:hover {
  background-color: #E53935;
  color: #FFF8E1;
  transform: scale(1.05);
}