.speed-test-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.speed-test-title {
    text-align: center;
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.speed-test-main {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.download-section,
.upload-section {
    margin-bottom: 25px;
}

.speed-label {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.speed-value {
    font-size: 3.5em;
    font-weight: 900;
    margin: 15px 0;
    transition: all 0.3s ease;
    min-height: 60px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.latency-section {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

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

.latency-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.latency-value {
    font-size: 1.8em;
    font-weight: 700;
}

.client-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-label {
    opacity: 0.8;
}

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

.test-button {
    background: linear-gradient(45deg, #ff6b6b, #ffa36c);
    border: none;
    color: white;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    margin-bottom: 20px;
}

.test-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.test-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.2em;
}

.test-stats {
    font-size: 0.9em;
    opacity: 0.9;
}

.test-status {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Animación para los números */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.speed-value.animating {
    animation: pulse 0.5s ease infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .speed-test-container {
        padding: 20px;
        margin: 20px;
    }

    .speed-value {
        font-size: 2.5em;
    }

    .test-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}