/* =============================================
   PROGRESO ALUMNOS - Estilos
   ============================================= */

:root {
    --primary-blue: #4a7ba7;
    --secondary-blue: #5b8fb9;
    --light-blue: #e8f1f8;
    --success-green: #16a34a;
    --light-green: #dcfce7;
    --warning-orange: #f59e0b;
    --light-orange: #fef3c7;
    --danger-red: #ef4444;
    --light-red: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--gray-100);
    margin: 0;
    padding: 0;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 36px;
    width: auto;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.back-btn svg {
    width: 22px;
    height: 22px;
}

/* CONTENT */
.content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* INFO CARD */
.info-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: white;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 28px;
    height: 28px;
}

.info-text h2 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.info-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* SEARCH */
.search-card {
    background: white;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: var(--gray-400);
}

/* SECTION TITLE */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 4px;
}

/* STUDENTS LIST */
.students-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.student-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.student-avatar {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-avatar svg {
    width: 26px;
    height: 26px;
    color: var(--primary-blue);
}

.student-info {
    flex: 1;
    min-width: 0;
}

.student-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.student-rut {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.student-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.stat svg {
    width: 14px;
    height: 14px;
}

.stat.inbody {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.stat.fms {
    background: var(--light-orange);
    color: var(--warning-orange);
}

.stat.trend-up {
    background: var(--light-green);
    color: var(--success-green);
}

.stat.trend-stable {
    background: var(--gray-200);
    color: var(--gray-600);
}

.stat.new-student {
    background: var(--light-blue);
    color: var(--secondary-blue);
}

.arrow {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* STUDENT DETAIL CARD */
.student-detail-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.student-avatar-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-avatar-large svg {
    width: 36px;
    height: 36px;
    color: white;
}

.student-detail-info {
    flex: 1;
}

.student-detail-name {
    font-weight: 700;
    font-size: 20px;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.student-detail-rut {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.student-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-600);
}

/* PROGRESS TABS */
.progress-tabs {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.progress-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.progress-tab.active {
    background: var(--primary-blue);
    color: white;
}

.progress-tab:hover:not(.active) {
    background: var(--gray-100);
}

/* PROGRESS SECTIONS */
.progress-section {
    display: none;
}

.progress-section.active {
    display: block;
}

/* SUMMARY GRID */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.summary-icon svg {
    width: 24px;
    height: 24px;
}

.summary-icon.inbody-icon {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.summary-icon.fms-icon {
    background: var(--light-orange);
    color: var(--warning-orange);
}

.summary-icon.training-icon {
    background: var(--light-green);
    color: var(--success-green);
}

.summary-icon.trend-icon {
    background: var(--light-green);
    color: var(--success-green);
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.summary-value.trend-up {
    color: var(--success-green);
}

.summary-label {
    font-size: 12px;
    color: var(--gray-500);
}

/* METRIC CARD */
.metric-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.metric-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
}

.metric-date {
    font-size: 13px;
    color: var(--gray-500);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 12px;
    color: var(--gray-500);
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
}

.metric-change.positive {
    color: var(--success-green);
}

.metric-change.negative {
    color: var(--danger-red);
}

.metric-change.neutral {
    color: var(--gray-500);
}

/* FMS SCORE DISPLAY */
.fms-score-display {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.fms-total {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    color: white;
    flex-shrink: 0;
}

.fms-total-value {
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.fms-total-label {
    font-size: 12px;
    opacity: 0.9;
}

.fms-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fms-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fms-bar-label {
    font-size: 13px;
    color: var(--gray-600);
    width: 100px;
    flex-shrink: 0;
}

.fms-bar-container {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.fms-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fms-bar-score {
    width: 24px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue);
}

/* CHART CARD */
.chart-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
}

.chart-legend {
    display: flex;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-600);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-color.peso {
    background: var(--primary-blue);
}

.legend-color.musculo {
    background: var(--success-green);
}

.legend-color.grasa {
    background: var(--danger-red);
}

.chart-placeholder {
    width: 100%;
    overflow-x: auto;
}

.chart-placeholder svg {
    width: 100%;
    height: auto;
    min-width: 360px;
}

/* MEASUREMENT LIST */
.measurement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.measurement-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.measurement-date {
    width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.date-month {
    font-size: 11px;
    color: var(--gray-500);
}

.measurement-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.data-label {
    color: var(--gray-500);
}

.data-value {
    font-weight: 500;
    color: var(--gray-700);
}

.measurement-action {
    width: 36px;
    height: 36px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
}

.measurement-action svg {
    width: 18px;
    height: 18px;
}

/* FMS COMPARISON */
.fms-comparison-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fms-comparison-header {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.fms-comparison-grid {
    display: flex;
    gap: 16px;
}

.fms-comparison-item {
    flex: 1;
    background: var(--gray-50);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.fms-eval-date {
    font-size: 13px;
    color: var(--gray-500);
    display: block;
    margin-bottom: 8px;
}

.fms-eval-score {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
}

.fms-eval-change {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.fms-eval-change.positive {
    color: var(--success-green);
}

.fms-eval-change.neutral {
    color: var(--gray-500);
}

/* FMS DETAIL */
.fms-detail-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fms-detail-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.fms-detail-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
}

.fms-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fms-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fms-test-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fms-test-name {
    font-size: 14px;
    color: var(--gray-700);
}

.fms-test-score {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.fms-test-score.score-1 {
    background: var(--light-red);
    color: var(--danger-red);
}

.fms-test-score.score-2 {
    background: var(--light-orange);
    color: var(--warning-orange);
}

.fms-test-score.score-3 {
    background: var(--light-green);
    color: var(--success-green);
}

.fms-test-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.fms-test-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 3px;
}

/* TRAINING STATS */
.training-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.training-stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.training-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.training-stat-label {
    font-size: 11px;
    color: var(--gray-500);
}

/* ACTIVITY CALENDAR — scoped to progreso-alumnos to avoid overriding dashboard */
.progreso-alumnos-page .activity-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progreso-alumnos-page .activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.progreso-alumnos-page .activity-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
}

.activity-period {
    font-size: 13px;
    color: var(--gray-500);
}

.activity-calendar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-label {
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: 6px;
}

.calendar-day.active {
    background: var(--success-green);
}

/* TRAINING LIST */
.training-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.training-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.training-date {
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.training-day {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.training-month {
    font-size: 11px;
    color: var(--gray-500);
}

.training-info {
    flex: 1;
}

.training-type {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-800);
    display: block;
    margin-bottom: 2px;
}

.training-exercises {
    font-size: 13px;
    color: var(--gray-500);
}

.training-status {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-status.completed {
    background: var(--light-green);
    color: var(--success-green);
}

.training-status svg {
    width: 20px;
    height: 20px;
}

/* TRAINING DAY CARD */
.training-day-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.training-day-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.training-day-name {
    font-weight: 600;
    font-size: 15px;
}

.training-day-count {
    font-size: 13px;
    opacity: 0.9;
}

.exercise-list {
    padding: 8px 0;
}

.exercise-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.exercise-item:last-child {
    border-bottom: none;
}

.exercise-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exercise-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-800);
}

.exercise-detail {
    font-size: 12px;
    color: var(--gray-500);
}

.btn-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 8px 0;
    font-size: 14px;
}

.empty-state a {
    color: var(--primary-blue);
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* TREND DOWN */
.summary-value.trend-down {
    color: var(--danger-red);
}

.fms-eval-change.negative {
    color: var(--danger-red);
}

.fms-test-score.score-0 {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* RESPONSIVE - Tablets */
@media (max-width: 768px) {
    .content {
        padding: 16px;
    }

    .student-detail-card {
        padding: 20px;
    }

    .student-detail-name {
        font-size: 18px;
    }

    .fms-comparison-grid {
        flex-wrap: wrap;
    }

    .fms-comparison-item {
        min-width: calc(50% - 8px);
    }

    .fms-bar-label {
        width: 80px;
        font-size: 12px;
    }

    .metric-grid {
        gap: 10px;
    }

    .metric-value {
        font-size: 16px;
    }
}

/* RESPONSIVE - Mobile */
@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .header-title {
        font-size: 15px;
    }

    .logo {
        height: 28px;
    }

    .back-btn {
        width: 36px;
        height: 36px;
    }

    .back-btn svg {
        width: 18px;
        height: 18px;
    }

    .content {
        padding: 12px;
    }

    /* Student Card */
    .student-detail-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .student-avatar-large {
        width: 60px;
        height: 60px;
    }

    .student-avatar-large svg {
        width: 30px;
        height: 30px;
    }

    .student-detail-name {
        font-size: 17px;
    }

    .student-detail-rut {
        font-size: 13px;
    }

    .student-detail-meta {
        flex-direction: column;
        gap: 4px;
        justify-content: center;
    }

    /* Progress Tabs */
    .progress-tabs {
        gap: 4px;
        padding: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .progress-tab {
        padding: 10px 10px;
        font-size: 12px;
        min-width: auto;
    }

    /* Summary Grid */
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .summary-card {
        padding: 12px 8px;
    }

    .summary-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .summary-icon svg {
        width: 20px;
        height: 20px;
    }

    .summary-value {
        font-size: 22px;
    }

    .summary-label {
        font-size: 10px;
    }

    /* Metric Card */
    .metric-card {
        padding: 12px;
    }

    .metric-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .metric-title {
        font-size: 15px;
    }

    .metric-date {
        font-size: 12px;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .metric-label {
        font-size: 11px;
    }

    .metric-value {
        font-size: 15px;
    }

    .metric-change {
        font-size: 11px;
    }

    /* FMS Score Display */
    .fms-score-display {
        flex-direction: column;
        gap: 16px;
    }

    .fms-total {
        width: 100%;
        padding: 12px;
    }

    .fms-total-value {
        font-size: 28px;
    }

    .fms-bars {
        gap: 8px;
    }

    .fms-bar-item {
        gap: 8px;
    }

    .fms-bar-label {
        width: 70px;
        font-size: 11px;
    }

    .fms-bar-score {
        width: 20px;
        font-size: 13px;
    }

    /* Measurement List */
    .measurement-item {
        padding: 12px;
        gap: 10px;
    }

    .measurement-date {
        width: 50px;
    }

    .date-day {
        font-size: 20px;
    }

    .date-month {
        font-size: 10px;
    }

    .data-row {
        font-size: 12px;
    }

    .measurement-action {
        width: 32px;
        height: 32px;
    }

    .measurement-action svg {
        width: 16px;
        height: 16px;
    }

    /* FMS Comparison */
    .fms-comparison-card {
        padding: 12px;
    }

    .fms-comparison-header {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .fms-comparison-grid {
        flex-direction: column;
        gap: 10px;
    }

    .fms-comparison-item {
        min-width: 100%;
        padding: 12px;
    }

    .fms-eval-score {
        font-size: 28px;
    }

    .fms-eval-date {
        font-size: 12px;
    }

    .fms-eval-change {
        font-size: 13px;
    }

    /* FMS Detail */
    .fms-detail-card {
        padding: 12px;
    }

    .fms-detail-title {
        font-size: 14px;
    }

    .fms-detail-grid {
        gap: 12px;
    }

    .fms-test-name {
        font-size: 13px;
    }

    .fms-test-score {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    /* Training Stats */
    .training-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .training-stat-card {
        padding: 12px;
    }

    .training-stat-value {
        font-size: 24px;
    }

    .training-stat-label {
        font-size: 11px;
    }

    /* Training Day Card */
    .training-day-card {
        margin-top: 12px !important;
    }

    .training-day-header {
        padding: 10px 12px;
    }

    .training-day-name {
        font-size: 14px;
    }

    .training-day-count {
        font-size: 12px;
    }

    .exercise-item {
        padding: 10px 12px;
    }

    .exercise-name {
        font-size: 13px;
    }

    .exercise-detail {
        font-size: 11px;
    }

    /* Empty State */
    .empty-state {
        padding: 30px 16px;
    }

    .empty-state svg {
        width: 40px;
        height: 40px;
    }

    .empty-state p {
        font-size: 13px;
    }

    /* Section Title */
    .section-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    /* Button Link */
    .btn-link {
        font-size: 13px;
    }
}

/* RESPONSIVE - Extra Small */
@media (max-width: 360px) {
    .header-title {
        font-size: 14px;
    }

    .progress-tab {
        padding: 8px 6px;
        font-size: 11px;
    }

    .summary-value {
        font-size: 20px;
    }

    .summary-label {
        font-size: 9px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .fms-bar-label {
        width: 60px;
        font-size: 10px;
    }
}

/* =============================================
   DRAG & DROP - Estilos
   ============================================= */

.drag-hint-global {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.drag-hint-global svg {
    color: var(--primary-blue);
}

/* Exercise item con drag handle */
.exercise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.exercise-item:last-child {
    margin-bottom: 0;
}

.exercise-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(74, 123, 167, 0.15);
}

/* Drag handle */
.drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    cursor: grab;
    color: var(--gray-400);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.drag-handle:hover {
    color: var(--primary-blue);
    background: var(--light-blue);
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle svg {
    width: 18px;
    height: 18px;
}

/* Sortable states */
.sortable-ghost {
    opacity: 0.4;
    background: var(--light-blue) !important;
    border: 2px dashed var(--primary-blue) !important;
}

.sortable-chosen {
    box-shadow: 0 4px 12px rgba(74, 123, 167, 0.3);
    transform: scale(1.02);
}

.sortable-drag {
    background: white !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Exercise info en modo drag */
.exercise-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exercise-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.exercise-detail {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Notificacion de orden guardado */
.orden-notificacion {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.orden-notificacion.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.orden-notificacion.success {
    background: var(--success-green);
    color: white;
}

.orden-notificacion.error {
    background: var(--danger-red);
    color: white;
}

/* Responsive drag & drop */
@media (max-width: 480px) {
    .drag-hint-global {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .drag-handle {
        width: 32px;
        height: 32px;
    }

    .exercise-item {
        padding: 10px;
    }
}
