body {
      background: #181a1b;
      color: #f8f9fa;
    }

    .navbar,
    .card,
    .form-control,
    .list-group-item {
      background: #23272b !important;
      color: #f8f9fa !important;
    }

    /* Hero/Slider */
    .hero {
      position: relative;
      width: 100%;
      min-height: 260px;
      max-height: 380px;
      overflow: hidden;
      margin-bottom: 1.2rem;
      background: #23272b;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero .carousel-inner {
      width: 100%;
      height: 320px;
      border-radius: 0 0 1.5rem 1.5rem;
      overflow: hidden;
    }
    .hero .carousel-item img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      opacity: 0.8;
    }
    .hero-content {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }
    .hero-title {
      font-size: 2.3rem;
      font-weight: bold;
      color: #ffc107;
      text-shadow: 1px 1px 8px #23272b;
      margin-bottom: 0.5rem;
      letter-spacing: 2px;
      text-align: center;
    }
    .hero-subtitle {
      font-size: 1.15rem;
      color: #fff;
      text-shadow: 1px 1px 8px #23272b;
      margin-bottom: 0;
      text-align: center;
    }
.logo-hero {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 170px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 24px #0005;
  z-index: 3;
  padding: 14px;
  pointer-events: none;
  transition: width 0.2s, height 0.2s;
}
    @media (max-width: 576px) {
      .hero .carousel-inner,
      .hero .carousel-item img { height: 170px; }
      .hero-title { 
        font-size: 1.2rem;
        margin-top: 90px;
      }
      .hero-subtitle { 
        font-size: 0.95rem;
        margin-bottom: 0;
        margin-top: 0.5rem;
      }
      .logo-hero {
        width: 110px;
        height: 110px;
        top: 5px;
        right: 5px;
        padding: 8px;
      }
      .menu-card { 
        height: 400px; /* Altura fija más pequeña en móvil */
      }
      .menu-img-area {
        height: 160px; /* Altura fija más pequeña en móvil */
      }
      .menu-card .card-title { font-size: 1.05rem; }
      .menu-card .price-badge {
        font-size: 1.1rem;
        font-weight: bold;
        background: #ffc107;
        color: #23272b;
        border-radius: 1.2rem;
        padding: 0.35em 1.1em;
        display: inline-block;
        margin-top: 0.2em;
        margin-bottom: 0.2em;
        box-shadow: 0 2px 8px 0 rgba(255,193,7,0.10);
        vertical-align: middle;
        white-space: normal; /* Permite salto de línea si es necesario */
      }
      .menu-card .precio-original {
        color: #fff !important;
        text-decoration: line-through;
        font-size: 1.05rem;
        font-weight: normal;
        margin-right: 0.5em;
        opacity: 0.85;
        background: none;
        vertical-align: middle;
        display: inline;
        white-space: normal; /* Permite salto de línea */
        overflow: visible;   /* Permite mostrar todo el texto */
        text-overflow: unset;
      }
      .menu-card .precio-promo {
        color: #43a047 !important;
        font-weight: bold;
        font-size: 1.35rem;
        background: none;
        margin-left: 0.2em;
        vertical-align: middle;
        display: inline;
        white-space: normal; /* Permite salto de línea */
        overflow: visible;   /* Permite mostrar todo el texto */
        text-overflow: unset;
      }
      .destacados-row { padding: 0.4rem 0.2rem 0.1rem 0.2rem; }
    }

    /* Cards uniformes */
.menu-card {
  border-radius: 12px;
  overflow: hidden;
  background: #23272b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  border: 1.5px solid #343a40;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 520px; /* Altura fija aumentada para todas las cards */
  width: 100%;
  display: flex;
  flex-direction: column;
}
    .menu-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
/* Contenedor de imagen con padding y borde */
.menu-img-area {
  position: relative;
  padding-top: 66.67%; /* Proporción 3:2 */
  background: #23272b;
  overflow: hidden;
  margin: 8px;
  border: 1px solid #43a047;
  border-radius: 8px;
  height: 200px; /* Altura fija para todas las imágenes */
}

/* Ajuste de la imagen dentro del contenedor */
.menu-img-area img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

/* Mejorar visibilidad y salida de la cinta roja PROMO en destacados */
        .promo-ribbon {
            position: absolute;
            top: 10px;
            right: -30px;
            z-index: 1;
            width: 160px;
            height: 32px;
            background: #dc3545;
            color: white;
            padding: 5px 30px;
            transform: rotate(45deg);
            font-size: 0.8em;
            font-weight: 500;
            text-align: center;
            line-height: 32px;
            letter-spacing: 2px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            border-radius: 6px;
            pointer-events: none;
        }

    .menu-card .card-body {
      flex: 1;
      padding: 12px;
      display: flex;
      flex-direction: column;
      height: 280px; /* Altura fija aumentada para el contenido */
      min-height: 280px;
      position: relative;
    }
    .menu-card .card-title {
      height: 3em; /* Altura fija para el título */
      min-height: 3em;
      margin-bottom: 0.5rem;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .menu-card .badge-featured {
      background: linear-gradient(90deg, #ff9800 60%, #ffc107 100%);
      color: #23272b !important;
      font-weight: bold;
      font-size: 1.05rem;
      box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
      display: inline-flex;
      align-items: center;
      gap: 0.4em;
    }
    .menu-card .card-text {
      height: 4.5em; /* Altura fija aumentada para la descripción */
      min-height: 4.5em;
      overflow: hidden;
      margin-bottom: 0.5rem;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      -webkit-box-orient: vertical;
    }
    .menu-card .price-badge {
      font-size: 1.3rem;
      font-weight: bold;
      background: #43a047;
      color: #fff;
      padding: 6px 16px;
      border-radius: 20px;
      display: inline-block;
      min-width: 120px;
      text-align: center;
      margin: 0;
    }
    .menu-card .precio-original {
      position: absolute;
      top: 0;
      font-size: 0.9rem;
      color: #adb5bd !important;
      text-decoration: line-through;
      opacity: 0.9;
      background: rgba(0,0,0,0.2);
      padding: 2px 8px;
      border-radius: 10px;
      transform: translateY(-50%);
    }
    .menu-card .precio-promo {
      color: #43a047 !important;
      font-weight: bold;
      font-size: 1.35rem;
      padding: 0.35em 1.1em;
      border-radius: 1.2rem;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      display: inline-block;
    }

    .menu-card .badge.bg-success {
      font-size: 0.95rem;
      margin-left: 0.5em;
    }
    /* --- Destacados --- */
    .destacados-row {
      border-radius: 1.2rem;
      padding: 0.7rem 0.7rem 0.3rem 0.7rem;
      margin-bottom: 1.2rem;
      box-shadow: none;
      background: none;
    }
  /* Cards destacados mantienen su estilo especial */
.destacados-row .menu-card {
  background: #43a047 !important;
  color: #fff !important;
  border: 2.5px solid #388e3c !important;
  box-shadow: 0 0 0 4px #a5d6a7 !important;
}
.destacados-row .menu-img-area {
  border-color: #388e3c;
  background: #388e3c;
}
    .destacados-row .menu-card .card-title,
    .destacados-row .menu-card .precio-original {
      color: #fff !important;
    }
    .destacados-row .menu-card .precio-promo {
      color: #fffde7 !important;
    }
    .destacados-row .promo-ribbon {
      background: #d32f2f !important; /* Rojo */
      color: #fff !important;
      border: 2px solid #43a047;
      text-shadow: none;
    }
    /* Centrado absoluto de los cards */
    .destacados-row .row,
    #menusRow {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      min-height: 40vh;
    }
    .destacados-row .col-12,
    .destacados-row .col-md-6,
    .destacados-row .col-lg-4,
    #menusRow .col-12,
    #menusRow .col-md-6,
    #menusRow .col-lg-4 {
      display: flex;
      justify-content: center;
      align-items: stretch;
    }
/* ...código existente... */

@media (max-width: 576px) {
  .hero .carousel-inner,
  .hero .carousel-item img { height: 170px; }
  .hero-title { 
    font-size: 1.2rem;
    margin-top: 90px;
  }
  .hero-subtitle { 
    font-size: 0.95rem;
    margin-bottom: 0;
    margin-top: 0.5rem;
  }
  .logo-hero {
    width: 110px;
    height: 110px;
    top: 5px;
    right: 5px;
    padding: 8px;
  }
  .menu-card { 
    height: 480px; /* Altura fija ajustada para móvil */
  }
  .menu-img-area {
    height: 160px; /* Altura fija más pequeña en móvil */
  }
  .menu-card .card-body {
    height: 260px;
    min-height: 260px;
  }
}

/* Nuevo estilo para contenedor de precios */
.price-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px; /* Altura fija para el contenedor de precios */
  min-height: 80px;
  padding: 12px;
  background: rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ajustes para cards destacados */
.destacados-row .menu-card .price-container {
  background: rgba(255,255,255,0.15);
}

.destacados-row .menu-card .price-badge {
  background: #fff;
  color: #43a047;
}

/* Banda promocional estilo papel pegado */
.promo-banner {
    width: calc(100% - 24px);
    margin: -1px 12px 0;
    background: linear-gradient(135deg, #ff4d4d 0%, #dc3545 100%);
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.4),
        0 -2px 6px rgba(255,255,255,0.1) inset;
    transform: translateY(-2px);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 4px;
}

.promo-banner:before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    z-index: -1;
    background: rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.3),
        0 0 4px rgba(0,0,0,0.1);
}

.promo-banner:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(0,0,0,0.1) 15%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.1) 85%,
        transparent 100%
    );
}

@media (max-width: 576px) {
    .promo-banner {
        width: calc(100% - 20px);
        margin: -1px 10px 0;
        font-size: 0.95rem;
        padding: 8px 12px;
    }
}

/* ========================================
   ESTILOS PERSONALIZADOS PARA BOTONES DE CATEGORÍAS
   ======================================== */

/* Contenedor de botones de categorías */
#categoryButtons {
    padding: 20px 0;
    background: transparent;
}

/* Estilos base para botones de categorías */
.btn-category {
    background: transparent !important;
    border: none !important;
    color: #f8f9fa !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px !important;
    margin: 8px;
    min-width: 120px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: hidden;
}

/* Efecto de subrayado inicial (oculto) */
.btn-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Efectos de hover */
.btn-category:hover {
    transform: scale(1.05);
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.05) !important;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
}

/* Subrayado al hacer hover */
.btn-category:hover::after {
    width: 80%;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

/* Estado activo del botón */
.btn-category.active {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
    transform: scale(1.02);
    text-shadow: 0 0 6px rgba(255, 193, 7, 0.2);
}

/* Subrayado permanente para botón activo */
.btn-category.active::after {
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107);
    box-shadow: 
        0 0 10px rgba(255, 193, 7, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

/* Animación de brillo sutil para botón activo */
@keyframes pulse-glow {
    0% {
        box-shadow: 
            0 0 10px rgba(255, 193, 7, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(255, 193, 7, 0.8),
            0 2px 6px rgba(0, 0, 0, 0.4);
    }
}

/* Efecto de foco para accesibilidad */
.btn-category:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3), 0 0 8px rgba(255, 193, 7, 0.2) !important;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .btn-category {
        font-size: 0.9rem;
        padding: 10px 18px !important;
        min-width: 100px;
        margin: 6px;
        letter-spacing: 0.5px;
    }
    
    .btn-category:hover {
        transform: scale(1.03);
    }
    
    .btn-category.active {
        transform: scale(1.01);
    }
}

@media (max-width: 576px) {
    .btn-category {
        font-size: 0.85rem;
        padding: 8px 16px !important;
        min-width: 90px;
        margin: 4px;
    }
    
    .btn-category:hover {
        transform: scale(1.02);
    }
}

/* Estilos para tarjetas destacadas */
.featured-card {
    border: 2px solid #ffc107 !important;
    position: relative;
    animation: featured-glow 2s ease-in-out infinite alternate;
}

.featured-card::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #ffc107;
    color: #000;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes featured-glow {
    from {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

.featured-card .menu-img-area {
    border-color: #ffc107;
}

.featured-card .card-title {
    color: #ffc107;
}