/* ========================================================================
   CALCULADORA DE FICHAS - DISEÑO COMPLETO DESDE CERO CON MODAL
   Diseño moderno, limpio y optimizado • Responsive • Accesible
   ======================================================================== */

/* Variables del modal de fichas - Usando las globales de la app */
.fichas-modal,
.fichas-dashboard,
#fichas-calculator-section {
    /* Colores principales - heredando de la app */
    --primary: var(--primary-color, #007bff);
    --primary-dark: #0056b3;
    --primary-light: #cce5ff;
    --secondary: var(--secondary-color, #6c757d);
    --success: var(--success-color, #28a745);
    --success-dark: #218838;
    --danger: var(--danger-color, #dc3545);
    --warning: #ffc107;

    /* Neutrales */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-500: #adb5bd;
    --gray-700: #495057;
    --gray-900: #212529;

    /* Sombras - heredando de la app */
    --shadow-sm: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: var(--shadow-md, 0 4px 8px rgba(0, 0, 0, 0.1));
    --shadow-lg: var(--shadow-lg, 0 8px 16px rgba(0, 0, 0, 0.1));
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Bordes - heredando de la app */
    --radius-sm: 6px;
    --radius: var(--border-radius, 8px);
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transiciones - heredando de la app */
    --transition: var(--transition, all 0.3s ease);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== DASHBOARD PRINCIPAL ========== */
.fichas-dashboard {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Header del dashboard */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    backdrop-filter: blur(10px);
}

.header-text h2 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.header-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}


/* Controles del dashboard */
.dashboard-controls {
    padding: 2rem;
    background: var(--gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.week-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.btn-week {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-week:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.btn-week:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.week-display {
    text-align: center;
    min-width: 180px;
}

.week-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.week-range {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-900);
    font-weight: 600;
}

/* Tarjetas de métricas */
.metrics-cards {
    display: flex;
    gap: 1rem;
}

.metric-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    min-width: 160px;
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.metric-data {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Contenido del dashboard */
.dashboard-content {
    padding: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.content-card.full-width {
    grid-column: 1 / -1;
}

.card-header-custom {
    background: linear-gradient(to right, var(--gray-50), var(--white));
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-custom h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-export:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-body-custom {
    padding: 1.5rem;
}

/* Grid de resúmenes */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-left-color: var(--primary-dark);
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-card-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.summary-card-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.summary-card-body {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.summary-card-stat {
    text-align: center;
}

.summary-card-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.summary-card-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

/* Tabla de fichas */
.table-container {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.fichas-table {
    width: 100%;
    border-collapse: collapse;
}

.fichas-table thead th {
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 700;
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fichas-table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.fichas-table tbody tr {
    transition: var(--transition);
}

.fichas-table tbody tr:hover {
    background: var(--gray-50);
}

/* ========== MODAL - DISEÑO MEJORADO ========== */
.fichas-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fichas-modal[style*="flex"] {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(8px) saturate(150%);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px) saturate(150%);
    }
}

.modal-container {
    position: relative;
    background: linear-gradient(to bottom, var(--white), #f8f9ff);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* Header del modal - MEJORADO */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.modal-title-section h2 {
    font-size: 1.625rem;
    font-weight: 800;
    margin: 0 0 0.375rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.modal-title-section p {
    font-size: 0.9375rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.375rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.modal-close::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-close:hover::before {
    opacity: 1;
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* Progreso del modal - MEJORADO */
.modal-progress {
    padding: 1.75rem 2.5rem;
    background: linear-gradient(to bottom, #f8f9ff, var(--gray-50));
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gray-300);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.4s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: var(--white);
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4),
                0 0 0 4px rgba(102, 126, 234, 0.15);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4), 0 0 0 4px rgba(102, 126, 234, 0.15); }
    50% { box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), 0 0 0 8px rgba(102, 126, 234, 0.1); }
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.step.completed .step-number::before {
    content: '✓';
    font-weight: 900;
    font-size: 1.25rem;
    animation: checkmark 0.5s ease-out;
}

@keyframes checkmark {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.step-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step.active .step-label {
    color: var(--primary);
}

.step.completed .step-label {
    color: var(--success);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-300);
    margin: 0 0.5rem;
    position: relative;
    top: -1.25rem;
}

.progress-bar {
    height: 8px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    animation: progressGradient 3s ease infinite;
}

@keyframes progressGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Body del modal */
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

/* Formulario */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-field label i {
    color: var(--primary);
}

.input-field {
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    color: var(--gray-900);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-field::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.input-field:hover:not(:focus):not(:disabled) {
    border-color: rgba(102, 126, 234, 0.4);
    background: #fafbff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
                0 2px 8px rgba(102, 126, 234, 0.15);
    background: var(--white);
    transform: translateY(-1px);
}

.input-field:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Estilos específicos para select */
.input-field[type="select"],
select.input-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f46e5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    appearance: none;
}

/* Validación - DISEÑO MEJORADO */
.input-field.is-valid {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    animation: validShake 0.4s ease-in-out;
}

.input-field.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    background-color: var(--white);
}

.input-field.is-invalid {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    animation: invalidShake 0.4s ease-in-out;
}

.input-field.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
    background-color: var(--white);
}

@keyframes validShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes invalidShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Estilos especiales para select válido/inválido */
select.input-field.is-valid,
select.input-field.is-invalid {
    padding-right: 50px;
}

select.input-field.is-valid {
    background-position: right 40px center, right 12px center;
}

select.input-field.is-invalid {
    background-position: right 40px center, right 12px center;
}

.form-field small {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.btn-reload {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid var(--primary-light);
    color: var(--primary);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-reload:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
    box-shadow: var(--shadow-sm);
}

.btn-reload:active {
    transform: rotate(180deg) scale(0.95);
}

.btn-reload i {
    transition: transform 0.3s ease;
}

.btn-reload.loading i {
    animation: spinBtn 1s linear infinite;
}

/* Vista previa */
.quick-preview {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.preview-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-grid {
    display: grid;
    gap: 0.75rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.preview-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

/* Verificación */
.verification-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.verification-header {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.verification-body {
    padding: 1.5rem;
}

.verify-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.verify-item:hover {
    background: var(--gray-50);
    transform: translateX(5px);
}

.verify-item:last-child {
    border-bottom: none;
}

.verify-item.highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
}

.verify-label {
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.verify-value {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
}

.verify-item.highlight .verify-value {
    color: var(--primary);
    font-size: 1.25rem;
}

.info-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(79, 70, 229, 0.02));
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    display: flex;
    gap: 0.75rem;
    color: var(--gray-700);
}

.info-banner i {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Confirmación */
.confirmation-message {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(79, 70, 229, 0.05));
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
}

.confirmation-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.confirmation-message p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Éxito */
.success-container {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3.5rem;
    color: var(--white);
    animation: successPulse 0.6s ease-out;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.success-container p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.success-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.success-stat i {
    font-size: 1.5rem;
    color: var(--success);
}

.success-stat span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Footer del modal */
.modal-footer {
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    align-items: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.footer-spacer {
    flex: 1;
}

/* ========== BOTONES DEL MODAL - CONSISTENTES CON LA APP ========== */
.modal-footer button {
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.modal-footer button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Botón Primario */
.modal-footer .btn-primary,
#btn-modal-next,
#btn-modal-new {
    background-color: var(--primary);
    color: white;
}

.modal-footer .btn-primary:hover:not(:disabled),
#btn-modal-next:hover:not(:disabled),
#btn-modal-new:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Botón Secundario */
.modal-footer .btn-secondary,
#btn-modal-prev,
#btn-modal-cancel {
    background-color: var(--secondary);
    color: white;
}

.modal-footer .btn-secondary:hover:not(:disabled),
#btn-modal-prev:hover:not(:disabled),
#btn-modal-cancel:hover:not(:disabled) {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Botón Success - DISEÑO MEJORADO */
.modal-footer .btn-success,
#btn-modal-submit {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-footer .btn-success::before,
#btn-modal-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.modal-footer .btn-success:hover:not(:disabled)::before,
#btn-modal-submit:hover:not(:disabled)::before {
    width: 200px;
    height: 200px;
}

.modal-footer .btn-success:hover:not(:disabled),
#btn-modal-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--success-dark), var(--success));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.modal-footer .btn-success:active:not(:disabled),
#btn-modal-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.modal-footer .btn-success i,
#btn-modal-submit i {
    position: relative;
    z-index: 1;
}

.modal-footer .btn-success span,
#btn-modal-submit span {
    position: relative;
    z-index: 1;
}

/* Íconos en botones */
.modal-footer button i {
    font-size: 14px;
}

/* Botón principal "Nueva Ficha" - DISEÑO ESPECTACULAR */
.btn-add-ficha,
#open-fichas-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: 15.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-ficha::before,
#open-fichas-modal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-ficha::after,
#open-fichas-modal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmerButton 3s ease-in-out infinite;
}

@keyframes shimmerButton {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.btn-add-ficha:hover::before,
#open-fichas-modal:hover::before {
    width: 350px;
    height: 350px;
}

.btn-add-ficha:hover,
#open-fichas-modal:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-add-ficha:active,
#open-fichas-modal:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-add-ficha i,
#open-fichas-modal i {
    font-size: 17px;
    position: relative;
    z-index: 1;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.btn-add-ficha span,
#open-fichas-modal span {
    position: relative;
    z-index: 1;
}

/* ========== RESPONSIVE - MEJORADO ========== */
@media (max-width: 768px) {
    /* Dashboard */
    .dashboard-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.25rem;
    }

    .header-text h2 {
        font-size: 1.375rem;
    }

    .dashboard-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .metrics-cards {
        flex-direction: column;
        width: 100%;
    }

    .metric-card {
        width: 100%;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Modal */
    .modal-container {
        max-height: 96vh;
        max-width: 100%;
        margin: 0.5rem;
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 1.5rem 1.25rem;
    }

    .modal-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .modal-title-section h2 {
        font-size: 1.25rem;
    }

    .modal-title-section p {
        font-size: 0.8125rem;
    }

    .modal-progress {
        padding: 1.25rem 1rem;
    }

    .progress-steps {
        justify-content: space-around;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .step-label {
        font-size: 0.625rem;
    }

    .step.active .step-number {
        transform: scale(1.1);
    }

    .modal-body {
        padding: 1.5rem 1.25rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .input-field {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .modal-footer {
        flex-wrap: wrap;
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }

    .modal-footer button {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 120px;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .footer-spacer {
        display: none;
    }

    /* Botón principal */
    .btn-add-ficha,
    #open-fichas-modal {
        padding: 14px 24px;
        font-size: 14px;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-container {
        margin: 0.25rem;
        max-height: 98vh;
    }

    .modal-header {
        padding: 1.25rem 1rem;
    }

    .modal-title-section h2 {
        font-size: 1.125rem;
    }

    .progress-steps {
        gap: 0.25rem;
    }

    .step-label {
        display: none;
    }

    .step-line {
        margin: 0 0.25rem;
    }

    .modal-body {
        padding: 1.25rem 1rem;
    }

    .modal-footer button {
        flex: 1 1 100%;
        width: 100%;
    }

    .verification-card {
        margin-bottom: 1rem;
    }
}

/* ========== BOTONES DE ACCIÓN ========== */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-action:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.btn-action.btn-export,
#btn-export-fichas {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    border: none;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-action.btn-export::before,
#btn-export-fichas::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-action.btn-export:hover::before,
#btn-export-fichas:hover::before {
    width: 200px;
    height: 200px;
}

.btn-action.btn-export:hover,
#btn-export-fichas:hover {
    background: linear-gradient(135deg, #059669, var(--success));
    color: var(--white);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
}

.btn-action.btn-export:active,
#btn-export-fichas:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-action.btn-export i,
#btn-export-fichas i {
    position: relative;
    z-index: 1;
}

.btn-action.btn-export span,
#btn-export-fichas span {
    position: relative;
    z-index: 1;
}

.btn-action.btn-export.loading,
#btn-export-fichas.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-action.btn-export.loading i,
#btn-export-fichas.loading i {
    animation: spinBtn 1s linear infinite;
}

.btn-action i {
    font-size: 0.875rem;
}

.btn-action.loading i {
    animation: spinBtn 1s linear infinite;
}

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

/* ========== TOOLBAR DE SECCIÓN ========== */
.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    gap: 1rem;
    flex-wrap: wrap;
}

/* Búsqueda */
.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-box i {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-900);
    background: transparent;
}

.search-input::placeholder {
    color: var(--gray-400);
}

/* Toggle de vista */
.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--white);
    padding: 0.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.btn-toggle {
    background: transparent;
    border: none;
    color: var(--gray-500);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-toggle.active {
    background: var(--primary);
    color: var(--white);
}

/* Información de resultados */
.results-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.results-info span {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 600;
}

/* ========== TABLA SORTABLE ========== */
.fichas-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.fichas-table th.sortable:hover {
    background: var(--gray-200);
}

.fichas-table th.sortable i {
    margin-left: 0.5rem;
    opacity: 0.3;
    transition: var(--transition);
}

.fichas-table th.sortable:hover i {
    opacity: 0.7;
}

.fichas-table th.sortable.sorted-asc i {
    opacity: 1;
    color: var(--primary);
    transform: rotate(180deg);
}

.fichas-table th.sortable.sorted-desc i {
    opacity: 1;
    color: var(--primary);
}

/* ========== VISTA DE LISTA ========== */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.summary-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.summary-list-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-list-item-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.summary-list-item-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.summary-list-item-stats {
    display: flex;
    gap: 2rem;
}

.summary-list-item-stat {
    text-align: right;
}

.summary-list-item-stat-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-list-item-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========== ESTILOS UNIVERSALES PARA TODOS LOS BOTONES ========== */

/* Tabs de fichas (si existen en versión anterior) */
.fichas-tab,
.fichas-tabs button,
button[data-tab] {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.fichas-tab:hover,
button[data-tab]:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.fichas-tab.active,
button[data-tab].active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.fichas-tab.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
}

.fichas-tab i,
button[data-tab] i {
    font-size: 1rem;
}

/* Contenedor de tabs */
.fichas-tabs,
.tabs-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

/* Botón guardar ficha y variantes */
#guardar-ficha-btn,
#btn-guardar-ficha,
button[type="submit"].btn-save,
.btn-save-ficha {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: var(--shadow-md);
}

#guardar-ficha-btn:hover,
#btn-guardar-ficha:hover,
.btn-save-ficha:hover {
    background: linear-gradient(135deg, #059669, var(--success));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

#guardar-ficha-btn:active,
#btn-guardar-ficha:active,
.btn-save-ficha:active {
    transform: translateY(-1px);
}

#guardar-ficha-btn:disabled,
#btn-guardar-ficha:disabled,
.btn-save-ficha:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Botón cancelar */
#cancelar-ficha-btn,
#btn-cancelar-ficha,
.btn-cancel-ficha {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

#cancelar-ficha-btn:hover,
#btn-cancelar-ficha:hover,
.btn-cancel-ficha:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Botones de navegación del wizard */
.btn-prev-step,
.btn-next-step,
#btn-prev-step,
#btn-next-step {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-next-step,
#btn-next-step {
    background: var(--primary);
    color: var(--white);
}

.btn-prev-step:hover,
.btn-next-step:hover,
#btn-prev-step:hover,
#btn-next-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-next-step:hover,
#btn-next-step:hover {
    background: var(--primary-dark);
}

/* Botones circulares de semana */
.btn-week,
.week-nav-btn,
#week-prev-btn,
#week-next-btn {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-week:hover:not(:disabled),
.week-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.btn-week:disabled,
.week-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Botones con íconos solamente */
.btn-icon,
button.icon-only {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-icon:hover,
button.icon-only:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Botones pequeños */
.btn-sm,
button.small {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* Botones grandes */
.btn-lg,
button.large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

/* Botón outline (borde) */
.btn-outline,
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover,
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-success {
    background: transparent;
    color: var(--success);
    border: 2px solid var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    color: var(--white);
}

/* Grupo de botones */
.btn-group,
.button-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-group.right,
.button-group.right {
    justify-content: flex-end;
}

.btn-group.center,
.button-group.center {
    justify-content: center;
}

.btn-group.space-between,
.button-group.space-between {
    justify-content: space-between;
}

/* Estados de carga en cualquier botón */
button.loading,
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

button.loading::after,
.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinBtn 0.6s linear infinite;
    color: inherit;
}

button.loading.btn-primary::after,
button.loading.btn-success::after {
    border-color: white;
    border-top-color: transparent;
}

/* ========== ESTILOS PARA MODAL EN INDEX.HTML ========== */
/* Estos son para el modal con id="fichas-calculator-modal" */

#fichas-calculator-modal {
    z-index: 10000;
}

#fichas-calculator-modal.modal {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    backdrop-filter: blur(8px) saturate(150%);
}

.fichas-modal-modern {
    animation: fadeIn 0.3s ease-out;
}

.fichas-modal-content {
    background: linear-gradient(to bottom, var(--white), #f8f9ff);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
}

.fichas-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.fichas-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    z-index: 0;
}

.fichas-modal-header > div,
.fichas-modal-header h3,
.fichas-modal-header .close-modal {
    position: relative;
    z-index: 1;
}

.fichas-modal-header h3 {
    font-size: 1.625rem;
    font-weight: 800;
    margin: 0 0 0.375rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fichas-modal-header h3 i {
    font-size: 1.75rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.fichas-modal-subtitle {
    font-size: 0.9375rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.fichas-modal-header .close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    line-height: 1;
}

.fichas-modal-header .close-modal::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fichas-modal-header .close-modal:hover::before {
    opacity: 1;
    animation: pulseRing 1.5s ease-out infinite;
}

.fichas-modal-header .close-modal:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fichas-modal-body {
    padding: 2rem 2.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

/* Dashboard dentro del modal */
.fichas-dashboard-header {
    background: linear-gradient(135deg, #f5f7ff, #e8ecff);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.fichas-week-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.btn-week-nav {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-week-nav:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-week-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.week-info {
    text-align: center;
    min-width: 240px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid transparent;
    position: relative;
}

.week-info[role="button"]:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.week-info[role="button"]:hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0.1;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.week-info[role="button"]:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.week-info[role="button"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.week-label {
    display: block;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.week-label i {
    margin-right: 0.25rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.week-range {
    display: block;
    font-size: 1rem;
    color: #1a1a2e;
    font-weight: 700;
}

.fichas-stats-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 180px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card-primary .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card-success .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

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

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

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

/* Tabs dentro del modal */
.fichas-tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.fichas-tabs-header {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9ff;
    border-bottom: 2px solid #e8ecff;
    flex-wrap: wrap;
}

.fichas-tab {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fichas-tab:hover {
    background: #f9fafb;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.fichas-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fichas-tab i {
    font-size: 1rem;
}

.btn-export {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-export:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

    .fichas-tabs-content {
        background-color: #fff;
        padding: 20px;
        border-radius: 0 0 8px 8px;
        border: 1px solid #e0e0e0;
        border-top: none;
    }

    .fichas-tab-pane {
        display: none;
    }

    .fichas-tab-pane.active {
        display: block;
    }

/* Formulario dentro del modal */
.ficha-form-modern {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control-modern {
    padding: 0.875rem 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a2e;
    font-weight: 500;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control-modern:hover:not(:focus) {
    border-color: rgba(102, 126, 234, 0.4);
    background: #fafbff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-control-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
                0 2px 8px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-1px);
}

.form-group-modern label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.btn-submit-modern {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-submit-modern:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-submit-modern:active {
    transform: translateY(-1px);
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table-modern thead th {
    background: #f8f9ff;
    color: #374151;
    font-weight: 700;
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8ecff;
}

.table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 0.9rem;
}

.table-modern tbody tr:hover {
    background: #fafbff;
}

/* Botón calculadora */
#open-fichas-calculator,
.gerentes-calculator-launch button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 15.5px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#open-fichas-calculator::before,
.gerentes-calculator-launch button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#open-fichas-calculator::after,
.gerentes-calculator-launch button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmerButton 3s ease-in-out infinite;
}

#open-fichas-calculator:hover::before,
.gerentes-calculator-launch button:hover::before {
    width: 350px;
    height: 350px;
}

#open-fichas-calculator:hover,
.gerentes-calculator-launch button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#open-fichas-calculator:active,
.gerentes-calculator-launch button:active {
    transform: translateY(-2px) scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

#open-fichas-calculator i,
.gerentes-calculator-launch button i {
    font-size: 17px;
    position: relative;
    z-index: 1;
    animation: iconBounce 2s ease-in-out infinite;
}

#open-fichas-calculator span,
.gerentes-calculator-launch button span {
    position: relative;
    z-index: 1;
}

/* ========== POPOVER DE RANGO DE FECHAS ========== */
.week-info-wrapper {
    position: relative;
    display: inline-block;
}

.date-range-popover {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.75rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(102, 126, 234, 0.1);
    z-index: 1000;
    min-width: 320px;
    animation: popoverSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popoverSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.date-range-popover::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.popover-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popover-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popover-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popover-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.popover-body {
    padding: 1.5rem;
}

.date-input-group {
    margin-bottom: 1.25rem;
}

.date-input-group:last-of-type {
    margin-bottom: 1.5rem;
}

.date-input-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input-group label i {
    color: #667eea;
}

.date-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a2e;
    font-weight: 500;
}

.date-input:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: #fafbff;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    background: white;
}

.popover-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-popover-cancel,
.btn-popover-apply {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-popover-cancel {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-popover-cancel:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-popover-apply {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-popover-apply:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

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

/* Utilidades */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

.modal-open {
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-500);
}

/* ========== RESPONSIVE PARA NUEVOS ELEMENTOS ========== */
@media (max-width: 768px) {
    .header-actions {
        flex-wrap: wrap;
    }

    .btn-action span:not(.btn-export span) {
        display: none;
    }

    .section-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .summary-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .summary-list-item-stats {
        width: 100%;
        justify-content: space-between;
    }
}
