﻿:root {
    --md-primary: #6750A4; /* Color Material 3 */
    --md-surface: #FEF7FF;
    --md-on-surface: #1D1B20;
    --md-outline: #79747E;
}

.md-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f9;
    font-family: 'Roboto', sans-serif;
}

.md-card {
    background: var(--md-surface);
    padding: 2rem;
    border-radius: 28px; /* Bordes redondeados Material 3 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 320px;
    text-align: center;
}

/* Spinner Animado */
.md-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

    .md-spinner svg {
        animation: rotate 2s linear infinite;
        width: 100%;
        height: 100%;
    }

    .md-spinner .path {
        stroke: var(--md-primary);
        stroke-linecap: round;
        animation: dash 1.5s ease-in-out infinite;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Tipografía y Progreso */
.md-title {
    font-size: 1.5rem;
    color: var(--md-on-surface);
    margin: 0;
    font-weight: 500;
}

.md-subtitle {
    color: var(--md-outline);
    font-size: 0.9rem;
    margin: 0.5rem 0 1.5rem;
}

.md-progress-wrapper {
    text-align: left;
}

.md-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--md-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.md-linear-track {
    height: 4px;
    background: #E6E1E5;
    border-radius: 2px;
    overflow: hidden;
}

.md-linear-fill {
    height: 100%;
    background: var(--md-primary);
    transition: width 0.2s ease-in-out;
}
