/* ==========================================================================
   PEQUEÑA VENECIA RESTAURANTE - CARTA DIGITAL
   Estilos unificados con el CSS principal (Dark Theme)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & VARIABLES GLOBALES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta de colores idéntica a styles.css */
  --primary: #e63946;
  --primary-hover: #c82333;
  --secondary: #f4a261;
  --dark: #121212;
  --dark-surface: #1a1a1a;
  --dark-card: #242424;
  --dark-border: rgba(255, 255, 255, 0.08);
  --text-light: #f8f9fa;
  --text-muted: #b0b0b0;
  --gold: #ffb703;
  --whatsapp: #25d366;
  --whatsapp-hover: #1da851;

  /* Tipografía y medidas */
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --border-radius-sm: 8px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   2. NAVBAR & NAVEGACIÓN PRINCIPAL
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--dark-border);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 65px;
  width: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--dark-surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 6rem 2rem 2rem 2rem;
  gap: 1.25rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  z-index: 999;
}

.nav-links.active {
  right: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-links .nav-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  border-bottom: none;
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--secondary);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--secondary);
}

/* --------------------------------------------------------------------------
   3. CONTENEDOR CARTA DIGITAL Y SIDEBAR
   -------------------------------------------------------------------------- */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 60px 24px; /* Offset para el header fijo */
  display: flex;
  gap: 40px;
  flex: 1;
}

/* SIDEBAR / CATEGORÍAS */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar Sidebar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 4px;
}

.sidebar h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar .horario {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  border-left: 3px solid transparent;
  background-color: transparent;
}

.menu-nav a:hover {
  background-color: var(--dark-surface);
  color: var(--text-light);
}

.menu-nav a.active {
  background-color: var(--dark-surface);
  color: var(--secondary);
  font-weight: 700;
  border-left: 3px solid var(--secondary);
}

/* --------------------------------------------------------------------------
   4. PLATOS Y TARJETAS DEL MENÚ
   -------------------------------------------------------------------------- */
.menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  scroll-margin-top: 110px;
  color: var(--text-light);
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 8px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.empty-msg {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* CARD DE PRODUCTO DARK */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(244, 162, 97, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-light);
}

.card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-popular {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--whatsapp);
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-image-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  background-color: var(--dark-surface);
}

/* BOTÓN MÁS DE JUST EAT */
.add-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: #ffffff;
  border: 2px solid var(--dark-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: var(--transition);
  text-decoration: none;
}

.add-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. FOOTER IDENTICO A INDEX.HTML
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 1.25rem 2rem 1.25rem;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.footer-brand h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-column h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--text-light);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background-color: var(--dark-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--dark-border);
}

.footer-social a:hover {
  background-color: var(--primary);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.8rem;
  border-top: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE (MÓVIL & TABLET)
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .navbar {
    padding: 0.8rem 5%;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 2.2rem;
    box-shadow: none;
    overflow-y: visible;
  }

  .nav-links a {
    padding: 0;
    border-bottom: none;
    font-size: 0.9rem;
  }

  .nav-links .nav-whatsapp {
    margin-top: 0;
    padding: 0.65rem 1.4rem;
  }

  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    padding-top: 100px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 75px;
    z-index: 90;
    background-color: var(--dark);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dark-border);
  }

  .menu-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .menu-nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .menu-nav a.active {
    border-left: none;
    border-bottom: 3px solid var(--secondary);
  }

  .items-grid {
    grid-template-columns: 1fr;
  }
}