:root {
    --bg: #05060a;
    --panel: #11141b;
    --text: #f3f3f3;
    --muted: #9ca3af;
    --accent: #00d1ff;
    --radius: 14px;
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #101827 0, #05060a 55%, #020308 100%);
    color: var(--text);
}

/* Shell centrado para auth / pantalla inicial */
/*
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
*/

.auth-card {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top left, #15192a 0, var(--panel) 50%, #090b11 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px 24px 26px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-logo {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

.auth-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 16px;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   LOGO TIPOGRÁFICO "wittii"
   ========================================= */

.wittii-typo-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    /* Extra Bold */
    font-size: 28px;
    /* Tamaño imponente */
    letter-spacing: -1.5px;
    /* Letras pegadas para solidez */
    text-transform: lowercase;
    /* Moderno y Tech */
    line-height: 1;
    position: relative;
    display: inline-block;

    /* Gradiente Metálico / Ciberpunk */
    background: linear-gradient(135deg, #ffffff 0%, #cffafe 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Sombra de luz (Glow) */
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

/* El detalle de los puntos de la "i" */
.wittii-typo-logo::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 5px;
    /* Ajuste sobre las ies */
    width: 6px;
    height: 6px;
    background: #facc15;
    /* Oro (Coin) */
    border-radius: 50%;
    box-shadow: 0 0 8px #facc15;
    opacity: 0;
    /* Opcional: Si quieres añadir un punto extra brillante */
}

/* Efecto Hover sutil */
.wittii-typo-logo:hover {
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.8));
    transform: scale(1.02);
    transition: all 0.3s ease;
}






















/* =========================================
   FONDO CYBERPUNK ANIMADO
   ========================================= */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #020617;
    /* Fondo base muy oscuro */
    overflow: hidden;
}

/* Rejilla de piso (perspectiva 3D) */
.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(0, 209, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 209, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 90%);
}

/* Brillo ambiental (Glow) */
.cyber-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    height: 120vh;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.15) 0%, rgba(2, 6, 23, 0) 70%);
    pointer-events: none;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px);
    }
}

/* =========================================
   LAYOUT PRINCIPAL
   ========================================= */
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Para apilar tarjeta y footer */
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}


/* Tarjeta con efecto cristal (Glassmorphism) */
.auth-card.glass-effect {
    background: rgba(15, 23, 42, 0.6);
    /* Semi-transparente */
    backdrop-filter: blur(16px);
    /* Difuminado trasero */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 209, 255, 0.15);
    /* Resplandor sutil cyan */
    margin-bottom: 40px;
    /* Espacio para el footer */
}

/* Logo Imagen */
.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.logo-img {
    max-width: 180px;
    /* Ajusta según tu imagen */
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 209, 255, 0.6));
    /* Resplandor al logo */
    animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* =========================================
   FOOTER PREMIUM
   ========================================= */
.landing-footer {
    width: 100%;
    max-width: 500px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    /* Empuja el footer abajo si hay espacio */
    padding-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-links button,
.footer-links a {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
}

.footer-links button:hover,
.footer-links a:hover {
    color: var(--accent);
    /* Cyan */
    text-decoration: underline;
}

.separator {
    color: #475569;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #4ade80;
    /* Verde WhatsApp */
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.footer-whatsapp:hover {
    transform: scale(1.05);
    color: #22c55e;
}

.copyright {
    color: #475569;
    font-size: 10px;
    margin-top: 5px;
}


/* =========================================
   LETRAS FLOTANTES DE FONDO (CORREGIDO)
   ========================================= */
.floating-letters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-letter {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    opacity: 0;
    /* Empiezan invisibles */
    bottom: -150px;
    /* Empiezan DEBAJO de la pantalla */

    /* Reduje el blur para que se entienda que son letras */
    filter: blur(0px);
    will-change: transform, opacity;
    /* Optimización de rendimiento */
}

/* Estilos de Color Neón */
.l-blue {
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 209, 255, 0.6);
    text-shadow: 0 0 15px rgba(0, 209, 255, 0.5);
}

.l-yellow {
    color: transparent;
    -webkit-text-stroke: 2px rgba(250, 204, 21, 0.6);
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

/* POSICIONES Y TIEMPOS */
/* Aumenté la duración para que se aprecie el viaje */

.p-1 {
    left: 10%;
    animation: float-up 10s linear infinite;
    animation-delay: 0s;
    font-size: 3rem;
}

/* La p-2 tiene un poco de blur para simular profundidad (lejanía) */
.p-2 {
    left: 20%;
    animation: float-up 14s linear infinite;
    animation-delay: 5s;
    font-size: 6rem;
    filter: blur(3px);
    opacity: 0.4;
}

.p-3 {
    left: 45%;
    animation: float-up 12s linear infinite;
    animation-delay: 2s;
    font-size: 4rem;
}

.p-4 {
    left: 75%;
    animation: float-up 15s linear infinite;
    animation-delay: 7s;
    font-size: 3.5rem;
}

.p-5 {
    left: 85%;
    animation: float-up 9s linear infinite;
    animation-delay: 1s;
    font-size: 2.5rem;
}

.p-6 {
    left: 92%;
    animation: float-up 11s linear infinite;
    animation-delay: 4s;
    font-size: 3rem;
}


/* ANIMACIÓN CORREGIDA: DE ABAJO HACIA ARRIBA */
@keyframes float-up {
    0% {
        /* Empieza en su posición original (abajo) */
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        /* Aparece suavemente */
        opacity: 0.7;
    }

    100% {
        /* Sube hasta SALIR por arriba de la pantalla (-120vh es negativo = arriba) */
        transform: translateY(-120vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Ajuste Móvil */
@media (max-width: 640px) {
    .float-letter {
        font-size: 2rem;
    }

    .p-2 {
        font-size: 3rem;
    }
}

/* =========================================
   AJUSTE DE FOOTER PARA MÓVILES
   ========================================= */
@media (max-width: 768px) {
    .landing-footer {
        /* Aumentamos el espacio abajo para "empujar" el texto hacia arriba */
        padding-bottom: 50px;

        /* Aseguramos que respete el área segura del iPhone (la barra negra de abajo) */
        padding-bottom: calc(50px + env(safe-area-inset-bottom));
    }

    .copyright {
        /* Un pequeño margen extra solo para el texto de copyright */
        margin-bottom: 10px;
        opacity: 0.8;
        /* Un poco más brillante para que se lea mejor */
    }

    /* Si la pantalla es muy corta, permitimos scroll para que nada se monte */
    .auth-shell {
        height: auto;
        min-height: 100vh;
    }
}