/* 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;
    }

    /* Botón Subir - Base */
    #btnUp {
        position: fixed;
        bottom: 108px;
        padding: 12px 12px;
        border: 0;
        border-radius: 50%;
        background: #b50707;
        color: white;
        font-size: 18px;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,0,0,.3);
        z-index: 9999;
        display: none;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0; /* Inicialmente oculto */
        pointer-events: none; /* Deshabilitado inicialmente */
        transition: all 0.3s ease, opacity 0.3s ease; /* Añadir transición de opacidad */
    }

    /* Posición en móvil */
    @media (max-width: 576px) { 
        #btnUp {
            right: 340px;
            left: auto;
        }
    }

    /* Posición en tablet */
    @media (min-width: 577px) and (max-width: 991px) {
        #btnUp {
            right: 680px;
            left: auto;
        }
    }

    /* Posición en desktop */
    @media (min-width: 992px) {
        #btnUp {
            left: 20px;
            right: auto;
        }
    }

    /* Hover effect */
    #btnUp:hover {
        background: #ec0606;
        transform: translateY(-3px) scale(1.05);
    }

    #btnUp:active {
        transform: translateY(-1px) scale(0.98);
    }

    /* Botón Subir - Base */
    #btnWhats {
        position: fixed;
        bottom: 108px;
        padding: 12px 12px;
        border: 0;
        border-radius: 50%;
        background: #009900;
        color: white;
        font-size: 28px;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,0,0,.3);
        z-index: 9999;
        display: none;
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0; /* Inicialmente oculto */
        pointer-events: none; /* Deshabilitado inicialmente */
        transition: all 0.3s ease, opacity 0.3s ease; /* Añadir transición de opacidad */
    }

    /* Posición en móvil */
    @media (max-width: 576px) { 
        #btnWhats {
            right: auto;
            left: 340px;
        }
    }

    /* Posición en tablet */
    @media (min-width: 577px) and (max-width: 991px) {
        #btnWhats {
            right: auto;
            left: 680px;
        }
    }

    /* Posición en desktop */
    @media (min-width: 992px) {
        #btnWhats {
            left: auto;
            right: 25px;
        }
    }

    /* Hover effect */
    #btnWhats:hover {
        background: #00ca07;
        transform: translateY(-3px) scale(1.05);
    }

    #btnWhats:active {
        transform: translateY(-1px) scale(0.98);
    }

    :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-list {
        color: black;
        text-decoration: none;
    }

    .nav-link-list:hover {
        color: #da0000;
        transition: all 0.3s ease;
    }

    .nav-link-login {
        color: white !important;
        font-weight: 500;
        text-decoration: none;
    }

    .nav-link-login:hover {
        color: white !important;
    }

    .loginMenu {
        border-radius: 10px; 
        cursor: pointer; 
        background-color: #222222;
        transition: all 0.3s ease;
    }

    .loginMenu:hover {
        border-radius: 5px; 
        background-color: #686868;
        transform: translateY(-3px) scale(0.97);
    }

    .logoutMenu {
        display: none; 
        border-radius: 10px;
        cursor: pointer;
        background-color: #ca0404;
        transition: all 0.3s ease;
    }

    .logoutMenu:hover {
        border-radius: 5px; 
        background-color: #e22a2a;
        transform: translateY(-3px) scale(0.97);
    }

    .navMenu {
        color: white;
        border-radius: 10px; 
        cursor: pointer; 
        background-color: rgb(99, 99, 99);
        transition: all 0.3s ease;
    }

    .navMenu:hover {
        background-color: #444444;
        border-radius: 5px; 
        transform: translateY(-3px) scale(0.97);
    }

    .otherMenu {
        border-radius: 10px; 
        cursor: pointer; 
        background-color: white;
        transition: all 0.3s ease;
    }

    .otherMenu:hover {
        color: #ec0808;
        border-radius: 5px; 
        transform: translateY(-3px) scale(0.97);
    }

    .nav-link-reg {
        color: #ca0404 !important;
        font-weight: 500;
        text-decoration: none;
    }

    .nav-link-logout {
        color: white !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-primary:hover {
        background-color: #ef0000;
        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: #9e3421;
        border: none;
        color: #74281b;
        padding: .5rem 1rem;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-ig:active {
        background-color: #9e3421;
        border: none;
        color: #74281b;
        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: #850707;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(226, 74, 74, 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(226, 74, 74, 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;
    }

    .menu-card {
        border-radius: 16px;
    }

    /* Posición en desktop */
    @media (min-width: 992px) {
        .menu-card {
            margin-left: 8rem;
            margin-right: 8rem;
        }
    }   

    /* 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;
    }

    /* Animación zoom */
    

    /* Animación para productos */
    #productos-container .col-12,
    #productos-container .col-md-12,
    #productos-container .col-lg-3 {
        animation: fadeInUp 0.4s ease-out backwards;
    }

    #productos-container .col-12:nth-child(1) { animation-delay: 0.1s; }
    #productos-container .col-12:nth-child(2) { animation-delay: 0.15s; }
    #productos-container .col-12:nth-child(3) { animation-delay: 0.2s; }
    #productos-container .col-12:nth-child(4) { animation-delay: 0.25s; }
    #productos-container .col-12:nth-child(5) { animation-delay: 0.3s; }
    #productos-container .col-12:nth-child(6) { animation-delay: 0.85s; }
    #productos-container .col-12:nth-child(7) { animation-delay: 0.9s; }
    #productos-container .col-12:nth-child(8) { animation-delay: 0.95s; }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Animación para modales */
    .modal.fade .modal-dialog {
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }

    /* Animación para botones */
    .btn {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .btn:active {
        transform: scale(0.95);
    }

    /* Animación para el carrusel */
    #heroCarousel,
    .slider-container {
        animation: fadeInScale 0.5s ease-out;
    }

    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.98);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Hover suave para categorías */
    .categoria-item {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    @media (max-width: 768px) {
        .btn-mail {
            margin-top: 8px;
        }
    }

    @media (min-width: 1200px) {
        .cart-span {
            font-size: 1rem;
        }
    }

    .cart-span {
        font-size: 1rem;
    }

    .input-srch {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        width: 100%;
    }

    /* 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: 1rem;
    }

    .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;
        }
    }

    /* 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;
        }
    }
    
    @media (min-width: 1200px) {
        .cart-span {
            font-size: 1rem;
        }
    }

    .cart-span {
        font-size: 16px;
    }

    .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;
}
