html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


.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;
}
.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;
}

html {
    position: relative;
    min-height: 100%;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}
@media (max-width: 992px) {
    body {
        padding-top: 0;
    }
}


    .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;
}



.search-input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    width: 700px;
}

    .search-input::placeholder {
        color: #aaa;
        font-style: normal;
    }

.search-btn {
    background: #809DDA;
    border: none;
    color: white;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .search-btn:hover {
        background-color: #3E599c;
    }

    .search-btn i {
        font-size: 1.2rem;
    }

.category-navbar {
    
    background-image: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    border-bottom: 1px solid #eaeaea;
}


.category-bar {
    top: 56px;
}

.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;
    min-width: 220px;
}

@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 {
        margin-right: 8px;
        color: #0d6efd;
    }

.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;
    /* Aseguramos que no se colapse */
    flex-shrink: 0;
}

    /* Regla para pintar el icono */
    .nav-icon-btn i {
        color: #ff6600;
        transition: color 0.3s ease;
        /* Tamaño de fuente corregido para centrado óptico dentro de 45px */
        font-size: 22px !important;
    }

    /* Hover opcional */
    .nav-icon-btn:hover {
        border-color: #ff6600;
        background-color: rgba(255, 102, 0, 0.1);
    }
@media (max-width: 767.98px) {

    .account-sidebar .nav-link {
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

        .account-sidebar .nav-link i {
            font-size: 1.1rem;
            margin-right: 0;
        }
}


/* 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;
    }
}
/* Estilo base para la tarjeta de filtros */
.filtro-card {
    background-color: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 15px; /* Sincronizado con tus tablas */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Ajustes para pantallas pequeñas (Móvil y Tablet) */
@media (max-width: 991px) {
    /* 1. Convertimos el contenedor de filtros en una cuadrícula de 2 columnas */
    .filtro-card > div:first-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
        gap: 15px !important;
        width: 100% !important;
    }

    /* 2. Hacemos que los grupos de filtro usen todo el ancho de su celda */
    .filter-group {
        width: 100%;
        display: flex;
        flex-direction: column; /* Label arriba, input abajo para más limpieza */
        align-items: flex-start !important;
        gap: 4px !important;
    }

        /* 3. Ajustamos selects e inputs para que llenen su espacio */
        .filter-group select,
        .filter-group input {
            width: 100% !important;
            max-width: none !important;
            height: 38px; /* Altura estándar profesional */
        }

    /* 4. Botón Aplicar: que ocupe las dos columnas para destacar */
    #btnAplicarFiltro {
        grid-column: span 2;
        width: 100%;
        justify-content: center;
        height: 40px;
        margin-top: 5px;
    }

    /* 5. Botón Exportar: que ocupe todo el ancho al final */
    .btn-exportar {
        width: 100%;
        justify-content: center;
        padding: 10px !important;
    }
}

/* Ajuste para pantallas extra pequeñas (Celulares verticales) */
@media (max-width: 480px) {
    .filtro-card > div:first-child {
        grid-template-columns: 1fr; /* Una sola columna si es muy angosto */
    }

    #btnAplicarFiltro {
        grid-column: span 1;
    }
}

/* Previene que el texto de los labels se corte */
.text-nowrap {
    white-space: nowrap;
}


.crm-offcanvas {
    width: 260px;
}

.crm-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all .2s ease;
}

    .crm-menu li a i {
        font-size: 18px;
        width: 22px;
        text-align: center;
    }

    .crm-menu li a:hover {
        background: #f4f6fb;
        color: #001e85;
    }

    .crm-menu li a.active {
        background: #e9f0ff;
        color: #001e85;
        font-weight: 600;
    }