/* ==================== */
/* Estilos Globales */
/* ==================== */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f8f9fa;
  padding-top: 56px;
  line-height: 1.6;
  min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #2c3e50;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* ==================== */
/* Página de mantenimiento */
/* ==================== */
.maintenance-page {
  background: center/cover fixed;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.maintenance-overlay {
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 15px;
}

.reopen-date {
  font-size: 1.2rem;
  color: #ffd700;
  margin: 15px 0;
}

#countdown {
  font-size: 1.5rem;
  font-weight: bold;
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-image: url(../img/barraGB.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero .display-3 {
  font-size: 3.5rem;
  font-weight: 800;
}

.hero .lead {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 20px auto;
}

/* ==================== */
/* Sección Hero2 (Texto explicativo) */
/* ==================== */
.hero2 {
  padding: 80px 0;
  background: #f8f9fa;
}

.hero2 .container {
  max-width: 900px;
}

.hero2 h3 {
  color: #2c3e50;
  margin-bottom: 20px;
}

/* ==================== */
/* Menú con fondo */
/* ==================== */
.menu-category {
  position: relative;
  overflow: hidden;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  padding: 60px 0;
}

.menu-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.menu-category > .container {
  position: relative;
  z-index: 2;
}

.menu-category h2 {
  position: relative;
  z-index: 3;
}

.menu-category hr {
  position: relative;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Ítems del menú */
.menu-item {
  background: white;
  color: #212529;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.menu-item-img {
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
}

.menu-item-img img,
.menu-item-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.menu-item:hover .menu-item-img img,
.menu-item:hover .menu-item-img video {
  transform: scale(1.05);
}

.menu-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #2c3e50;
  margin-top: 1rem;
}

.menu-item p {
  color: #7f8c8d;
  font-size: 0.95rem;
}

/* ==================== */
/* Aliados */
/* ==================== */
#aliados {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

#aliados .container {
    position: relative;
    z-index: 2;
}

.partner-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card-img {
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.partner-card-img img,
.partner-card-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-card h5 {
    color: #2c3e50;
    margin-top: 15px;
    font-weight: bold;
}

.partner-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ==================== */
/* Destacados / Reseñas */
/* ==================== */
#destacados {
    padding: 5rem 0;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

#destacados .container {
    position: relative;
    z-index: 2;
}

#destacados h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

#reviewsCarousel {
    max-width: 800px;
    margin: 0 auto;
}

#reviewsCarousel .carousel-item {
    padding: 20px;
}

#reviewsCarousel .lead {
    font-style: italic;
    color: #e67e22;
}

#reviewsCarousel .text-muted {
    color: #f1c40f !important;
}

.carousel-item img,
.carousel-item video {
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
}

/* ==================== */
/* Instagram */
/* ==================== */
#instagram {
    padding: 50px 0;
}

#instagram iframe {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    height: 500px !important;
    width: 100%;
    border: none;
}

/* ==================== */
/* Footer */
/* ==================== */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
}

footer h3 {
    color: #ecf0f1;
    font-size: 1.5rem;
}

footer p {
    color: #bdc3c7;
    margin: 8px 0;
}

footer a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e67e22;
}

footer hr {
    border-color: #34495e;
    margin: 20px 0;
}

/* ==================== */
/* Botón de WhatsApp Flotante */
/* ==================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==================== */
/* Botón flotante de reserva */
/* ==================== */
.reservation-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.reservation-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

/* ==================== */
/* Formularios y Panel */
/* ==================== */
.form-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.form-check-label {
    cursor: pointer;
}

.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-light {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #2c3e50;
    color: white;
}

/* ==================== */
/* Toasts */
/* ==================== */
.toast-container {
    z-index: 1100;
}

.toast-header {
    background: #2c3e50;
    color: white;
}

/* ==================== */
/* Correcciones de Accesibilidad */
/* ==================== */
.modal[aria-hidden="true"] {
    display: none;
}

.modal[aria-modal="true"] {
    display: block;
}

/* Evitar problemas de focus en modales */
.modal {
    overflow-y: auto;
}

/* ==================== */
/* Formularios y Validación */
/* ==================== */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ==================== */
/* Responsive */
/* ==================== */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 50px 0;
    }
    
    .hero .display-3 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .menu-category-list {
        margin-bottom: 1.5rem;
    }
    
    .menu-category-header-list {
        height: 60px;
    }
    
    .menu-category-title-list h2 {
        font-size: 1.8rem;
    }
    
    .whatsapp-btn, .reservation-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .reservation-btn {
        right: 80px;
    }
    
    .hero2 {
        padding: 40px 0;
    }
    
    #aliados, #destacados {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .menu-item-image-list {
        width: 60px;
        height: 60px;
    }
    
    .menu-item-title-list {
        font-size: 1rem;
    }
    
    .menu-item-description-list {
        font-size: 0.85rem;
    }
    
    .theme-toggle, 
    .save-all-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        right: 10px;
    }
    
    .save-all-btn span {
        display: none;
    }
}

/* ==================== */
/* Animaciones */
/* ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* ==================== */
/* Scroll suave */
/* ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== */
/* Botón de cierre personalizado */
/* ==================== */
.btn-close {
    filter: invert(1);
}

/* ==================== */
/* Evitar problemas de zoom en móviles */
/* ==================== */
input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

/* ==================== */
/* Estilos para el panel de administración */
/* ==================== */
.session-status {
    position: fixed;
    top: 10px;
    right: 20px;
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-status i {
    color: #2ecc71;
    font-size: 0.8rem;
}

.theme-toggle {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #e67e22;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
}

.save-all-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(39,174,96,0.4);
    z-index: 1000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}