.speed-tool-main { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

.speed-container {
    background: #0a0a0a; border: 1px solid #222; border-radius: 20px; padding: 40px;
    box-shadow: 0 10px 50px rgba(255, 62, 0, 0.1); display: flex; flex-direction: column; align-items: center;
}

/* --- VELOCÍMETRO --- */
.gauge-wrapper {
    position: relative; width: 250px; height: 250px; margin-bottom: 40px;
}

.gauge-circle {
    width: 100%; height: 100%; border-radius: 50%;
    background: conic-gradient(#222 0deg, #222 360deg);
    display: flex; justify-content: center; align-items: center;
    position: relative; box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Anillo de progreso animado */
.gauge-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, transparent 0deg);
    opacity: 0.8; transition: background 0.1s;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.gauge-cover {
    width: 85%; height: 85%; background: #0a0a0a; border-radius: 50%;
    position: absolute; z-index: 2; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}

#speedValue {
    font-family: 'Orbitron', sans-serif; font-size: 3.5rem;
    color: white; font-weight: 900; line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.unit { color: #666; font-weight: 700; font-size: 1rem; margin-top: 5px; }

.status-text {
    margin-top: 20px; color: var(--primary-color); font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;
}

/* --- ESTADÍSTICAS --- */
.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; width: 100%; margin-bottom: 30px;
}

.stat-box {
    background: #111; border: 1px solid #333; border-radius: 12px; padding: 15px;
    display: flex; align-items: center; gap: 15px; transition: border-color 0.3s;
}
.stat-box:hover { border-color: var(--primary-color); }

.stat-icon { font-size: 1.5rem; }

.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.7rem; color: #666; font-weight: 700; }
.stat-value { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; color: #fff; }

/* BOTÓN */
.embed-btn {
    width: 100%; max-width: 300px; background: linear-gradient(135deg, #ff3e00, #ff8c00);
    border: none; color: white; padding: 15px; border-radius: 10px;
    font-size: 1.2rem; cursor: pointer; font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 62, 0, 0.3); transition: all 0.2s;
}
.embed-btn:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(255, 62, 0, 0.5); }
.embed-btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; transform: none; }

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
}