/* ===== Variables de color ===== */
:root {
  --fondo: #1c1c1c;
  --fondo-sec: #2a2a2a;
  --acento: #e8a23c;
  --texto: #f2f2f2;
  --gris: #aaaaaa;
  --trans: rgba(0, 0, 0, 0.7);
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #fff;
  line-height: 1.6;
  padding-top: 100px; /* espacio para header fijo */
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #2b3a4a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* ===== Contenedor ===== */
header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
  width: 100%;
}

/* ===== Logo ===== */
.logo {
  margin-left: -30px; /* mueve solo el logo un poco más a la izquierda */
}

.logo img {
  height: 70px;
  width: auto;
  padding: 5px 0;
  display: block;
}

/* ===== Nav Links ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-links li a {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  background: #2c3e50;
  color: #fff;
  font-size: 14px;
  border: 1px solid #fff;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background: #d08c42;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ===== Botones especiales ===== */
.nav-links li a[href="/inf.html"] {
  background: linear-gradient(135deg, #f5c65a 0%, #e8b339 100%);
  color: #2c3e50;
  font-weight: 700;
  border: 1px solid #fff;
  box-shadow: 0 4px 8px rgba(245,198,90,0.3);
}

.nav-links li a[href="/inf.html"]:hover {
  background: linear-gradient(135deg, #e8b339 0%, #f5c65a 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(245,198,90,0.5);
}

.nav-links li a[href="/restbar.html"] {
  background: linear-gradient(135deg, #ff7b00 0%, #ff3d00 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid #fff;
  box-shadow: 0 4px 10px rgba(255,100,0,0.4);
}

.nav-links li a[href="/restbar.html"]:hover {
  background: linear-gradient(135deg, #ff3d00 0%, #ff7b00 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255,80,0,0.6);
}

/* ===== Menu Toggle ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #d08c42;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  header .container {
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 8px;
  }
  
  .nav-links li a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .logo {
    margin-left: -20px;
  }
  
  .logo img {
    height: 60px;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  body {
    padding-top: 80px; /* Reduce espacio para header más compacto */
  }
  
  header .container {
    height: 70px;
    padding: 0 15px;
  }
  
  .logo {
    margin-left: -10px; /* Reduce el margen negativo */
  }
  
  .logo img {
    height: 55px;
  }
  
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px; /* Ajusta según la nueva altura del header */
    right: 15px;
    flex-direction: column;
    background: #34495e;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    gap: 8px;
    width: 220px; /* Un poco más ancho para mejor usabilidad */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li a {
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
  }
  
  /* Ajusta los botones especiales en mobile */
  .nav-links li a[href="/inf.html"],
  .nav-links li a[href="/restbar.html"] {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }
  
  header .container {
    height: 65px;
    padding: 0 10px;
  }
  
  .logo {
    margin-left: 0; /* Elimina margen negativo en móviles muy pequeños */
  }
  
  .logo img {
    height: 50px;
  }
  
  .nav-links {
    top: 65px;
    right: 10px;
    width: 200px;
    padding: 12px 15px;
  }
  
  .nav-links li a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .menu-toggle span {
    width: 24px;
    height: 2.5px;
  }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
  .nav-links {
    width: 180px;
    right: 5px;
  }
  
  .nav-links li a {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .logo img {
    height: 45px;
  }
}

/* Orientación Landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-links {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .nav-links li a {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* Ajustes para alta densidad de píxeles */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .menu-toggle span {
    height: 2px;
  }
}
/* Personalizar barra de desplazamiento para todo el sitio */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #2b3a4a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d08c42;
  border-radius: 10px;
  border: 2px solid #2b3a4a;
}

::-webkit-scrollbar-thumb:hover {
  background: #f5c65a;
}

/* Para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #d08c42 #2b3a4a;
}

/* Opción más minimalista */
/*
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #34495e;
}

::-webkit-scrollbar-thumb {
  background: #d08c42;
  border-radius: 4px;
}
*/

