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

/* body */
.fondo-sitio {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  background-color: #000;
}


/* NAV */
.logoNav {
  height: 40px;
  width: auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.logo {
  height: 40px;
}

/* HAMBURGUESA */
.hamburger {
  width: 30px;
  cursor: pointer;
  display: none;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #c59d5f;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* animación */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* MENU */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }
}



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

/* BODY */
body {
  min-height: 100vh;
  image-rendering: auto;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* TÍTULO PRINCIPAL */
.tituloPrincipalCocinca {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #c59d5f;
  margin-top: 5rem;
  margin-bottom: 2rem;
  font-size: 50px;
  text-align: center;
}

.tituloPrincipal {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #c59d5f;
  margin-top: 9rem;
  margin-bottom: 2rem;
  font-size: 50px;
  text-align: center;
}

.tituloPrincipal2 {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #c59d5f;
  margin-top: 6rem;
  margin-bottom: 1rem;
  font-size: 50px;
  text-align: center;
}

/* CONTENEDOR DE SECCIONES */
.listaSeccion {
  margin: 1rem;
  margin-bottom: 2rem;
  border: 2px solid #c59d5f;
  border-radius: 15px;
  padding: 1rem;
}

/* TÍTULO DE SECCIÓN */
.tituloSecciones2 {
  color: #c59d5f;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  border-bottom: 2px solid #c59d5f;
  padding-bottom: 5px;
  letter-spacing: 1px;
  text-align: center;
  font-size: 22px;
}

.tituloSecciones {
  color: #c59d5f;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  border-bottom: 2px solid #c59d5f;
  padding-bottom: 5px;
  letter-spacing: 1px;
  text-align: center;
  font-size: 27px;
}

.aa {
  font-size: 25px;
}

/* LISTA */
.lista-bebidas {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-bebidas li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.522);
  background-color: rgba(20, 20, 20, 0.8); 
  flex-wrap: wrap;
}

.listaGuarnicion {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.522);
  background-color: rgba(20, 20, 20, 0.8); 
}

.item-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 70%;
  min-width: 0;
}

.nombre {
  font-weight: bold;
  font-size: 22px;
  color: #fff;
}

.nombre2 {
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}

.nombre3 {
  font-weight: bold;
  font-size: 15px;
  color: #fff;
}



.descripcion {
  font-size: 18px;
  color: #ccc;
  margin-top: 3px;
}

.descripcion2 {
  font-size: 15px;
  color: #ccc;
  margin-top: 3px;
}

@media (max-width: 768px) {

  .lista-bebidas li {
    flex-direction: column;
  }

  /* fila superior: nombre + precio */
  .item-info {
    width: 100%;
  }

  .nombre {
    display: inline-block;
    font-weight: bold;
  }

  .precio {
    float: right;
    font-weight: bold;
    white-space: nowrap;
  }

  /* descripción debajo */
  .descripcionPicadas {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

.precio {
  font-weight: bold;
  font-size: 22px;
  color: #fff;
  flex: 0 0 auto;
  margin-left: 10px;
}

/* Ítems con múltiples precios */
.li-doble-precio .descripciones-precios {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.descripcion-item {
  display: grid;
  grid-template-columns: 1fr auto; /* descripción ocupa todo lo que puede, precio se ajusta al contenido */
  align-items: start; /* alinea el precio con la primera línea de la descripción */
  gap: 10px; /* espacio entre descripción y precio */
}

.descripcion-item .descripcion {
  color: #ccc;
  font-size: 20px;
}

.descripcion-item .precio {
  font-weight: bold;
  color: #fff;
  font-size: 20px;
}

/* MOBILE */
@media screen and (max-width: 600px) {
  .lista-bebidas li,
  .li-doble-precio {
    flex-wrap: wrap; /* mantiene precio al lado si cabe */
  }
  
  .descripcion-item .descripcion {
    font-size: 16px;
  }
  .descripcion-item .precio {
    font-size: 15px;
  }
  .nombre {
    font-size: 20px;
  }
  .precio {
    font-size: 20px;
  }
}

/* FIX DEFINITIVO Safari – fondo pixelado */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
    background-size: cover;
    image-rendering: auto;
  }
}


/*========================
  CAROUSEL TRAGOS DE AUTOR
=========================*/

/* Contenedor principal */
.carousel-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center; /* centra el carousel en la página */
  padding: 0 10px;
  margin-bottom: 10rem;
}

/* Track que contiene las cards */
.carousel-track {
  display: flex;
  gap: 28px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;

  padding-inline: calc((100vw - min(90vw, 460px)) / 2);
  scroll-padding-inline: calc((100vw - min(90vw, 460px)) / 2);

  -webkit-overflow-scrolling: touch;
}

/* Cards */
.card {
  flex: 0 0 auto;

width: min(90vw, 460px);
height: min(80vh, 680px);;

  border-radius: 22px;
  background-size: cover;
  background-position: center;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 24px;
  overflow: visible;
  scroll-snap-align: center;

}

.card::after {
  content: "";
  position: absolute;
  inset: 6px; /* el glow sale un poco */
  border-radius: 26px;
  pointer-events: none;
  z-index: -2;

  box-shadow:
    0 0 30px rgba(170, 80, 255, 0.8),
    0 0 30px rgba(170, 80, 255, 0.7),
    0 0 60px rgba(170, 80, 255, 0.6);
}

/* Overlay oscuro */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  border-radius: 20px;
  z-index: 1;
  
}

/* Textos */
.texto-top {
  font-family: 'KapsalonBrush';
  font-size: 45px;
  color: #fff;

  text-align: center;
  z-index: 2;
  margin-top: 1.5rem;
  position: relative;
  display: inline-block;

  letter-spacing: -0.2px; /* más juntas, sin empastarse */
}

.texto-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.9),
    transparent
  );
  border-radius: 10px;
}


.texto-bottom {
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  z-index: 2;
  margin-bottom: -22rem;
  position: relative;
  display: inline-block;
  
}

/* subrayado custom */
.texto-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 1.5px;
  background: linear-gradient(
    to right,
    transparent,
    #fff,
    transparent
  );
  opacity: 100;
}


.precioAutor {
  font-weight: bold;
  color: #fff;
  font-size: 25px;
  text-align: center;
  margin-top: 2rem;
}

/* Imágenes de cada card */
.card-1 { background-image: url("/carta1111/angeldenieve.jpg")}
.card-2 { background-image: url("/carta1111/entrelazado.jpg"); }
.card-3 { background-image: url("/carta1111/flordeloto.jpg"); }
.card-4 { background-image: url("/carta1111/fantasy.jpg"); }
.card-5 { background-image: url("/carta1111/lluviadorada.jpg");}
.card-6 { background-image: url("/carta1111/montañamagica.jpg"); }
.card-7 { background-image: url("/carta1111/onceonce.jpg"); }
.card-8 { background-image: url("/carta1111/vampiro.jpg");}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  padding: 0 12px;
  border-radius: 5px;
  transition: background 0.3s;
}
.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/*========================
  MEDIA QUERIES
=========================*/

/* Tablet: mostrar 2-3 cards visibles */
@media (min-width: 768px) {
  .card {
    flex: 0 0 45%;   /* menos ancho para mostrar varias cards */
    max-width: 320px;
    aspect-ratio: auto; /* altura automática proporcional al contenido */
    min-height: 500px;
  }

  .carousel-track {
    gap: 30px;
    padding: 30px 0;
  }
}

/* Desktop: mostrar 3-4 cards visibles */
@media (min-width: 1024px) {
  .card {
    flex: 0 0 30%;
    max-width: 350px;
    min-height: 580px;
  }

  .carousel-track {
    gap: 40px;
    padding: 40px 0;
  }
}



/* =========================
   FOOTER
========================= */

.footer {
  background: #fff;
  color: #000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-left: 20px;
}

/* IZQUIERDA */
.footer-left p {
  font-size: 15px;
  opacity: 0.8;
  margin: 0;
}

/* DERECHA ICONOS */
.footer-right {
  display: flex;

}

/* ICONOS */
.footer-right img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* HOVER */
.footer-right a:hover img {
  opacity: 0.8;
}

/* DESKTOP */
@media (min-width: 768px) {
  .footer-right img {
    width: 36px;
    height: 36px;
  }
}