html {
    font-size: 14px;
}
.main-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}


.page-header-title {

    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 800; 
    font-size: 2.5rem; 
    color: #1a1a1a; 

    text-align: center;
    letter-spacing: -0.03em;

 
    margin-top: 1rem;
    margin-bottom: 2.5rem; 
    position: relative;
    padding-bottom: 15px; 
}


.page-header-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; 
    height: 5px; 
    background: linear-gradient(90deg, #007bff, #00c7b7); 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3); 
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
.login-brand-logo {
    height: 60px; /* Tamaño controlado */
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
    /* Pequeña animación de entrada */
    animation: fadeInLogo 0.8s ease-out;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
.content-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden; /* Evita desbordes horizontales */
    /* --- NUEVAS LÍNEAS PARA EL PADDING LATERAL --- */
    /* Esto despegará todo el contenido (incluida la tabla) de los bordes */
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem); /* 48px de espacio a la derecha */
    /* Opcional: Si quieres que se pegue menos arriba también */
    /* padding-top: 2rem; */
}
html {
    position: relative;
    min-height: 100%;
}

.navbar {
    z-index: 1000;
}


    .navbar .logo {
        font-size: 1.4rem;
        font-weight: bold;
    }

    .navbar .nav-links {
        list-style: none;
        display: flex;
    }

        .navbar .nav-links li {
            margin-left: 20px;
        }

    .navbar .nav-link {
        color: #fff;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 8px;
        transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
        position: relative;
        overflow: hidden;
    }


        .navbar .nav-link:hover,
        .navbar .nav-link.active {
            color: #fff !important;
            background: linear-gradient(45deg, #1e90ff, #00bfff, #1e90ff);
            background-size: 200% 200%;
            animation: gradientShift 3s ease infinite;
            box-shadow: 0 4px 15px rgba(0, 191, 255, 0.6);
            transform: translateY(-3px);
            z-index: 1;
        }

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.search-form {
    display: flex;
    align-items: center;
    max-width: 700px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}





.category-navbar {
    
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    border-bottom: 1px solid #eaeaea;
}




    .category-navbar .nav-link {
        color: #333;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0.75rem 1rem;
    }

        .category-navbar .nav-link:hover,
        .category-navbar .nav-link:focus {
            color: #0d6efd;
            background-color: rgba(13, 110, 253, 0.08);
            border-radius: 0.5rem;
        }

    .category-navbar .dropdown-menu {
        border-radius: 0.5rem;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }


.dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    animation: fadeInDropdown 0.25s ease-in-out;
    background: #fff;
}

@keyframes fadeInDropdown {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease-in-out;
}


    .dropdown-item:hover {
        background-color: #f3f6ff;
        color: #0d6efd;
        transform: translateX(4px);
    }


    .dropdown-item i {
        color: #0d6efd;
    }

.btn-creative {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1d8cf8, #3358f4);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(30, 100, 250, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    .btn-creative:hover {
        background: linear-gradient(135deg, #0d6efd, #1d8cf8);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 20px rgba(30, 100, 250, 0.5);
        text-decoration: none;
    }

    .btn-creative::after {
        content: "";
        position: absolute;
        width: 120%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        top: 0;
        left: -10%;
        transform: skewX(-25deg);
        transition: all 0.3s ease;
    }

    .btn-creative:hover::after {
        left: 120%;
    }

.perfil-img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .6);
}
#resultadosBusqueda {
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
}

.resultado-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .resultado-item:last-child {
        border-bottom: none;
    }

    .resultado-item:hover {
        background-color: #f9f9f9;
    }

    .resultado-item img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-right: 16px;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    }

.resultado-nombre {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    flex: 1 1 auto;
}

.resultado-precio {
    font-weight: 700;
    white-space: nowrap;
    margin-left: 16px;
    font-size: 0.95rem;
}


.search-form {
    position: relative;
}

#resultadosBusqueda {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
}


.resultado-ver-todos {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #007bff;
    cursor: pointer;
    border-top: 1px solid #eee;
    background-color: #fefefe;
    transition: background-color 0.2s ease;
}

    .resultado-ver-todos:hover {
        background-color: #e9f5ff;
    }




.sidebar-nav {
    width: 64px;
    min-height: 100vh;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

    .sidebar-nav:hover {
        width: 250px;
    }

    .sidebar-nav nav .nav-text {
        opacity: 0;
        display: inline-block;
        transition: opacity 0.3s ease;
        margin-left: 10px;
        white-space: nowrap;
    }

    .sidebar-nav:hover nav .nav-text {
        opacity: 1;
    }

    .sidebar-nav nav .hijas-container {
        display: none;
    }

/* En offcanvas NO ocultes nada */
.offcanvas .sidebar-nav,
.offcanvas .nav-text,
.offcanvas .hijas-container {
    width: 100% !important;
    opacity: 1 !important;
    display: block !important;
    overflow: visible !important;
}



.padre-item > .hijas-container {
    display: none; 
    flex-direction: column;
    margin-left: 1rem;
}


.padre-item:hover > .hijas-container {
    display: flex;
}


.hijas-container a {
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    color: #333;
    border-radius: 0.25rem;
}


    .hijas-container a:hover {
        background-color: #f0f0f0;
    }

.parent-link {
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

    .parent-link:hover {
        background-color: #f8f9fa; 
        color: #0d6efd !important; 
        transform: translateX(5px); 
        border-color: #e9ecef;
    }

        .parent-link:hover .icon-wrapper {
            background-color: #e7f1ff !important; 
        }

.icon-wrapper i {
    transform: translateY(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.5rem;
}
.icon-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hijas-container {
    
    transition: max-height 0.3s ease;
}


.child-link {
    transition: all 0.2s ease;
    font-size: 0.95rem; 
}

    .child-link:hover {
        background-color: #e7f1ff; 
        color: #0d6efd !important; 
        font-weight: 500;
        padding-left: 1.2rem !important; 
    }

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

    .sidebar-nav::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
/* Botón de acción en el Nav (Carrito y Perfil) */
.nav-icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

    /* Regla nueva para pintar el icono */
    .nav-icon-btn i {
        color: #ff6600; /* Tu naranja */
        transition: color 0.3s ease;
    }

    /* Opcional: Un efecto hover para que resalte más al pasar el mouse */
    .nav-icon-btn:hover {
        border-color: #ff6600;
        background-color: rgba(255, 102, 0, 0.1);
    }
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        height: auto;
        padding: 0.5rem 1rem;
    }

    body {
        padding-top: 0;
    }
    
}
@media (max-width: 992px) {
    .sidebar-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
}
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: invert(1); /* icono blanco sobre fondo azul */
}


.site-footer {
    background-color: #163673;
    width: 100%;
}

    .site-footer .footer-inner {
        max-width: 1320px; /* Bootstrap XL */
        margin: 0 auto;
        padding: 3rem 1.5rem;
    }

@media (max-width: 768px) {
    .site-footer {
        text-align: center;
    }

        .site-footer .row > div {
            margin-bottom: 1.5rem;
        }
}


@media (max-width: 768px) {
    .main-wrapper {
        min-height: auto;
    }
}

/* El fondo oscuro con efecto de desenfoque (Glassmorphism sutil) */
.modal-overlay {
    display: none; /* Cambiado de 'none' a 'flex' para probar, contrólalo con JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 92, 0.6); /* Azul oscuro de tu marca con transparencia */
    backdrop-filter: blur(5px); /* Efecto moderno de desenfoque */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

/* La tarjeta del modal */
.modal-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px; /* Borde suave coincidiendo con tus cards */
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Sombra elevadora */
    transform: translateY(0);
    animation: slideUp 0.3s ease-out;
}

/* Icono */
.modal-icon-container {
    color: #0056b3; /* Azul intermedio */
    background: #eef5ff; /* Fondo muy suave azul */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

/* Títulos */
.modal-title {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Texto del cuerpo */
.modal-message {
    margin: 0 0 25px 0;
    color: #666666;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* El BOTÓN ESTRELLA (Estilo SUMICOMP) */
.modal-btn {
    background-color: #0066ff; /* Azul vibrante similar a 'Ver novedades' */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px; /* Estilo Píldora */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%; /* Botón ancho para fácil click en móvil */
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3); /* Sombra de brillo azul */
}

    .modal-btn:hover {
        background-color: #0052cc; /* Un poco más oscuro al pasar el mouse */
        transform: translateY(-2px); /* Efecto de elevación */
        box-shadow: 0 6px 15px rgba(0, 102, 255, 0.4);
    }

/* Animaciones suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .content-column {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
