/* Reset local para el proyecto */
.speedtest-page {
    background: #000;
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Fondo similar al Index */
#canvas-particles {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.speedtest-blob {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    pointer-events: none;
}

.blob-1 { top: -10%; right: -10%; }
.blob-2 { bottom: -10%; left: -10%; }

.speedtest-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

/* Barra de Progreso Global */
.global-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 2000;
}

#global-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #00d2ff);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.8);
    transition: width 0.3s ease;
}

/* El Medidor Central */
.gauge-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.gauge-svg {
    transform: rotate(-90deg);
}

.gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 4;
}

.gauge-fill {
    fill: none;
    stroke: #0d6efd;
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.5));
}

.speed-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.speed-number {
    font-size: 5.5rem;
    font-weight: 200;
    letter-spacing: -3px;
    line-height: 1;
}

.speed-unit {
    font-size: 0.9rem;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 5px;
    font-weight: 700;
}

/* Resultados */
.results-container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Badge de Simulación */
.sim-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 100;
}

.sim-badge {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    color: #0d6efd;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-trigger:hover {
    color: #fff;
    transform: scale(1.2);
    transition: 0.3s;
}

.sim-info-box {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    padding: 15px !important;
    background: rgba(15, 17, 19, 0.95) !important;
    border: 1px solid rgba(13, 110, 253, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sim-info-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
    pointer-events: all;
}

@media (max-width: 768px) {
    .sim-info-box {
        width: 250px;
    }
}

.result-item {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }
    
    .speed-number {
        font-size: 4.5rem;
    }
    
    .gauge-container {
        width: 280px;
        height: 280px;
    }
}

.result-item.active {
    border-color: rgba(13, 110, 253, 0.4);
    background: rgba(13, 110, 253, 0.05);
}

.result-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Botón */
.action-container {
    margin-top: 50px;
}

.btn-start {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.4s ease;
}

.btn-start:hover:not(:disabled) {
    background: #fff;
    color: #000;
    border-color: #fff;
}
