/* Dashboard Interactivo - Estilos */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Métricas Principales */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.metric-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.metric-card.practices {
    border-left-color: #667eea;
}

.metric-card.practices::before {
    background: #667eea;
}

.metric-card.datasets {
    border-left-color: #f093fb;
}

.metric-card.datasets::before {
    background: #f093fb;
}

.metric-card.visualizations {
    border-left-color: #4facfe;
}

.metric-card.visualizations::before {
    background: #4facfe;
}

.metric-card.tools {
    border-left-color: #43e97b;
}

.metric-card.tools::before {
    background: #43e97b;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric-icon {
    font-size: 3em;
    opacity: 0.8;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.metric-label {
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.metric-progress {
    width: 100%;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
    transition: width 2s ease-in-out;
}

/* Progreso por Unidades */
.units-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.unit-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #667eea;
}

.unit-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.unit-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8em;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.unit-progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.unit-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #43e97b, #38f9d7);
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease-in-out;
}

.unit-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.topic-tag {
    background: #e8f5e8;
    color: #27ae60;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Stack Tecnológico */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.tech-category {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tech-category h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 15px;
}

.tech-name {
    font-weight: 500;
    color: #2c3e50;
}

.tech-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.tech-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 2s ease-in-out;
}

.tech-percentage {
    font-size: 0.9em;
    font-weight: bold;
    color: #667eea;
}

/* Análisis de Datasets */
.datasets-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.dataset-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.dataset-card:hover {
    transform: translateY(-3px);
}

.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dataset-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.dataset-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.dataset-status.completed {
    background: #e8f5e8;
    color: #27ae60;
}

.dataset-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dataset-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.stat-icon {
    font-size: 1.1em;
}

/* Logros */
.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.achievement {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.achievement.unlocked {
    border-left: 4px solid #f39c12;
}

.achievement.unlocked:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.achievement.locked {
    opacity: 0.5;
    border-left: 4px solid #bdc3c7;
}

.achievement-icon {
    font-size: 2.5em;
    opacity: 0.8;
}

.achievement-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.achievement-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ecf0f1;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #ecf0f1;
    background: white;
}

.timeline-item.completed .timeline-marker {
    background: #27ae60;
    border-color: #27ae60;
}

.timeline-item.current .timeline-marker {
    background: #f39c12;
    border-color: #f39c12;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.timeline-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin: 40px 0;
}

.dashboard-footer p {
    margin: 10px 0;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .metric-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .units-progress {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-stack {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .datasets-analysis {
        grid-template-columns: 1fr;
    }

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

    .tech-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .dashboard-container {
        padding: 0 15px;
    }
}




