/* =========================================================
   CODERFAST — DARK PREMIUM V2
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #050506;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(229, 9, 20, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(140, 0, 10, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050506 0%,
            #09090b 45%,
            #0d0d10 100%
        );

    overflow-x: hidden;
}


/* =========================================================
   FONDO / ATMÓSFERA
   ========================================================= */

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;
}


body::before {
    z-index: 0;

    background-image:
        radial-gradient(
            circle,
            rgba(229, 9, 20, 0.6) 1px,
            transparent 1.5px
        ),
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.09) 1px,
            transparent 1.5px
        );

    background-size:
        100px 100px,
        160px 160px;

    opacity: 0.24;

    animation:
        moverParticulas 26s linear infinite;
}


body::after {
    z-index: 0;

    background:
        linear-gradient(
            115deg,
            transparent 20%,
            rgba(229, 9, 20, 0.025) 42%,
            rgba(229, 9, 20, 0.07) 50%,
            transparent 60%
        );

    opacity: 0.6;

    animation:
        brilloFondo 9s ease-in-out infinite;
}


@keyframes moverParticulas {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100px);
    }

}


@keyframes brilloFondo {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.8;
    }

}


/* =========================================================
   N FLOTANTES DECORATIVAS
   ========================================================= */

.background-effects {
    position: fixed;
    inset: 0;

    z-index: 1;

    overflow: hidden;
    pointer-events: none;
}


.floating-n {
    position: absolute;

    display: block;

    font-size: clamp(70px, 8vw, 145px);
    font-weight: 1000;
    font-family: Arial Black, Arial, sans-serif;

    color: rgba(229, 9, 20, 0.045);

    user-select: none;

    filter:
        blur(0.2px)
        drop-shadow(
            0 0 25px rgba(229, 9, 20, 0.06)
        );

    animation:
        flotarN 14s ease-in-out infinite;
}


.n1 {
    top: 8%;
    left: 3%;
    transform: rotate(-10deg);
}


.n2 {
    top: 55%;
    left: 8%;
    font-size: 90px;
    animation-delay: -4s;
}


.n3 {
    top: 13%;
    right: 5%;
    transform: rotate(9deg);
    animation-delay: -8s;
}


.n4 {
    bottom: 6%;
    right: 10%;
    font-size: 110px;
    animation-delay: -2s;
}


.n5 {
    top: 43%;
    right: 37%;
    font-size: 80px;
    opacity: 0.5;
    animation-delay: -6s;
}


@keyframes flotarN {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -20px;
    }

}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.container {
    position: relative;
    z-index: 3;

    width: min(1120px, 92%);

    margin: 0 auto;

    padding:
        35px 0
        70px;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 34px;
}


.logo {
    display: flex;
    align-items: center;

    gap: 13px;
}


.logo-mark {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(229, 9, 20, 0.98),
            rgba(110, 0, 7, 0.95)
        );

    border:
        1px solid rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;

    box-shadow:
        0 8px 28px rgba(229, 9, 20, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}


.logo-text {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.logo-text strong {
    font-size: 16px;

    letter-spacing: 2px;

    font-weight: 900;
}


.logo-text small {
    color: #6e6e78;

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 700;
}


.online {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        9px
        13px;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #9c9ca5;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.status-dot,
.estado-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #e50914;

    box-shadow:
        0 0 7px #e50914,
        0 0 15px rgba(229, 9, 20, 0.65);

    animation:
        pulsoEstado 2.2s ease-in-out infinite;
}


@keyframes pulsoEstado {

    0%,
    100% {
        opacity: 0.65;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }

}


/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

.panel {
    position: relative;

    overflow: hidden;

    padding: 44px;

    border-radius: 26px;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    background:
        linear-gradient(
            145deg,
            rgba(17, 17, 20, 0.97),
            rgba(7, 7, 9, 0.97)
        );

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.56),
        0 0 45px rgba(229, 9, 20, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    backdrop-filter:
        blur(18px);
}


.panel::before {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    top: -220px;
    right: -100px;

    border-radius: 50%;

    background:
        rgba(229, 9, 20, 0.18);

    filter:
        blur(110px);

    pointer-events: none;
}


.panel::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    bottom: -190px;
    left: 15%;

    border-radius: 50%;

    background:
        rgba(229, 9, 20, 0.07);

    filter:
        blur(100px);

    pointer-events: none;
}


/* =========================================================
   TEXTO PRINCIPAL
   ========================================================= */

.estado {
    position: relative;
    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 25px;

    padding:
        9px
        14px;

    border-radius: 999px;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    background:
        rgba(255, 255, 255, 0.025);

    color: #c5c5cc;

    font-size: 12px;
}


h1 {
    position: relative;
    z-index: 2;

    max-width: 790px;

    margin-bottom: 16px;

    font-size:
        clamp(
            35px,
            5vw,
            58px
        );

    line-height: 1.02;

    letter-spacing: -2px;

    font-weight: 850;
}


h1 span {
    display: block;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #c4c4c9
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


.descripcion {
    position: relative;
    z-index: 2;

    margin-bottom: 34px;

    color: #8f8f99;

    font-size: 15px;
}


/* =========================================================
   TARJETAS DE ACCIÓN
   ========================================================= */

.acciones {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 15px;

    margin-bottom: 30px;
}


.accion {
    position: relative;

    min-height: 158px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding:
        22px
        15px;

    border-radius: 19px;

    border:
        1px solid rgba(255, 255, 255, 0.075);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.032),
            rgba(255, 255, 255, 0.012)
        );

    color: #d9d9df;

    cursor: pointer;

    outline: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.028);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}


.accion::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    opacity: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(229, 9, 20, 0.15),
            transparent 60%
        );

    transition:
        opacity 0.25s ease;
}


.accion:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(229, 9, 20, 0.45);

    color: #ffffff;

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.30),
        0 0 28px rgba(229, 9, 20, 0.09);
}


.accion:hover::before {
    opacity: 1;
}


.accion.activa {
    transform:
        translateY(-3px);

    border-color:
        rgba(229, 9, 20, 0.9);

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(229, 9, 20, 0.14),
            rgba(255, 255, 255, 0.015)
        );

    box-shadow:
        0 0 0 1px rgba(229, 9, 20, 0.18),
        0 17px 35px rgba(0, 0, 0, 0.28),
        0 0 30px rgba(229, 9, 20, 0.17);
}


.accion.activa::before {
    opacity: 1;
}


/* ICONO SVG */

.accion-icono {
    position: relative;
    z-index: 2;

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 13px;

    border:
        1px solid rgba(255, 255, 255, 0.07);

    background:
        rgba(255, 255, 255, 0.025);

    color: #a7a7af;

    transition:
        0.25s ease;
}


.accion-icono svg {
    width: 25px;
    height: 25px;
}


.accion:hover .accion-icono,
.accion.activa .accion-icono {
    color: #ffffff;

    border-color:
        rgba(229, 9, 20, 0.40);

    background:
        rgba(229, 9, 20, 0.11);

    box-shadow:
        0 0 22px rgba(229, 9, 20, 0.13);
}


.accion-titulo {
    position: relative;
    z-index: 2;

    display: block;

    margin: 0;

    color: inherit;

    font-size: 12px;

    font-weight: 850;

    letter-spacing: 0.9px;
}


.accion-descripcion {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 8px;

    color: #66666f;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: 0;
}


.accion.activa .accion-descripcion,
.accion:hover .accion-descripcion {
    color: #92929b;
}


/* =========================================================
   CAMPO DE CONSULTA
   ========================================================= */

.consulta {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr 205px;

    gap: 12px;

    margin-top: 8px;
}


.input-wrapper {
    position: relative;

    display: flex;

    align-items: center;
}


.input-icon {
    position: absolute;

    left: 18px;

    width: 20px;
    height: 20px;

    color: #585861;

    pointer-events: none;

    transition:
        color 0.2s ease;
}


.input-wrapper:focus-within .input-icon {
    color: #d31520;
}


#correo {
    width: 100%;

    height: 60px;

    padding:
        0
        18px
        0
        51px;

    border-radius: 15px;

    border:
        1px solid rgba(255, 255, 255, 0.075);

    outline: none;

    background:
        rgba(4, 4, 6, 0.72);

    color: #ffffff;

    font-size: 15px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.018);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


#correo:hover {
    border-color:
        rgba(255, 255, 255, 0.11);
}


#correo:focus {
    border-color:
        rgba(229, 9, 20, 0.72);

    background:
        rgba(6, 6, 8, 0.93);

    box-shadow:
        0 0 0 4px rgba(229, 9, 20, 0.065),
        0 0 25px rgba(229, 9, 20, 0.07);
}


#correo::placeholder {
    color: #55555f;
}


#consultar {
    position: relative;

    height: 60px;

    border: none;

    border-radius: 15px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #e50914,
            #a1060e
        );

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(229, 9, 20, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}


#consultar::before {
    content: "";

    position: absolute;

    top: 0;
    left: -140%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            100deg,
            transparent,
            rgba(255, 255, 255, 0.18),
            transparent
        );

    transform:
        skewX(-18deg);

    transition:
        left 0.55s ease;
}


#consultar:hover:not(:disabled)::before {
    left: 150%;
}


#consultar:hover:not(:disabled) {
    transform:
        translateY(-2px);

    box-shadow:
        0 15px 38px rgba(229, 9, 20, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


#consultar:active:not(:disabled) {
    transform:
        translateY(0);
}


#consultar:disabled {
    opacity: 0.28;

    cursor: not-allowed;

    box-shadow: none;
}


/* =========================================================
   RESULTADO
   ========================================================= */

.resultado {
    position: relative;
    z-index: 2;

    min-height: 145px;

    margin-top: 23px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 27px;

    border-radius: 18px;

    border:
        1px dashed rgba(255, 255, 255, 0.075);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            rgba(0, 0, 0, 0.08)
        );

    color: #85858e;

    text-align: center;

    transition:
        border-color 0.3s ease,
        background 0.3s ease;
}


.resultado-inicial {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;
}


.resultado-inicial strong {
    color: #9f9fa8;

    font-size: 13px;

    font-weight: 700;
}


.resultado-inicial span {
    color: #5c5c64;

    font-size: 12px;
}


.resultado-icono {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 5px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    background:
        rgba(255, 255, 255, 0.02);

    color: #62626b;
}


.resultado-icono svg {
    width: 20px;
    height: 20px;
}


/* =========================================================
   RESULTADOS EXITOSOS
   ========================================================= */

.resultado-exito {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 11px;

    width: 100%;
}


.check-premium {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 3px;

    border-radius: 50%;

    border:
        1px solid rgba(229, 9, 20, 0.48);

    background:
        rgba(229, 9, 20, 0.09);

    color: #ffffff;

    box-shadow:
        0 0 26px rgba(229, 9, 20, 0.16);

    animation:
        aparecerCheck 0.4s ease;
}


.check-premium svg {
    width: 23px;
    height: 23px;
}


@keyframes aparecerCheck {

    from {
        transform:
            scale(0.6);

        opacity: 0;
    }

    to {
        transform:
            scale(1);

        opacity: 1;
    }

}


.resultado-titulo {
    color: #ffffff;

    font-size: 15px;

    font-weight: 800;
}


.resultado-subtitulo {
    color: #777780;

    font-size: 12px;
}


/* =========================================================
   BOTÓN RESULTADO
   ========================================================= */

.boton-resultado {
    min-height: 51px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 7px;

    padding:
        0
        27px;

    border-radius: 13px;

    color: #ffffff;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #e50914,
            #8d050c
        );

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 0.9px;

    box-shadow:
        0 10px 28px rgba(229, 9, 20, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.boton-resultado:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 15px 36px rgba(229, 9, 20, 0.34);
}


/* =========================================================
   CÓDIGO DE VERIFICACIÓN
   ========================================================= */

.codigo-verificacion {
    width: fit-content;

    margin:
        10px auto
        5px;

    padding:
        16px
        30px;

    border-radius: 14px;

    border:
        1px solid rgba(229, 9, 20, 0.48);

    background:
        linear-gradient(
            145deg,
            rgba(229, 9, 20, 0.09),
            rgba(255, 255, 255, 0.015)
        );

    color: #ffffff;

    font-size:
        clamp(
            28px,
            5vw,
            38px
        );

    font-weight: 900;

    letter-spacing: 9px;

    text-align: center;

    font-variant-numeric:
        tabular-nums;

    box-shadow:
        0 0 28px rgba(229, 9, 20, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


/* =========================================================
   BÚSQUEDA / LOADING
   ========================================================= */

.loader-premium {
    width: 36px;
    height: 36px;

    margin:
        0 auto
        15px;

    border:
        2px solid rgba(255, 255, 255, 0.08);

    border-top-color:
        #e50914;

    border-radius: 50%;

    animation:
        girarLoader 0.75s linear infinite;

    box-shadow:
        0 0 18px rgba(229, 9, 20, 0.12);
}


@keyframes girarLoader {

    to {
        transform:
            rotate(360deg);
    }

}


/* =========================================================
   ERROR / SIN RESULTADOS
   ========================================================= */

.resultado-error {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;
}


.error-icono {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        1px solid rgba(229, 9, 20, 0.28);

    background:
        rgba(229, 9, 20, 0.055);

    color: #d8d8dd;
}


.error-icono svg {
    width: 20px;
    height: 20px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .container {
        width: 94%;

        padding:
            20px 0
            45px;
    }


    .header {
        margin-bottom: 22px;
    }


    .logo-mark {
        width: 39px;
        height: 39px;
    }


    .logo-text strong {
        font-size: 14px;
    }


    .online {
        font-size: 9px;

        padding:
            8px
            10px;
    }


    .panel {
        padding:
            27px
            19px;

        border-radius: 21px;
    }


    h1 {
        font-size:
            clamp(
                34px,
                9vw,
                46px
            );

        letter-spacing: -1.5px;
    }


    .acciones {
        grid-template-columns:
            1fr;
    }


    .accion {
        min-height: 115px;

        display: grid;

        grid-template-columns:
            48px 1fr;

        grid-template-rows:
            auto auto;

        column-gap: 13px;

        text-align: left;

        align-items: center;

        justify-items: start;

        padding:
            18px;
    }


    .accion-icono {
        grid-column: 1;
        grid-row: 1 / 3;

        margin: 0;
    }


    .accion-titulo {
        grid-column: 2;
        grid-row: 1;

        align-self: end;
    }


    .accion-descripcion {
        grid-column: 2;
        grid-row: 2;

        align-self: start;

        margin-top: 3px;
    }


    .consulta {
        grid-template-columns:
            1fr;
    }


    #consultar {
        width: 100%;
    }


    .floating-n {
        opacity: 0.55;
    }


    .n2,
    .n5 {
        display: none;
    }

}


@media (max-width: 480px) {

    .online {
        letter-spacing: 0.8px;
    }


    .logo-text small {
        display: none;
    }


    .panel {
        padding:
            23px
            15px;
    }


    h1 {
        font-size:
            35px;
    }


    .estado {
        font-size: 11px;
    }


    .codigo-verificacion {
        letter-spacing: 6px;

        padding:
            14px
            20px;
    }

}


/* =========================================================
   ACCESIBILIDAD / REDUCIR MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;
    }

}

/* =========================================================
   TÍTULO PRINCIPAL — PREMIUM
   ========================================================= */

.hero-title {
    position: relative;
    z-index: 2;

    display: block;

    max-width: 900px;

    margin-bottom: 16px;

    font-size: clamp(30px, 3.8vw, 46px);

    line-height: 1.08;

    letter-spacing: -1.3px;

    font-weight: 850;

    color: #ffffff;

    opacity: 0;

    transform: translateY(14px);

    animation:
        tituloEntrada 0.75s
        cubic-bezier(0.16, 1, 0.3, 1)
        forwards;
}


/* PARTE DESTACADA */

.hero-accent {
    position: relative;

    display: inline-block;

    color: transparent;

    background:
        linear-gradient(
            90deg,
            #ff2a35 0%,
            #e50914 45%,
            #ff5962 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 30px rgba(229, 9, 20, 0.13);
}


/* PEQUEÑO DESTELLO */

.hero-accent::after {
    content: "";

    position: absolute;

    left: 5%;
    right: 5%;
    bottom: -5px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(229, 9, 20, 0.75),
            transparent
        );

    transform: scaleX(0);

    transform-origin: center;

    animation:
        lineaTitulo 0.8s ease forwards;

    animation-delay: 0.55s;
}


/* ENTRADA */

@keyframes tituloEntrada {

    from {
        opacity: 0;

        transform: translateY(14px);

        filter: blur(5px);
    }

    to {
        opacity: 1;

        transform: translateY(0);

        filter: blur(0);
    }

}


/* LÍNEA SUTIL */

@keyframes lineaTitulo {

    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }

}


/* MOBILE */

@media (max-width: 760px) {

    .hero-title {
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.08;
    }

}