:root {
  --color-primario:#ff3d3d;
  --oscuro:#0f1418;
  --claro:#f5f5f5;
  --acento:#ffb347;
}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif;
  background:#0b0f11;
  color:#e9ecef;
  scroll-behavior:smooth;
}
.navbar{
  background:rgba(15,20,24,.8)!important;
  backdrop-filter:blur(8px);
}
.hero{
  min-height:100vh;
  background:
    linear-gradient(rgba(15,20,24,.65),rgba(15,20,24,.9)),
    url("https://images.unsplash.com/photo-1601315488950-d6f4d00b5f4d?auto=format&fit=crop&w=1600&q=60") center/cover;
  display:flex;
  align-items:center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--color-primario));
  background-clip: text;             /* estándar */
  -webkit-background-clip: text;     /* compatibilidad */
  color: transparent;
}
.cat-card{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:.4s;
  border:0;
  background:#162026;
}
.cat-card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 28px -6px #000;
}
.cat-card img{
  width:100%;height:160px;object-fit:cover;filter:brightness(.7);transition:.5s;
}
.cat-card:hover img{transform:scale(1.09);filter:brightness(.55);}
.cat-label{
  position:absolute;inset:auto 0 0 0;
  padding:.75rem 1rem;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.9));
}
.cat-label h5{
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.cat-label small{
  color: #f8f9fa !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.filter-pills .btn{
  text-transform:uppercase;
  font-size:.75rem;
  letter-spacing:.08em;
}
.menu-item{
  background:#151e24;
  border:1px solid #24323b;
  border-radius:16px;
  padding:1rem 1.1rem 1.25rem;
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  transition:.35s;
}
.menu-item-image{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:.5rem;
}
.menu-item:hover{
  border-color:var(--color-primario);
  box-shadow:0 0 0 1px var(--color-primario) inset;
}
.menu-item h6{margin:0;font-weight:600;}
.badge-cat{
  background:var(--color-primario);
  font-weight:500;
  letter-spacing:.5px;
}
.price{
  margin-left:auto;
  font-weight:600;
  color:var(--acento);
}
.divider{
  height:1px;
  background:linear-gradient(90deg,transparent,#2c3a43,transparent);
  margin:3rem 0 2rem;
}
footer{
  background:#0f1418;
  padding:3rem 0 1.5rem;
  margin-top:4rem;
}
a{text-decoration:none}
.pulse{
  position:relative;
}
.pulse::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  animation:pulse 2.4s infinite;
  border:2px solid var(--color-primario);
  opacity:.45;
}
@keyframes pulse{
  0%{transform:scale(1);opacity:.55}
  70%{transform:scale(1.25);opacity:0}
  100%{opacity:0}
}
.search-wrapper{position:relative;}
.search-wrapper input{
  background:#152027;
  border:1px solid #24323b;
  color:#fff;
}
.search-wrapper input:focus{
  border-color:var(--color-primario);
  box-shadow:0 0 0 .2rem rgba(255,61,61,.25);
}
.no-results{
  display:none;
  text-align:center;
  padding:2rem 0;
  opacity:.6;
}

/* ESTILOS DEL CARRITO */
.cart-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-primario);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 61, 61, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  animation: bounceIn 0.6s ease-out;
}

.cart-floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 61, 61, 0.6);
  background: #e63333;
}

.cart-floating-btn .cart-icon {
  font-size: 1.4rem;
}

.cart-badge {
  background: white;
  color: var(--color-primario);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 5px;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ESTILOS DEL MODAL */
.modal-content {
  border-radius: 15px;
}

.badge-cat {
  font-size: 0.7rem;
}

/* RESPONSIVO PARA EL BOTÓN FLOTANTE */
@media (max-width: 768px) {
  .cart-floating-btn {
    bottom: 15px;
    right: 15px;
    padding: 12px 16px;
    font-size: 1rem;
  }
  
  .cart-floating-btn .cart-icon {
    font-size: 1.2rem;
  }
  
  .cart-badge {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
}

/* ANIMACIONES DE FONDO */
body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 61, 61, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 179, 71, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 61, 61, 0.04) 0%, transparent 50%);
  animation: backgroundFloat 15s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

@keyframes backgroundFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(-10px, -15px, 0) rotate(0.5deg);
  }
  50% {
    transform: translate3d(15px, -25px, 0) rotate(-0.5deg);
  }
  75% {
    transform: translate3d(-5px, -10px, 0) rotate(0.3deg);
  }
}

/* PARTÍCULAS FLOTANTES */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 61, 61, 0.3), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255, 179, 71, 0.2), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 61, 61, 0.2), transparent);
  background-size: 150px 150px, 200px 200px, 120px 120px, 180px 180px, 140px 140px;
  animation: floatingParticles 20s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes floatingParticles {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(30px, -80px, 0);
  }
}

/* ANIMACIÓN DE HOVER MEJORADA PARA MENÚ */
.menu-item {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 61, 0.08), transparent);
  transition: transform 0.5s ease;
  will-change: transform;
}

.menu-item:hover::before {
  transform: translateX(200%);
}

.menu-item:hover {
  transform: translate3d(0, -6px, 0) scale(1.01);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 61, 61, 0.15);
}

/* ANIMACIÓN PARA LAS CATEGORÍAS */
.cat-card {
  position: relative;
  overflow: hidden;
}

.cat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 61, 61, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotateGlow 10s linear infinite;
}

.cat-card:hover::after {
  opacity: 1;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* GRADIENTE ANIMADO PARA EL TÍTULO HERO */
.hero h1 {
  background: linear-gradient(-45deg, #fff, var(--color-primario), #fff, var(--acento));
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  will-change: background-position;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
