/* =========================
   VARIABLES GLOBALES
   ========================= */
:root {
  --color-bg: #24262b;
  --color-header-bg: rgba(0,0,0,0.7);
  --color-primary: #C9A227;
  --color-card-bg: #18191c;
  --color-text: white;
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-gradient-footer: linear-gradient(to top, rgba(36, 38, 43, 1) 75%, rgba(0, 0, 0, 0) 100%);
  --font-main: 'Montserrat', sans-serif;
  --font-title: 'Lobster', cursive;
  --border-radius: 8px;
  --box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s ease-in-out;
  --transition-bg: 0.5s ease-in-out;

}

*{
  margin: 0;
  padding: 0;
}


/* =========================
   BASE
   ========================= */
body {
  background-color: var(--color-bg);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  color: var(--color-text);
}

/* =========================
   HEADER & NAVEGACIÓN
   ========================= */
.navegacion {
  position: sticky;
  top: 0;
  background: var(--color-header-bg);
  text-align: center;
  z-index: 999;
  padding: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image var(--transition-bg);
  backdrop-filter: blur(5px);
}



/* =========================
   NAVEGACIÓN CONTENEDORES
   ========================= */
.locales, .categorias, .subcategorias {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

/* =========================
    NAVEGACIÓN visual

   ========================= */
.indicadores-carrusel {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.indicadores-carrusel .indicador {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: gray;
  transition: background-color 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.indicadores-carrusel .indicador.activo {
  background-color: #C9A227; /* Dorado */
    width: 5px;
  height: 5px;
  margin-top: -1px;

}
/* =========================
   BOTONES
   ========================= */
button {
  background: none;
  border: none;
  color: var(--color-text);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}



button.active {
  color: var(--color-primary);
  font-size: 16px;
  transform: scale(1.1);
  transition: transform var(--transition-fast), 
              font-size var(--transition-fast);

}

/* =========================
   CONTENEDOR GENERAL
   ========================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  margin-bottom: 10vh;
}

/* =========================
   MENÚ Y PRODUCTOS
   ========================= */
.menu h2, .menu h3 {
  font-family: var(--font-title);
  color: var(--color-primary);
}

h3 span, h4{
  text-shadow: 2px 2px 3px black;
}

h4 {
  text-transform: uppercase;
  font-size: 18px;
  margin: 10px 0;

}

p{
  margin: 1em 0;
}



.producto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-card-bg);
  padding: 15px;
  margin: 15px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.descripcion {
  flex: 1;
}

.nombre {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase; ;
}


.detalle {
  font-size: 12px;
  font-weight: 300;
}

.detalle.desbordado {
  font-size: 10px;
}


.subcategoria-block{
  margin: 20px 0;
}

.descripcion-categoria,
.descripcion-subcategoria {
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  line-height: 1.4;
  opacity: 0.8;
}

.descripcion-categoria {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.descripcion-subcategoria {
  font-size: 13px;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: left;

}

.precio {
  font-size: 18px;
  color: var(--color-primary);
  margin-left: 15px;
  font-weight: bold;
  text-align: right;
  
}

/* =========================
   FOOTER
   ========================= */
.stickyFooter {
  background: var(--color-gradient-footer);
  height: 10%;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  display: flex;  
  justify-content: center;    
  align-items: center;       

}

.stickyFooter img {
  max-height: 6vh;
  width: auto;
  margin-top: 2.5vh;
  filter: drop-shadow(1px 4px 2px black);
}

/* =========================
   IMÁGENES PRINCIPALES
   ========================= */
.imagen-local {
  width: 100%;
  height: auto;
}

.imagen-local::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 100%);
}

/* =========================
   TÍTULO CON FONDO
   ========================= */
.titulo-con-fondo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  font-size: 2.8em;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  color: var(--color-text);
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100vw;
  padding: 0;
}

.titulo-con-fondo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  backdrop-filter: blur(2px);
}

.titulo-con-fondo span {
  position: relative;
  z-index: 1;
}

.titulo-con-fondo.sin-oscurecer::before {
  background: none;
}

.titulo-con-fondo.sin-texto span {
  display: none;
}

.bannerLogo{
  max-height: 50%;
  z-index: 99;
  filter: drop-shadow(1px 4px 2px black);
}

/* =========================
   CAROUSEL CATEGORÍAS
   ========================= */
.categorias, .subcategorias {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  position: relative;
}

.categorias.es-carousel,
.subcategorias.es-carousel {
  overflow-x: auto;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.categorias.es-carousel::-webkit-scrollbar,
.subcategorias.es-carousel::-webkit-scrollbar {
  display: none;
}

.categorias::-webkit-scrollbar,
.subcategorias::-webkit-scrollbar {
  display: none;
}

.categorias.es-carousel::before,
.categorias.es-carousel::after,
.subcategorias.es-carousel::before,
.subcategorias.es-carousel::after {
  content: "";
  flex: 0 0 50%;
}

.categorias button,
.subcategorias button {
  scroll-snap-align: center;
}

/* =========================
   LOADER
   ========================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#loader img {
  animation: zoomIn 0.6s ease-out forwards;
  max-width: 90vw;
  max-height: 80vh;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1000px) {
  .producto {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .producto .descripcion {
    flex: 1 1 70%;
    min-width: 0;
  }

  .producto .nombre,
  .producto .detalle {
    white-space: nowrap;
    display: block;
    width: 100%;
  }
  .nombre.desbordado {
    white-space: wrap;
  }

  .detalle.desbordado {
  white-space: wrap;
}

  .producto .precio {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 10px;
    font-size: 16px;
    white-space: nowrap;
  }
}