/* ==================== INICIO DEL CSS - SUSPITOO ==================== */
/* Todo el estilo de la página empieza aquí */

body {
    background-color: #000;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 0;
    touch-action: none;
    zoom: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#particles-js,
#fallback-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: -10;
}

.FORMULARIO-CONTENEDOR {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 90%;
    max-width: 400px;
}

.CONTENEDOR-FORMULARIO {
    background-color: #000;
    padding: 20px;
    border-radius: 15px;
    position: relative;
}

.CONTENEDOR-FORMULARIO::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, blue, red);
    animation: BORDE-INFINITO 0.5s infinite linear;
    border-radius: 15px;
    z-index: -1;
}

.FORMULARIO {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.FORM-TITULO {
    color: #FFEB3B;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 15px blue, 0 0 30px red, 0 0 45px blue;
    animation: ESCRITURA 1s infinite;
    font-size: 36px;
}

.FORM-SUBTITULO {
    color: #00FFCC;
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    text-transform: uppercase;
}

.FORM-CONTENEDOR-CONTRASEÑA {
    position: relative;
    width: 100%;
    height: 48px;
    margin-bottom: 15px;
}

.FORM-INPUT {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    background-color: #111;
    color: #FFF;
    border-radius: 5px;
    box-sizing: border-box;
    height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#USUARIO-REGISTRO,
#USUARIO {
    text-align: center;
}

#CORREO-REGISTRO {
    text-align: center;
    max-width: 360px;
}

#CONTRASEÑA-REGISTRO,
#PASSWORD {
    padding: 12px 40px 12px 12px;
    text-align: center;
    text-transform: none !important;
}

.FORM-INPUT:focus {
    outline: none;
    box-shadow: 0 0 10px blue, 0 0 20px red;
}

.FORM-MONITO {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #00FFCC;
    cursor: pointer;
    line-height: 1;
}

.FORM-MONITO:hover {
    text-shadow: 0 0 10px blue, 0 0 20px red;
}

.FORM-TERMINOS {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    width: 100%;
}

.FORM-TERMINOS input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #00FFCC;
    cursor: pointer;
    transform: scale(1.2);
}

.LABEL-TERMINOS {
    display: flex;
    align-items: center;
    color: #FFF;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.TEXTO-TERMINOS {
    color: #FFF;
    margin-right: 5px;
}

.FORM-BOTON {
    padding: 8px 26px;
    background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #0000FF, #00FF00) border-box;
    color: #FFF;
    border: 4px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin: 15px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-size: 100% 100%, 400% 400%;
    animation: BORDE-BOTON-FLUIDO 0.5s infinite linear;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.5), 0 0 40px rgba(0, 255, 0, 0.3);
    transition: transform 0.3s ease;
}

.FORM-BOTON:hover {
    transform: scale(1.02);
}

.FORM-TEXTO {
    color: #FFF;
    text-align: center;
    margin: 5px 0;
    font-size: 20px;
}

.FORM-ENLACE {
    color: #00FFCC;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.FORM-ENLACE::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, blue, red);
    animation: SUBRAYADO 1s infinite alternate;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.FORM-ENLACE:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.FORM-ENLACE:hover {
    color: #FFEB3B;
    text-shadow: 0 0 10px blue, 0 0 20px red;
}

.MODAL {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 4000;
    backdrop-filter: blur(5px);
}

.MODAL-CONTENIDO {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    padding: 0;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    animation: MODAL-APPEAR 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.MODAL-CONTENIDO-TERMINOS {
    padding: 20px;
    text-align: center;
    max-width: 420px;
    width: 95%;
    animation: MODAL-APPEAR 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
}

.MODAL-HEADER {
    position: relative;
    background: #000;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
}

.MODAL-CERRAR {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #FFF;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: MODAL-CERRAR-INFINITO 1s ease-in-out infinite;
}

.MODAL-BODY {
    padding: 20px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    scrollbar-width: none;
    position: relative;
    flex: 1;
    touch-action: pan-y;
}

.MODAL-BODY .HR-TERMINOS:last-of-type {
    display: none;
}

.MODAL-BODY::-webkit-scrollbar {
    display: none;
}

.MODAL-FOOTER {
    background: #000;
    border-top: none;
    padding: 10px 20px;
    padding-top: 10px;
    flex-shrink: 0;
}

.BOTON-FIJO {
    position: relative;
    bottom: 0;
    background: #000;
    padding: 10px 20px;
    margin-top: 0;
    z-index: 10;
}

.TERMINOS-CONTENIDO {
    color: #FFF;
    font-size: 18px;
    line-height: 1.6;
}

.MODAL-INTRO {
    margin-bottom: 15px;
    text-align: justify;
}

.BIENVENIDO-RESPALDO {
    background: linear-gradient(45deg, #00FF00, #0000FF, #FFEB3B, #FF0000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: BIENVENIDO-GRADIENTE 2s ease-in-out infinite;
    display: inline-block;
    font-weight: bold;
}

.SECCION-TITULO {
    color: #00FFCC;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 18px;
    text-transform: uppercase;
    text-shadow: 0 0 10px blue;
}

.HR-TERMINOS {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FFCC, transparent);
    margin: 20px 0;
}

.LISTA-TERMINOS {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.LISTA-TERMINOS li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    text-align: justify;
}

.LISTA-SUB {
    margin: 10px 0 0 20px;
    list-style: none;
}

.LISTA-SUB li {
    padding-left: 15px;
    position: relative;
}

.LISTA-SUB li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #FFEB3B;
}

#MODAL-TERMINOS .FORM-TITULO {
    animation: none;
    opacity: 1;
}

.MODAL-WARNING {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 4000;
    backdrop-filter: blur(5px);
}

.MODAL-CONTENIDO-WARNING {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    animation: MODAL-APPEAR 0.3s ease-out;
}

.ICONO-WARNING {
    font-size: 48px;
    color: #FF0000;
    display: block;
    margin-bottom: 15px;
    animation: GLOW-WARNING 1s infinite alternate;
}

.WARNING-TITULO {
    color: #FFEB3B;
    margin: 10px 0;
    font-size: 20px;
    text-shadow: 0 0 10px #FF0000;
}

.WARNING-TEXTO {
    color: #FFF;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
}

/* ==================== MODAL CONFIRMACIÓN DE CÓDIGO - VERSIÓN RÁPIDA ==================== */
#MODAL-CONFIRMAR {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#MODAL-CONFIRMAR.active {
    opacity: 1;
    visibility: visible;
}

#MODAL-CONFIRMAR .modal-content {
    background: #000;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    width: 380px;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#MODAL-CONFIRMAR.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

#MODAL-CONFIRMAR h2 {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #FFEB3B;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
}

#MODAL-CONFIRMAR p {
    color: #FFF;
    font-size: 18px;
    margin: 15px 0;
}

#MODAL-CONFIRMAR #CODIGO-VERIFICACION {
    width: 100%;
    max-width: 300px;
    height: 60px;
    background: #111;
    border: none;
    border-radius: 8px;
    color: #FFF;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 12px;
    padding: 0 10px;
    margin: 20px auto;
    box-sizing: border-box;
}

#MODAL-CONFIRMAR #CODIGO-VERIFICACION:focus {
    outline: none;
    box-shadow: 0 0 10px blue, 0 0 20px red;
}

#MODAL-CONFIRMAR button {
    padding: 12px 40px;
    background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #0000FF, #00FF00) border-box;
    color: #FFF;
    border: 4px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px auto;
    animation: BORDE-BOTON-FLUIDO 0.5s infinite linear;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.5), 0 0 40px rgba(0, 255, 0, 0.3);
    transition: transform 0.3s ease;
}

#MODAL-CONFIRMAR button:hover {
    transform: scale(1.05);
}

#MODAL-CONFIRMAR p:last-of-type {
    font-size: 18px;
    color: #AAA;
    margin-top: 20px;
}

/* Resaltar el contador de 60 segundos */
#resend-message #countdown {
    color: #FFEB3B;
    text-shadow: 0 0 5px #FFFF00;
    font-weight: bold;
}

/* Fuerza mayúsculas visuales */
#USUARIO,
#CORREO-REGISTRO,
#USUARIO-REGISTRO {
    text-transform: uppercase;
}

/* Responsive para móviles pequeños (≤375px) - Tamaño original compacto */
@media (max-width: 375px) {
    .FORMULARIO-CONTENEDOR {
        width: 90%;
        max-width: 360px;
        box-sizing: border-box;
    }
    .CONTENEDOR-FORMULARIO {
        padding: 12px;
    }
    .FORMULARIO {
        padding: 8px;
    }
    .FORM-TITULO {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .FORM-SUBTITULO {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .FORM-INPUT {
        font-size: 16px;
        padding: 8px;
        height: 36px;
        margin-bottom: 8px;
    }
    .FORM-CONTENEDOR-CONTRASEÑA {
        height: 36px;
    }
    #PASSWORD,
    #CONTRASEÑA-REGISTRO {
        padding: 8px 30px 8px 8px;
    }
    .FORM-MONITO {
        font-size: 18px;
        right: 8px;
    }
    .FORM-BOTON {
        padding: 8px 20px;
        font-size: 16px;
        margin: 8px auto;
    }
    .FORM-TEXTO {
        font-size: 16px;
        margin: 5px 0;
    }
    .FORM-TERMINOS {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 8px 0;
    }
    .LABEL-TERMINOS {
        font-size: 12px;
        text-align: center;
    }
    .FORM-TERMINOS input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        transform: scale(1);
    }
    .MODAL-CONTENIDO-WARNING {
        padding: 20px;
        max-width: 280px;
    }
    .WARNING-TEXTO {
        font-size: 14px;
    }
    .MODAL-CONTENIDO-TERMINOS {
        max-height: 80vh;
        padding: 20px;
        max-width: 320px; /* Ajustado para no angostarse */
    }
    .MODAL-BODY {
        max-height: 40vh;
        padding-bottom: 20px;
    }
    .MODAL-CERRAR {
        top: 0;
    }
    input#CORREO-REGISTRO.FORM-INPUT,
    input#USUARIO.FORM-INPUT,
    input#USUARIO-REGISTRO.FORM-INPUT {
        font-size: 10.5px !important;
        line-height: 10.5px !important;
        text-transform: uppercase !important;
    }
    input#CORREO-REGISTRO.FORM-INPUT::placeholder,
    input#USUARIO.FORM-INPUT::placeholder,
    input#USUARIO-REGISTRO.FORM-INPUT::placeholder {
        text-transform: none;
        font-size: 16px;
        color: #999;
    }
    .MODAL-FOOTER {
        padding: 5px 10px;
        padding-top: 5px;
    }
    .BOTON-FIJO {
        margin-top: 0;
    }
    .MODAL-BODY .HR-TERMINOS:last-of-type {
        display: none;
    }
    #MODAL-CONFIRMAR .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    #MODAL-CONFIRMAR h2 {
        font-size: 28px;
    }
    #MODAL-CONFIRMAR #CODIGO-VERIFICACION {
        height: 55px;
        font-size: 28px;
        letter-spacing: 8px;
    }
    #MODAL-CONFIRMAR button {
        padding: 10px 30px;
        font-size: 18px;
    }
    #resend-message #countdown {
        font-size: 18px; /* Ajuste para móvil pequeño */
    }
}

/* BLOQUE DESACTIVADO: Este media query hacía que el login se viera más grande al cargar la página */
/* Ahora está comentado para que el formulario de Iniciar Sesión siempre cargue con la altura pequeña */
 /*
@media (min-width: 376px) and (max-width: 768px) {
    .FORMULARIO-CONTENEDOR {
        max-height: none;
        height: auto;
        width: 90%;
        max-width: 380px;
    }
    .CONTENEDOR-FORMULARIO {
        padding: 30px 25px;
    }
    .FORM-TITULO {
        font-size: 40px;
        margin-bottom: 25px;
    }
    .FORM-SUBTITULO {
        font-size: 34px;
        margin-bottom: 30px;
    }
    .FORM-INPUT {
        height: 55px;
        padding: 15px;
        margin-bottom: 20px;
        font-size: 18px;
    }
    .FORM-CONTENEDOR-CONTRASEÑA {
        height: 55px;
    }
    .FORM-MONITO {
        font-size: 28px;
        right: 15px;
    }
    .FORM-BOTON {
        padding: 12px 40px;
        font-size: 22px;
        margin: 20px auto;
    }
    .FORM-TEXTO {
        font-size: 22px;
        margin: 10px 0;
    }
    .FORM-TERMINOS {
        margin: 20px 0;
    }
    .LABEL-TERMINOS {
        font-size: 16px;
    }
    .FORM-TERMINOS input[type="checkbox"] {
        width: 24px;
        height: 24px;
        transform: scale(1.3);
    }
}
 */

/* Responsive para PC (>768px) - Ajustes para modal términos */
@media (min-width: 769px) {
    .MODAL-CONTENIDO-TERMINOS {
        max-width: 600px;
        padding: 40px;
    }
    #resend-message #countdown {
        font-size: 20px; /* Ajuste para PC */
    }
}

/* Animaciones */
@keyframes BORDE-INFINITO {
    0% { background: linear-gradient(45deg, blue, red); }
    50% { background: linear-gradient(45deg, red, blue); }
    100% { background: linear-gradient(45deg, blue, red); }
}

@keyframes BORDE-BOTON-FLUIDO {
    0% { background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #0000FF, #00FF00) border-box; }
    50% { background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #00FF00, #0000FF) border-box; }
    100% { background: linear-gradient(#000, #000) padding-box, linear-gradient(45deg, #0000FF, #00FF00) border-box; }
}

@keyframes SUBRAYADO {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes ESCRITURA {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); }
    10% { opacity: 1; clip-path: inset(0 87.5% 0 0); }
    20% { clip-path: inset(0 75% 0 0); }
    30% { clip-path: inset(0 62.5% 0 0); }
    40% { clip-path: inset(0 50% 0 0); }
    50% { clip-path: inset(0 37.5% 0 0); }
    60% { clip-path: inset(0 25% 0 0); }
    70% { clip-path: inset(0 12.5% 0 0); }
    80% { clip-path: inset(0 0 0 0); }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes MODAL-APPEAR {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes GLOW-WARNING {
    0% { text-shadow: 0 0 10px #FF0000; }
    100% { text-shadow: 0 0 20px #FF0000, 0 0 30px #FF0000; }
}

@keyframes BIENVENIDO-GRADIENTE {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes MODAL-CERRAR-INFINITO {
    0% { background: rgba(0, 0, 0, 0.5); transform: rotate(0deg); }
    50% { background: rgba(255, 0, 0, 0.8); transform: rotate(90deg); }
    100% { background: rgba(0, 0, 0, 0.5); transform: rotate(0deg); }
}

@keyframes pulso-titulo {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.1); }
}

#MODAL-TERMINOS .FORM-TITULO .icono-titulo-principal {
    display: inline-block;
    animation: pulso-titulo 2.5s infinite ease-in-out;
    font-size: 2.2em;
    color: #00FFCC;
    margin-right: 12px;
    vertical-align: middle;
    text-shadow: none;
}

/* ==================== FINAL DEL CSS - SUSPITOO ==================== */
/* Todo el estilo de la página termina aquí */