/* ============================================
   UTILIDADES GENERALES
   ============================================ */

/* Ocultar elemento con prioridad sobre Bootstrap */
.banner-oculto {
    display: none !important;
}

/* Switch de notificaciones push más visible */
.form-switch-lg .form-check-input {
    width: 3rem !important;
    height: 1.5rem !important;
    cursor: pointer;
    background-color: #dee2e6;
    border-color: #adb5bd;
}

.form-switch-lg .form-check-input:checked {
    background-color: #00c3d4;
    border-color: #00c3d4;
}

.form-switch-lg .form-check-input:focus {
    border-color: #00c3d4;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 195, 212, 0.25);
}

/* Switch personalizado mejorado */
.custom-switch.form-check-input {
    background-color: #dee2e6;
    border-color: #adb5bd;
    transition: all 0.3s ease;
}

.custom-switch.form-check-input:checked {
    background-color: var(--wemvy-cyan);
    border-color: var(--wemvy-cyan);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.custom-switch.form-check-input:focus {
    border-color: var(--wemvy-cyan);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 196, 214, 0.25);
}

/* Switch mejorado para formularios */
.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.form-check.form-switch .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    cursor: pointer;
    background-color: #dee2e6;
    border-color: #adb5bd;
    transition: all 0.3s ease;
    margin-top: 0;
    margin-left: 0;
}

.form-check.form-switch .form-check-input:checked {
    background-color: var(--wemvy-cyan);
    border-color: var(--wemvy-cyan);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    box-shadow: 0 2px 8px rgba(0, 196, 214, 0.3);
}

.form-check.form-switch .form-check-input:focus {
    border-color: var(--wemvy-cyan);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 196, 214, 0.25);
}

.form-check.form-switch .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.form-check.form-switch .form-check-label strong {
    font-weight: 600;
    color: #2d3748;
}

/* Select mejorado para preview */
.form-select-sm#preview-plantilla-selector {
    border: 2px solid rgba(0, 196, 214, 0.2);
    border-radius: 0.75rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2d3748;
    background-color: white;
    transition: all 0.3s ease;
    min-width: 140px;
}

.form-select-sm#preview-plantilla-selector:hover {
    border-color: rgba(0, 196, 214, 0.4);
    box-shadow: 0 2px 8px rgba(0, 196, 214, 0.15);
}

.form-select-sm#preview-plantilla-selector:focus {
    border-color: var(--wemvy-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 214, 0.25);
    outline: 0;
}

.form-select-sm#preview-plantilla-selector {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300c4d6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
}

/* ============================================
   VARIABLES DE COLORES CORPORATIVOS
   ============================================ */
:root {
    /* Colores principales del logo */
    --color-primary: #00c3d4;
    /* Cian/Turquesa */
    --color-primary-dark: #00a8b8;
    /* Cian oscuro */
    --color-primary-light: #33d1df;
    /* Cian claro */
    --color-secondary: #fd56c4;
    /* Rosa/Magenta */
    --color-secondary-dark: #e640b0;
    /* Rosa oscuro */
    --color-secondary-light: #fe7dd2;
    /* Rosa claro */

    /* Gradientes corporativos */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 195, 212, 0.1) 0%, rgba(253, 86, 196, 0.1) 100%);
    --gradient-active: linear-gradient(135deg, rgba(0, 195, 212, 0.4) 0%, rgba(253, 86, 196, 0.4) 100%);

    /* Colores de soporte */
    --color-success: #13DEB9;
    --color-info: var(--color-primary);
    --color-warning: #FFAE1F;
    --color-danger: #FA896B;

    /* Sobrescribir variables de Bootstrap con colores corporativos */
    --bs-primary: #00c3d4;
    --bs-primary-rgb: 0, 195, 212;
    --bs-secondary: #fd56c4;
    --bs-secondary-rgb: 253, 86, 196;
    --bs-success: #13DEB9;
    --bs-success-rgb: 19, 222, 185;
    --bs-danger: #FA896B;
    --bs-danger-rgb: 250, 137, 107;
    --bs-warning: #FFAE1F;
    --bs-warning-rgb: 255, 174, 31;
    --bs-info: #00c3d4;
    --bs-info-rgb: 0, 195, 212;
}

/* ============================================
   SOBRESCRIBIR COLORES DEL TEMPLATE
   ============================================ */

/* Botones primarios */
.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    box-shadow: 0 4px 12px rgba(0, 195, 212, 0.3) !important;
}

/* Background primary - color sólido cian */
.bg-primary {
    background-color: var(--color-primary) !important;
}

/* Card headers con bg-primary */
.card-header.bg-primary {
    background-color: var(--color-primary) !important;
    border: none !important;
}

/* List group items activos */
.list-group-item.active,
.list-group-item-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Nav pills activos */
.nav-pills .nav-link.active {
    background-color: var(--color-primary) !important;
    color: #fff !important;
}

.nav-pills .nav-link.active i,
.nav-pills .nav-link.active span {
    color: #fff !important;
}

/* Nav pills hover */
.nav-pills .nav-link:hover {
    background-color: rgba(0, 195, 212, 0.1) !important;
}

/* Text sobre bg-primary */
.bg-primary .text-white,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary span {
    color: #fff !important;
}

/* Enlaces */
a:not(.btn) {
    color: var(--color-primary);
}

a:not(.btn):hover {
    color: var(--color-primary-dark);
}

/* Badges y Pills */
.badge.bg-primary {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* Color secundario (Rosa corporativo) */
.text-secondary {
    color: var(--color-secondary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.bg-secondary-subtle {
    background-color: rgba(253, 86, 196, 0.1) !important;
    color: var(--color-secondary) !important;
}

.btn-secondary {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-secondary-dark) !important;
    border-color: var(--color-secondary-dark) !important;
}

/* Sidebar hover */
.sidebar-link:hover {
    background-color: rgba(0, 195, 212, 0.08) !important;
    border-left: 3px solid var(--color-primary) !important;
    transition: all 0.2s ease !important;
}

.sidebar-link:hover span,
.sidebar-link:hover i,
.sidebar-link:hover .hide-menu {
    color: var(--color-primary) !important;
}

/* Sidebar activo - más visible */
.sidebar-link.active {
    background-color: rgba(0, 195, 212, 0.2) !important;
    border-left: 4px solid var(--color-primary) !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 25px rgba(0, 195, 212, 0.15) !important;
}

.sidebar-link.active span,
.sidebar-link.active .hide-menu,
.sidebar-link.active i {
    color: rgb(0, 195, 212) !important;
    font-weight: 600 !important;
}

/* Header y navegación */
.topbar {
    border-bottom: 2px solid var(--color-primary);
}

/* Iconos de navegación hover */
.nav-icon-hover-bg:hover {
    background-color: rgba(0, 195, 212, 0.1) !important;
}

/* Cards con efecto */
.card-hover:hover {
    border-top: 3px solid var(--color-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 195, 212, 0.15) !important;
}

/* Progress bars */
.progress-bar {
    background-color: var(--color-primary) !important;
}

/* Spinner corporativo */
.spinner-border.text-primary {
    color: var(--color-primary) !important;
}

.nav-tabs .nav-link
{
    color: var(--color-primary) !important;
}

/* Tabs activos */
.nav-tabs .nav-link.active {
    border-bottom: 3px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: rgba(0, 195, 212, 0.2) !important;
}

/* Checkboxes y radios */
.form-check-input:checked {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Select y inputs focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 195, 212, 0.15) !important;
}

/* Botones de acción secundarios */
.btn-info {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

.btn-info:hover {
    background: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
    box-shadow: 0 4px 12px rgba(0, 195, 212, 0.3) !important;
}

.btn-outline-info {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.btn-outline-info:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
}

/* Notificaciones */
.notification-badge {
    background-color: var(--color-secondary) !important;
}

/* Preloader - Estilo de wemvy_new */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999999;
    background-color: rgba(255, 255, 255, 0.5); /* Fondo negro con 50% de opacidad */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Asegurar que los elementos internos mantengan su opacidad */
.preloader .loading-container,
.preloader .loading,
.preloader #loading-icon {
    opacity: 1 !important;
}

.loading-container,
.loading {
    height: 140px;
    position: relative;
    width: 140px;
    border-radius: 100%;
}

.loading-container {
    margin: 40px auto;
}

.loading {
    border: 1px solid transparent;
    border-color: transparent #00c4d6 transparent #00c4d6;
    animation: rotate-loading 1.5s linear 0s infinite normal;
    transform-origin: 50% 50%;
}

.loading-container:hover .loading,
.loading-container .loading {
    transition: all 0.5s ease-in-out;
}

#loading-icon {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80px;
    width: 70px;
}

#loading-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1 !important;
}

@keyframes rotate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*#alertas:empty {
    display: none;
}*/

.n_overlay {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: #222;
    z-index: 99999 !important;
    opacity: .5;
}

.n_overlay__inner {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
}

.n_overlay__content {
    left: 50% !important;
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.n_spinner {
    width: 75px !important;
    height: 75px !important;
    display: inline-block !important;
    border-width: 3px !important;
    border-color: rgba(0, 195, 212, 0.2) !important;
    border-top-color: var(--color-primary) !important;
    border-right-color: var(--color-secondary) !important;
    animation: spin 1s infinite linear !important;
    border-radius: 100% !important;
    border-style: solid !important;
    filter: drop-shadow(0 0 10px rgba(0, 195, 212, 0.5));
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

html[data-boxed-layout=boxed] .container-fluid,
html[data-boxed-layout=boxed] .container-lg,
html[data-boxed-layout=boxed] .container-md,
html[data-boxed-layout=boxed] .container-sm,
html[data-boxed-layout=boxed] .container-xl,
html[data-boxed-layout=boxed] .container-xxl {
    max-width: 1920px !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-zoom-in {
    cursor: zoom-in !important;
}

.non-decorated-link {
    color: inherit !important;
    /* Hereda el color del elemento padre (h4) */
    text-decoration: none !important;
    /* Quita el subrayado */
}

.non-decorated-link:hover,
.non-decorated-link:focus {
    color: inherit !important;
    /* Sigue heredando el color al pasar el ratón o enfocar */
    text-decoration: none !important;
    opacity: 0.9 !important;
    /* Ejemplo opcional para un suave efecto hover */
}

.modal-backdrop.show {
    background-color: #fff !important;
}

.modal-content {
    border: 1px solid rgb(235, 241, 246) !important;
}

.modal-backdrop.fade {
    opacity: 0.7
}

/* ============================================
   ESTILOS ADICIONALES CON COLORES CORPORATIVOS
   ============================================ */

/* Alertas personalizadas */
.alert-info,
.alert-light-info {
    background-color: rgba(0, 195, 212, 0.1) !important;
    border-left: 4px solid var(--color-primary) !important;
    /*color: var(--color-primary-dark) !important;*/
}

/* Botón de cerrar en alertas - forzar color blanco */
.alert .btn-close,
.alert .btn-close-white,
.alert button.btn-close,
.alert button.btn-close-white,
.alert-dismissible .btn-close,
.alert-dismissible .btn-close-white,
div.alert .btn-close,
div.alert .btn-close-white {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    width: 1em !important;
    min-width: 1em !important;
    height: 1em !important;
    min-height: 1em !important;
    background-size: 1em auto !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    color: #fff !important;
    display: block !important;
    visibility: visible !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
}

.alert .btn-close:hover,
.alert .btn-close-white:hover,
.alert button.btn-close:hover,
.alert button.btn-close-white:hover,
.alert-dismissible .btn-close:hover,
.alert-dismissible .btn-close-white:hover,
div.alert .btn-close:hover,
div.alert .btn-close-white:hover {
    filter: brightness(0) invert(1) opacity(0.75) !important;
    -webkit-filter: brightness(0) invert(1) opacity(0.75) !important;
    opacity: 0.75 !important;
}

/* Badges info */
.badge.bg-info {
    background: var(--color-primary) !important;
    color: white !important;
}

.badge.text-bg-info {
    background: var(--color-primary) !important;
    color: white !important;
}

/* Dropdown menus */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(0, 195, 212, 0.1) !important;
    color: var(--color-primary-dark) !important;
}

.dropdown-item.active {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* Iconos Tabler: Forzar herencia de color del padre */
i[class^="ti-"],
i[class*=" ti-"] {
    color: inherit; /*!important;*/
}

/* Forzar herencia de colores de texto en iconos - Selectores específicos */
.text-danger i,
.text-danger i[class^="ti-"],
.text-danger i[class*=" ti-"] {
    color: var(--bs-danger) !important;
}

.text-success i,
.text-success i[class^="ti-"],
.text-success i[class*=" ti-"] {
    color: var(--bs-success) !important;
}


.text-primary i,
.text-primary i[class^="ti-"],
.text-primary i[class*=" ti-"] {
    color: var(--color-primary) !important;
}

.text-secondary i,
.text-secondary i[class^="ti-"],
.text-secondary i[class*=" ti-"],
.bg-secondary-subtle.text-secondary i,
.bg-secondary-subtle.text-secondary i[class^="ti-"],
.bg-secondary-subtle.text-secondary i[class*=" ti-"] {
    color: var(--color-secondary) !important;
}

.text-warning i,
.text-warning i[class^="ti-"],
.text-warning i[class*=" ti-"] {
    color: var(--bs-warning) !important;
}

.text-info i,
.text-info i[class^="ti-"],
.text-info i[class*=" ti-"] {
    color: var(--color-primary) !important;
}

.text-muted i,
.text-muted i[class^="ti-"],
.text-muted i[class*=" ti-"] {
    color: var(--bs-secondary) !important;
}

/* FORZAR: Dropdown de notificaciones solo con CLICK */
#drop2~.dropdown-menu:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Paginación */
.pagination .page-link {
    color: var(--color-primary) !important;
    border-color: rgba(0, 195, 212, 0.3) !important;
    transition: all 0.3s ease !important;
}

.pagination .page-link:hover {
    background-color: rgba(0, 195, 212, 0.1) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-1px) !important;
}

.pagination .page-item.active .page-link,
.pagination .page-link.active {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 195, 212, 0.3) !important;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd !important;
    border-color: #dee2e6 !important;
    opacity: 0.5 !important;
}

/* Tables */
.table thead th {
    border-bottom: 2px solid var(--color-primary) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 195, 212, 0.08) !important;
}

/* Breadcrumbs */
.breadcrumb-item.active {
    color: var(--color-primary) !important;
}

.breadcrumb-item a {
    color: var(--color-primary);
}

.breadcrumb-item a:hover {
    color: var(--color-primary-dark);
}

/* Calendario - estilos para eventos */
.fc-event {
    background-color: var(--color-primary) !important;
    border: none !important;
}

.fc-event:hover {
    background-color: var(--color-primary-dark) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Estados de confirmación en calendario */
.fc-event.sin-confirmar {
    border-left: 4px solid #ffae1f !important;
    background-color: rgba(255, 174, 31, 0.15) !important;
}

.fc-event.confirmada {
    border-left: 4px solid #13deb9 !important;
    background-color: rgba(19, 222, 185, 0.15) !important;
}

.fc-event.pendiente-segunda {
    border-left: 4px solid #539bff !important;
    background-color: rgba(83, 155, 255, 0.15) !important;
}

.fc-event.segunda-confirmada {
    border-left: 4px solid var(--color-primary) !important;
    background-color: rgba(0, 195, 212, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 195, 212, 0.3) !important;
}

.badge-segunda-conf {
    font-size: 9px !important;
    padding: 2px 6px !important;
    background-color: #539bff !important;
    color: white !important;
    border-radius: 3px !important;
    margin-left: 4px !important;
    display: inline-block !important;
}

/* Botones de calendario */
.fc-button-primary {
    background-color: var(--color-primary) !important;
    border: none !important;
}

.fc-button-primary:hover {
    background-color: var(--color-primary-dark) !important;
}

.fc-button-primary:disabled {
    opacity: 0.5;
}

/* Switch/Toggle personalizado */
.form-switch .form-check-input:checked {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

/* Tooltips */
.tooltip-inner {
    background-color: var(--color-primary) !important;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: var(--color-primary) !important;
}

/* Modal headers */
.modal-header {
    background-color: rgba(0, 195, 212, 0.5) !important;
    border-bottom: 2px solid var(--color-primary) !important;
}

/* Modal header con fondo corporativo */
.modal-header.text-bg-primary {
    background-color: var(--color-primary) !important;
    color: #fff;
}

.modal-header.text-bg-primary * {
    color: #fff;
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 195, 212, 0.05);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-dark);
}

/* Fixed profile en sidebar */
.fixed-profile {
    background-color: rgba(0, 195, 212, 0.1) !important;
    border: 1px solid rgba(0, 195, 212, 0.2) !important;
    flex-shrink: 0;
    margin-top: auto;
}

/* Asegurar que el sidebar tenga layout flex y altura controlada */
.left-sidebar>div {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* El nav debe poder hacer scroll si es necesario */
.left-sidebar .sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* El fixed-profile debe estar en la parte inferior sin salirse */
.left-sidebar .fixed-profile {
    position: relative;
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.left-sidebar .fixed-profile h6,
.left-sidebar .fixed-profile .fs-4,
.left-sidebar .fixed-profile .fw-semibold {
    color: white !important;
}

/* Lista de notificaciones */
.notification-item:hover {
    background-color: rgba(0, 195, 212, 0.1) !important;
}

.notification-item.unread {
    border-left: 3px solid var(--color-secondary) !important;
}

/* Badges con colores corporativos */
.badge-gradient {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* Text utilities */
.text-primary,
.text-info {
    color: var(--color-primary) !important;
}

/* Sobrescribir color primary de Bootstrap para que use cyan */
.text-primary {
    --bs-text-opacity: 1;
    color: var(--color-primary) !important;
}

.text-primary i,
.text-primary i[class^="fa-"],
.text-primary i[class*=" fa-"] {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

/* Background utilities */
.bg-primary-subtle,
.bg-info-subtle {
    background-color: rgba(0, 195, 212, 0.1) !important;
}

.bg-secondary-subtle {
    background-color: rgba(253, 86, 196, 0.1) !important;
}

.bg-info {
    background-color: var(--color-primary) !important;
}

/* Border utilities */
.border-primary,
.border-primary-subtle {
    border-color: var(--color-primary) !important;
}

.btn-outline-primary {
    --bs-btn-color: #00c3d4;
    --bs-btn-border-color: #00c3d4;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00c3d4;
    --bs-btn-hover-border-color: #00c3d4;
    --bs-btn-focus-shadow-rgb: 0, 195, 212;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00c3d4;
    --bs-btn-active-border-color: #00c3d4;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #00c3d4;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #00c3d4;
    --bs-gradient: none;
    border-color: #00c3d4 !important;
    color: #00c3d4 !important;
}

/* Estados hover y active - mayor especificidad para sobrescribir */
button.btn-outline-primary:hover,
a.btn-outline-primary:hover,
.btn-outline-primary.btn:hover,
.btn-outline-primary:hover {
    background-color: #00c3d4 !important;
    border-color: #00c3d4 !important;
    color: #fff !important;
}

button.btn-outline-primary:hover *,
a.btn-outline-primary:hover *,
.btn-outline-primary.btn:hover *,
.btn-outline-primary:hover *,
.btn-outline-primary:hover i,
.btn-outline-primary:hover span,
.btn-outline-primary:hover .hide-menu {
    color: #fff !important;
}

/* Alternativa para navegadores que no soportan :has() - usar selector hermano */
/* Los botones radio NO checked deben tener texto azul */
.btn-check:not(:checked)+.btn-outline-primary,
input.btn-check:not(:checked)+label.btn-outline-primary {
    color: #00c3d4 !important;
}

.btn-check:not(:checked)+.btn-outline-primary *,
input.btn-check:not(:checked)+label.btn-outline-primary * {
    color: #00c3d4 !important;
}

/* Estado normal - solo cuando NO está en hover/active/checked */
/* Esta regla se aplica solo a botones que NO son parte de un grupo radio/checkbox */
.btn-outline-primary:not(:hover):not(:active):not(.active) {
    color: #00c3d4 !important;
}

.btn-outline-primary:not(:hover):not(:active):not(.active) * {
    color: #00c3d4 !important;
}

/* Las reglas de botones checked se han movido al final del bloque para máxima prioridad - ver líneas 772-794 */

.btn-outline-primary.active,
.btn-outline-primary:active,
.show>.btn-outline-primary.dropdown-toggle {
    background-color: #00c3d4 !important;
    border-color: #00c3d4 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-outline-primary.active *,
.btn-outline-primary:active *,
.show>.btn-outline-primary.dropdown-toggle * {
    color: #fff !important;
}

.btn-outline-primary.active i,
.btn-outline-primary:active i,
.show>.btn-outline-primary.dropdown-toggle i {
    color: #fff !important;
}

.btn-outline-primary.active span,
.btn-outline-primary:active span,
.show>.btn-outline-primary.dropdown-toggle span {
    color: #fff !important;
}

/* IMPORTANTE: Reglas para botones radio/checkbox checked - DEBEN IR AL FINAL para máxima prioridad */
/* Estas reglas sobrescriben todas las anteriores para asegurar texto blanco en botones checked */
input[type="radio"].btn-check:checked+label.btn.btn-outline-primary,
input[type="checkbox"].btn-check:checked+label.btn.btn-outline-primary,
input.btn-check[type="radio"]:checked+label.btn-outline-primary,
input.btn-check[type="checkbox"]:checked+label.btn-outline-primary,
input.btn-check:checked+label.btn-outline-primary,
.btn-check:checked+.btn-outline-primary {
    background-color: #00c3d4 !important;
    border-color: #00c3d4 !important;
    color: #fff !important;
}

input[type="radio"].btn-check:checked+label.btn.btn-outline-primary *,
input[type="checkbox"].btn-check:checked+label.btn.btn-outline-primary *,
input.btn-check[type="radio"]:checked+label.btn-outline-primary *,
input.btn-check[type="checkbox"]:checked+label.btn-outline-primary *,
input.btn-check:checked+label.btn-outline-primary *,
.btn-check:checked+.btn-outline-primary *,
.btn-check:checked+.btn-outline-primary i,
.btn-check:checked+.btn-outline-primary span {
    color: #fff !important;
}

.border-top-primary {
    border-top: 3px solid var(--color-primary) !important;
}

/* Hover effects */
.hover-primary:hover {
    background-color: rgba(0, 195, 212, 0.1) !important;
    transition: all 0.3s ease;
}

/* Cards especiales */
.card-primary {
    border-top: 4px solid var(--color-primary) !important;
    background-color: rgba(0, 195, 212, 0.05) !important;
}

.card-secondary {
    border-top: 4px solid var(--color-secondary) !important;
    background-color: rgba(253, 86, 196, 0.05) !important;
}

/* Animaciones */
@keyframes pulse-primary {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 195, 212, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 195, 212, 0);
    }
}

.pulse-primary {
    animation: pulse-primary 2s infinite;
}

/* Status indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-indicator.online {
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

.status-indicator.busy {
    background: var(--color-secondary);
    box-shadow: 0 0 8px var(--color-secondary);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] {
    --color-primary-rgb: 0, 195, 212;
    --color-secondary-rgb: 253, 86, 196;
}

[data-bs-theme="dark"] .card {
    border: 1px solid rgba(0, 195, 212, 0.1);
}

[data-bs-theme="dark"] .sidebar-link:hover {
    background: rgba(0, 195, 212, 0.15) !important;
}

[data-bs-theme="dark"] .sidebar-link.active {
    background: rgba(0, 195, 212, 0.5) !important;
    box-shadow: inset 0 0 30px rgba(0, 195, 212, 0.3) !important;
}

[data-bs-theme="dark"] .sidebar-link.active span,
[data-bs-theme="dark"] .sidebar-link.active .hide-menu,
[data-bs-theme="dark"] .sidebar-link.active i {
    color: rgb(0, 195, 212) !important;
    font-weight: 600 !important;
}

[data-bs-theme="dark"] a:not(.btn) {
    color: var(--color-primary-light);
}

[data-bs-theme="dark"] a:not(.btn):hover {
    color: var(--color-primary);
}

.left-sidebar .scroll-sidebar {
    height: auto !important;
}

/* ============================================
   ESTILOS LANDING PAGE
   ============================================ */

/* Hero section con gradiente corporativo */
.hero-gradient {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Botón CTA principal */
.btn-cta {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    border: none;
    color: white !important;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(253, 86, 196, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 86, 196, 0.5);
    background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
    color: white !important;
}

.btn-cta:active {
    transform: translateY(0);
}

/* Cards de características */
.feature-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 195, 212, 0.15) !important;
    border-top: 3px solid var(--color-primary) !important;
}

/* Cards de precios */
.pricing-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    border: 2px solid #e9ecef;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--color-primary) !important;
}

.pricing-card.popular {
    border: 3px solid var(--color-primary) !important;
    box-shadow: 0 8px 30px rgba(0, 195, 212, 0.2) !important;
    position: relative;
}

.pricing-card.popular:hover {
    box-shadow: 0 15px 45px rgba(0, 195, 212, 0.3) !important;
}

/* Badge "Más popular" */
.badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 195, 212, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Tabla de comparación de planes */
.table-responsive {
    border-radius: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    /* Scroll suave en iOS */
}

/* Asegurar que los bordes de la tabla se vean correctamente */
.table-responsive .table-bordered {
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive .table-bordered thead th:first-child {
    border-top-left-radius: 1rem;
}

.table-responsive .table-bordered thead th:last-child {
    border-top-right-radius: 1rem;
}

.table-responsive .table-bordered tfoot td:first-child {
    border-bottom-left-radius: 1rem;
}

.table-responsive .table-bordered tfoot td:last-child {
    border-bottom-right-radius: 1rem;
}

.table-responsive .table-bordered thead th,
.table-responsive .table-bordered tbody td,
.table-responsive .table-bordered tfoot td {
    border-top: 1px solid #dee2e6 !important;
    border-left: 1px solid #dee2e6 !important;
}

.table-responsive .table-bordered thead th:last-child,
.table-responsive .table-bordered tbody td:last-child,
.table-responsive .table-bordered tfoot td:last-child {
    border-right: 1px solid #dee2e6 !important;
}

.table-responsive .table-bordered tbody tr:last-child td,
.table-responsive .table-bordered tfoot tr td {
    border-bottom: 1px solid #dee2e6 !important;
}

/* En móviles, asegurar que la tabla pueda hacer scroll horizontal */
@media (max-width: 991px) {
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        /* Indicador visual de que hay más contenido */
        position: relative;
    }

    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .table-responsive.scrolling::after {
        opacity: 1;
    }
}

.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 195, 212, 0.05) !important;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table td,
.table th {
    vertical-align: middle;
    padding: 1rem;
}

/* Iconos de check y x en la tabla */
.ti-check.text-success {
    color: var(--color-success) !important;
    font-weight: bold;
}

.ti-x.text-muted {
    color: #adb5bd !important;
    opacity: 0.4;
}

/* Acordeón FAQ */
.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: #212529;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 195, 212, 0.08);
    color: var(--color-primary-dark);
    border-left: 4px solid var(--color-primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 195, 212, 0.15);
    border-color: var(--color-primary);
}

.accordion-button::after {
    filter: hue-rotate(180deg) saturate(2);
}

.accordion-body {
    padding: 1.5rem;
    color: #6c757d;
    line-height: 1.7;
}

/* Sección de seguridad */
#seguridad .vstack {
    gap: 1.5rem;
}

#seguridad .d-flex {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

#seguridad .d-flex:hover {
    background-color: rgba(0, 195, 212, 0.05);
    transform: translateX(8px);
}

/* CTA final section */
.bg-primary.text-white {
    background: var(--gradient-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-gradient {
        padding: 80px 0 60px !important;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .pricing-card {
        margin-bottom: 2rem;
    }

    .badge-popular {
        top: -10px;
        right: 15px;
        font-size: 0.75rem;
        padding: 4px 15px;
    }
}

@media (max-width: 767px) {
    .hero-gradient {
        padding: 60px 0 40px !important;
    }

    .display-3 {
        font-size: 2rem;
    }

    /* Logo responsive en móvil */
    .logo-img {
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 100%;
    }

    .logo-img .dark-logo,
    .logo-img .light-logo {
        max-width: 150px !important;
        max-height: 40px !important;
        width: auto !important;
        height: auto !important;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /* Hacer tabla responsiva en móvil */
    .table-responsive table {
        font-size: 0.85rem;
    }

    .table td,
    .table th {
        padding: 0.75rem 0.5rem;
    }
}

/* Animaciones adicionales con AOS */
[data-aos] {
    pointer-events: auto;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Mejorar legibilidad en secciones oscuras */
.bg-primary .opacity-75,
.bg-primary .opacity-90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Espaciado consistente en secciones */
section {
    position: relative;
}

/* Hover effect en links de navegación */
a[href^="#"] {
    scroll-behavior: smooth;
}

/* ============================================
   NUEVO DISEÑO V2 - INSPIRADO EN MOCKUP VERSIÓN 4
   ============================================ */

/* Variables adicionales del nuevo diseño */
:root {
    /* Colores del mockup Versión 4 */
    --wemvy-cyan: #00c4d6;
    --wemvy-pink: #dd57c0;
    --wemvy-cyan-dark: #0098a8;
    --wemvy-pink-dark: #b8459a;
    --wemvy-dark-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    
    /* Efectos del mockup */
    --wemvy-blur: blur(10px);
    --wemvy-shadow: 0 20px 60px rgba(0, 196, 214, 0.4);
    --wemvy-shadow-hover: 0 15px 40px rgba(0, 196, 214, 0.5);
    
    /* Gradientes del nuevo diseño */
    --gradient-text: linear-gradient(90deg, #00c4d6 0%, #dd57c0 100%);
    --gradient-cta: linear-gradient(135deg, #00c4d6 0%, #dd57c0 100%);
    --gradient-cta-hover: linear-gradient(135deg, #0098a8 0%, #b8459a 100%);
    
    /* Gradientes para badges y botones de acción */
    --gradient-success: linear-gradient(135deg, #13DEB9 0%, #0db894 100%);
    --gradient-info: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-cyan-dark) 100%);
    --gradient-warning: linear-gradient(135deg, #FFAE1F 0%, #e89a0c 100%);
    --gradient-danger: linear-gradient(135deg, #FA896B 0%, #e8755a 100%);
}

/* Page Headers con estilo Versión 4 */
.page-header-v2 {
    background: var(--wemvy-dark-bg);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 196, 214, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(221, 87, 192, 0.15), transparent 50%);
    pointer-events: none;
}

.page-header-v2-content {
    position: relative;
    z-index: 2;
    color: white;
}

.page-header-v2 h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Cards modernos con bordes suaves */
.card-v2 {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0, 196, 214, 0.1);
    transition: all 0.3s ease;
}

.card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 196, 214, 0.15);
}

/* Botones con gradiente y efectos */
.btn-primary-v2 {
    background: var(--gradient-cta);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3);
}

.btn-primary-v2:hover {
    background: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 196, 214, 0.4);
    color: white;
}

/* Badges con blur (estilo Versión 4) */
.badge-v2 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--wemvy-blur);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

/* Iconos con animación de rotación (opcional) */
.icon-rotate {
    animation: rotate 3s linear infinite;
}

.icon-rotate-reverse {
    animation: rotateReverse 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Stat Cards con gradiente en valores */
.stat-value-v2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tablas con hover suave */
.table-v2 {
    border-radius: 1rem;
    overflow: hidden;
}

.table-v2 thead th {
    border-bottom: 2px solid var(--wemvy-cyan);
    font-weight: 600;
    color: #2d3748;
    background: rgba(0, 196, 214, 0.05);
}

.table-v2 tbody tr {
    transition: all 0.2s ease;
}

.table-v2 tbody tr:hover {
    background-color: rgba(0, 196, 214, 0.05);
    transform: scale(1.01);
}

/* Inputs con estilo moderno */
.form-control-v2:focus,
.form-select-v2:focus {
    border-color: var(--wemvy-cyan);
    box-shadow: 0 0 0 0.25rem rgba(0, 196, 214, 0.15);
}

.input-group-v2 .input-group-text {
    background: rgba(0, 196, 214, 0.1);
    border-color: rgba(0, 196, 214, 0.2);
    color: var(--wemvy-cyan);
}

/* Input group text con checkbox - mejor alineación y contraste */
.input-group-text .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.input-group-text .form-check-input {
    margin: 0;
    margin-top: 0;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    border: 2px solid #6c757d;
    background-color: white;
    transition: all 0.2s ease;
}

.input-group-text .form-check-input:checked {
    background-color: var(--wemvy-cyan);
    border-color: var(--wemvy-cyan);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.input-group-text .form-check-input:focus {
    border-color: var(--wemvy-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 214, 0.25);
}

.input-group-text .form-check-label {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

/* Mejorar contraste del fondo del input-group-text cuando contiene checkbox */
.input-group-text:has(.form-check) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

/* Para navegadores que no soportan :has() */
.input-group-text .form-check {
    background-color: #f8f9fa;
    padding: 0.5rem 0.75rem;
    margin: -0.5rem -0.75rem;
    border-radius: 0.375rem;
}

/* Ajuste específico para input-group-text dentro de form-compact-badge */
.form-compact-badge .input-group-text {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    padding: 0.5rem 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-compact-badge .input-group-text .form-check {
    margin: 0;
    padding: 0;
    background: transparent;
}

.form-compact-badge .input-group-text .form-check-label {
    white-space: nowrap;
    font-size: 0.875rem;
    color: #495057;
}

/* Nav tabs con estilo moderno */
.nav-tabs-v2 {
    border-bottom: none;
    padding: 1rem;
    background: rgba(0, 196, 214, 0.05);
    border-radius: 1.5rem 1.5rem 0 0;
}

.nav-tabs-v2 .nav-link {
    border: none;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-tabs-v2 .nav-link:hover {
    background: rgba(0, 196, 214, 0.1);
    color: var(--wemvy-cyan);
}

.nav-tabs-v2 .nav-link.active {
    background: var(--gradient-cta);
    color: white;
    border: none;
}

/* Input de búsqueda mejorado (Clientes) */
.search-input-v2 {
    border: 2px solid #e9ecef !important;
    border-radius: 999px !important;
    padding: 0.875rem 1.25rem 0.875rem 2.5rem !important;
    min-height: 48px !important;
    font-size: 0.95rem !important;
    background-color: #fff !important;
    color: #212529 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
}

.search-input-v2::placeholder {
    color: #adb5bd !important;
}

.search-input-v2:focus {
    border-color: var(--wemvy-cyan) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 214, 0.2) !important;
}

.search-input-icon {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6c757d !important;
    font-size: 0.95rem !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Sidebar con efectos blur (opcional para modo oscuro) */
.sidebar-v2-dark {
    background: var(--wemvy-dark-bg);
    position: relative;
}

.sidebar-v2-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 196, 214, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(221, 87, 192, 0.15), transparent 50%);
    pointer-events: none;
}

/* Avatar circles con gradiente */
.avatar-circle-v2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.avatar-circle-v2.primary {
    background: var(--gradient-cta);
}

.avatar-circle-v2.info {
    background: rgba(0, 196, 214, 0.8);
}

.avatar-circle-v2.success {
    background: rgba(19, 222, 185, 0.8);
}

/* Icon boxes para secciones */
.icon-box-v2 {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(0, 196, 214, 0.1);
    color: var(--wemvy-cyan);
}

/* Efectos de pulso para elementos importantes */
@keyframes pulse-v2 {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 196, 214, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 196, 214, 0);
    }
}

.pulse-v2 {
    animation: pulse-v2 2s infinite;
}

/* Scrollbar personalizado con colores del nuevo diseño */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 196, 214, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-cta);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-cta-hover);
}

/* Transiciones suaves para todos los elementos interactivos */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Mejoras para Font Awesome (cuando se migre) */
.fa, .fas, .far, .fal, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands";
}

/* Compatibilidad: mantener estilos Tabler mientras se migra */
i[class^="ti-"],
i[class*=" ti-"] {
    /* Mantener compatibilidad durante migración */
    color: inherit;
}

/* Clases utilitarias adicionales */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-cta);
}

.shadow-v2 {
    box-shadow: var(--wemvy-shadow);
}

.shadow-v2-hover:hover {
    box-shadow: var(--wemvy-shadow-hover);
}

/* ============================================
   SIDEBAR OSCURO COMPLETO - VERSIÓN 4
   ============================================ */
.left-sidebar {
    background: var(--wemvy-dark-bg) !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 270px;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar {
    width: 87px !important;
}

/* Cambiar logo cuando el sidebar está comprimido */
[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .logo-full {
    display: none !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .logo-comp {
    display: block !important;
    max-width: 60px !important;
    margin: 0 auto;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .brand-logo {
    justify-content: center !important;
    padding: 1rem 0 !important;
    margin-bottom: 1rem !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .logo-img {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .sidebar-nav {
    margin-top: 0 !important;
    padding-top: 0.5rem !important;
}

/* Ocultar texto del menú cuando está comprimido */
[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .hide-menu {
    display: none !important;
}

/* Ocultar completamente nav-small-cap cuando está comprimido */
[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .nav-small-cap {
    display: none !important;
}

/* Ocultar perfil cuando está comprimido */
[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .fixed-profile {
    display: none !important;
}

/* Centrar iconos cuando está comprimido */
[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .sidebar-link {
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .sidebar-link span:first-child {
    margin: 0 auto;
}

/* Prevenir expansión en hover cuando está comprimido */
[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover {
    width: 87px !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .hide-menu {
    display: none !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .nav-small-cap {
    display: none !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .fixed-profile {
    display: none !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .logo-full {
    display: none !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .logo-comp {
    display: block !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .brand-logo {
    justify-content: center !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .logo-img {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar:hover .sidebar-link {
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
}

.left-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 196, 214, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(221, 87, 192, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.left-sidebar > div {
    position: relative;
    z-index: 2;
}

.left-sidebar .brand-logo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.5rem 0 !important;
    margin-bottom: 0 !important;
}

.left-sidebar .sidebar-nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.left-sidebar #sidebarnav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.left-sidebar .nav-small-cap:first-child {
    margin-top: 0 !important;
    padding-top: 0.5rem !important;
}

.left-sidebar .sidebar-nav {
    position: relative;
    z-index: 2;
}

.left-sidebar .sidebar-link {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease !important;
    border-left: none !important;
}

.left-sidebar .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    color: white !important;
    transform: translateX(5px);
    border-left: none !important;
}

.left-sidebar .sidebar-link.active {
    background: var(--gradient-cta) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3) !important;
    border-left: none !important;
    font-weight: 600 !important;
}

.left-sidebar .sidebar-link.active span,
.left-sidebar .sidebar-link.active .hide-menu,
.left-sidebar .sidebar-link.active i {
    color: white !important;
}

.left-sidebar .sidebar-link i {
    color: inherit;
}

.left-sidebar .nav-small-cap {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 1rem 0 0.5rem !important;
}

.left-sidebar .nav-small-cap-icon {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Scrollbar del sidebar */
.left-sidebar .scroll-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar .scroll-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.left-sidebar .scroll-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.left-sidebar .scroll-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   TOPBAR MEJORADO
   ============================================ */
.topbar {
    border-bottom: 2px solid var(--wemvy-cyan) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: visible !important;
    height: auto !important;
    min-height: 70px;
}

.topbar .with-vertical {
    width: 100% !important;
    display: block !important;
    overflow: visible !important;
}

.topbar .navbar {
    width: 100% !important;
    display: flex !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
}

.topbar .navbar-nav {
    overflow: visible !important;
}

.topbar .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    align-items: center !important;
}

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

.topbar .navbar-collapse.collapse:not(.show) {
    display: flex !important;
}

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

@media (min-width: 992px) {
    .topbar .navbar-collapse,
    .topbar .navbar-collapse.collapse,
    .topbar .navbar-collapse.collapse.show {
        display: flex !important;
        visibility: visible !important;
        height: auto !important;
        opacity: 1 !important;
    }
    
    .topbar .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .topbar .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
}

.topbar .nav-icon-hover-bg:hover {
    background-color: rgba(0, 196, 214, 0.1) !important;
    color: var(--wemvy-cyan) !important;
}

.topbar .nav-icon-hover-bg {
    transition: all 0.3s ease;
}

/* Badges de notificaciones en topbar */
.topbar .badge {
    background: var(--wemvy-pink) !important;
    color: white !important;
}

/* ============================================
   PAGE-HEADER CON GRADIENTE
   ============================================ */
.page-header {
    background: var(--wemvy-dark-bg);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 1.5rem;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 196, 214, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(221, 87, 192, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.page-header .card-body,
.page-header > div {
    position: relative;
    z-index: 2;
    color: white;
    padding-left: 2rem;
    padding-right: 2rem;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4 {
    color: white !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.page-header .breadcrumb {
    background: transparent;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.page-header .breadcrumb-item.active {
    color: white !important;
}

/* ============================================
   STAT-CARDS E ICONOS CON GRADIENTES
   ============================================ */
.stat-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 196, 214, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 196, 214, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-pink) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3);
}

.stat-icon.info {
    background: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-cyan-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3);
}

.stat-icon.success {
    background: linear-gradient(135deg, #13DEB9 0%, #0db894 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(19, 222, 185, 0.3);
}

.stat-icon.warning {
    background: linear-gradient(135deg, #FFAE1F 0%, #e89a0c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 174, 31, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #13DEB9;
}

.stat-change.negative {
    color: #FA896B;
}

/* ============================================
   BADGES MEJORADOS CON GRADIENTES
   ============================================ */
.badge-status {
    padding: 0.625rem 1.25rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
}

.badge-status:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

.badge.bg-success,
.badge-status.bg-success {
    background: linear-gradient(135deg, #13DEB9 0%, #0db894 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(19, 222, 185, 0.3);
}

.badge.bg-info,
.badge-status.bg-info {
    background: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-cyan-dark) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3);
}

.badge.bg-warning,
.badge-status.bg-warning {
    background: linear-gradient(135deg, #FFAE1F 0%, #e89a0c 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 174, 31, 0.3);
}

.badge.bg-danger,
.badge-status.bg-danger {
    background: linear-gradient(135deg, #FA896B 0%, #e8755a 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(250, 137, 107, 0.3);
}

.badge.bg-primary {
    background: var(--gradient-cta) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3);
}

/* ============================================
   BOTONES DE ACCIÓN MEJORADOS
   ============================================ */
.btn-action-view {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.btn-action-view:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4) !important;
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%) !important;
    color: white !important;
}

.btn-action-view i {
    color: white !important;
}

.btn-action-edit {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.btn-action-edit:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: white !important;
}

.btn-action-edit i {
    color: white !important;
}

.btn-action-download {
    background: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-pink) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.btn-action-download:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 196, 214, 0.4) !important;
    color: white !important;
}

.btn-action-download i {
    color: white !important;
}

.btn-action-delete {
    background: linear-gradient(135deg, #FA896B 0%, #e8755a 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(250, 137, 107, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
}

.btn-action-delete:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(250, 137, 107, 0.4) !important;
    color: white !important;
}

.btn-action-delete i {
    color: white !important;
}

/* Botones de acción pequeños */
.btn-action-success.btn-sm,
.btn-action-delete.btn-sm,
.btn-action-view.btn-sm,
.btn-action-edit.btn-sm,
.btn-action-download.btn-sm,
.btn-action-info.btn-sm,
.btn-action-warning.btn-sm,
.btn-action-settings.btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.btn-action-info.btn-sm i,
.btn-action-info.btn-sm span,
.btn-action-settings.btn-sm i,
.btn-action-settings.btn-sm span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

.btn-action-settings.btn-sm:disabled,
.btn-action-settings.btn-sm[disabled] {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%) !important;
    border: none !important;
    color: #718096 !important;
    box-shadow: 0 2px 8px rgba(160, 174, 192, 0.2) !important;
    pointer-events: none !important;
}

.btn-action-settings.btn-sm i {
    color: inherit !important;
    font-size: 0.875rem !important;
    margin-right: 0.5rem !important;
}

.btn-action-settings.btn-sm:disabled i,
.btn-action-settings.btn-sm[disabled] i {
    color: #718096 !important;
    font-size: 0.875rem !important;
    margin-right: 0 !important;
}

.btn-action-settings {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%) !important;
    border: none !important;
    color: #2d3748 !important;
    box-shadow: 0 4px 20px rgba(160, 174, 192, 0.3) !important;
    transition: all 0.3s ease !important;
    padding: 0.875rem 2rem !important;
    border-radius: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    min-height: 48px !important;
    position: relative;
    overflow: hidden;
}

.btn-action-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-action-settings:hover::before {
    left: 100%;
}

.btn-action-settings:hover {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%) !important;
    color: #1a202c !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(160, 174, 192, 0.4) !important;
}

.btn-action-settings:active {
    transform: translateY(-1px) scale(1.02) !important;
}

.btn-action-settings i {
    color: #2d3748 !important;
    margin-right: 0.5rem !important;
    font-size: 1.1rem;
}

.btn-action-settings:hover i {
    color: #1a202c !important;
}

.btn-action-success {
    background: linear-gradient(135deg, #13DEB9 0%, #0db894 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(19, 222, 185, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
}

.btn-action-success:hover {
    background: linear-gradient(135deg, #0db894 0%, #0a9d7f 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(19, 222, 185, 0.4) !important;
    color: white !important;
}

.btn-action-success i,
.btn-action-success span {
    color: white !important;
}

.btn-action-info {
    background: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-cyan-dark) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
}

.btn-action-info:hover {
    background: linear-gradient(135deg, var(--wemvy-cyan-dark) 0%, #008896 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 196, 214, 0.4) !important;
    color: white !important;
}

.btn-action-info i,
.btn-action-info span {
    color: white !important;
}

.btn-action-primary {
    background: var(--gradient-cta) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-action-primary:hover {
    background: linear-gradient(135deg, var(--wemvy-cyan-dark) 0%, var(--wemvy-pink-dark) 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(0, 196, 214, 0.4) !important;
    color: white !important;
}

.btn-action-primary i,
.btn-action-primary span {
    color: white !important;
}

.btn-action-warning {
    background: var(--gradient-warning) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 174, 31, 0.3) !important;
    transition: all 0.3s !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
}

.btn-action-warning:hover {
    background: linear-gradient(135deg, #e89a0c 0%, #d1870a 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(255, 174, 31, 0.4) !important;
    color: white !important;
}

.btn-action-warning i,
.btn-action-warning span {
    color: white !important;
}

.btn-outline-primary {
    border-color: var(--wemvy-cyan);
    color: var(--wemvy-cyan);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-cta);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 196, 214, 0.3);
}

.btn-outline-primary.btn-sm {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
}

.btn-outline-primary.btn-sm:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 196, 214, 0.2);
}

.btn-outline-danger {
    border-color: #FA896B;
    color: #FA896B;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #FA896B 0%, #e8755a 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 137, 107, 0.3);
}

.btn-outline-danger.btn-sm {
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
}

.btn-outline-danger.btn-sm:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 10px rgba(250, 137, 107, 0.2);
}

/* Botones de filtro mejorados */
.btn-group-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(0, 196, 214, 0.05);
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 196, 214, 0.15);
}

.btn-group-filter .btn,
.btn-filter {
    border-radius: 0.75rem !important;
    padding: 0.625rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border: 2px solid rgba(0, 196, 214, 0.3) !important;
    color: var(--wemvy-cyan) !important;
    background: white !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-group-filter .btn:hover:not(.active):not(.btn-filter-active),
.btn-filter:hover:not(.btn-filter-active) {
    background: rgba(0, 196, 214, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 196, 214, 0.2);
    border-color: var(--wemvy-cyan) !important;
    color: var(--wemvy-cyan) !important;
}

.btn-group-filter .btn.active,
.btn-filter-active {
    background: var(--gradient-cta) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.4) !important;
}

.btn-group-filter .btn.active:hover,
.btn-filter-active:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 196, 214, 0.5) !important;
    color: white !important;
}

/* Badge dentro de botones de filtro */
.btn-group-filter .btn .badge,
.btn-filter .badge {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    line-height: 1.2;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
}

/* Badge en notificaciones - no rompe altura */
.notificacion-item .badge {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   CARD HEADERS ELEGANTES
   ============================================ */
.card-header.border-0 {
    background: linear-gradient(135deg, rgba(0, 196, 214, 0.05) 0%, rgba(221, 87, 192, 0.03) 100%);
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 2rem 1.5rem 1.25rem 1.5rem !important;
    border-bottom: 2px solid rgba(0, 196, 214, 0.1) !important;
    position: relative;
    overflow: hidden;
}

/* Asegurar que el card-header se alinee correctamente con el border-radius del card */
.card.border-0.shadow-sm .card-header.border-0:first-child {
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
    margin-left: 0;
    margin-right: 0;
}

.card-header.border-0::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cta);
    opacity: 0.6;
}

.card-header.border-0 h5 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0 !important;
    position: relative;
    z-index: 1;
    line-height: 1.4 !important;
}

.card-header.border-0 h5 i.me-2 {
    margin-right: 0.75rem !important;
}

.card-header.border-0 h5 i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    background: var(--gradient-info);
    color: white !important;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.35);
    flex-shrink: 0;
    transition: all 0.3s ease;
    -webkit-text-fill-color: white !important;
    background-clip: border-box !important;
}

.card-header.border-0:hover h5 i {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 20px rgba(0, 196, 214, 0.45);
}

.card-header.border-0 h5 .text-muted {
    font-size: 1rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
    margin-left: 0.75rem !important;
    display: inline !important;
    color: #6c757d !important;
    line-height: 1.6 !important;
    -webkit-text-fill-color: #6c757d !important;
    background: none !important;
}

/* Card header con subtítulo */
.card-header.border-0 p.text-muted {
    font-size: 0.875rem;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    color: #718096 !important;
    position: relative;
    z-index: 1;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    display: inline !important;
}

/* Botón outline secondary mejorado */
.btn-outline-secondary {
    border-color: #718096;
    color: #718096;
    transition: all 0.3s ease;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-secondary:hover {
    background: #718096;
    border-color: #718096;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.3);
}

.btn-outline-secondary {
    border-color: #718096;
    color: #718096;
    transition: all 0.3s ease;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-secondary:hover {
    background: #718096;
    border-color: #718096;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.3);
}

.btn-outline-secondary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.875rem;
}

/* Botones de acción para cliente */
.btn-action-phone {
    background: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-cyan-dark) 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3) !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-action-phone:hover {
    background: linear-gradient(135deg, var(--wemvy-cyan-dark) 0%, #008896 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 196, 214, 0.4) !important;
    color: white !important;
}

.btn-action-phone i {
    color: white !important;
}

.btn-action-email {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3) !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-action-email:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(113, 128, 150, 0.4) !important;
    color: white !important;
}

.btn-action-email i {
    color: white !important;
}

.btn-action-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-action-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    color: white !important;
}

.btn-action-whatsapp i {
    color: white !important;
}

.btn-action-tag {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-action-tag:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
    color: white !important;
}

.btn-action-tag i {
    color: white !important;
}

/* Asegurar que los botones pequeños tengan la misma altura */
.btn-action-phone.btn-sm,
.btn-action-email.btn-sm,
.btn-action-whatsapp.btn-sm,
.btn-action-tag.btn-sm,
.btn-cta-dashboard.btn-sm,
.btn-secondary.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    min-height: 38px !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Botones del header de factura - mismo tamaño y colores distintos */
.btn-header-action {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.btn-header-action i {
    font-size: 0.95rem !important;
    margin-right: 0.5rem !important;
}

/* Colores distintos para cada botón del header */
.btn-header-action.btn-action-info {
    background: linear-gradient(135deg, #00c4d6 0%, #0098a8 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3) !important;
}

.btn-header-action.btn-action-info:hover {
    background: linear-gradient(135deg, #0098a8 0%, #008896 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 196, 214, 0.4) !important;
}

.btn-header-action.btn-action-edit {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

.btn-header-action.btn-action-edit:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

.btn-header-action.btn-cta-dashboard {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.btn-header-action.btn-cta-dashboard:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-header-action.btn-action-view {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3) !important;
}

.btn-header-action.btn-action-view:hover {
    background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4) !important;
}

.btn-header-action.btn-action-delete {
    background: linear-gradient(135deg, #FA896B 0%, #e8755a 100%) !important;
    box-shadow: 0 4px 15px rgba(250, 137, 107, 0.3) !important;
}

.btn-header-action.btn-action-delete:hover {
    background: linear-gradient(135deg, #e8755a 0%, #d65a3f 100%) !important;
    box-shadow: 0 6px 20px rgba(250, 137, 107, 0.4) !important;
}

.btn-header-action.btn-action-warning {
    background: linear-gradient(135deg, #FFAE1F 0%, #e89a0c 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 174, 31, 0.3) !important;
}

.btn-header-action.btn-action-warning:hover {
    background: linear-gradient(135deg, #e89a0c 0%, #d1870a 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 174, 31, 0.4) !important;
}

.btn-header-action.btn-outline-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-header-action.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    box-shadow: 0 6px 20px rgba(113, 128, 150, 0.4) !important;
    transform: translateY(-2px) !important;
}

.btn-header-action.btn-outline-secondary i {
    color: white !important;
}

/* ============================================
   EVENTOS Y ACTIVIDAD - TIMELINE MEJORADO
   ============================================ */
.eventos-timeline {
    position: relative;
    padding-left: 2rem;
}

.evento-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 3rem;
}

.evento-item-with-line::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3.5rem;
    bottom: -1rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 196, 214, 0.3) 0%, rgba(221, 87, 192, 0.2) 100%);
}

.evento-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.evento-item:hover .evento-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.evento-content {
    background: rgba(0, 196, 214, 0.03);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 196, 214, 0.1);
    transition: all 0.3s ease;
}

.evento-item:hover .evento-content {
    background: rgba(0, 196, 214, 0.06);
    border-color: rgba(0, 196, 214, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 196, 214, 0.1);
}

.evento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.evento-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.evento-fecha {
    font-size: 0.875rem;
    color: #718096;
    white-space: nowrap;
    font-weight: 500;
}

.evento-descripcion {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.evento-badges {
    margin-top: 0.75rem;
}

.evento-badges .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* ============================================
   PAGINACIÓN MEJORADA
   ============================================ */
.pagination .page-link {
    color: var(--wemvy-cyan);
    border-color: rgba(0, 196, 214, 0.3);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: rgba(0, 196, 214, 0.1);
    border-color: var(--wemvy-cyan);
    color: var(--wemvy-cyan);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link,
.pagination .page-link.active {
    background: var(--gradient-cta);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 196, 214, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    border-color: #dee2e6;
    opacity: 0.5;
}

/* ============================================
   STAT-BADGES (Opción 2: Con Gradiente de Fondo)
   ============================================ */
.stat-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 196, 214, 0.08) 0%, rgba(221, 87, 192, 0.05) 100%);
    border: 1px solid rgba(0, 196, 214, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.stat-badge:hover::before {
    left: 100%;
}

.stat-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 196, 214, 0.25);
}

.stat-badge > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-badge > div:last-child span {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #e5e7eb !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stat-badge > div:last-child strong {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #d1d5db !important;
    line-height: 1.2;
}

.stat-badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Colores diferentes para cada tipo de icono */
.stat-badge-icon.icon-warning,
.stat-badge-icon.text-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    color: white;
}

.stat-badge-icon.icon-success,
.stat-badge-icon.text-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    color: white;
}

.stat-badge-icon.icon-info,
.stat-badge-icon.text-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    color: white;
}

.stat-badge-icon.icon-danger,
.stat-badge-icon.text-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    color: white;
}

.stat-badge-icon.icon-primary,
.stat-badge-icon.text-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    color: white;
}

.stat-badge-icon.icon-cyan {
    background: linear-gradient(135deg, #00c4d6 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.4);
    color: white;
}

.stat-badge-icon.icon-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: white;
}

/* ============================================
   TABLAS MEJORADAS
   ============================================ */
.table thead th {
    border-bottom: 2px solid var(--wemvy-cyan);
    font-weight: 600;
    color: #2d3748;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 196, 214, 0.05);
}

/* ============================================
   OVERRIDE TEXT-PRIMARY
   ============================================ */
.text-primary {
    color: var(--wemvy-cyan) !important;
}

.text-primary i {
    color: var(--wemvy-cyan) !important;
}

/* ============================================
   BOTÓN CTA DASHBOARD - MÁS LLAMATIVO
   ============================================ */
.btn-cta-dashboard {
    background: var(--gradient-cta) !important;
    border: none !important;
    color: white !important;
    padding: 0.875rem 2rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 196, 214, 0.4) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-cta-dashboard:hover::before {
    left: 100%;
}

.btn-cta-dashboard:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(0, 196, 214, 0.5) !important;
    color: white !important;
}

.btn-cta-dashboard:active {
    transform: translateY(-1px) scale(1.02) !important;
}

.btn-cta-dashboard i {
    color: white !important;
    font-size: 1.1rem;
}

/* ============================================
   BOTONES DE RADIO MEJORADOS (btn-group)
   ============================================ */
.btn-group.w-100 {
    display: flex !important;
    gap: 0.5rem !important;
}

.btn-group.w-100 .btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, var(--wemvy-cyan) 0%, var(--wemvy-pink) 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 196, 214, 0.3) !important;
}

.btn-group.w-100 .btn-outline-primary {
    border: 2px solid #e9ecef !important;
    color: #495057 !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    flex: 1 !important;
}

.btn-group.w-100 .btn-outline-primary:hover {
    border-color: var(--wemvy-cyan) !important;
    color: var(--wemvy-cyan) !important;
    background: rgba(0, 196, 214, 0.05) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 196, 214, 0.2) !important;
}

.btn-group.w-100 .btn-check:checked + .btn-outline-primary:hover {
    background: linear-gradient(135deg, #00b3c3 0%, #cc4fb0 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 196, 214, 0.4) !important;
}

/* ============================================
   ESTADO VACÍO PARA GRÁFICOS
   ============================================ */
.chart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 196, 214, 0.05) 0%, rgba(221, 87, 192, 0.05) 100%);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.chart-empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 196, 214, 0.1), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(221, 87, 192, 0.1), transparent 50%);
    pointer-events: none;
}

.chart-empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 196, 214, 0.3);
    position: relative;
    z-index: 1;
    animation: pulse-empty 2s ease-in-out infinite;
}

@keyframes pulse-empty {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 196, 214, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 196, 214, 0.4);
    }
}

.chart-empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.chart-empty-state-message {
    font-size: 0.95rem;
    color: #718096;
    max-width: 300px;
    position: relative;
    z-index: 1;
}

/* ============================================
   CHART CARDS MEJORADOS (ESTILO MOCKUP)
   ============================================ */
.card.chart-card,
.card:has(.chart-container),
.card:has(#chart-facturacion-evolucion),
.card:has(#chart-top-clientes),
.card:has(#chart-estados-facturas),
.card:has(#chart-metodos-cobro) {
    background: white;
    border-radius: 1.5rem !important;
    padding: 2rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0, 196, 214, 0.1) !important;
    transition: all 0.3s ease;
}

.card.chart-card:hover,
.card:has(.chart-container):hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 196, 214, 0.12) !important;
}

.card.chart-card .card-body,
.card:has(.chart-container) .card-body {
    padding: 0 !important;
}

.card.chart-card h4,
.card:has(.chart-container) h4.card-title {
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: #2d3748 !important;
    font-size: 1.25rem;
}

.card.chart-card .card-subtitle,
.card:has(.chart-container) .card-subtitle {
    color: #718096 !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem;
}

/* Asegurar que los cards con clase chart-card tengan el estilo correcto */
.card.chart-card {
    background: white !important;
    border-radius: 1.5rem !important;
    padding: 2rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0, 196, 214, 0.1) !important;
    transition: all 0.3s ease;
}

.card.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 196, 214, 0.12) !important;
}

.card.chart-card .card-body {
    padding: 0 !important;
}

.card.chart-card h4.card-title {
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: #2d3748 !important;
    font-size: 1.25rem;
}

.card.chart-card .card-subtitle {
    color: #718096 !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem;
}

/* Mejoras para list-group en Facturas Recientes */
.card.chart-card .list-group-item {
    border-radius: 0.75rem !important;
    margin-bottom: 0.5rem;
}

.card.chart-card .list-group-item:hover {
    background: rgba(0, 196, 214, 0.08) !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 196, 214, 0.15);
}

/* ============================================
   CORRECCIÓN POSICIONAMIENTO PAGE-WRAPPER Y BODY-WRAPPER
   ============================================ */
/* Asegurar que el page-wrapper tenga margen izquierdo cuando el sidebar está visible */
[data-layout="vertical"] #main-wrapper {
    display: flex;
    align-items: stretch;
}

[data-layout="vertical"] #main-wrapper .page-wrapper {
    margin-left: 270px;
    width: calc(100% - 270px);
    transition: margin-left 0.3s ease, width 0.3s ease;
    flex: 1;
    position: relative;
}

/* Asegurar que el topbar también tenga el ancho correcto */
[data-layout="vertical"] .topbar {
    width: calc(100% - 270px) !important;
    margin-left: 0 !important;
    padding: 0 !important;
    transition: width 0.3s ease, left 0.3s ease;
    position: fixed;
    top: 0;
    left: 270px !important;
    right: 0 !important;
    z-index: 999;
    box-sizing: border-box;
}

[data-layout="vertical"] .topbar .with-vertical {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    box-sizing: border-box;
}

/* Eliminar cualquier padding del template original */
html[data-layout="vertical"] .topbar {
    padding: 0 !important;
}

[data-layout="vertical"] .topbar .navbar {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1.5rem !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Asegurar que el body-wrapper esté correctamente posicionado */
.body-wrapper {
    padding-top: calc(70px + 30px);
    width: 100%;
}

/* Cuando el sidebar está colapsado (mini-sidebar) */
[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] #main-wrapper .page-wrapper {
    margin-left: 87px !important;
    width: calc(100% - 87px) !important;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .topbar {
    width: calc(100% - 87px) !important;
    margin-left: 0 !important;
    left: 87px !important;
    right: 0 !important;
    transition: width 0.3s ease, left 0.3s ease;
}

[data-layout="vertical"] body[data-sidebartype="mini-sidebar"] .left-sidebar {
    width: 87px !important;
}

/* ============================================
   FORMULARIO COMPACTO CON BADGE DE ICONO (Opción 7)
   ============================================ */
.form-compact-badge {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-compact-badge .badge-icon {
    position: absolute;
    left: 1rem;
    top: calc(0.75rem + 1.25rem + 0.5rem + 0.25rem);
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: var(--gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PALETA DE DEGRADADOS PARA BADGE ICONS
   ============================================ */
.badge-gradient-1  { background: linear-gradient(135deg, #00c4d6 0%, #0099ff 100%) !important; }  /* Cyan a Azul */
.badge-gradient-2  { background: linear-gradient(135deg, #e91e8c 0%, #ff6b6b 100%) !important; }  /* Rosa a Coral */
.badge-gradient-3  { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important; }  /* Violeta a Rosa */
.badge-gradient-4  { background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%) !important; }  /* Verde a Azul */
.badge-gradient-5  { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important; }  /* Naranja a Rojo */
.badge-gradient-6  { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important; }  /* Indigo a Violeta */
.badge-gradient-7  { background: linear-gradient(135deg, #14b8a6 0%, #22d3ee 100%) !important; }  /* Teal a Cyan */
.badge-gradient-8  { background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%) !important; }  /* Rosa a Naranja */
.badge-gradient-9  { background: linear-gradient(135deg, #06b6d4 0%, #a855f7 100%) !important; }  /* Cyan a Púrpura */
.badge-gradient-10 { background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%) !important; }  /* Lima a Verde */
.badge-gradient-11 { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important; }  /* Sky a Indigo */
.badge-gradient-12 { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important; }  /* Rosa a Violeta */

.form-compact-badge:focus-within .badge-icon {
    transform: scale(1.2);
}

.form-compact-badge label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.875rem;
}

.form-compact-badge .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    line-height: 1.5;
    min-height: calc(1rem * 1.5 + 2rem + 4px);
    color: #212529 !important;
    font-weight: 500;
}

/* Select con padding para el icono */
.form-compact-badge .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 2.5rem 1rem 3.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    line-height: 1.5;
    min-height: calc(1rem * 1.5 + 2rem + 4px);
    color: #212529 !important;
    font-weight: 500;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-compact-badge .form-control:focus,
.form-compact-badge .form-select:focus {
    border-color: var(--wemvy-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 214, 0.25);
}

.form-compact-badge textarea {
    padding-left: 3.5rem !important;
    min-height: calc(1rem * 1.5 * 3 + 2rem + 4px);
}

.form-compact-badge .input-group {
    position: relative;
}

.form-compact-badge .input-group .form-control {
    padding-left: 3.5rem;
}

.form-compact-badge .input-group .badge-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
}

.form-compact-badge .input-group:focus-within .badge-icon {
    transform: translateY(-50%) scale(1.2);
}

/* Responsive: en móviles, el sidebar se oculta y el contenido ocupa todo el ancho */
@media (max-width: 1199px) {
    [data-layout="vertical"] #main-wrapper .page-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    [data-layout="vertical"] .topbar {
        width: 100% !important;
        margin-left: 0 !important;
        left: 0 !important;
    }
    
    .left-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .left-sidebar.show {
        transform: translateX(0);
    }
}

/* Efecto hover para tarjetas de documentos */
.hover-shadow-sm {
    transition: all 0.3s ease;
}

.hover-shadow-sm:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}