:root {
    --ar-primary: #003e90;
    --ar-primary-hover: #002a63;
    --ar-accent: #dc3545;
    --ar-dark: #111827;
    --ar-dark-soft: #1f2937;
    --ar-text: #111827;
    --ar-muted: #6b7280;
    --ar-light: #f8f9fa;
    --ar-surface: #ffffff;
    --ar-border: #e5e7eb;
    --ar-radius-lg: 16px;
    --ar-radius-md: 8px;
    --ar-shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.06);
    --ar-shadow-hover: 0 16px 40px rgba(17, 24, 39, 0.1);
    --ar-font-base: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ar-transition: all 0.25s ease;
}

body {
    font-family: var(--ar-font-base);
    background-color: #fbfbfb;
    color: var(--ar-text);
    letter-spacing: -0.01em; 
}

.product-notification {
    position: fixed !important;
    top: 4.25rem !important;
    right: 1rem !important;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 240px;
    max-width: min(360px, calc(100vw - 2rem));
    padding: 0.65rem 3rem 0.7rem 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(0, 62, 144, 0.15);
    border-radius: var(--ar-radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.16);
    color: var(--ar-text);
    font-size: 0.85rem;
    animation: product-notification-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-notification::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--ar-primary);
    content: '';
    transform-origin: left;
    animation: product-notification-progress 4s linear both;
}

.product-notification-icon {
    display: grid;
    flex: 0 0 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 62, 144, 0.1);
    color: var(--ar-primary);
    font-size: 0.85rem;
}

.product-notification .btn-close {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
}

.product-notification-leaving {
    animation: product-notification-leave 0.3s ease forwards;
}

@keyframes product-notification-enter {
    from { opacity: 0; transform: translateY(-18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes product-notification-leave {
    to { opacity: 0; transform: translateY(-12px) scale(0.97); }
}

@keyframes product-notification-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 991.98px) {
    .product-notification { top: 6.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    .product-notification,
    .product-notification::after { animation: none; }
}

a {
    color: inherit;
}

/* Botón de Menu Modernizado */
.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #58151c25 !important;
    border-radius: var(--ar-radius-md);
    background-color: #ffffff00;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1);
    transition: var(--ar-transition);
}

.navbar-toggler:hover,
.navbar-toggler:focus-visible {
    border-color: #58151c !important;
    background-color: rgba(88, 21, 28, 0.08);
    box-shadow: 0 6px 16px rgba(88, 21, 28, 0.18);
    transform: translateY(-1px);
}

.navbar-toggler:focus-visible {
    outline: 3px solid rgba(88, 21, 28, 0.25);
    outline-offset: 2px;
}

.navbar-toggler i {
    color: #58151c !important;
    line-height: 1;
}

/* Estilos para el widget del carrito en dispositivos móviles */
@media (max-width: 991.98px) {
    #mobileCartWidget {
        position: sticky;
        top: 3.5rem;
        z-index: 1010;
        transition: transform 0.2s ease;
    }

    #mobileCartWidget.mobile-cart-hidden {
        transform: translateY(-100%);
    }
}

/* Botones Personalizados para indicador de tiempo*/
.autoplay-progress {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 10;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #ffffff;
	}

.autoplay-progress svg {
	--progress: 0;
	position: absolute;
	left: 0;
	top: 0px;
	z-index: 10;
	width: 100%;
	height: 100%;
	stroke-width: 4px;
	stroke: #ffffff;
	fill: none;
	stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
	stroke-dasharray: 125.6;
	transform: rotate(-90deg);
	}


.text-muted-soft {
    color: var(--ar-muted);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ar-dark);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ar-primary), var(--ar-accent));
}

.site-footer {
    background-color: var(--ar-dark-soft);
    font-family: var(--ar-font-base);
}

.site-footer .footer-title {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
}

.site-footer .footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .footer-link:hover {
    color: #ffffff;
}

.site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #6b7280;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer .footer-social-link:hover {
    transform: translateY(-10px);
    opacity: 0.9;
}

.site-footer .footer-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
}

.site-footer .footer-hours-label {
    color: #cbd5e1;
}

.site-footer .footer-hours-value {
    color: #ffffff;
    font-weight: 600;
}

.site-footer .footer-credit {
    color: #9ca3af;
}

.breadcrumb-modern {
    --bs-breadcrumb-divider: '›';
    background-color: var(--ar-surface);
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius-md);
    box-shadow: var(--ar-shadow-soft);
}

.search-results-dropdown {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: auto;
    -ms-overflow-style: auto;

    /* Base para pantallas pequeñas (móviles) */
    width: min(300px, calc(100vw - 1rem));
}

/* Pantallas medianas a grandes (tablets y laptops) */
@media (min-width: 768px) {
    .search-results-dropdown {
        width: 350px;
    }
}
@media (min-width: 992px) {
    .search-results-dropdown {
        width: 400px;
    }
}

.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
}

/* Navbar Refinada */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--ar-dark) !important;
    font-weight:500;
    padding: 0.25rem 0.25rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--ar-primary) !important;
    background-color: #dc35460f;
}

.navbar-brand strong {
    font-weight: 700;
    color: var(--ar-dark);
    letter-spacing: -0.05em;
}

/* Inputs y Formularios de Búsqueda */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--ar-primary);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

/* Botones Modernizados */
.btn-modern-primary {
    background-color: var(--ar-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.btn-modern-primary:hover {
    background-color: #bd1d2d;
    color: white;
    transform: translateY(-1px);
}

.btn-modern-outline {
    border: 1px solid #e5e7eb;
    background-color: white;
    color: var(--ar-dark);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-modern-outline:hover {
    border-color: var(--ar-dark);
    background-color: var(--ar-dark);
    color: white;
}

/* Botón Flotante Ir al Cielo */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #111827a4;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    display: none;
}

#backToTop:hover {
    background-color: var(--ar-primary);
    transform: translateY(-6px);
}

/* Redes Sociales en Footer V2 */
.wrapper {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.wrapper .icon {
    position: relative;
    background: #1f2937;
    border-radius: 8px;
    padding: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wrapper .icon:hover {
    transform: translateY(-2px);
}

.wrapper .facebook:hover { background: #1877F2; }
.wrapper .tiktok:hover { background: #010101; }
.wrapper .instagram:hover { background: #E1306C; }
.wrapper .whatsapp:hover { background: #25D366; }

/* ==========================================================
MINIATURAS EN BÚSQUEDA EN TIEMPO REAL (ESTILOS NUEVOS)
   ========================================================== */
#searchResults, #smallSearchResults {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #3e00005f;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    scrollbar-width: thin; 
    scrollbar-color: #bdbdbd #f0f0f0;
}

#searchResults p.mb-1, #smallSearchResults p.mb-1 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: normal;
    word-wrap: break-word;
}

#searchResults .dropdown-item, #smallSearchResults .dropdown-item {
    display: block;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

#searchResults .dropdown-item:last-child, #smallSearchResults .dropdown-item:last-child {
    border-bottom: none;
}

#searchResults .dropdown-item:hover, #smallSearchResults .dropdown-item:hover {
    background: #9d9e9f76;
    border-radius: 6px;
    text-decoration: none;
}

#searchResults img, #smallSearchResults img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

#searchResults p, #smallSearchResults p {
    margin: 0;
}

#searchResults p:last-child, #smallSearchResults p:last-child {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
    border-radius: 4px;
}

/* Scrollbars WebKit */
#searchResults::-webkit-scrollbar, #smallSearchResults::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
#searchResults::-webkit-scrollbar-thumb, #smallSearchResults::-webkit-scrollbar-thumb {
    background-color: #bdbdbd;
    border-radius: 10px;
}
#searchResults::-webkit-scrollbar-thumb:hover, #smallSearchResults::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}
#searchResults::-webkit-scrollbar-track, #smallSearchResults::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 10px;
}


/*-- Menús desplegables del navbar --*/
.navbar .dropdown-menu {
    min-width: 220px;
    max-height: min(75vh, 520px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 #f1f1f1;
    margin-top: 0.65rem;
    padding: 0.5rem;
    border: 1px solid #ececec;
    border-radius: 14px;
    background-color: #fff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.14) !important;
}

.navbar .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb {
    background-color: #c7c7c7;
    border-radius: 999px;
}

.navbar .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 999px;
}

.navbar .dropdown-item {
    padding: 0.65rem 0.85rem;
    border-radius: 9px;
    color: var(--ar-dark);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #fff1f2;
    color: var(--ar-primary);
    font-weight: 600;
    transform: translateX(2px);
}

.navbar .dropdown-item:active,
.navbar .dropdown-item.active {
    background-color: var(--ar-primary);
    color: #fff;
    font-weight: 600;
}

.navbar .dropdown-divider {
    margin: 0.35rem 0.5rem;
    border-color: #eeeeee;
}

/* ==========================================================
    MEDIA QUERIES PARA NAVEGACIÓN RESPONSIVA EN MENU PARA MOVILES
   ========================================================== */
@media (max-width:768px){

    .navbar-collapse{
        max-height:calc(100vh - 70px);
        overflow-y:auto;
        overflow-x:hidden;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
    }

    .navbar-collapse .dropdown-menu{
        display:block;

        max-height:0;
        overflow:hidden;

        opacity:0;
        visibility:hidden;
        padding: 0;
        margin-top: 0;
        border-width: 0;
        box-shadow: none !important;

        transition:
            max-height .30s ease,
            opacity .25s ease,
            visibility 0s linear .25s;
    }

    .navbar-collapse .dropdown-menu.show{
        max-height:45vh;
        opacity:1;
        visibility:visible;
        overflow-y:auto;
        max-height:45vh;
        padding: 0.5rem;
        border-width: 1px;
        box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1) !important;

        transition:
            max-height .30s ease,
            opacity .25s ease;
    }

}

/* Media queries para diferentes tamaños de pantalla*/
.swiper_banner {
    width: 80%;
    border-radius: 15px;

}

@media (max-width: 1200px) {
    .swiper_banner {
            width: 80%;
        }
}
@media (max-width: 992px) {
    .swiper_banner {
            width: 80%;
        }
}
@media (max-width: 768px) {
    .swiper_banner {
            width: 100%;
        }
}
@media (max-width: 576px) {
    .swiper_banner {
            width: 100%;
        }
}
