/* Animación para productos */
#productos-container .col-12,
#productos-container .col-md-6,
#productos-container .col-lg-10,
#productos-container .col-lg-11 {
    animation: fadeInUp 0.3s ease-out backwards;
}

#productos-container .col-12:nth-child(1) { animation-delay: 0.1s; }
#productos-container .col-12:nth-child(2) { animation-delay: 0.35s; }
#productos-container .col-12:nth-child(3) { animation-delay: 0.3s; }
#productos-container .col-12:nth-child(4) { animation-delay: 0.4s; }
#productos-container .col-12:nth-child(5) { animation-delay: 0.5s; }
#productos-container .col-12:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el boton Instalar App */
        .thumb { 
            height: 70px; 
            object-fit: cover; 
            border-radius: .35rem;
        }
        
        .thumbs-grid { 
            display: grid; 
            grid-template-columns: repeat(3, 1fr); 
            gap: .5rem;
        }

        #btnInstall {
            position: fixed;
            right: 16px;
            bottom: 16px;
            padding: 12px 16px;
            border: 0;
            border-radius: 10px;
            background: #2d5d9b;
            color: white;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(0,0,0,.2);
            z-index: 9999;
            transition: all 0.3s ease;
        }

        #btnInstall:hover {
            position: fixed;
            right: 16px;
            bottom: 16px;
            padding: 12px 16px;
            border: 0;
            border-radius: 10px;
            background: #1c477e;
            color: white;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(0,0,0,.2);
            z-index: 9999;
            transition: all 0.3s ease;
        }

            #btnUp {
                position: fixed;
                right: 90rem;
                bottom: 16px;
                padding: 8px 8px;
                border: 0;
                border-radius: 20px;
                background: #2d5d9b;
                color: white;
                font-size: 14px;
                cursor: pointer;
                box-shadow: 0 6px 18px rgba(0,0,0,.3);
                z-index: 9999;
                transition: all 0.3s ease;
            }

            #btnUp:hover {
                position: fixed;
                right: 90rem;
                bottom: 16px;
                padding: 8px 8px;
                border: 0;
                border-radius: 20px;
                background: #1b4986;
                color: white;
                font-size: 14px;
                cursor: pointer;
                box-shadow: 0 6px 18px rgba(0,0,0,.3);
                z-index: 9999;
                transition: all 0.3s ease;
            }

        @media (max-width: 576px) { 
            #btnUp {
                    position: fixed;
                    right: 20rem;
                    bottom: 16px;
                    padding: 8px 8px;
                    border: 0;
                    border-radius: 20px;
                    background: #2d5d9b;
                    color: white;
                    font-size: 14px;
                    cursor: pointer;
                    box-shadow: 0 6px 18px rgba(0,0,0,.3);
                    z-index: 9999;
                    transition: all 0.3s ease;
                }
            }

        @media (max-width: 576px) { 
            #btnUp:hover {
                position: fixed;
                right: 320px;
                bottom: 16px;
                padding: 8px 8px;
                border: 0;
                border-radius: 10px;
                background: #1b4986;
                color: white;
                font-size: 14px;
                cursor: pointer;
                box-shadow: 0 6px 18px rgba(0,0,0,.3);
                z-index: 9999;
                transition: all 0.3s ease;
            }
        }

        :root {
            --primary-blue: #ab0303;
            --cream-bg: #ffffff;
            --dark-text: #ffffff;
        }
        .py-4 {
            padding-top: 3rem !important;
            padding-bottom: 1rem !important;
        }

        .navbar {
            background-color: #a80000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);

        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--dark-text) !important;
        }

        .nav-link {
            color: var(--dark-text) !important;
            margin: 0 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .nav-link:hover {
            color: var(--dark-text) !important;
            margin: 0 1rem;
            font-weight: 500;
            transform: translateY(-10px) scale(110%);
            transition: all 0.3s ease;
        }

        @media (min-width: 992px) {
            .nav-link {
                margin: 0 1rem;
                font-weight: 500;
                transform: translateY(-8px);
            }
        }

        .nav-link-btn {
            text-decoration: none;
            color: white;
        }

        .nav-link-login {
            color: #910000 !important;
            font-weight: 500;
            text-decoration: none;
        }

        .navbar-nav-ft {
            display: flex;
            flex-direction: row;
            justify-content: center;
            flex-wrap: wrap;
            padding-left: 0;
            margin-bottom: 4px;
            margin-top: 4px;
            list-style: none;
            font-size: 16px;
            gap: 4rem; /* Más espacio entre enlaces */
        }

        .navbar-nav-ft .nav-link {
            color: white;
            transition: color 0.3s ease;
        }

        .nav-link-ft {
            color: #da0000;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
        }

        .nav-link-ft:hover {
            color: black;
            transition: color 0.3s ease;
        }

        .navbar-nav-ft .nav-link:hover {
            color: #ffc107;
        }

        @media (max-width: 576px) {        
            .navbar-nav-ft {
                flex-direction: row;
                font-size: 8px;
                gap: 58px;
            }
        }

        .hero-section {
            text-align: center;
            padding: 3rem 0;
        }

        .btn-primary {
            background-color: var(--primary-blue);
            border: none;
            color: white;
            padding: .5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-danger {
            border: 2px solid #891521;
            background-color: #891521;
            color: white;
            border-radius: 8px;
            font-weight: 600;
            margin-left: 1rem;
            transition: all 0.3s ease;
        }

        .btn-ig {
            background-color: #891521;
            border: none;
            color: white;
            padding: .5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-ig:hover {
            background-color: #d8472d;
            border: none;
            color: white;
            padding: .5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary-custom {
            background-color: var(--primary-blue);
            border: none;
            color: white;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary-custom:hover {
            background-color: #122C4F;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
        }

        .btn-outline-danger-custom {
            border: 2px solid #DC3545;
            color: #DC3545;
            background-color: transparent;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-weight: 600;
            margin-left: 1rem;
            transition: all 0.3s ease;
        }

        .btn-outline-danger-custom:hover {
            background-color: #DC3545;
            color: white;
            transform: translateY(-2px);
        }

        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
        }

        .empty-box {
            width: 120px;
            height: 120px;
            border: 3px solid var(--primary-blue);
            border-radius: 12px;
            margin: 0 auto 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-card .card-header {
            background-color: var(--primary-blue);
            color: white;
            padding: 1rem;
            font-weight: 600;
        }

        .modal-content {
            border-radius: 12px;
            border: none;
        }

        .modal-header {
            background-color: var(--primary-blue);
            color: white;
            border-radius: 12px 12px 0 0;
        }

        .form-control, .form-select {
            border-radius: 8px;
            border: 1px solid #CED4DA;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
        }

        .badge {
            padding: 0.3rem 1rem;
            border-radius: 6px;
            font-weight: 600;
        }
        .nav-link .bi-cart {
        font-size: 1.8rem;
        color: white;
        }

        .nav-link .bi-cart:hover {
        color: #ffc107;
        }

        /* Ajustes generales para tarjetas de productos */
        .card-title {
            font-size: 0.9rem !important;
            margin-bottom: 0.3rem;
        }

        .card-text {
            font-size: 0.75rem !important;
        }

        .card-body {
            padding: 0.6rem !important;
        }

        .price-text {
            font-size: 1rem !important;
            font-weight: bold;
        }
        /* Altura compacta para celulares */
        .product-img {
            height: 110px;
            object-fit: cover;
            border-radius: 8px;
        }

        /* Altura mayor cuando la pantalla es grande */
        @media (min-width: 768px) {
            .product-img {
                height: 180px;
            }
        }

        @media (min-width: 1200px) {
            .product-img {
                height: 220px;
            }
        }

        .carousel-img {
            height: 200px;
            object-fit: cover;
        }

        /* Ajuste de texto del carrusel en móviles */
        @media (max-width: 576px) {
            .carousel-caption {
                bottom: 50px !important;
                padding: 0 10px !important;
                width: 100% !important;
                left: 0 !important;
                right: 0 !important;
                text-align: center;
            }

            .carousel-caption h5 {
                font-size: 1.5rem !important;   
                font-weight: 700;
                line-height: 1.2;
                text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
                
            }

            .carousel-caption p {
                font-size: 1rem !important; 
                font-weight: 600;
                line-height: 1.2;
                margin-bottom: 0;
                text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
            }
        }

        /* Ajuste ed texto del carrusel para escritorio */
        @media (min-width: 992px) {
            .carousel-caption {
                bottom: 80px !important;
                padding: 0 10px !important;
                width: 100% !important;
                left: 0 !important;
                right: 0 !important;
                text-align: center;
            }

            .carousel-caption h5 {
                font-size: 3rem;
                text-shadow: 2px 2px 7px rgba(0,0,0,0.7);
            }

            .carousel-caption p {
                font-size: 1.5rem !important; 
                font-weight: 600;
                line-height: 1.2;
                margin-bottom: 0;
                text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
            }
        }

        /* Tablet */
        @media (min-width: 768px) {
            .carousel-img {
                height: 260px;
            }
        }

        /* Escritorio grande */
        @media (min-width: 1200px) {
            .carousel-img {
                height: 320px;
            }
        }

        /* Márgenes y estilo del carrusel - MÁS RECTANGULAR */
        #heroCarousel {
            margin: 2rem auto;
            max-width: 95%;
            border-radius: 15px; 
            overflow: hidden;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
        }

        /* Ajustar altura de las imágenes para hacerlo más rectangular */
        .carousel-img {
            height: 280px;
            object-fit: cover;
        }

        #heroCarousel .carousel-inner img {
            height: 280px !important; 
            object-fit: cover;
        }

        /* Responsive - Márgenes más pequeños en móvil */
        @media (max-width: 768px) {
            #heroCarousel {
                max-width: 94%;
                margin: 0.50rem auto;
            }
            
            #heroCarousel .carousel-inner img {
                height: 125px !important; /* Menos alto en móvil */
            }
        }


        /* Desktop - Más rectangular (más ancho que alto) */
        @media (min-width: 1200px) {
            #heroCarousel {
                margin: 3rem auto;
                max-width: 92%;
            }
            
            #heroCarousel .carousel-inner img {
                height: 250px !important;
            }
        }

        /* Ultra ancho (pantallas grandes) */
        @media (min-width: 1600px) {
            #heroCarousel .carousel-inner img {
                height: 250px !important;
            }
        }

        /* Slider de Categorías */
        .categorias-scroll-container {
            overflow: hidden;
            position: relative; 
        }

        /* Slider de Categorias (Escritorio) */
        @media (min-width: 1200px) {
            .categorias-scroll-container {
                overflow: hidden;
                position: relative;
                margin-left: 16rem;
            }
        }

        .categorias-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            scroll-behavior: smooth;
            /*padding: 10px 0; */
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        .categorias-scroll::-webkit-scrollbar {
            display: none;
        }

        .categoria-item {
            display: inline-flex;
            align-items: center;
            padding: 12px 24px;
            background-color: #fff;
            border: 2px solid #e5e7eb;
            border-radius: 25px;
            color: #122C4F;
            font-weight: 600;
            font-size: 0.95rem;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }

        .categoria-item:hover {
            background-color: #f3f4f6;
            border-color: #122C4F;
            box-shadow: 0 4px 8px rgba(18, 44, 79, 0.15);
        }

        .categoria-item.active {
            background-color: #122C4F;
            color: white;
            border-color: #122C4F;
            box-shadow: 0 4px 12px rgba(18, 44, 79, 0.3);
        }

        .categoria-item i {
            font-size: 1.1rem;
        }

        /* Botones de navegación */
        .carousel-scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            color: #122C4F;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .carousel-scroll-btn:hover {
            background-color: #122C4F;
            color: white;
            border-color: #122C4F;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 4px 12px rgba(18, 44, 79, 0.3);
        }

        .carousel-scroll-btn:active {
            transform: translateY(-50%) scale(0.95);
        }

        .carousel-scroll-btn.prev {
            left: -15px;
        }

        .carousel-scroll-btn.next {
            right: -15px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .categoria-item {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
            
            .carousel-scroll-btn {
                width: 35px;
                height: 35px;
            }
            
            .carousel-scroll-btn.prev {
                left: 0;
            }
            
            .carousel-scroll-btn.next {
                right: 0;
            }
        }

        @media (max-width: 576px) {
            .categoria-item {
                padding: 8px 16px;
                font-size: 0.85rem;
            }
        }

        /* ========================================
        SLIDER DESLIZABLE MEJORADO
        ======================================== */

        .slider-container {
            position: relative;
            width: 95%;
            max-width: 1400px;
            margin: 2rem auto;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }

        .slider-wrapper {
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        .slider-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }

        .slider-slide {
            min-width: 100%;
            max-width: 100%;
            width: 100%;
            position: relative;
            flex-shrink: 0;
            flex-grow: 0;
        }

        .slider-slide img {
            width: 100%;
            height: 350px;
            object-fit: cover;
            object-position: center;
            display: block;
        }

        /* Textos sobre las imágenes */
        .slider-caption {
            position: absolute;
            bottom: 50px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            color: white;
            width: 90%;
            z-index: 2;
            pointer-events: none;
        }

        .slider-caption h5 {
            font-size: 2.5rem;
            font-weight: 700;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
            margin-bottom: 0.5rem;
        }

        .slider-caption p {
            font-size: 1.3rem;
            font-weight: 600;
            text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
        }

        /* Flechas de navegación */
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(255, 255, 255, 0.9);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: #ab0303;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .slider-arrow:hover {
            background-color: #ab0303;
            color: white;
            transform: translateY(-50%) scale(1.1);
        }

        .slider-prev {
            left: 20px;
        }

        .slider-next {
            right: 20px;
        }

        /* Indicadores (dots) */
        .slider-dots {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            border: 2px solid white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .slider-dot.active {
            background-color: white;
            transform: scale(1.3);
        }

        .slider-dot:hover {
            background-color: rgba(255, 255, 255, 0.8);
        }

        /* ========================================
        RESPONSIVE
        ======================================== */

        /* Tablets */
        @media (max-width: 768px) {
            .slider-container {
                width: 94%;
                margin: 0.5rem auto;
            }
            
            .slider-slide img {
                height: 200px;
            }
            
            .slider-caption {
                bottom: 30px;
            }
            
            .slider-caption h5 {
                font-size: 1.5rem;
            }
            
            .slider-caption p {
                font-size: 1rem;
            }
            
            .slider-arrow {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .slider-prev {
                left: 10px;
            }
            
            .slider-next {
                right: 10px;
            }
        }

        /* Móviles */
        @media (max-width: 576px) {
            .slider-container {
                width: 92%;
                margin: 0.5rem auto;
            }
            
            .slider-slide img {
                height: 120px;
            }
            
            .slider-caption {
                bottom: 20px;
            }
            
            .slider-caption h5 {
                font-size: 1.2rem;
            }
            
            .slider-caption p {
                font-size: 0.85rem;
            }
            
            .slider-arrow {
                width: 25px;
                height: 25px;
                font-size: 0.7rem;
            }
            
            .slider-dots {
                bottom: 10px;
            }
            
            .slider-dot {
                width: 10px;
                height: 10px;
            }
        }

        /* Desktop grande */
        @media (min-width: 1200px) {
            .slider-container {
                max-width: 1400px;
                width: 92%;
            }
            
            .slider-caption {
                bottom: 60px;
            }
            
            .slider-caption h5 {
                font-size: 3rem;
            }
            
            .slider-caption p {
                font-size: 1.5rem;
            }
        }

        /* Desktop ultra ancho */
        @media (min-width: 1600px) {
            .slider-slide img {
                height: 350px;
            }
        }

        .profile-header {
            background: linear-gradient(135deg, #ab0303 0%, #db0808 100%);
            color: white;
            padding: 2rem;
            border-radius: 10px;
            margin-bottom: 2rem;
        }

        .profile-icon {
            width: 100px;
            height: 100px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: #ab0303;
            margin: 0 auto 1rem;
        }

        .info-card {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin-bottom: 1.5rem;
        }

        .pedido-card {
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }

        .pedido-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }

        .badge-estado {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
        }

        .producto-pedido {
            background: #f8f9fa;
            padding: 0.75rem;
            border-radius: 6px;
            margin-bottom: 0.5rem;
        }

        footer {
            background-color: #ab0303;
            color: white;
            margin-top: 3rem;
        }


        /* ==========================================
        ANIMACIONES DE TRANSICIÓN DE PÁGINA
        ========================================== */

        /* Animación de entrada */
        

        /* Animación zoom */
        

        body.zoom-out {
            animation: zoomOut 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
        }

        @keyframes zoomOut {
            from {
                opacity: 1;
                transform: scale(1);
            }
            to {
                opacity: 0;
                transform: scale(1.05);
            }
        }

        body.slide-out {
            animation: slideOut 0.3s ease-in forwards;
        }

        @keyframes slideOut {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(-20px);
            }
        }

        /* ==========================================
        ANIMACIONES DE ELEMENTOS DE PERFIL
        ========================================== */

        @keyframes slideInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Animación del icono de perfil */
        .profile-icon {
            animation: scaleIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s backwards;
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Animación de las info-cards */
        .info-card {
            animation: fadeInUp 0.3s ease-out backwards;
        }

        .info-card:nth-child(1) { animation-delay: 0.2s; }
        .info-card:nth-child(2) { animation-delay: 0.3s; }
        .info-card:nth-child(3) { animation-delay: 0.4s; }

        /* Animación de pedidos */
        .pedido-card {
            animation: slideInRight 0.4s ease-out backwards;
        }

        .pedido-card:nth-child(1) { animation-delay: 0.1s; }
        .pedido-card:nth-child(2) { animation-delay: 0.2s; }
        .pedido-card:nth-child(3) { animation-delay: 0.3s; }
        .pedido-card:nth-child(4) { animation-delay: 0.4s; }
        .pedido-card:nth-child(5) { animation-delay: 0.5s; }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Animación de productos en pedidos */
        .producto-pedido {
            transition: all 0.3s ease;
        }

        .producto-pedido:hover {
            transform: translateX(5px);
            background: #e9ecef !important;
        }

        /* Hover en tarjetas */
        .card,
        .info-card,
        .pedido-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover,
        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        }

        /* Animación para badges */
        .badge,
        .badge-estado {
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        .badge-estado:hover {
            transform: scale(1.1);
            animation: none;
        }

        /* Animación para botones */
        .btn {
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .btn:active {
            transform: scale(0.95);
        }

        /* Animación para imágenes */
        img {
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        img:hover {
            transform: scale(1.05);
        }

        /* Loading spinner con animación */
        .spinner-border {
            animation: spin 0.75s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Animación de entrada para estadísticas */
        #totalPedidos,
        #totalGastado {
            animation: countUp 1s ease-out;
        }

        @keyframes countUp {
            from {
                opacity: 0;
                transform: scale(0.5);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Smooth scroll mejorado */
        html {
            scroll-behavior: smooth;
        }

        /* Animación para alerts */
        .alert {
            animation: slideInDown 0.4s ease-out;
        }

        /* Transición suave para el botón Up */
        #btnUp {
            transition: all 0.3s ease, opacity 0.3s ease;
        }

        /* Animación para toast */
        .toast {
            animation: slideInRight 0.4s ease-out;
        }

        /* Hover para el ícono de usuario */
        .profile-icon:hover {
            animation: wiggle 0.5s ease-in-out;
        }

        @keyframes wiggle {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-5deg); }
            75% { transform: rotate(5deg); }
        }

        /* Transición para modal */
        .modal.fade .modal-dialog {
            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        }

        .modal.show .modal-dialog {
            transform: scale(1);
        }

        /* Animación para números/estadísticas con efecto contador */
        @keyframes numberPop {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.2);
            }
            100% {
                transform: scale(1);
            }
        }

        /* Animación para el contenido que carga */
        #listaPedidos {
            min-height: 200px;
        }

        /* Efecto de carga suave */
        .loading-fade {
            animation: loadingFade 1.5s ease-in-out infinite;
        }

        @keyframes loadingFade {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; }
        }

        /* Posición en tablet */
@media (min-width: 577px) and (max-width: 991px) {
    .carrito-vista {
        margin-right: 1rem;
    }
}

        /* Posición en desktop */
        @media (min-width: 992px) {
            .carrito-vista {
                margin-right: 2rem !important;
                display: none !important;
            }
        }

        @media (min-width: 1200px) {
            .carrito-vista-desk {
                display: block !important;
                transform: translateY(-4px);
                font-size: 2rem;
                text-decoration: none;
                color: white;
            }
        }

        @media (min-width: 577px) and (max-width: 991px) {
            .carrito-vista-desk {
                display: none !important;
            }
        }

        .footer-menu {
            backdrop-filter: blur(8px);
            background-color: rgba(255, 255, 255, 0.900);
        }

        @media (min-width: 577px) and (max-width: 991px) {
            .footer-menu {
                margin-right: 1rem;
                margin-left: 1rem;
                
            }
        }

        @media (min-width: 1200px) {
            .footer-menu {
                display: none;
            }
        }

        @media (min-width: 1200px) {
            .cart-span {
                font-size: 1rem;
            }
        }

        .cart-span {
            font-size: 16px;
        }

        .footer-menu {
            backdrop-filter: blur(8px);
            background-color: rgba(255, 255, 255, 0.900);
        }

        @media (min-width: 577px) and (max-width: 991px) {
            .footer-menu {
                margin-right: 1rem;
                margin-left: 1rem;
                
            }
        }

        @media (min-width: 1200px) {
            .footer-menu {
                display: none;
            }
        }

        .nav-menu {
            display: none !important;
        }

        @media (min-width: 577px) and (max-width: 991px) {
            .nav-menu {
                display: none !important;
            }
        }

        @media (min-width: 1200px) {
            .nav-menu {
                display: block !important;
                margin-top: 1rem;
            }
        }

        .nav-back {
            text-decoration: none;
            color: white;
            font-size: 26px;
            margin: 12px;
        }

        @media (min-width: 1200px) {
             .nav-back {
            display: none;
        }
    }

    @media (max-width: 576px) {
        .logo-nav-lg {
            display: none;
        }
    }

    @media (min-width: 577px) and (max-width: 991px) {
        .logo-nav-lg {
            display: none;
        }
    }

    @media (min-width: 1200px) {
        .logo-nav {
            display: none;
        }
        .logo-nav-lg {
            display: block;
        }
    }

    .badge-cart {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        border-radius: 8px;
        padding: 1px 3px;
        background-color: white;
        position: relative;
        font-size: 16px;
        color: rgb(170, 4, 4);
        bottom: 18px;
        right: 8px;
    }