/* ============================================================
   RESET GENERAL Y BASE
============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background-color: #f2e4c9;
  color: #0a1a3d;
}

/* ============================================================
   FONDO RÚSTICO
============================================================ */
.fondo-rustico {
  background-image: url("img/fondo-textura.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay-rustico {
  position: fixed;
  inset: 0;
  background: rgba(242, 228, 201, 0.70);
  z-index: -1;
}

/* ============================================================
   PANTALLA DE INICIO
============================================================ */
.contenedor-inicio {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.logo-inicio {
  width: 220px;
  height: auto;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ============================================================
   ICONO INSTAGRAM EN INICIO
============================================================ */
.inst-top {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 18px;
}

.inst-icon {
  width: 100px;
  height: 100px;
  opacity: 0.90;
  transition: 0.2s;
  filter: drop-shadow(1px 1px 3px #00000040);
}

.inst-icon:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* ============================================================
   BOTONES INICIO
============================================================ */
.botones-inicio {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-principal,
.btn-secundario {
  display: block;
  width: 80%;
  max-width: 380px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  border: 2px solid #a9352b;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-principal {
  background: #0a1a3d;
  color: #ffffff;
}

.btn-secundario {
  background: #ffffff;
  color: #0a1a3d;
}

.btn-principal:hover,
.btn-secundario:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
  filter: brightness(1.05);
}

/* ============================================================
   PIE INICIO
============================================================ */
.footer-inicio {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: #4a3a2a;
}

/* ============================================================
   MENÚ
============================================================ */
.header-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 0.2rem;
  border-bottom: 2px solid #a9352b;
  background: rgba(255, 248, 232, 0.93);
}

.logo-menu {
  width: 200px;
  height: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* ============================================================
   BANNER WHATSAPP
============================================================ */
.wapp-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 4px;
  margin-bottom: 0px;
}

.wapp-banner a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 248, 232, 0.92);
  border: 2px solid #d8c4a1;
  padding: 4px 10px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.20);
}

.wapp-banner-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.wapp-banner-texto {
  display: flex;
  flex-direction: column;
}

.wapp-banner-numero {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0a1a3d;
}

.wapp-banner-leyenda {
  font-size: 0.9rem;
  color: #4a3a2a;
}

/* ============================================================
   CONTENEDOR DEL MENÚ
============================================================ */
.contenedor-menu {
  max-width: 640px;
  margin: 0 auto;
  padding: 0rem 1rem 1.5rem;
}

.titulo-seccion {
  text-align: center;
  margin-top: -4px;
  color: #0a1a3d;
  font-size: 2rem;
  font-weight: bold;
}

/* ============================================================
   CATEGORÍAS DEL MENÚ (ACORDEÓN)
============================================================ */
.bloque-promos-resumen {
  margin-bottom: 0.4rem;
}

#menu-categorias {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.categoria {
  background: rgba(255, 248, 232, 0.96);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  overflow: hidden;
}

.categoria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: linear-gradient(90deg, #0a1a3d, #1b2f5a);
  color: white;
  cursor: pointer;
}

.categoria-toggle {
  margin-left: 0.5rem;
}

.categoria-contenido {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

.categoria-contenido.activa {
  opacity: 1;
}

.item-producto {
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(170, 130, 90, 0.4);
}

.item-producto:last-child {
  border-bottom: none;
}

.item-linea {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-nombre {
  font-weight: bold;
  font-size: 1rem;
}

.item-precios {
  font-weight: bold;
  white-space: nowrap;
}

.item-descripcion {
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: #4a3a2a;
}

/* ============================================================
   BOTÓN PROMOS
============================================================ */
.btn-promos {
  display: block;
  margin: 35px auto 20px;
  padding: 12px 20px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: none;
  background-color: #ffcc00;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 8px #00000077;
}

.btn-promos:hover {
  background-color: #ffdd33;
}

/* ============================================================
   POPUP PROMOS
============================================================ */
.popup-oscuro {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 30;
}

.popup-contenido {
  background: rgba(255, 248, 232, 0.97);
  border-radius: 12px;
  padding: 1.2rem 1rem 1rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  position: relative;
  text-align: center;
}

.popup-cerrar {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.popup-titulo {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   ANIMACIONES
============================================================ */
body.fondo-rustico {
  animation: grainMove 6s infinite ease-in-out alternate;
}

@keyframes grainMove {
  0% { filter: contrast(95%) brightness(100%); }
  50% { filter: contrast(100%) brightness(97%); }
  100% { filter: contrast(98%) brightness(99%); }
}

.logo-inicio,
.logo-menu {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeDown 1s ease-out forwards;
}

@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FORMULARIO SALÓN - VALIDACIÓN
============================================================ */
.form-container {
  max-width: 480px;
  margin: 2rem auto;
  background: rgba(255, 248, 232, 0.95);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #0a1a3d;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #b8b8b8;
  font-size: 1rem;
}

.campo-error {
  border: 2px solid #ff0000 !important;
}

.campo-ok {
  border: 2px solid #00a83f !important;
}

.mensaje-error {
  color: #ff0000;
  font-size: 0.85rem;
  margin-top: 2px;
  display: block;
}

.btn-wapp-send {
  width: 100%;
  padding: 0.8rem;
  background: #25D366;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.btn-wapp-send:disabled {
  background: #a8e6c3;
  cursor: not-allowed;
}

.volver {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  color: #0a1a3d;
}

/* ============================================================
   BOTÓN VERDE - EMPANADAS (WHATSAPP)
============================================================ */
.btn-wapp-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 80%;
  max-width: 380px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  border: 2px solid #1ebe5d;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.2s ease;
}

.btn-wapp-home:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

.icono-wapp-home {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ============================================================
   BOTÓN AZUL - SALÓN PARA EVENTOS
============================================================ */
.btn-salon-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 80%;
  max-width: 380px;
  margin: 0 auto;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  border-radius: 999px;
  background: #004aad;
  color: #ffffff;
  border: 2px solid #003b8a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.2s ease;
}

.btn-salon-home:hover {
  background: #003b8a;
  transform: translateY(-2px);
}

.icono-salon-home {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ============================================================
   FONDO MORADO ESPECIAL PARA PROMO NOCHE FEMENINA
============================================================ */
.promo-fondo-morado {
  background-image: url("img/fondo morado.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.promo-popup-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* ============================================================
   NUEVO — CLASES PARA COLORES E IMÁGENES DINÁMICAS
============================================================ */
.fondo-dinamico {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.promo-popup-contenedor {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 14px;
}

.texto-claro {
  color: #fff !important;
  text-shadow: 1px 1px 3px #00000088;
}

.texto-oscuro {
  color: #0a1a3d !important;
}
