/* ============================================================
   1. VARIABLES Y FUENTES (Tu Identidad Visual)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap');

:root {
  --color: #9674F6;
  --color2: #4C3199;
  --color3: #efe8ff;
  --main: #fff;
  --banner: #f6f4fbcc;
  --fondo: #f7f4fbcc;
  --header: white;
  --texto: #1c1b2b;
  --titulos: #474752;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  color: var(--texto);
  background: var(--main);
  font-family: "Roboto", Arial, sans-serif;
  transition: background 0.3s ease;
}

/* ============================================================
   2. HEADER (Grid de 3 columnas - Profesional)
   ============================================================ */
.header {
  background: var(--header);
  border-bottom: 1px solid #e0e0e0;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.container2 {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  padding: 0 1rem;
}

.header-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.header-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr;
  align-items: center;
}

.header-menu ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.header-menu a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 300;
  position: relative;
  transition: color 0.3s;
}

.header-menu a:hover {
  color: var(--color);
}

.header-menu a::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--color);
  width: 0;
  margin: auto;
  transition: width 0.3s;
}

nav.header-menu {
  margin: auto;
}

.header-menu a:hover::after {
  width: 100%;
}

.header-lang {
  justify-self: end;
}

#wa-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid var(--color);
  color: var(--color);
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#wa-header-btn:hover {
  background: var(--color2);
  border-color: var(--color2);
  color: white;
  transform: translateY(-2px);
}

/* ============================================================
   3. LOGIN MODERNIZADO Y BOTÓN GLOBAL
   ============================================================ */
.btn-main {
  width: 100%;
  padding: 14px;
  background: var(--color);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-size: 1rem;
}

.btn-main:hover {
  background: var(--color2);
  transform: translateY(-2px);
}

.hero-login {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--fondo);
  background-image: url('/imgs/fondolineas.png');
  background-repeat: repeat;
  background-size: 20%;
  padding: 20px;
}

.login-card-modern {
  background: var(--header);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(150, 116, 246, 0.15);
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 1px solid rgba(150, 116, 246, 0.1);
  position: relative;
}

.login-icon-top {
  background: var(--color);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: -4.5rem auto 1.5rem auto;
  box-shadow: 0 10px 20px rgba(150, 116, 246, 0.3);
  border: 5px solid var(--header);
}

.login-card-modern h1 {
  font-family: "DM Sans", sans-serif;
  color: var(--titulos);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.input-modern-group {
  position: relative;
  margin-bottom: 1.2rem;
  text-align: left;
}

.input-modern-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.input-modern-group input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid #eee;
  border-radius: 12px;
  background: var(--main);
  color: var(--texto);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-modern-group input:focus {
  border-color: var(--color);
  outline: none;
  box-shadow: 0 0 0 4px rgba(150, 116, 246, 0.1);
}

.input-modern-group:focus-within i {
  color: var(--color);
}

.login-footer-text {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #888;
}

/* ============================================================
   4. BANNER Y SECCIONES COMUNES (Admin / Eventos)
   ============================================================ */
.bannerprincipal {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background-image: url(./imgs/fondolineas.png);
  background-repeat: repeat;
  background-position: center;
  background-size: 20%;
  margin-bottom: 2rem;
}

.bannerprincipal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--banner);
  z-index: 0;
}

.bannerprincipal * {
  position: relative;
  z-index: 1;
}

.bannerprincipal h2 {
  font-family: "DM Sans", Sans-serif;
  color: var(--titulos);
  font-size: 3.5rem;
  font-weight: 700;
}

.section-card {
  background: var(--header);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  border: 1px solid #eee;
}

.alert-error {
  background: var(--color3);
  color: var(--color2);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color);
}

/* ============================================================
   5. CAJA DE RESERVA (En una sola línea y centrada)
   ============================================================ */
.info-reserva-caja {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--header);
  padding: 1rem 2.5rem;
  border-radius: 20px;
  border: 2px solid var(--color);
  margin: 0 auto 3.5rem;
  width: fit-content;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-reserva-caja p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.btn-abandonar {
  background: var(--color);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-abandonar:hover {
  background: var(--color2);
  transform: scale(1.05);
}

/* ============================================================
   6. MAPA DE MESAS (4 Columnas y Radio Corregido)
   ============================================================ */
.grid-sala {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 0.5rem;
  padding-bottom: 60px;
}

@media (max-width: 1200px) {
  .grid-sala {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid-sala {
    grid-template-columns: 1fr;
  }
}

.leyenda {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 0 auto 3rem;
  background: var(--header);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  border: 1px solid #eee;
}

.item-leyenda {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.punto {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.mesa-container {
  position: relative;
  width: 270px;
  height: 270px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mesa-fisica {
  width: 115px;
  height: 115px;
  background: var(--color2);
  color: white;
  border-radius: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-family: "DM Sans", sans-serif;
  font-weight: bold;
  text-align: center;
}

.silla {
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 2;
  transition: 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.libre {
  background: #4dc368;
  color: #1b5e20;
}

.ocupada {
  background: #ff727e;
  color: #721c24;
}

.mia {
  background: #86c1ff;
  border: 2px solid var(--color);
  color: #004085;
}

.bloqueada {
  background: #bfc3c8;
  color: #000000;
  cursor: not-allowed;
}

/* ============================================================
   7. TABLAS (Admin)
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 1.2rem;
  border-bottom: 2px solid var(--color3);
  color: var(--color);
  font-weight: 700;
}

td {
  padding: 1.2rem;
  border-bottom: 1px solid #eee;
}

/* ============================================================
   8. FOOTER
   ============================================================ */

footer {
  font-family: 'Roboto', sans-serif;
  color: #1c1b2b;
  background-color: #f6f4fbcc;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo img {
  height: 70px;
}

.footer-logo p {
  font-size: 1rem;
  color: #1c1b2b;
  font-weight: 300;
  margin: 0;
  white-space: nowrap;
}

.footer-contact {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon {
  font-size: 1.6rem;
}

.label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #3d3b4f;
}

hr {
  border: none;
  border-top: 1px solid #e5e4ea;
  margin: 0;
}

.footer-links {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  gap: 4rem;
  padding: 2rem 5%;
  text-align: left;
  flex-wrap: wrap;
  background-image: url('../imgs/fondolineas.png');
  background-repeat: repeat;
  background-size: 20%;
  background-position: center;
  z-index: 0;
}

.footer-links::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 247, 250, 0.8);
  z-index: 0;
}

.footer-links * {
  position: relative;
  z-index: 1;
}

.footer-links .column {
  min-width: 150px;
}

.footer-links h4 {
  color: #150c2d;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.footer-links a {
  display: block;
  color: #555;
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  text-align: center;
}

.footer-links a:hover {
  color: #000;
}

.footer-bottom {
  background-color: #1d1d1d;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer-links {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-logo {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer-links h4,
  .footer-links a {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

.icon {
  font-size: 1.6rem;
  color: #1c1b2b;
}

.footer-links a i {
  margin-right: 0.5rem;
}

@media screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  div.footer-logo>p {
    display: none;
  }
}

a {
  text-decoration: none;
  color: #1c1b2b;
}

a:hover {
  color: var(--color);
  transition: all 0.3s ease-in; 
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
:root {
  --ws-green: #25d365cf;
  --ws-dark: #128c7ec3;
}

.whatsapp-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-button {
  background-color: var(--ws-green);
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-button i {
  font-size: 1.8rem;
}

.whatsapp-text {
  font-size: 0.9rem;
}

.whatsapp-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ff4d4d;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  z-index: 2001;
}

.whatsapp-container:hover .whatsapp-close {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-button:hover {
  background-color: var(--ws-dark);
  transform: scale(1.05);
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-text {
    display: none;
  }

  .whatsapp-button {
    padding: 12px;
    border-radius: 50%;
  }

  .whatsapp-container {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-container:active .whatsapp-close {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   9. ALERTAS FLOTANTES PERSONALIZADAS (TOAST)
   ============================================================ */
.toast-container {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.toast-alert {
  background: var(--header);
  color: var(--texto);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border-left: 6px solid var(--color);
  animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, fadeOut 0.4s 3.5s forwards;
  pointer-events: auto;
}

.toast-alert.error {
  border-left-color: #e54f4f;
}

.toast-alert.info {
  border-left-color: #9674F6;
}

.toast-alert i {
  font-size: 1.5rem;
}

.toast-alert.error i {
  color: #e54f4f;
}

.toast-alert.info i {
  color: #9674F6;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
}

/* ============================================================
   10. MODALES (POPUPS) Y FILTROS
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--header); padding: 2.5rem; border-radius: 15px;
  width: 90%; max-width: 650px; 
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color);
  border: none;
  background: transparent;
}

.input-group { 
  display: flex; 
  flex-wrap: wrap;
  gap: 10px; 
  margin-bottom: 1rem; 
  width: 100%; 
}

.input-group input, .input-group select { 
  flex: 1; 
  padding: 12px; 
  border-radius: 8px; 
  border: 1px solid #ddd; 
  background: var(--main); 
  color: var(--texto);
  min-width: 0; 
}

.btn-secondary {
  background: var(--color3);
  color: var(--color2);
  border: 1px solid var(--color);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: var(--color);
  color: white;
}

.action-icon {
  background: transparent;
  color: var(--color);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  transition: 0.2s;
}

.action-icon:hover {
  color: var(--color2);
  transform: scale(1.1);
}

.silla.seleccionada {
  background: #f1c40f !important;
  color: #000 !important;
  border: 2px solid #d4ac0d;
  box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
  transform: scale(1.1);
  z-index: 10;
}

.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--header);
  padding: 15px 5%;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 2500;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-bar.active {
  transform: translateY(0);
}

.cart-text {
  font-weight: bold;
  color: var(--texto);
  font-size: 1.1rem;
}

.cart-btn {
  background: var(--color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.cart-btn:hover {
  background: var(--color2);
  transform: scale(1.05);
}

.asignacion-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--fondo);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

.asignacion-fila select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 200px;
}

/* ============================================================
   11. MESAS 16 ASIENTOS
   ============================================================ */
/* .section-card.span-2 {
  grid-column: span 2;
} */

.mesa-container.gigante {
  width: 500px;
}

.mesa-fisica.gigante {
  width: 280px;
  height: 115px;
  border-radius: 60px;
}

@media (max-width: 1200px) {
  .section-card.span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .section-card.span-2 {
    grid-column: span 1;
  }
  .mesa-container.gigante {
    width: 100%;
    transform: scale(0.65); 
    transform-origin: center;
  }
}

/* ============================================================
   12. MAPA DE ZONAS
   ============================================================ */

.mapa-zonas-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

.mapa-zonas-wrapper h3 {
  font-family: 'DM Sans', sans-serif;
  color: var(--color2);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.mapa-interactivo-img {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.mapa-interactivo-img img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(150, 116, 246, 0.15)); 
}

.label-zona {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-shadow: 
    -1.5px -1.5px 0 #fff, 
     1.5px -1.5px 0 #fff, 
    -1.5px  1.5px 0 #fff, 
     1.5px  1.5px 0 #fff,
     0px 4px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease-in-out;
  z-index: 10;
  text-transform: uppercase;
}

.label-zona i {
  font-size: 2rem;
  margin-bottom: 4px;
  filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.2));
}

.label-zona:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.btn-ver-todas {
  margin-top: 2rem;
  background: var(--color3);
  color: var(--color2);
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-ver-todas:hover {
  background: var(--color2);
  color: white;
}

.zona-tag {
  display: inline-block;
  margin-top: 5px;
  background: var(--color3);
  color: var(--color2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .label-zona {
    font-size: 0.85rem;
    text-shadow: 
      -1px -1px 0 #fff, 
       1px -1px 0 #fff, 
      -1px  1px 0 #fff, 
       1px  1px 0 #fff,
       0px 2px 4px rgba(0,0,0,0.15);
  }

  .label-zona i {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
}

/* ============================================================
   12. HEADER RESPONSIVE Y MENÚ HAMBURGUESA
   ============================================================ */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--color);
  cursor: pointer;
  justify-self: center;
  transition: transform 0.2s;
}

.hamburger-menu:active {
  transform: scale(0.9);
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 1fr auto auto;
    gap: 15px;
  }

  .header-logo h2 {
    font-size: 1.3rem;
  }

  .hamburger-menu {
    display: block;
  }

  .header-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid transparent;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .header-menu.active {
    max-height: 300px;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
  }

  .header-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
  }

  .wa-header-text {
    display: none;
  }
  
  #wa-header-btn {
    padding: 0.6rem 0.7rem;
    border-radius: 50%;
  }
  
  #wa-header-btn i {
    font-size: 1.2rem;
    margin: 0;
  }
}

/* ============================================================
   13. ADAPTACIÓN MÓVIL Y TABLET (RESPONSIVE GLOBAL)
   ============================================================ */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  padding-bottom: 10px;
}

.table-responsive table {
  min-width: 650px; 
}

@media (max-width: 768px) {
  .bannerprincipal {
    height: 160px;
    padding: 0 15px;
  }
  .bannerprincipal h2 {
    font-size: 2.2rem !important;
  }
  .bannerprincipal p {
    font-size: 0.9rem;
  }

  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  .modal-close {
    top: 10px;
    right: 15px;
  }

  .input-group {
    flex-direction: column;
    gap: 12px;
  }
  .input-group input, .input-group select {
    width: 100% !important;
    max-width: 100% !important;
  }

  .container2 > div[style*="margin-bottom: 2rem;"] {
    flex-wrap: wrap;
  }
  .container2 > div[style*="margin-bottom: 2rem;"] button {
    flex: 1;
    min-width: 100%;
  }

   .container2 > div[style*="margin-bottom: 2rem;"] a {
    flex: 1;
    min-width: 100%;
    text-align: center;
  }

  .leyenda {
    gap: 15px;
    padding: 1rem;
    flex-direction: column;
    align-items: center;
  }
  .item-leyenda {
    font-size: 0.9rem;
  }

  .info-reserva-caja {
    padding: 1.2rem;
    width: 100%;
    text-align: center;
  }
  .info-reserva-caja p {
    font-size: 0.9rem;
  }

  .cart-bar {
    flex-direction: column;
    gap: 10px;
    padding: 15px 5%;
    text-align: center;
  }
  .cart-btn {
    width: 100%;
  }

  .gran-circulo-mapa {
    width: 100%;
    border-radius: 20px; 
    border-width: 2px;
    padding: 20px 10px;
    aspect-ratio: auto;
    min-height: 350px;
    gap: 10px;
  }
  .btn-zona-circulo {
    width: 90px;
    height: 90px;
    font-size: 0.65rem;
  }
}

.bloqueada-temporal {
  background: #ffca68 !important;
  color: #7f8fa6 !important;
  border: 2px dashed #a4b0be;
  cursor: help;
}

/* ============================================================
   14. BOTONES DE CAPACIDAD DE MESAS (8, 12, 16)
   ============================================================ */
.capacity-toggle {
  display: flex;
  gap: 10px;
  width: 100%;
}

.capacity-toggle input[type="radio"] {
  display: none;
}

.capacity-toggle label {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--main);
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  color: var(--titulos);
}

.capacity-toggle input[type="radio"]:checked + label {
  background: var(--color3);
  border-color: var(--color);
  color: var(--color2);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--color3);
  color: var(--color2);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--color);
  transition: all 0.2s;
}

.pagination-btn:hover {
  background: var(--color);
  color: white;
}

.pagination-btn.active {
  background: var(--color2);
  color: white;
  border-color: var(--color2);
}

.pagination-dots {
  padding: 8px;
  color: #999;
}