﻿/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
  --color-bg: #000000; /* negro de fondo */
  --color-card: #0f0f0f; /* tarjetas y cajas */
  --color-orange: #ff7a00; /* acento naranja */
  --color-orange-dark: #cc6100;
  --color-text: #ffffff; /* texto principal blanco */
  --color-text-muted: #cfcfcf; /* texto secundario */
  --color-border: rgba(255, 255, 255, 0.04);
  --color-hover-bg: rgba(255, 122, 0, 0.06);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(255, 122, 0, 0.05));
  border-bottom: 1px solid var(--color-border);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-section {
  margin-bottom: 20px;
}

.logo {
  max-width: 100px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.18));
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(255, 122, 0, 0.25);
}

.tagline {
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 0;
}

/* ============================================
   NAVIGATION TABS
   ============================================ */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.tab-btn {
  background: transparent;
  border: 2px solid transparent;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
}

.tab-btn:hover {
  color: var(--color-orange);
  border-color: var(--color-orange);
  background-color: var(--color-hover-bg);
}

.tab-btn.active {
  color: var(--color-orange);
  border-color: var(--color-orange);
  box-shadow: 0 0 20px rgba(164, 147, 132, 0.25);
  background-color: rgba(255, 122, 0, 0.08);
}

.icon {
  font-size: 1.3rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.container {
  width: 100%;
}

/* ============================================
   FILTERS
   ============================================ */
.filters {
  display: flex;
  flex-wrap: nowrap; /* mantener en una sola línea y permitir scroll horizontal */
  gap: 14px;
  margin: 0 0 18px 0;
  justify-content: center;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background-color: var(--color-card); /* caja sÃ³lida para que no se vea flotante */
  border: 1px solid var(--color-border);
  padding: 10px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(6px);
  align-items: center;
  max-height: auto;
  overflow-x: auto; /* permitir deslizar horizontalmente */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  position: relative;
}

/* Cuando se fija, limitar visualmente el ancho del contenedor */
.filters.fixed {
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.5px;
  flex: 0 0 auto;
  display: inline-flex;
  scroll-snap-align: center;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background-color: var(--color-hover-bg);
}

.filter-btn.active {
  background-color: var(--color-orange);
  color: var(--color-bg);
  border-color: var(--color-orange);
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.38);
  font-weight: 600;
}

/* Compact mode when hay muchas subcategorías (p. ej. bebidas) */
.filters.compact {
  gap: 8px;
  padding: 6px 10px;
}
.filters.compact .filter-btn {
  padding: 6px 10px;
  font-size: 0.82rem;
}

/* ============================================
   MENU GRID
   ============================================ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* ============================================
   MENU CARD
   ============================================ */
.menu-card {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.8), rgba(25, 25, 25, 0.8));
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.menu-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-orange);
  box-shadow: 0 20px 40px rgba(255, 122, 0, 0.15);
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-card:hover::before {
  opacity: 1;
}

.card-image {
  width: 100%;
  height: 160px; 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.6));
}

.card-content {
  padding: 20px 16px; /* ligeramente reducido para compactar altura */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-orange);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.card-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.card-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-orange);
  text-shadow: 0 2px 8px rgba(255, 122, 0, 0.25);
  margin-top: auto;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  animation: modalFadeIn 0.3s ease;
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(25, 25, 25, 0.95));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  max-width: 1000px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-body {
  display: block;
}

.modal-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 72vh;
  display: block;
  margin: 0 auto;
}

.modal-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* CUADRO INTERNO DEL MODAL: aspecto más limpio y contenido en caja */
.modal-card {
  background: linear-gradient(180deg, rgba(10,10,10,0.92), rgba(22,22,22,0.92));
  border-radius: 12px;
  padding: 12px;
  margin: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  max-height: 80vh;
  overflow: auto;
}

.modal-card .modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.modal-card .modal-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 68vh;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  display: block;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.modal-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-orange);
  text-shadow: 0 2px 10px rgba(255, 122, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: var(--color-orange);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 122, 0, 0.08);
}

.modal-close:hover {
  background-color: rgba(255, 122, 0, 0.12);
  transform: rotate(90deg);
}

/* ============================================
   FOOTER (REDISEÃ‘O: caja, iconos y contraste)
   ============================================ */
.footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.98), rgba(15,15,15,0.98));
  border-top: 1px solid var(--color-border);
  padding: 36px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-text {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 0;
  letter-spacing: 1px;
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.03);
}

.social-links a {
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  transition: all 220ms ease;
}

.social-links a:hover {
  color: var(--color-orange);
  background: rgba(255,122,0,0.06);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-color: rgba(255,122,0,0.10);
}

.social-links svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.4px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .brand-title {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .nav-tabs {
    gap: 15px;
    padding: 30px 20px;
  }

  .tab-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }

  .modal-content {
    width: 95%;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 300px;
  }

  .modal-info {
    padding: 30px;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .social-links {
    gap: 25px;
  }

  .social-links a {
    width: 50px;
    height: 50px;
  }

  .social-links svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 40px 20px 30px;
  }

  .brand-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .tagline {
    font-size: 0.8rem;
  }

  .nav-tabs {
    flex-direction: column;
    gap: 10px;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .filters {
    gap: 8px;
    max-height: auto;
  }

  .filters.show-arrow::after {
    font-size: 0.7rem;
    right: 12px;
    bottom: 2px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-price {
    font-size: 1.3rem;
  }

  .modal-content {
    width: 98%;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 250px;
  }

  .modal-info {
    padding: 20px;
  }

  .modal-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .modal-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .modal-price {
    font-size: 1.4rem;
  }

  .footer {
    padding: 30px 20px 20px;
  }

  .footer-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .social-links {
    gap: 20px;
    margin-bottom: 20px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
  }

  .social-links svg {
    width: 20px;
    height: 20px;
  }

  .copyright {
    font-size: 0.75rem;
  }
}

/* ============================================
   SCROLL BAR PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange-dark);
}

/* Ocultar scrollbar horizontal en filtros para mejor apariencia */
.filters::-webkit-scrollbar {
  height: 8px;
}
.filters::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}
.filters::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* Respeta las preferencias del sistema */
  body {
    color-scheme: dark;
  }
}

/* Cuando el modal esté abierto, fijar body para bloquear scroll de fondo */
.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
  width: 100%;
}
/* ============================================
   CARRUSEL (HEADER)
   ============================================ */

/* ===== CARRUSEL ===== */
.carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  height: 260px; 
  background: #000; /* Evita que se vea blanco mientras carga */
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;    
  object-position: center;
  display: block;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ffffff70;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}
.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black; /* opcional, evita espacios blancos */
}
.promo-title {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 20px;
}

.promo-title h2 {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-orange);
  letter-spacing: 1px;
  text-shadow: 0 3px 12px rgba(255, 122, 0, 0.3);
}

.card-image {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.6));
  pointer-events: none;
}

.card-image .card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* mantiene aspecto anterior */
  object-position: center;
  display: block;
}
