* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #020617, #0f172a, #082f49);
    color: white;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.particulas {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    top: 0;
    left: 0;
}

.particulas span {
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: subirParticulas linear infinite;
    bottom: -120px;
}

.particulas span:nth-child(1) { left: 10%; animation-duration: 10s; }
.particulas span:nth-child(2) { left: 25%; width: 18px; height: 18px; animation-duration: 13s; }
.particulas span:nth-child(3) { left: 45%; animation-duration: 9s; }
.particulas span:nth-child(4) { left: 60%; width: 20px; height: 20px; animation-duration: 16s; }
.particulas span:nth-child(5) { left: 80%; animation-duration: 11s; }

@keyframes subirParticulas {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    to {
        transform: translateY(-1200px) rotate(720deg);
        opacity: 0;
    }
}

.hero {
    text-align: center;
    padding: 45px 20px 25px;
}

.badge {
    display: inline-block;
    padding: 10px 18px;
    margin-bottom: 15px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid #00d4ff;
    color: #a5f3fc;
    font-weight: 900;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    animation: pulse 2s infinite;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow:
        0 0 10px #00d4ff,
        0 0 25px #00d4ff;
    animation: neonTitulo 3s infinite alternate;
}

.subtitulo {
    color: #c7e7ff;
    font-size: 18px;
    margin-top: 10px;
}

.botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 30px;
}

button {
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(37,99,235,0.4);
    text-transform: uppercase;
}

button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 20px #38bdf8,
        0 0 40px rgba(56,189,248,0.6);
    letter-spacing: 1px;
}

.test-global {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.test-global:hover {
    box-shadow:
        0 0 25px #22c55e,
        0 0 55px rgba(34,197,94,0.5);
}

hr {
    display: none;
}

#resultados {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 25px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow:
        0 0 35px rgba(0, 212, 255, 0.22),
        0 0 90px rgba(37, 99, 235, 0.18);
    animation: entradaCardPro 0.75s ease;
    transition: 0.4s;
}

#resultados:empty {
    display: none;
}

#resultados:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 45px rgba(0, 212, 255, 0.45),
        0 0 120px rgba(37, 99, 235, 0.25);
}

#resultados h3 {
    border: none !important;
    text-decoration: none;
    font-size: 32px;
    text-align: center;
    color: #00eaff;
    text-shadow: 0 0 20px #00eaff;
    animation: tituloVivo 2s infinite alternate;
    margin-bottom: 35px;
}

#resultados h3::after {
    content: "";
    display: block;
    width: 180px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #00d4ff, #22c55e, #2563eb);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 16px;
    border: 2px solid #00d4ff;
    border-radius: 14px;
    outline: none;
    font-size: 1rem;
    background: #e2e8f0;
    transition: 0.3s;
}

input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 15px #00d9ff;
}

#resultados button {
    margin-top: 10px;
    margin-right: 10px;
}

.resultado-card {
    position: relative;
    margin-top: 22px;
    padding: 20px 24px 20px 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #e2e8f0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.12),
        inset 0 0 18px rgba(255,255,255,0.03);
    animation: aparecerResultado 0.5s ease;
}

.resultado-card::before {
    content: "⚡";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 212, 255, 0.18);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
}

.resultado-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 0 35px rgba(0, 212, 255, 0.22),
        0 0 60px rgba(37, 99, 235, 0.15);
    transition: 0.35s ease;
}

.resultado-card .valor {
    color: #00d4ff;
    font-size: 24px;
    font-weight: 900;
}

.resultado-card.error {
    border-color: rgba(248, 113, 113, 0.5);
}

.resultado-card.error::before {
    content: "⚠️";
    background: rgba(248, 113, 113, 0.18);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.45);
}

.testing-card {
    position: relative;
    margin-top: 25px;
    padding: 22px 24px 22px 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.85), rgba(2, 44, 34, 0.8));
    border: 1px solid rgba(34,197,94,0.35);
    box-shadow:
        0 0 25px rgba(34,197,94,0.24),
        inset 0 0 18px rgba(255,255,255,0.03);
    animation: aparecerResultado 0.5s ease, respirar 3s infinite ease-in-out;
}

.testing-card::before {
    content: "🧪";
    position: absolute;
    left: 16px;
    top: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(34,197,94,0.18);
    box-shadow: 0 0 18px rgba(34,197,94,0.35);
}

.testing-card h4 {
    color: #86efac;
    font-size: 20px;
    margin-bottom: 10px;
}

.testing-card p {
    margin: 8px 0;
}

.mascota {
    position: fixed;
    right: 35px;
    bottom: 35px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 42px;
    background: rgba(15, 23, 42, 0.78);
    border: 2px solid rgba(0, 212, 255, 0.55);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.6),
        inset 0 0 18px rgba(0, 212, 255, 0.18);
    animation: robotFlotando 3s ease-in-out infinite;
    z-index: 20;
}

.mascota::after {
    content: "Testing listo ✅";
    position: absolute;
    right: 85px;
    bottom: 22px;
    width: 140px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    color: #e0f2fe;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}

@keyframes aparecerResultado {
    from {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes entradaCardPro {
    from {
        opacity: 0;
        transform: translateY(45px) scale(0.94);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes tituloVivo {
    from {
        transform: scale(1);
        text-shadow: 0 0 15px #00eaff;
    }

    to {
        transform: scale(1.03);
        text-shadow: 0 0 35px #00eaff, 0 0 60px #2563eb;
    }
}

@keyframes neonTitulo {
    from {
        text-shadow:
            0 0 10px #00d4ff,
            0 0 20px #00d4ff;
    }

    to {
        text-shadow:
            0 0 20px #00d4ff,
            0 0 40px #00d4ff,
            0 0 70px #2563eb;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes respirar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

@keyframes robotFlotando {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-18px) rotate(4deg);
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#00d4ff, #2563eb);
    border-radius: 20px;
}

@media (max-width: 700px) {
    h1 {
        font-size: 2.5rem;
    }

    #resultados {
        width: 94%;
        padding: 24px;
    }

    .mascota {
        display: none;
    }
}