/* ===== PALETA DE COLORES =====*/
:root {
  --rojo-capi: #E30613;
  --rojo-oscuro: #b1000e;
  --gris-claro: #d9d9d9;
  --gris-medio: #a8a8a8;
  --gris-oscuro: #5a5a5a;
  --carbon: #1a1a1a;
  --blanco: #fff;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--blanco);
  overflow-x: hidden;
  background:
    radial-gradient(1400px 900px at -8% -8%, rgba(227, 6, 19, .12), transparent 65%),
    radial-gradient(1100px 700px at 108% 8%, rgba(217, 217, 217, .10), transparent 60%),
    #0d0d0d;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== BARRA DE PROGRESO =====*/
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, var(--rojo-capi), var(--gris-claro), var(--rojo-capi));
  background-size: 200% 100%;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(227, 6, 19, .6), 0 0 30px rgba(217, 217, 217, .3);
  animation: shimmer-bar 3s linear infinite;
}

@keyframes shimmer-bar {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== NAVBAR =====*/
.logo {
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(227, 6, 19, .5));
}

.navbar.transparent-nav {
  background: transparent;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
  z-index: 1001;
}

.navbar.navbar-scrolled {
  background: rgba(13, 13, 13, .90);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(227, 6, 19, .25);
}

.navbar-brand span {
  font-weight: 700;
  background: linear-gradient(90deg, var(--blanco), var(--gris-claro));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar .nav-link {
  color: var(--blanco) !important;
  margin-left: 12px;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all .3s;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rojo-capi);
  transform: translateX(-50%);
  transition: width .3s;
}

.navbar .nav-link:hover {
  color: var(--rojo-capi) !important;
  text-shadow: 0 0 12px rgba(227, 6, 19, .6);
  transform: translateY(-2px);
}

.navbar .nav-link:hover::after {
  width: 60%;
}

.btn-pedido-nav {
  background: linear-gradient(135deg, var(--rojo-capi), var(--rojo-oscuro)) !important;
  border-radius: 20px !important;
  padding: 8px 20px !important;
  box-shadow: 0 4px 15px rgba(227, 6, 19, .4);
  display: flex;
  align-items: center;
}

.btn-pedido-nav:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(227, 6, 19, .6), 0 0 20px rgba(217, 217, 217, .3);
}

/* ===== HERO MENU =====*/
.hero-menu {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, .6);
  background: linear-gradient(135deg, rgba(227, 6, 19, .1) 0%, rgba(13, 13, 13, 0) 100%);
}

.hero-menu h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gris-claro);
  opacity: .9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== GRADIENT SHINE =====*/
.gradient-shine {
  background: linear-gradient(90deg, var(--gris-claro), #fff, var(--gris-medio), #fff, var(--gris-claro));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ===== FILTROS =====*/
.filtros-menu {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid rgba(227, 6, 19, .2);
}

.filtros-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-filtro {
  padding: 12px 24px;
  border: 2px solid rgba(227, 6, 19, .3);
  background: transparent;
  color: var(--gris-claro);
  border-radius: 25px;
  cursor: pointer;
  transition: all .3s;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-filtro:hover {
  background: rgba(227, 6, 19, .1);
  border-color: var(--rojo-capi);
  color: var(--rojo-capi);
  transform: translateY(-3px);
}

.btn-filtro.active {
  background: linear-gradient(135deg, var(--rojo-capi), var(--rojo-oscuro));
  border-color: var(--rojo-capi);
  color: var(--blanco);
  box-shadow: 0 8px 20px rgba(227, 6, 19, .4);
}

/* ===== MENÚ SECTION =====*/
.menu-section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.categoria-section {
  margin-bottom: 80px;
  opacity: 1;
  transform: none;
  transition: all .6s ease;
}

.categoria-section[style*="display: none"] {
  display: none !important;
}

.categoria-header {
  margin-bottom: 50px;
  text-align: center;
}

.categoria-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gris-claro);
}

.divider-shine {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gris-claro), transparent);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(217, 217, 217, .4);
}

/* ===== PRODUCTO CARD =====*/
.producto-card {
  border: 1px solid rgba(227, 6, 19, .2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.producto-card:hover {
  transform: translateY(-12px);
  background: rgba(227, 6, 19, .08);
  border-color: rgba(227, 6, 19, .5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4), 0 0 40px rgba(227, 6, 19, .25);
}

.producto-card.destacado {
  border: 2px solid rgba(227, 6, 19, .4);
  background: rgba(227, 6, 19, .08);
}

.producto-card.destacado:hover {
  background: rgba(227, 6, 19, .12);
  transform: translateY(-14px) scale(1.02);
}

.producto-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: rgba(0, 0, 0, .3);
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .4s;
}

.producto-card:hover .producto-img img {
  transform: scale(1.08) rotateY(2deg);
  filter: brightness(1.1) saturate(1.15);
}

.badge-precio {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--rojo-capi), var(--rojo-oscuro));
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 5px 15px rgba(227, 6, 19, .5);
}

.producto-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.producto-info h5 {
  color: var(--gris-claro);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.badge-popular-small {
  background: linear-gradient(135deg, #FFD700, #ffae00);
  color: var(--rojo-capi);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  margin-left: 8px;
}

.producto-desc {
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.producto-desc-small {
  color: rgba(255, 255, 255, .75);
  font-size: .85rem;
  margin-top: 8px;
}

/* ===== OPCIONES =====*/
.opciones-grupo {
  margin: 16px 0;
  padding: 12px;
  background: rgba(227, 6, 19, .08);
  border-radius: 10px;
}

.opciones-grupo p {
  color: var(--gris-claro);
  font-size: .9rem;
  margin-bottom: 10px;
}

.opciones-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  background: rgba(227, 6, 19, .2);
  color: var(--gris-claro);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: .85rem;
  border: 1px solid rgba(227, 6, 19, .3);
  transition: all .3s;
  cursor: default;
}

.chip:hover {
  background: rgba(227, 6, 19, .3);
  border-color: var(--rojo-capi);
}

/* ===== VARIANTES =====*/
.variantes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-variante {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(227, 6, 19, .3);
  color: var(--gris-claro);
  border-radius: 15px;
  cursor: pointer;
  font-size: .85rem;
  transition: all .3s;
  flex: 1;
  min-width: 80px;
}

.btn-variante:hover {
  background: rgba(227, 6, 19, .1);
  border-color: var(--rojo-capi);
  color: var(--rojo-capi);
}

.btn-variante.active {
  background: linear-gradient(135deg, var(--rojo-capi), var(--rojo-oscuro));
  border-color: var(--rojo-capi);
  color: var(--blanco);
}

/* ===== BOTONES =====*/
.btn-agregar {
  background: linear-gradient(135deg, var(--rojo-capi), var(--rojo-oscuro));
  color: var(--blanco);
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  box-shadow: 0 5px 15px rgba(227, 6, 19, .3);
}

.btn-agregar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 6, 19, .5);
  background: linear-gradient(135deg, var(--rojo-capi), #ff3030);
}

.btn-agregar:active {
  transform: translateY(-1px);
}

/* ===== CARRITO FLOTANTE =====*/
.carrito-flotante {
  position: fixed;
  right: -400px;
  top: 100px;
  width: 380px;
  height: calc(100vh - 120px);
  background: rgba(13, 13, 13, .95);
  backdrop-filter: blur(20px);
  border-left: 2px solid rgba(227, 6, 19, .4);
  border-top: 2px solid rgba(227, 6, 19, .4);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .6);
}

.carrito-flotante.show {
  right: 0;
}

.carrito-header {
  padding: 20px;
  border-bottom: 1px solid rgba(227, 6, 19, .2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrito-header h5 {
  color: var(--gris-claro);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.btn-cerrar {
  background: none;
  border: none;
  color: var(--gris-claro);
  font-size: 28px;
  cursor: pointer;
  transition: all .3s;
}

.btn-cerrar:hover {
  color: var(--rojo-capi);
  transform: rotate(90deg);
}

.carrito-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

.carrito-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  opacity: .6;
}

.carrito-vacio i {
  font-size: 3rem;
  color: var(--rojo-capi);
  margin-bottom: 15px;
}

.carrito-item {
  background: rgba(227, 6, 19, .08);
  border: 1px solid rgba(227, 6, 19, .2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.item-info h6 {
  color: var(--gris-claro);
  margin-bottom: 6px;
  font-size: .95rem;
}

.item-precio {
  color: var(--rojo-capi);
  font-weight: 700;
  font-size: .9rem;
  margin: 0;
}

.item-acciones {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cantidad {
  background: rgba(227, 6, 19, .2);
  border: none;
  color: var(--rojo-capi);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cantidad:hover {
  background: var(--rojo-capi);
  color: var(--blanco);
}

.cantidad {
  color: var(--gris-claro);
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.btn-eliminar {
  background: rgba(227, 6, 19, .3);
  border: none;
  color: #ff6b6b;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-eliminar:hover {
  background: #ff6b6b;
  color: var(--blanco);
}

.carrito-footer {
  padding: 20px;
  border-top: 1px solid rgba(227, 6, 19, .2);
  gap: 12px;
}

.carrito-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(227, 6, 19, .1);
  border-radius: 10px;
}

.carrito-total span {
  color: var(--gris-claro);
  font-weight: 700;
}

.total-precio {
  font-size: 1.4rem !important;
  color: var(--rojo-capi) !important;
}

.btn-finalizar {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--rojo-capi), var(--rojo-oscuro));
  color: var(--blanco);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 5px 15px rgba(227, 6, 19, .4);
}

.btn-finalizar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 6, 19, .6);
}

/* ===== REVEAL =====*/
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(.97);
  filter: blur(5px);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ===== FOOTER =====*/
.footer {
  background: rgba(0, 0, 0, .92);
  border-top: 2px solid rgba(227, 6, 19, .3);
  box-shadow: 0 -18px 45px rgba(0, 0, 0, .6);
  position: relative;
  z-index: 1;
}

.footer-logo img {
  filter: drop-shadow(0 5px 14px rgba(227, 6, 19, .5));
}

.footer p {
  color: rgba(255, 255, 255, .82);
}

.social-icons a {
  color: var(--gris-claro);
  margin: 0 14px;
  font-size: 1.6rem;
  transition: all .35s;
  display: inline-block;
}

.social-icons a:hover {
  color: var(--rojo-capi);
  transform: translateY(-5px) scale(1.25);
  filter: drop-shadow(0 5px 14px rgba(227, 6, 19, .7));
}

/* ===== BOTÓN ARRIBA =====*/
#btnTop {
  position: fixed;
  right: 26px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  background: linear-gradient(135deg, var(--rojo-capi), var(--rojo-oscuro));
  color: #fff;
  font-size: 28px;
  box-shadow: 0 0 22px rgba(227, 6, 19, .5);
  z-index: 1001;
  transition: all .35s;
}

#btnTop:hover {
  transform: scale(1.14) translateY(-5px);
  box-shadow: 0 0 40px rgba(227, 6, 19, .8);
}

/* ===== RESPONSIVE =====*/
@media (max-width: 768px) {
  .carrito-flotante {
    width: 100%;
    right: -100%;
    height: 100vh;
    top: 0;
  }

  .filtros-wrapper {
    gap: 8px;
  }

  .btn-filtro {
    padding: 10px 16px;
    font-size: .9rem;
  }

  .producto-card {
    border-radius: 14px;
  }

  .producto-img {
    height: 180px;
  }

  .producto-info {
    padding: 16px;
  }

  .categoria-header h2 {
    font-size: 1.6rem;
  }

  .variantes {
    gap: 6px;
  }

  .btn-variante {
    padding: 6px 10px;
    font-size: .8rem;
  }
}

@media (max-width: 480px) {
  .navbar .nav-link {
    margin-left: 0;
    padding: 6px 8px !important;
  }

  .hero-menu {
    min-height: 50vh;
  }

  .hero-menu h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .producto-card {
    border-radius: 12px;
  }

  .producto-img {
    height: 150px;
  }

  .producto-info h5 {
    font-size: 1rem;
  }

  .btn-agregar {
    padding: 10px 16px;
    font-size: .9rem;
  }

  .carrito-item {
    flex-direction: column;
    align-items: flex-start;
  }

  #btnTop {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}
/* OPCIONAL: proporciones por orientación */
.producto-card.vertical .producto-img{ height: 260px; }    /* Botellas/verticales */
.producto-card.horizontal .producto-img{ height: 180px; }  /* Platos/horizontales */

@media (max-width: 992px){
  .producto-card.vertical .producto-img{ height: 220px; }
  .producto-card.horizontal .producto-img{ height: 170px; }
}
@media (max-width: 768px){
  .producto-card.vertical .producto-img{ height: 200px; }
  .producto-card.horizontal .producto-img{ height: 160px; }
}
@media (max-width: 480px){
  .producto-card.vertical .producto-img{ height: 180px; }
  .producto-card.horizontal .producto-img{ height: 150px; }
}
.text-muted-small {
  color: var(--blanco) !important;
}

.text-muted {
  color: var(--blanco) !important;
}