/**
 * ============================================================================
 * KANBAN MEJORAS - Estilos CSS
 * ============================================================================
 */

/* ============================================================================
   1. DASHBOARD DE MÉTRICAS
   ============================================================================ */

.kanban-dashboard {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.kanban-dashboard.collapsed {
    padding: 0;
    margin-bottom: 12px;
    background: transparent;
    box-shadow: none;
}

.kanban-dashboard.collapsed .dashboard-grid {
    display: none;
}

.kanban-dashboard.collapsed .dashboard-toggle {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 8px 16px;
    margin: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.dashboard-card {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: default;
}

.dashboard-card:hover {
    background: #eeeeef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-card-alert {
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.dashboard-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 135, 50, 0.1);
    border-radius: 10px;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
}

.dashboard-value {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
}

.dashboard-label {
    font-size: 11px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dashboard-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 6px 14px;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    color: #6e6e73;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-toggle:hover {
    background: #e8e8ed;
    color: #1d1d1f;
}

.dashboard-toggle::before {
    content: '📊';
}

.kanban-dashboard:not(.collapsed) .dashboard-toggle::after {
    content: 'Ocultar métricas';
}

.kanban-dashboard.collapsed .dashboard-toggle::after {
    content: 'Ver métricas';
}

.kanban-dashboard.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.2s;
    font-size: 10px;
}


/* ============================================================================
   2. CENTRO DE NOTIFICACIONES - POSICIÓN DERECHA (junto al userInfo)
   ============================================================================ */

/* Ocultar el sistema antiguo de notificaciones del sidebar en el Kanban */
#kanbanLicitaciones #notifToggleBtn,
#kanbanLicitaciones #notifMenu,
body:has(#kanbanLicitaciones.active) #notifToggleBtn,
body:has(#kanbanLicitaciones.active) #notifMenu {
    display: none !important;
}

.notificaciones-center {
    position: fixed !important;
    top: 20px !important;
    right: 180px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 1001 !important;
}

.notificaciones-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #6366f1;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.notificaciones-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.notificaciones-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 9px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: bounce-in 0.3s ease;
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

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

.notificaciones-panel {
    position: absolute;
    top: 54px;
    left: 0;
    width: 340px;
    max-height: 450px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: slide-down 0.2s ease;
}

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

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

.notificaciones-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.notificaciones-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.notificaciones-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-marcar-todas {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-marcar-todas:hover {
    background: rgba(255, 255, 255, 0.4);
}

.btn-marcar-todas:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-refresh-notif {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh-notif:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-marcar-leidas {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-marcar-leidas:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notificaciones-lista {
    max-height: 400px;
    overflow-y: auto;
}

.notificaciones-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
}

.notificacion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notificacion-item:hover {
    background: #f9fafb;
}

.notificacion-item.leida {
    opacity: 0.6;
}

.notificacion-icono {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
}

.notificacion-contenido {
    flex: 1;
}

.notificacion-texto {
    margin: 0 0 4px;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.notificacion-meta {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notificacion-fecha {
    font-size: 12px;
    color: #9ca3af;
}

.notificacion-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 16px;
}


/* ============================================================================
   3. DRAG & DROP
   ============================================================================ */

.kanban-card[draggable="true"],
.kanban-card-stacked[draggable="true"] {
    cursor: grab;
}

.kanban-card[draggable="true"]:active,
.kanban-card-stacked[draggable="true"]:active {
    cursor: grabbing;
}

.kanban-card.dragging,
.kanban-card-stacked.dragging {
    opacity: 0.5;
    transform: rotate(3deg) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

.kanban-column.drag-target-possible,
.kanban-column-stacked.drag-target-possible {
    background: rgba(99, 102, 241, 0.05);
    transition: background 0.2s;
}

.kanban-column.drag-over,
.kanban-column-stacked.drag-over {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 2px dashed #6366f1 !important;
    border-radius: 12px;
}

.kanban-column.drag-over .kanban-cards,
.kanban-column.drag-over .kanban-cards-stack-container,
.kanban-column-stacked.drag-over .kanban-cards-stack-container {
    min-height: 100px;
}


/* ============================================================================
   4. SISTEMA DE TAGS
   ============================================================================ */

.tags-container {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tags-actuales {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: white;
    font-weight: 500;
}

.btn-add-tag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px dashed #d1d5db;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-tag:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.modal-tags {
    max-width: 400px;
}

.tags-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.tag-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.tag-option:hover {
    background: #f3f4f6;
}

.tag-option.selected {
    background: #ede9fe;
}

.tag-option input {
    display: none;
}

.tag-preview {
    padding: 4px 12px;
    border-radius: 16px;
    color: white;
    font-size: 13px;
}


/* ============================================================================
   5. VISTA CALENDARIO
   ============================================================================ */

.btn-vista-calendario {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-vista-calendario:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.calendario-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fade-in 0.2s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.calendario-container {
    background: white;
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scale-in 0.2s ease;
}

@keyframes scale-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.calendario-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.calendario-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
    min-width: 180px;
    text-align: center;
}

.cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.cal-nav:hover {
    background: #e5e7eb;
}

.cal-cerrar {
    position: absolute;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.cal-cerrar:hover {
    background: #fecaca;
}

.calendario-dias-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendario-dias-header span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-dia {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: default;
    position: relative;
    transition: all 0.2s;
}

.cal-dia-vacio {
    background: transparent;
}

.cal-dia-hoy {
    background: #dbeafe;
    font-weight: 700;
    color: #1d4ed8;
}

.cal-dia-eventos {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    cursor: pointer;
}

.cal-dia-eventos:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cal-dia-num {
    font-size: 14px;
}

.cal-dia-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: #ef4444;
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendario-detalle {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.calendario-detalle h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #374151;
}

.cal-detalle-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cal-detalle-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.cal-detalle-item:hover {
    background: #f3f4f6;
}

.cal-detalle-estado {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
}

.cal-detalle-titulo {
    flex: 1;
    font-size: 14px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-detalle-importe {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}


/* ============================================================================
   6. ATAJOS DE TECLADO
   ============================================================================ */

.atajos-hint {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 1000;
    animation: fade-in 0.3s ease;
}

.atajos-hint.fade-out {
    animation: fade-out 1s ease forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

.atajos-hint kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    margin: 0 4px;
}

.modal-atajos {
    max-width: 500px;
}

.atajos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.atajo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 8px;
}

.atajo-item kbd {
    min-width: 32px;
    padding: 4px 8px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.atajo-item span {
    font-size: 13px;
    color: #374151;
}

.highlight-column {
    animation: highlight-pulse 0.5s ease 3;
}

@keyframes highlight-pulse {

    0%,
    100% {
        background-color: inherit;
    }

    50% {
        background-color: rgba(99, 102, 241, 0.1);
    }
}


/* ============================================================================
   7. MEJORAS UX TARJETAS
   ============================================================================ */

.actividad-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    margin-left: auto;
}

.actividad-reciente {
    background: #dcfce7;
    color: #166534;
}

.actividad-hoy {
    background: #dbeafe;
    color: #1d4ed8;
}

.actividad-ayer {
    background: #fef3c7;
    color: #92400e;
}

.actividad-antigua {
    background: #fee2e2;
    color: #991b1b;
}

.docs-indicator {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.doc-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.doc-ppt {
    background: #fef3c7;
    color: #92400e;
}

.doc-pcap {
    background: #dbeafe;
    color: #1d4ed8;
}


/* ============================================================================
   8. FILTROS AVANZADOS
   ============================================================================ */

.btn-filtros-avanzados {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filtros-avanzados:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.filtros-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 480px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-top: 8px;
    overflow: hidden;
}

.filtros-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.filtros-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.btn-cerrar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cerrar:hover {
    background: #fecaca;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filtro-grupo-wide {
    grid-column: span 2;
}

.filtro-grupo label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.filtro-grupo input,
.filtro-grupo select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filtro-grupo input:focus,
.filtro-grupo select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filtro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filtro-tag-option {
    cursor: pointer;
}

.filtro-tag-option input {
    display: none;
}

.filtro-tag-option span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.filtro-tag-option input:checked+span {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filtros-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.filtros-actions .btn-secondary {
    flex: 1;
    padding: 10px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.filtros-actions .btn-secondary:hover {
    background: #f3f4f6;
}

.filtros-actions .btn-primary {
    flex: 2;
    padding: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filtros-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filtros-guardados {
    padding: 0 20px 20px;
}

.filtros-guardados h5 {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
}

.filtro-guardado {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 8px;
}

.filtro-nombre {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.btn-aplicar-guardado,
.btn-eliminar-guardado {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-aplicar-guardado {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-aplicar-guardado:hover {
    background: #bfdbfe;
}

.btn-eliminar-guardado {
    background: #fee2e2;
    color: #ef4444;
}

.btn-eliminar-guardado:hover {
    background: #fecaca;
}


/* ============================================================================
   MODAL GENÉRICO
   ============================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fade-in 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-sm {
    max-width: 400px;
}

.modal-content h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #1f2937;
}

.modal-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    margin: 12px 0;
}

.modal-content textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}


/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .notificaciones-panel {
        width: calc(100vw - 48px);
        right: -12px;
    }

    .filtros-panel {
        width: calc(100vw - 32px);
        right: -16px;
    }

    .filtros-grid {
        grid-template-columns: 1fr;
    }

    .filtro-grupo-wide {
        grid-column: span 1;
    }

    .atajos-grid {
        grid-template-columns: 1fr;
    }

    .calendario-container {
        padding: 16px;
        border-radius: 12px;
    }
}

/* ============================================================================
   BOTONES PPT/PCAP CON OPCIÓN DE CAMBIAR
   ============================================================================ */

.pliego-btn-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.pliego-btn-wrapper .modal-pdf-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.pliego-cambiar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pliego-cambiar-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: scale(1.05);
}

.pliego-cambiar-btn:active {
    transform: scale(0.98);
}

/* Ajuste para que el grupo de pliegos use flex correctamente */
.modal-actions-modern__group--pliegos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-actions-modern__group--pliegos .pliego-btn-wrapper {
    flex: 1;
    min-width: 140px;
}