/* --- RESET Y CONFIGURACIÓN BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- ADAPTACIÓN ADAPTATIVA DEL ESTADIO DE FONDO --- */
.pantalla-presentacion {
    width: 100vw;
    height: 100dvh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (orientation: portrait) {
    .pantalla-presentacion { background-image: url('../img/fondoVertical.jpg'); }
}
@media (orientation: landscape) {
    .pantalla-presentacion { background-image: url('../img/fondoHorizontal.jpg'); }
}

/* --- CAPA DE INTRODUCCIÓN NEGRA --- */
.intro-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.intro-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.logo-mundial {
    width: 110px;
    height: auto;
    opacity: 0;
    transform: scale(0.85);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-visible {
    opacity: 1;
    transform: scale(1);
}

.netflix-neon-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
}

.texto-visible {
    animation: entradaTextoFijo 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes entradaTextoFijo {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cortina-oculta {
    opacity: 0;
    pointer-events: none;
}

/* --- TARJETAS CONTENEDORAS GLASSMORPHISM --- */
.wrapper-login {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px 32px;
    width: 90%;
    max-width: 375px;
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    display: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-activo {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.login-retirado {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
}

/* --- ELEMENTOS FORMULARIO APPLE UI --- */
.logo-login-card {
    width: 64px;
    height: auto;
    margin-bottom: 16px;
}

h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.grupo-input {
    margin-bottom: 14px;
    text-align: left;
}

.grupo-input input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.grupo-input input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* INTERRUPTOR TOGGLE TIPO APPLE */
.fila-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 24px;
    margin-top: 18px;
}

.switch-apple {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 28px;
}

.switch-apple input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-apple {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 34px;
}

.slider-apple:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-apple {
    background-color: #34c759;
}

input:checked + .slider-apple:before {
    transform: translateX(18px);
}

/* BOTONES DE ACCIÓN */
.btn-enviar, .btn-regresar {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-enviar {
    background: #ffffff;
    color: #000000;
}

.btn-enviar:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-enviar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-regresar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    margin-top: 16px;
}

.btn-regresar:active {
    transform: scale(0.98);
}

.alerta-error {
    background: rgba(255, 59, 48, 0.16);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff453a;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}

/* --- MÓDULO CUENTAS ESTÁTICAS DEEPSEEK --- */
.title-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.cuenta-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 16px;
}

.cuenta-item-static {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
}

.cuenta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.cuenta-info {
    flex: 1;
    text-align: left;
}

.cuenta-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.cuenta-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1px;
}

.cuenta-pts {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.loader {
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}