/* ========== GRÁFICO DE CALOR DE ACTIVIDAD ========== */
.activity-heatmap {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.activity-heatmap h3 {
    color: #0b5f32;
    margin-bottom: 10px;
}

.heatmap-container {
    margin-top: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(30, minmax(18px, 1fr));
    gap: 2px;
    margin-bottom: 15px;
    min-width: max-content;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 5px;
}

.heatmap-day {
    aspect-ratio: 1;
    min-width: 16px;
    min-height: 16px;
    max-width: 22px;
    max-height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.heatmap-day:hover {
    transform: scale(1.2);
    z-index: 10;
}

.heatmap-none {
    background: #ebedf0;
    color: #6c757d;
}

.heatmap-low {
    background: #c6e48b;
    color: #2d2d2d;
}

.heatmap-medium {
    background: #7bc96f;
    color: #ffffff;
}

.heatmap-medium-high {
    background: #239a3b;
    color: #ffffff;
}

.heatmap-high {
    background: #196127;
    color: #ffffff;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85em;
    color: #6c757d;
}

.legend-colors {
    display: flex;
    gap: 4px;
}

/* ========== ANÁLISIS DE FORTALEZAS Y DEBILIDADES ========== */
.strengths-analysis {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.strengths-analysis h3 {
    color: #0b5f32;
    margin-bottom: 20px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.strengths-box, .weaknesses-box {
    padding: 15px;
    border-radius: 8px;
    border: 2px solid;
}

.strengths-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.weaknesses-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
}

.strengths-box h4, .weaknesses-box h4 {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.strengths-box h4 {
    color: #155724;
}

.weaknesses-box h4 {
    color: #856404;
}

.strengths-box ul, .weaknesses-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strengths-box li, .weaknesses-box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.strengths-box li:last-child, .weaknesses-box li:last-child {
    border-bottom: none;
}

.strengths-box strong {
    color: #155724;
}

.weaknesses-box strong {
    color: #856404;
}

/* Modo oscuro */
body.dark-mode .activity-heatmap,
body.dark-mode .strengths-analysis {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-color: #404040;
}

body.dark-mode .heatmap-none {
    background: #404040;
    color: #a0a0a0;
}

body.dark-mode .strengths-box {
    background: linear-gradient(135deg, #1e3a1e 0%, #2d4a2d 100%);
    border-color: #28a745;
}

body.dark-mode .weaknesses-box {
    background: linear-gradient(135deg, #3a2e1e 0%, #4a3d2d 100%);
    border-color: #ffc107;
}

@media (max-width: 768px) {
    .heatmap-grid {
        grid-template-columns: repeat(30, minmax(15px, 1fr));
        gap: 2px;
    }
    
    .heatmap-day {
        min-width: 15px;
        min-height: 15px;
        max-width: 20px;
        max-height: 20px;
        font-size: 0.55em;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .heatmap-grid {
        grid-template-columns: repeat(30, minmax(12px, 1fr));
        gap: 1px;
    }
    
    .heatmap-day {
        min-width: 12px;
        min-height: 12px;
        max-width: 18px;
        max-height: 18px;
        font-size: 0.5em;
    }
}

