.btn-auth {
    background-color: #7b2cbf !important;
    color: white !important;
}

    .btn-auth:hover {
        background-color: #5a189a !important;
        color: white !important;
    }

/* ========================================================
   CARRITO COMPRAS
   ======================================================== */

/* Efecto hover premium para iconos del header */
.nav-link i {
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover i {
    color: #6f42c1; /* Tu color morado de marca */
    transform: translateY(-2px); /* Se eleva un poquito */
}

/* ========================================================
   1. ESTILOS GLOBALES DE NAVEGACIÓN (SOFTKEYINN THEME)
   ======================================================== */
.menu-link-custom,
.dropdown-item {
    transition: all 0.2s ease-in-out;
    color: #606060; /* Gris elegante base */
    font-weight: 500;
    cursor: pointer;
}

    /* EFECTO HOVER: Fondo lila suave y texto morado */
    .menu-link-custom:hover,
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #fbf2ff !important;
        color: #7b2cbf !important;
    }

        .menu-link-custom:hover i,
        .dropdown-item:hover i {
            color: #7b2cbf !important;
        }

    /* ESTADO ACTIVO */
    .menu-link-activo,
    .dropdown-item.active,
    .dropdown-item:active {
        background-color: #fbf2ff !important;
        color: #7b2cbf !important;
        font-weight: 600;
    }

    /* Excepción para alertas/Cerrar Sesión */
    .dropdown-item.text-danger:hover {
        color: #dc3545 !important;
        background-color: #fff5f5 !important;
    }

/* --- ESTILOS DE BOTONES GLOBALES --- */
/* --- SISTEMA DE BOTONES DINÁMICOS --- */
.btn-custom {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: none !important;
    font-weight: 500 !important; /* Un poco más gordita la letra ayuda */
    min-height: 45px; /* Un poco más alto */
    min-width: 150px; /* CLAVE: Ancho mínimo para que quepan texto + icono */
    padding: 0.5rem 1.5rem !important;
}

    /* El texto se mantiene en el centro absoluto */
    .btn-custom span {
        transition: transform 0.3s ease;
        z-index: 2;
        display: inline-block;
    }

    /* El icono no ocupa espacio físico (no empuja el texto) */
    .btn-custom i {
        position: absolute;
        right: 1rem; /* Punto de partida (más al borde) */
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        z-index: 1;
    }

    /* EFECTO HOVER: El texto se mueve un poco a la IZQUIERDA para equilibrar 
   visualmete la aparición del icono, o puedes dejarlo quieto. */
    .btn-custom:hover span {
        transform: translateX(-10px); /* Movimiento sutil para dar paso al icono */
    }

    .btn-custom:hover i {
        opacity: 1;
        transform: translateX(0);
    }

/* --- HOVERS DE COLOR (Background-color) --- */

.btn-detalles {
    background-color: #6f42c1 !important;
    color: white !important;
}

    .btn-detalles:hover {
        background-color: #59359a !important;
    }

.btn-agregar {
    background-color: #198754 !important;
    color: white !important;
}

    .btn-agregar:hover {
        background-color: #146c43 !important;
    }

.btn-carrito {
    background-color: #0d6efd !important;
    color: white !important;
}

    .btn-carrito:hover {
        background-color: #0b5ed7 !important;
    }

.btn-eliminar {
    background-color: #fff0f2; /* Rosa/Rojo ultra suave y limpio */
    color: #e05260; /* Rojo coral mate, cero agresivo */
}

    .btn-eliminar:hover {
        background-color: #ffe0e4; /* Ligeramente más acentuado al pasar el mouse */
        color: #c93d4a; /* Ícono sutilmente más oscuro para contraste */
    }

.btn-modificar {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

    .btn-modificar:hover {
        background-color: #e0a800 !important;
    }

/* 1. Botón Cancelar (Gris/Neutro) */
/* Usamos un gris medio para que no compita con la acción principal */
.btn-cancelar {
    background-color: #6c757d !important;
    color: white !important;
}

    .btn-cancelar:hover {
        background-color: #5c636a !important;
    }

/* 2. Botón Guardar (Morado/Primario) */
/* Recomiendo usar el mismo morado de tu marca (igual a btn-detalles) 
   para reforzar que es la acción principal del sitio. */
.btn-guardar {
    background-color: #6f42c1 !important;
    color: white !important;
}

    .btn-guardar:hover {
        background-color: #59359a !important;
        box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3); /* Un brillo extra sutil */
    }

/* --- CONTENEDOR DE ACCIONES RESPONSIVO PARA LA VISTA _BOTONESACCIONES --- */

/* 1. Estilo por defecto (Escritorio y Tablet) */
.acciones-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Tu separación elegante original */
    padding-bottom: 0.5rem;
}

/* 2. Estilo para Móviles (Pantallas < 576px) */
@media (max-width: 576px) {
    .acciones-contenedor {
        flex-direction: column-reverse; /* Pone 'Guardar' ARRIBA y 'Cancelar' ABAJO (Mejor UX móvil) */
        gap: 15px; /* Reducimos el hueco para que no ocupe tanta pantalla */
        width: 100%; /* El contenedor usa todo el ancho disponible */
    }

        /* Hacemos que los botones sean anchos para facilitar el 'tap' con el dedo */
        .acciones-contenedor .btn-custom {
            width: 100% !important;
            max-width: 350px; /* Evita que se vean deformes si el móvil es muy ancho */
            display: flex;
            justify-content: center;
        }
}

/* --- CONFIGURACIÓN BASE --- */
html {
    font-size: 12px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
    padding-top: 110px !important;
    /*color: #495057;*/
    font-family: 'Inter', sans-serif !important;
    background-color: #f8f9fa;
    color: #1a1d21;
}
/* 2. Forzamos la fuente SOLO en controles rebeldes de Bootstrap que no heredan del body, 
      dejando intactas las etiquetas <i> de tus iconos. */
button, input, select, textarea, .nav-link, .dropdown-item, .product-link {
    font-family: 'Inter', sans-serif !important;
}

/* 3. Escudo de seguridad para FontAwesome (Garantiza que no pierdan su forma) */
i, .fas, .far, .fab, .fa {
    font-family: "Font Awesome 5 Free" !important;
}

/* 4. Ajustes de grosor para títulos y botones (Toque Premium) */
b, strong, .fw-bold, h1, h2, h3, h4, h5, h6, .nav-link, .btn {
    font-weight: 600 !important;
    letter-spacing: -0.3px;
    color: #0f172a;
}


/*b, strong, .fw-bold, h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    letter-spacing: -0.015em;*/ /* Un kerning muy sutil hace que se vea más moderno */
/*}*/

h1, h2, h3, h4, h5, h6 {
    color: #343a40;
}

/* --- COMPONENTES GENERALES --- */
.btn:focus, .btn-link.nav-link:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

table.dataTable thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    background-color: #f8fafc;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    color: white !important;
    border: none;
    border-radius: 4px;
}

/* --- COLORES Y PROMO BAR --- */
:root {
    --primary-color: #7b2cbf;
    --accent-color: #ff4d6d;
}

.promo-bar {
    background: linear-gradient(90deg, #ab77cb, #ab77cb);
    transition: background 0.3s;
}

/* --- BUSCADOR --- */
.search-wrapper {
    position: relative;
}

    .search-wrapper .form-control {
        border: 2px solid #eee;
        height: 45px;
    }

    .search-wrapper .btn-search {
        position: absolute;
        right: 5px;
        top: 5px;
        bottom: 5px;
        background: #ab77cb;
        color: white;
        border-radius: 50px;
        padding: 0 20px;
    }

/* --- ILUMINACIÓN DEL BUSCADOR --- */
#inputBuscador {
    transition: all 0.3s ease; /* Transición suave para el color y la sombra */
    border: 1px solid #ced4da; /* Borde estándar */
}

    #inputBuscador:focus {
        border-color: #6f42c1 !important; /* Cambia el borde al morado de la marca */
        box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25) !important; /* Efecto de brillo morado suave */
        outline: 0;
    }

        /* --- AJUSTE DEL BOTÓN DE LUPA --- */
        /* Opcional: Que el icono de la lupa también cambie de color al enfocar */
        #inputBuscador:focus + button i,
        #inputBuscador:focus ~ button i {
            color: #6f42c1 !important;
            transition: color 0.3s ease;
        }

/* --- BADGES --- */
.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    background: var(--accent-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ========================================================
   2. ESTRUCTURA DEL MENÚ MULTINIVEL
   ======================================================== */
.nav-main, .nav-lvl2, .nav-lvl3, .nav-lvl4 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link-wrapper a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

/* --- HEADER FIJO UNIVERSAL --- */
header.sticky-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.main-content-wrapper {
    max-width: 1320px;
    margin: 20px auto 0 auto;
    padding: 0 15px;
}

footer a:hover {
    color: #7b2cbf !important;
    transition: 0.3s;
}

footer h6 {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* --- ESCRITORIO (>= 768px) --- */
@media (min-width: 768px) {
    body {
        padding-top: 0 !important;
    }

    .offcanvas-body {
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }

    .nav-main {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 10px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .navbar-collapse {
        display: flex !important;
    }

    .nav-item-lvl1 {
        position: relative;
        padding: 15px clamp(15px, 3vw, 35px);
        display: flex;
        align-items: center;
        white-space: nowrap !important;
    }

        .nav-item-lvl1 > .nav-link-wrapper a {
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.9rem;
            white-space: nowrap;
        }

    /* Definición base de las cajas desplegables */
    .nav-lvl2, .nav-lvl3, .nav-lvl4 {
        display: none;
        position: absolute;
        background: white;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1000;
        min-width: 220px;
        padding: 5px 0;
        border-radius: 12px;
        text-align: left;
        border: 1px solid #eee;
    }

    /* CORRECCIÓN 1: Quitamos el margin-left para eliminar el hueco donde "cae" el ratón. 
       Además usamos top: -5px para alinear la caja perfectamente con el ítem seleccionado. */
    .nav-lvl2 {
        top: 100%;
        left: 0;
    }

    .nav-lvl3 {
        top: -5px;
        left: 100%;
        margin-left: 0;
    }

    .nav-lvl4 {
        top: -5px;
        left: 100%;
        margin-left: 0;
    }

    /* Para que los submenús sepan de dónde salir */
    .nav-item-lvl2, .nav-item-lvl3 {
        position: relative;
    }

        /* Mostrar los menús al pasar el mouse (Hover) */
        .nav-item-lvl1:hover > .nav-lvl2,
        .nav-item-lvl2:hover > .nav-lvl3,
        .nav-item-lvl3:hover > .nav-lvl4 {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        /* Layout general de las opciones */
        .nav-item-lvl2 .nav-link-wrapper,
        .nav-item-lvl3 .nav-link-wrapper,
        .nav-lvl3 li a,
        .product-link-menu {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
            text-decoration: none;
            color: #606060;
            transition: all 0.2s ease-in-out;
        }

    /* Estilo para los productos finales */
    .nav-lvl3 li a, .product-link-menu {
        justify-content: flex-start;
        font-weight: 400;
    }

        /* CORRECCIÓN 2: El color lila brillante (#fbf2ff) aplicado a todos los subniveles */
        .nav-item-lvl2:hover > .nav-link-wrapper,
        .nav-item-lvl3:hover > .nav-link-wrapper,
        .nav-lvl3 li a:hover,
        .product-link-menu:hover {
            background-color: #fbf2ff !important;
            color: #7b2cbf !important;
        }

            /* Los iconos de flechitas también se pintan de tu morado */
            .nav-item-lvl2:hover > .nav-link-wrapper i,
            .nav-item-lvl3:hover > .nav-link-wrapper i {
                color: #7b2cbf;
            }
}

/* --- MÓVIL (< 767px) --- */
@media (max-width: 767px) {
    header.sticky-top {
        position: fixed !important;
        left: 0;
        right: 0;
    }

    body {
        overflow-x: hidden;
    }

    .search-wrapper {
        margin: 5px 10px 10px 10px !important;
    }

    footer .text-md-end {
        text-align: center !important;
        margin-top: 20px;
    }

    .offcanvas {
        width: 85% !important;
        max-width: 350px;
    }

    .offcanvas-body .navbar-collapse {
        display: block !important;
    }

    .nav-main {
        display: block;
        text-align: left;
        padding: 0;
    }

    .nav-link-wrapper,
    .nav-lvl3 li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-bottom: 1px solid #f8f9fa;
        width: 100%;
        font-size: 1rem;
    }

    .nav-lvl3 li a {
        background-color: #fcfcfc;
        padding-left: 45px;
        font-weight: 400;
        font-size: 0.95rem;
        justify-content: flex-start;
    }

    /* Ocultamos también el Nivel 4 en móvil por defecto */
    .nav-lvl2, .nav-lvl3, .nav-lvl4 {
        display: none;
        background-color: #fff;
    }

    .menu-toggler {
        padding: 10px;
        cursor: pointer;
    }
}

/* --- AJUSTES DE SUPERPOSICIÓN Y RESPONSIVIDAD ORIGINALES --- */
@media (max-width: 3150px) {
    .navbar-brand img {
        max-width: 150px !important;
    }

    .gap-3 {
        gap: 0.5rem !important;
    }

    body {
        padding-top: 150px !important;
    }
}

@media (max-width: 991px) {
    .search-wrapper {
        margin: 0 5px;
    }

    #currencyMenu span, #userMenu i {
        font-size: 0.85rem;
    }

    body {
        padding-top: 150px !important;
    }
}

@media (max-width: 537px) {
    header.sticky-top {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        z-index: 9999 !important;
        background-color: #fff !important;
        transform: none !important;
    }

    body {
        padding-top: 160px !important;
        overflow-x: hidden;
    }

    .search-wrapper {
        width: 95%;
        margin: 5px auto;
    }
}

@media (max-width: 479px) {
    header.sticky-top {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
    }

    body {
        padding-top: 160px !important;
    }
}

@media (max-width: 310px) {
    body {
        padding-top: 240px !important;
    }

    header .container .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    header .col-6.col-md-2.text-start {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        display: block !important;
        padding: 0 !important;
    }

    .logo-main {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }

    header .col-6.col-md-3.order-2 {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 0 !important;
        border-top: 1px solid #f0f0f0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin-bottom: 5px !important;
    }

    header .nav-link i, header .navbar-toggler i {
        font-size: 1.4rem !important;
    }

    #currencyMenu span {
        font-size: 1rem !important;
        font-weight: 700;
    }

    header .gap-2 {
        gap: 18px !important;
        justify-content: center !important;
        width: 100% !important;
    }

    header .col-12.col-md-7.order-3 {
        width: 100% !important;
        padding: 0 15px !important;
    }

    .dropdown.border-end {
        border-right: none !important;
        padding-right: 0 !important;
    }
}

@media (min-width: 538px) and (max-width: 767px) {
    body {
        padding-top: 160px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    header .col-md-2 {
        flex: 0 0 auto !important;
        width: auto !important;
        padding-right: 15px !important;
    }

    header .col-md-7.order-3 {
        flex-grow: 1 !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 5px !important;
    }

    header .col-md-3 {
        flex: 0 0 auto !important;
        width: auto !important;
        padding-left: 10px !important;
    }

    .search-wrapper .form-control {
        height: 45px !important;
        width: 100% !important;
        margin-left: 0 !important;
        border-radius: 8px;
    }

    .search-wrapper .btn-search {
        padding: 0 20px;
        height: 37px;
        top: 4px;
        right: 4px;
    }
}
/* --- TERMINA MENÚ --- */

/* Ajuste para el carrusel en móviles */
@media (max-width: 768px) {
    #homeSlider,
    #homeSlider .carousel-item,
    #homeSlider .img-skeleton,
    #homeSlider img {
        height: 250px !important;
    }
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.5));
}

.carousel-indicators [data-bs-target] {
    background-color: #6f42c1; /* Morado SoftKeyInn */
}

/* ========================================================
   3. BREADCRUMBS
   ======================================================== */
nav[aria-label="breadcrumb"] {
    width: 100% !important;
    max-width: 1320px;
    margin: 0 auto 0 0 !important; /* El último 0 quita el margen izquierdo */
    padding: 12px 15px;
    display: flex !important;
    justify-content: flex-start !important; /* Empuja el contenedor a la izquierda */
    text-align: left !important;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.90rem;
    display: flex !important;
    width: 100%;
    justify-content: flex-start !important; /* Empuja los links a la izquierda */
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: #6f42c1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

    .breadcrumb-item a:hover {
        color: #5a1a9e;
        text-decoration: underline;
    }

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105"; /* Chevron Right FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #b0b0b0;
    padding: 0 10px;
}

.breadcrumb-item.active {
    color: #6c757d !important;
    font-weight: 400;
}

@media (max-width: 767px) {
    nav[aria-label="breadcrumb"] {
        padding: 8px 15px;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }
}
/* --- TERMINA BREADCRUMBS --- */

/* Estilo para el Lazy Loader en site.css o bloque style */
.lazy-load-img {
    filter: blur(5px);
    transition: filter 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

    .lazy-load-img[src^="http"], .lazy-load-img[src^="/"] {
        filter: blur(0);
        opacity: 1 !important;
    }

/* --- CONTENEDOR SHIMMER --- */
.shimmer-wrapper {
    width: 100%;
    height: 100%;
    background: #eeeeee;
    background-image: linear-gradient(to right, #eeeeee 0%, #dddddd 20%, #eeeeee 40%, #eeeeee 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: inline-block;
    position: relative;
    animation: shimmer 1.5s linear infinite forwards;
}

/* La animación que mueve el brillo */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

/* Clase para ocultar el shimmer suavemente cuando cargue la imagen */
.shimmer-hidden {
    opacity: 0;
    transition: opacity 0.4s ease-out;
    pointer-events: none;
}

/* --- SKELETON SCREEN--- */
.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: #eeeeee;
    background-image: linear-gradient(to right, #eeeeee 0%, #dddddd 20%, #eeeeee 40%, #eeeeee 100%);
    background-size: 800px 100%;
    animation: shimmer 1.5s linear infinite forwards;
}

/* Variaciones de ancho para que parezca texto real */
.skeleton-title {
    width: 90%;
    height: 16px;
}

.skeleton-price {
    width: 40%;
    height: 20px;
    margin-top: 10px;
}

.skeleton-button {
    width: 100%;
    height: 35px;
    border-radius: 50px;
}

@keyframes shimmer {
    0% {
        background-position: -800px 0;
    }

    100% {
        background-position: 800px 0;
    }
}

.img-skeleton {
    background-color: #f0f0f0;
}

    .img-skeleton::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
        animation: shimmer-animation 1.5s infinite;
    }

.shimmer-off::after {
    display: none !important;
}

@keyframes shimmer-animation {
    100% {
        left: 100%;
    }
}

/* --- COMPLEMENTOS PARA TARJETAS DE PRODUCTO --- */

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    font-weight: 400 !important;
}

    /* Forzar peso 400 en todos los elementos internos */
    .product-card h6,
    .product-card span,
    .product-card div,
    .product-card small,
    .product-card a,
    .product-card button {
        font-weight: 400 !important;
    }

    /* Alineación del cuerpo y empuje al fondo */
    .product-card .card-body {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
    }

    /* Altura fija del título para alinear precios horizontalmente */
    .product-card .card-title {
        height: 2.8rem !important;
        line-height: 1.4rem !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-bottom: 0.75rem !important;
    }

    .product-card .mt-auto {
        margin-top: auto !important;
    }

    /* Efectos de imagen y hover */
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.12) !important;
    }

        .product-card:hover .card-img-top {
            transform: scale(1.05);
        }
    /*.product-card .position-absolute.d-flex.flex-column.align-items-center.gap-1 {
        top: 45px !important;*/ /* Lo empuja hacia abajo librando el logo de la marca */
    /*}*/
.card-img-top {
    transition: transform 0.3s ease, opacity 0.5s ease-in-out;
}

.text-decoration-line-through {
    opacity: 0.6;
    font-weight: 400 !important;
}

/* Estilo para los enlaces de navegación interna */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .product-link:hover {
        color: #6f42c1; /* Color púrpura al pasar sobre el nombre */
    }

/* Ajuste del botón para Agregar al Carrito (Verde) */
.btn-agregar {
    background-color: #198754 !important;
    color: white !important;
}

    .btn-agregar:hover {
        background-color: #146c43 !important;
    }

/* --- CONTENEDOR DE SUGERENCIAS --- */

#contenedorSugerencias {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    animation: fadeInSuggestions 0.2s ease-out;
    overflow: hidden; /* Asegura que los bordes redondeados corten el contenido */
    /* Ajustes críticos para el scroll */
    display: block !important; /* Asegura que se comporte como bloque */
    max-height: 200px !important; /* Altura fija para que el scroll sea visible pronto */
    overflow-y: auto !important; /* Habilita el scroll vertical */
    overflow-x: hidden; /* Evita el movimiento lateral */

    border: none !important;
    box-shadow: none;
}

    /* Solo aplicar borde y sombra cuando se quita la clase d-none y hay contenido */
    #contenedorSugerencias:not(.d-none) {
        border: 1px solid rgba(0,0,0,0.1) !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

@keyframes fadeInSuggestions {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo de los items de la lista */
#contenedorSugerencias .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f1f1; /* Separación sutil entre productos */
    transition: all 0.2s;
    cursor: pointer;
}

    #contenedorSugerencias .list-group-item:last-child {
        border-bottom: none;
    }

    #contenedorSugerencias .list-group-item:hover {
        background-color: #f3eaff; /* Color de realce suave morado */
    }

/* Imagen en la sugerencia */
#contenedorSugerencias img {
    border: 1px solid #eee;
    padding: 2px;
    background: #fff;
}

/* Precio en la sugerencia */
#contenedorSugerencias .text-primary {
    color: #6f42c1 !important; /* Morado de SoftKeyInn */
}

/* Estado "No resultados" */
#contenedorSugerencias .text-muted {
    background-color: #fcfaff;
}

/* --- SPINNER DE CARGA --- */
#spinnerBuscador .spinner-border {
    width: 1rem;
    height: 1rem;
    color: #6f42c1 !important; /* Morado de SoftKeyInn */
}

/* --- SCROLLBAR PERSONALIZADO SUGERENCIAS --- */
#contenedorSugerencias::-webkit-scrollbar {
    width: 6px;
}

#contenedorSugerencias::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color de fondo del carril */
    border-radius: 10px;
}

#contenedorSugerencias::-webkit-scrollbar-thumb {
    background: #6f42c1; /* Morado de SoftKeyInn */
    border-radius: 10px;
}

#contenedorSugerencias::-webkit-scrollbar-thumb {
    background: #6f42c1; /* Color morado de tu marca */
    border-radius: 10px;
}

    #contenedorSugerencias::-webkit-scrollbar-thumb:hover {
        background: #5a32a3; /* Morado un poco más oscuro al pasar el mouse */
    }

/* 3. Soporte para Firefox */
#contenedorSugerencias {
    scrollbar-width: thin;
    scrollbar-color: #6f42c1 #f1f1f1;
}

@media (max-width: 768px) {
    #contenedorSugerencias {
        max-height: 250px !important; /* Más corto en móviles para mejor manejo */
    }
}

/* Clase para la animación de entrada (la que ya tienes) */
/* Animación de Entrada */
.fade-in-suggestions {
    display: block !important;
    max-height: 350px !important;
    overflow-y: auto !important;
    animation: fadeInSuggestions 0.25s ease-out forwards;
}

/* Animación de Salida Mejorada */
.fade-out-suggestions {
    animation: fadeOutSuggestions 0.25s ease-in forwards;
    pointer-events: none; /* Bloquea clics mientras desaparece */
}

@keyframes fadeInSuggestions {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutSuggestions {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Resaltar flechas de navegación para CARRUSEL */
/* Estilo Neón Glow */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(111, 66, 193, 0.6) !important; /* Morado translúcido */
    backdrop-filter: blur(8px); /* Desenfoque de fondo */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    background-size: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    box-shadow: 0 0 25px rgba(111, 66, 193, 1);
}

/* ---  CARRUSEL para productos  ---*/
/* Contenedor principal para permitir que las flechas sobresalgan un poco si es necesario */
/* 1. CONTENEDOR PRINCIPAL
   Define el espacio para las flechas y centra el slider */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 0 50px; /* Espacio lateral para las flechas */
    margin: 0 auto;
    box-sizing: border-box;
}

/* 2. EL SLIDER (TRACK)
   Maneja el movimiento y el magnetismo (snap) */
.productos-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Fuerza a la tarjeta a pegarse al borde */
    scroll-behavior: smooth;
    gap: 20px; /* Espacio fijo entre tarjetas (Indispensable para el cálculo JS) */
    scrollbar-width: none; /* Oculta scroll en Firefox */
    -ms-overflow-style: none; /* Oculta scroll en IE/Edge */
    padding: 15px 0;
}

    /* Oculta barra de scroll en Chrome/Safari */
    .productos-slider::-webkit-scrollbar {
        display: none;
    }

/* 3. LAS TARJETAS (ITEMS)
   Anchos calculados para que el scroll sea un múltiplo exacto */
.item-slider {
    /* Desktop: 4 tarjetas visibles (25% cada una) 
       Restamos 15px para compensar los 3 gaps de 20px distribuidos entre las 4 */
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    scroll-snap-align: start; /* Punto de anclaje para el imán */
    box-sizing: border-box;
}

/* Tablet: 3 tarjetas visibles */
@media (max-width: 1100px) {
    .item-slider {
        flex: 0 0 calc(33.33% - 14px);
    }
}

/* Móvil: 2 tarjetas visibles */
@media (max-width: 768px) {
    .carousel-container {
        padding: 0 40px; /* Menos padding en móvil */
    }

    .item-slider {
        flex: 0 0 calc(50% - 10px);
        min-width: 180px;
    }
}

/* 4. FLECHAS DE NAVEGACIÓN
   Posicionadas fijas a 130px de altura (zona media de la imagen) */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 0 50px;
    margin: 0 auto;
    box-sizing: border-box;
}
.btn-carousel {
    position: absolute;
    top: 180px; /* Altura fija sobre la imagen del producto */
    transform: translateY(-50%);
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(111, 66, 193, 0.85) !important; /* Color morado translúcido */
    color: white !important;
    backdrop-filter: blur(8px); /* Efecto cristal */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
}

    .btn-carousel:hover {
        background-color: rgba(111, 66, 193, 1) !important;
        transform: translateY(-50%) scale(1.1);
    }

    /* Pegadas a los bordes del padding del contenedor */
    .btn-carousel.prev {
        left: 5px;
    }

    .btn-carousel.next {
        right: 5px;
    }

/* 5. PUNTOS INDICADORES (DOTS)
   Aparecen centrados bajo el slider */
.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    min-height: 12px; /* Evita saltos de layout antes de que JS cargue los puntos */
    /*pointer-events: none;*/
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #d1d1d1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    /*pointer-events: auto*/
    /* Transición de 0.5s para el color y el tamaño */
    transition: background-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

    .dot.active {
        background-color: #6f42c1; /* Color activo */
        transform: scale(1.4);
        box-shadow: 0 0 8px rgba(111, 66, 193, 0.3);
    }


/* --- RESOLUCIONES GRANDES (1101px a 1199px) --- */
/* Forzamos 3 productos exactos para evitar que el 4to se asome */
@media (min-width: 1101px) and (max-width: 1250px) {
    .item-slider {
        flex: 0 0 calc(33.333% - 14px) !important;
        min-width: unset !important;
    }
}

/* --- RESOLUCIONES ESTÁNDAR (418px a 1100px) --- */
/* Se mantienen 2 productos exactos */
@media (min-width: 418px) and (max-width: 1100px) {
    .item-slider {
        flex: 0 0 calc(50% - 10px) !important;
        min-width: unset !important;
    }
}

/* --- RESOLUCIONES MÓVILES (Menor a 418px) --- */
/* Solo 1 producto exacto en pantalla */
@media (max-width: 417px) {
    .item-slider {
        flex: 0 0 100% !important;
        min-width: unset !important;
    }

    .carousel-container {
        padding: 0 35px; /* Ajustamos padding para que no robe mucho espacio */
    }
}

/*Fin*/

/* =========================================
   ESTILOS FINALES PARA MODO MINI (CARRITO)
   ========================================= */

/* 1. Ocultar Scrollbar completamente */
.productos-slider {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

    .productos-slider::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

/* 2. Contenedor Miniatura: Más compacto y con espacio para flechas */
.carousel-container.mini-mode {
    padding: 0 30px; /* Espacio lateral seguro */
    margin-bottom: 0;
}

    /* 3. Flechas del Carrusel (Estilo Burbuja Morada) */
    .carousel-container.mini-mode .btn-carousel {
        width: 28px;
        height: 28px;
        background-color: #6f42c1;
        color: white;
        border-radius: 50%;
        border: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%); /* Centrado vertical exacto */
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

        .carousel-container.mini-mode .btn-carousel.prev {
            left: 0;
        }

        .carousel-container.mini-mode .btn-carousel.next {
            right: 0;
        }


@media (max-width: 768px) {
    /* Buscamos el botón dentro de la tarjeta que tiene el estilo forzado */
    .product-card button[style*="height: 24px"] {
        height: 34px !important; /* Un poco más alto para el dedo */
        font-size: 0.8rem !important; /* Letra un pelín más grande */
    }

        /* Opcional: El ícono también un poco más grande */
        .product-card button[style*="height: 24px"] i {
            font-size: 0.8rem !important;
        }
}

/* =========================================
   ARREGLO DEFINITIVO DEL BADGE DEL CARRITO
   ========================================= */
.cart-badge-counter {
    /* 1. Color y Borde */
    background-color: #6f42c1 !important; /* Tu morado, forzado */
    border: 2px solid #ffffff !important; /* Borde blanco grueso para separar */
    color: #ffffff !important;
    /* 2. Geometría (Esto evita la deformación) */
    height: 20px !important; /* Altura fija */
    min-width: 20px !important; /* Ancho mínimo para ser círculo */
    padding: 0 4px !important; /* Relleno lateral ligero para números largos */
    border-radius: 10px !important; /* Asegura la forma redondeada */
    /* 3. Centrado del Texto (Fundamental) */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* 4. Texto */
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    line-height: 1 !important; /* Evita espacios extra arriba/abajo */
    /* 5. Posición Fina */
    /* Bootstrap usa translate(-50%, -50%). */
    /* Lo cambiamos ligeramente para acercar la burbuja al icono */
    transform: translate(-40%, -40%) !important;
    z-index: 20; /* Asegura que quede por encima de todo */
}

/* AJUSTE PARA MÓVILES (Para que no toque el menú hamburguesa) */
@media (max-width: 768px) {
    .cart-badge-counter {
        height: 18px !important; /* Un poco más pequeño */
        min-width: 18px !important;
        font-size: 0.6rem !important;
        border-width: 1.5px !important; /* Borde menos grueso */
        /* Lo acercamos MÁS al icono en móvil */
        transform: translate(-50%, -40%) !important;
    }

    /* Opcional: Darle un pequeño margen derecho al contenedor del carrito en móvil */
    .nav-link.position-relative.d-inline-block {
        margin-right: 5px !important;
    }
}

/*----- LISTA DESEOS (DISEÑO SOLO CORAZÓN PREMIUM) -----*/

/* Contenedor invisible */
.wishlist-btn-heart {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto;
    height: auto;
    padding: 5px;
    cursor: pointer;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    /* Bloqueo visual durante el clic */
    .wishlist-btn-heart.processing {
        cursor: wait !important;
        opacity: 0.8;
        pointer-events: none;
        transform: scale(0.95);
    }

    /* Icono base estandarizado */
    .wishlist-btn-heart i {
        font-size: 1.8rem; /* Un poco más grande para que sea fácil de tocar */
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease, filter 0.2s ease;
    }

        /* ESTADO: DESMARCADO (Corazón vacío) */
        .wishlist-btn-heart i.far {
            color: #ffffff !important; /* Blanco puro */
            /* Esta sombra es la magia: hace que se lea perfecto sobre blanco o negro */
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)) !important;
        }

        /* ESTADO: MARCADO (Corazón lleno púrpura) */
        .wishlist-btn-heart i.fas {
            color: #6f42c1 !important; /* Tu morado de marca */
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important;
        }

    /* Hover: Efecto visual de crecimiento */
    .wishlist-btn-heart:not(.processing):hover i {
        transform: scale(1.15);
    }

/* Animación de pulso al agregar */
.pulse-animation i {
    animation: heartPulse 0.4s ease-in-out;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* Spinner de carga dentro del botón circular */
.wishlist-btn-heart .fa-spinner {
    font-size: 1.6rem;
    color: #6f42c1 !important;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.8)) !important; /* Resplandor blanco para el spinner */
}

/* Estilos de SweetAlert (Tus estilos originales se mantienen igual) */
.swal2-popup.swal2-toast {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    background: #ffffff !important;
}

.swal2-timer-progress-bar {
    background: #6f42c1 !important;
}

/*SCROLL PARA COMENTARIOS*/
/* Estilo para barra de desplazamiento fina (Webkit: Chrome, Edge, Safari) */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
/* Para Firefox */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* VALIDACIONES: USAR SIEMPRE position-relative dentro de un div*/

.position-relative {
    position: relative !important;
}

/* Input con error: Borde rojo suave */
.input-validation-error {
    border-color: #ff6b6b !important; /* Rojo Coral Suave */
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25) !important;
    background-image: none !important;
}

/* La Burbuja (Tooltip) */
.field-validation-error {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    display: block;
    margin-top: 5px; /* Un poco más separado */
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background-color: #ff6b6b; /* Rojo Coral Suave */
    border-radius: 8px; /* Bordes más redondeados */
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3); /* Sombra suave */
    animation: fadeIn 0.3s ease-in-out;
    pointer-events: none;
}

    /* El triangulito */
    .field-validation-error::after {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 20px;
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent #ff6b6b transparent;
    }
    /* Agrega un icono de exclamación antes del texto */
    .field-validation-error::before {
        content: "\f071"; /* Código del icono de alerta (fas fa-exclamation-triangle) */
        font-family: "Font Awesome 5 Free"; /* Asegúrate que coincida con tu versión */
        font-weight: 900;
        margin-right: 8px; /* Separación del texto */
        font-size: 0.9em;
    }

/* Animación de vibración para el INPUT */
.input-validation-error {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- FIN VALIDACIONES --- */

/* FOCO CAJA TEXTO  */
.form-control:focus {
    border-color: #6f42c1 !important;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25) !important; /* Tu morado con transparencia */
}

/* --- UTILIDADES DE MARCA TITULO DE CADA MODULO --- */

/* 1. Color de Texto Principal (Tu Morado) */
.text-brand {
    color: #6f42c1 !important;
}

/* 2. Título Estándar para Formularios (Login, Registro, etc.) 
   Esto agrupa: Centrado, Negritas, Margen y Color */
.auth-title {
    color: #6f42c1;
    font-weight: 700; /* fw-bold */
    text-align: center; /* text-center */
    margin-bottom: 1.5rem; /* mb-4 equiv */
}
/* --- FIN --- */

/* --- MEJORAS VISUALES GLOBALES --- */

/* 2. Barra de Fortaleza de Contraseña */
.password-strength-container {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Colores de la barra */
.strength-weak {
    width: 30%;
    background-color: #ff6b6b;
}
/* Rojo */
.strength-medium {
    width: 60%;
    background-color: #ffc107;
}
/* Amarillo */
.strength-strong {
    width: 100%;
    background-color: #28a745;
}
/* Verde */

/* --- ESTILO GLOBAL DE PLACEHOLDERS (Premium) --- */

/* Aplica a todos los navegadores modernos */
::placeholder {
    color: #adb5bd !important; /* Gris suave (Bootstrap Gray-500) */
    font-style: italic; /* Estilo cursiva para denotar "ejemplo" */
    font-size: 0.95em; /* Ligeramente más pequeño que el texto normal */
    font-weight: 400;
    opacity: 1; /* Corrección para Firefox */
    transition: all 0.3s ease;
}

/* Cuando el usuario hace clic en el input (Focus) */
.form-control:focus::placeholder {
    color: #dee2e6 !important; /* Se hace más sutil (casi transparente) */
    transform: translateX(5px); /* Pequeño desplazamiento a la derecha */
}

/* Correcciones específicas para navegadores antiguos (Opcional pero recomendado) */
::-webkit-input-placeholder {
    color: #adb5bd;
    font-style: italic;
}

::-moz-placeholder {
    color: #adb5bd;
    font-style: italic;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #adb5bd;
    font-style: italic;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste para que los campos condicionales no den saltos bruscos */
#contenedor_IdCategoriaPadre {
    display: none; /* El JS del formulario genérico lo mostrará con slideDown */
}

/* Identidad visual del Admin */
.card-formulario-header {
    background-color: #f8f5ff !important; /* Lila muy suave */
    border-bottom: 2px solid #6f42c1 !important;
}

    .card-formulario-header h5 {
        color: #6f42c1 !important;
        font-weight: 700;
    }


/* Paginación Historial (Estilo Lila Claro / Premium) */
.pagination-custom .page-link {
    color: #6f42c1;
    border-radius: 8px;
    margin: 0 4px;
    border: 1px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    text-decoration: none;
}

.pagination-custom .page-item.active .page-link {
    background-color: rgba(111, 66, 193, 0.08); /* El lila claro exacto de la tarjeta CTA */
    border-color: rgba(111, 66, 193, 0.15); /* Borde sutil para definir el cuadro */
    color: #6f42c1; /* Texto morado oscuro para contraste perfecto */
    font-weight: 700;
    box-shadow: none; /* Eliminamos la sombra para mantener el aspecto plano/minimalista */
}

.pagination-custom .page-link:hover:not(.active) {
    background-color: rgba(111, 66, 193, 0.04); /* Un hover ultra suave */
    color: #59339d;
    border-color: transparent;
}

.pagination-custom .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: transparent;
    cursor: not-allowed;
}


/* ==========================================
       IDENTIDAD VISUAL: FLATPICKR (CALENDARIO PREMIUM)
       ========================================== */
:root {
    --lila-claro: #f4ebfa; /* El fondo suave de tu menú izquierdo */
    --morado-fuerte: #6f42c1; /* El color de tu marca para textos y selección */
}

/* 1. Cabecera (Meses y Año) */
.flatpickr-months .flatpickr-month {
    background: var(--lila-claro) !important;
    color: var(--morado-fuerte) !important;
    fill: var(--morado-fuerte) !important;
}

/* Flechas de navegación (Mes anterior/siguiente) */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--morado-fuerte) !important;
    fill: var(--morado-fuerte) !important;
}

    .flatpickr-months .flatpickr-prev-month:hover svg,
    .flatpickr-months .flatpickr-next-month:hover svg {
        fill: #4b2b85 !important; /* Un morado más oscuro al pasar el mouse */
    }

/* Menú desplegable de los meses */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--lila-claro) !important;
    color: var(--morado-fuerte) !important;
    border-radius: 4px;
}

    .flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
        background-color: var(--lila-claro) !important;
    }

/* Flechitas del control de Año */
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--morado-fuerte) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: var(--morado-fuerte) !important;
}

/* 2. Días de la semana (Lun, Mar, Mié...) */
.flatpickr-weekdays {
    background: var(--lila-claro) !important;
}

span.flatpickr-weekday {
    color: var(--morado-fuerte) !important;
    font-weight: bold !important;
}

/* 3. El Día Seleccionado (El 12 en tu imagen) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
    background: var(--lila-claro) !important;
    border: 2px solid var(--morado-fuerte) !important; /* Borde para que resalte */
    color: var(--morado-fuerte) !important;
    font-weight: bold !important;
}

/* 4. Efecto al pasar el ratón (Hover) por los días normales */
.flatpickr-day:hover,
.flatpickr-day:focus {
    background: var(--lila-claro) !important;
    color: var(--morado-fuerte) !important;
    border-color: transparent !important;
}

/* 5. El día de "Hoy" (Para que se diferencie del seleccionado) */
.flatpickr-day.today {
    border-color: #d2d6da !important; /* Un gris/plata sutil */
}

/* 6. Selección de la Hora y Minutos (Adiós al negro y recuadro gris) */
/* Estado por defecto (números y separador) */
.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
    color: var(--morado-fuerte) !important;
}

    /* Efecto al hacer clic o pasar el ratón */
    .flatpickr-time input:hover,
    .flatpickr-time .flatpickr-am-pm:hover,
    .flatpickr-time input:focus,
    .flatpickr-time .flatpickr-am-pm:focus {
        background: var(--lila-claro) !important;
        color: var(--morado-fuerte) !important;
    }







/* --- MENU N-NIVELES SOFTKEYINN --- */
.nav-main {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item-recursivo {
    position: relative;
    list-style: none;
}

    .nav-item-recursivo a {
        display: block;
        padding: 10px 20px;
        text-decoration: none;
        color: #444;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
    }

    /* Hover con colores de la marca */
    .nav-item-recursivo > a:hover,
    .nav-item-recursivo:hover > a {
        background-color: #fbf2ff !important;
        color: #7b2cbf !important;
    }

/* Contenedor de subniveles */
.nav-sub-level {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 250px;
    border: 1px solid #eee;
    padding: 0;
    margin: 0;
    z-index: 1000;
    list-style: none;
}

/* Reglas de Despliegue Desktop */
@media (min-width: 992px) {
    .nav-item-recursivo:hover > .nav-sub-level {
        display: block;
    }

    .nav-sub-level .nav-sub-level {
        top: -1px;
        left: 100%;
    }
}

/* Reglas Móvil (Acordeón) */
@media (max-width: 991px) {
    .nav-main {
        flex-direction: column;
    }

    .nav-sub-level {
        position: static;
        width: 100%;
        border: none;
        border-left: 2px solid #7b2cbf;
        padding-left: 15px;
    }
}