/* ===========================
   1. Título y Fondo
=========================== */
.page-title {
    position: relative;
    text-align: center;
    padding: 100px 0;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Filtro oscuro */
    backdrop-filter: blur(5px);
    z-index: 1;
}

/* ✅ Efecto de Desenfoque Dinámico en el Título */
.page-title h1,
.page-title h4 {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    transition: text-shadow 0.3s ease-in-out;
}

.page-title h1:hover,
.page-title h4:hover {
    text-shadow: 4px 4px 12px rgba(255, 255, 255, 0.8);
}

/* ===========================
   2. Menú de Categorías
=========================== */
.nav-menu {
    border-radius: 10px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-menu li a {
    display: block;
    padding: 12px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background: #ffc107; /* Color amarillo dorado */
    color: black;
    border-radius: 5px;
}

/* ===========================
   3. Tarjetas de Productos
=========================== */
.menu-category {
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
}

/* ✅ Efecto de Escala en Títulos e Imágenes */
.menu-category-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #343a40;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.menu-category-title:hover {
    background: #ffc107;
    color: black;
    transform: scale(1.05);
}

/* ✅ Ajuste del fondo */
.menu-category-title .bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.menu-category-title h2 {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.menu-category-content {
    padding: 15px;
}

/* ✅ Efecto de Escala en Imágenes */
.menu-category img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.menu-category img:hover {
    transform: scale(1.08);
}

/* ===========================
   4. Responsividad
=========================== */
@media (max-width: 768px) {
    .nav-menu {
        display: block;
        text-align: center;
    }

    .menu-category {
        padding: 10px;
    }

    .menu-category-title h2 {
        font-size: 18px;
    }
}

/* ===========================
   5. Animaciones
=========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-category {
    animation: fadeInUp 0.5s ease-in-out;
}

/* ✅ Pulso en el Ícono del Carrito */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.carrito-icon {
    font-size: 18px;
    margin-right: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carrito-icon.show {
    transform: scale(1.2);
    opacity: 1;
    animation: pulse 0.8s infinite ease-in-out;
}

.carrito-icon.d-none {
    opacity: 0;
    transform: scale(0.5);
}

/* ✅ Transiciones Suaves en Elementos */
.nav-menu li a,
.menu-category-title,
.menu-category img,
.carrito-icon {
    transition: all 0.3s ease-in-out;
}

/* ===========================
   🔹 Estilos para el buscador de categorías
=========================== */
.search-container {
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #ccc;
}

.search-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Estilos del menú de categorías en móviles */
@media (max-width: 768px) {
    #menu-navigation {
        position: fixed;
        top: 0;
        left: -250px; /* Oculto inicialmente */
        width: 250px;
        height: 100%;
        background: #343a40;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        padding-top: 20px;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
    }

    #menu-navigation.show {
        left: 0; /* Muestra el menú */
    }
}

.bg-light {
    background-color: #f3f3f3 !important;
}