/*
 * assets/css/landing.css
 *
 * Estilos de la landing page (migrados desde <style> en src/views/index.html).
 *
 * Notas:
 * - Este archivo se usa para la página pública y debe mantenerse libre de estilos inline
 *   para facilitar CSP estrictas.
 * - Variables CSS en :root facilitan la personalización de tema y gradientes.
 */
:root
{
    --bg-0: #060717;
    --bg-1: #0a0e27;
    --glass: rgba(255, 255, 255, 0.03);
    --muted: #9aa3b6;
    --accent1: #667eea;
    --accent2: #764ba2;
    --accent3: #f093fb;
    /* Gradientes de marca */
    --discord-1: #5865F2;
    --discord-2: #131825ca;
    --tiktok-1: #69C9D0;
    --tiktok-2: #EE2A7B;
    --card-radius: 16px;
    --footer-fixed-height: 184px;
}

*,
*::before,
*::after
{
    box-sizing: border-box;
}

/*
 * Respetar el atributo HTML `hidden`.
 * Importante: estilos de autor (p.ej. `.btn { display: inline-flex; }`) pueden
 * sobreescribir el comportamiento por defecto del navegador si no forzamos `display:none`.
 */
[hidden]
{
    display: none !important;
}

html,
body
{
    margin: 0;
    min-height: 100%;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body
{
    padding-bottom: var(--footer-fixed-height);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main
{
    flex: 1 0 auto;
    padding-bottom: 1rem;
}

img
{
    max-width: 100%;
    display: block;
}

a
{
    color: inherit;
    text-decoration: none;
    -webkit-text-decoration-skip: none;
    text-decoration-skip-ink: none;
}

a:hover,
a:active
{
    text-decoration: none;
}

a:focus
{
    outline: 3px solid rgba(102, 126, 234, 0.18);
    outline-offset: 3px;
    border-radius: 6px;
}

.container
{
    width: min(1100px, 94vw);
    margin: 0 auto;
    padding: 0 18px;
}

/* Cabecera */
.site-header
{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(3, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
}

.brand-small
{
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-small img
{
    height: 48px;
    border-radius: 8px;
}

.brand-text
{
    font-weight: 800;
    font-size: 2.4rem;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-brand
{
    background: linear-gradient(90deg, var(--accent1), #8b5cf6, var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-brand
{
    background-size: 240% 240%;
    animation: brandGradient 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes brandGradient
{
    0%
    {
        background-position: 0% 50%;
    }

    50%
    {
        background-position: 100% 50%;
    }

    100%
    {
        background-position: 0% 50%;
    }
}

.header-actions
{
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media(max-width:560px)
{
    .header-inner
    {
        flex-wrap: wrap;
    }

    .header-actions
    {
        width: 100%;
    }
}

.btn
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.btn:focus
{
    outline: 2px solid rgba(102, 126, 234, 0.18);
}

.btn-login
{
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    border: none;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

/* Sección hero */
.hero
{
    padding: 28px 0 28px;
}

.hero-inner
{
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero-card
{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: var(--card-radius);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.5);
}

.hero-title
{
    font-size: clamp(28px, 5vw, 44px);
    margin: 0 0 10px;
    line-height: 1.02;
    font-weight: 900;
}

.hero-title .accent
{
    background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title .accent_discord
{
    background: linear-gradient(90deg, var(--discord-1), var(--discord-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title .accent_tiktok
{
    background: linear-gradient(90deg, var(--tiktok-1), var(--tiktok-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Acentos animados: gradiente sutil desplazándose para palabras de marca */
.hero-title .accent_discord,
.hero-title .accent_tiktok
{
    background-size: 300% 300%;
}

.hero-title .accent_discord
{
    animation: discordGradient 6s linear infinite;
}

.hero-title .accent_tiktok
{
    animation: tiktokGradient 5s ease-in-out infinite;
}

@keyframes discordGradient
{
    0%
    {
        background-position: 0% 50%;
    }

    25%
    {
        background-position: 50% 25%;
    }

    50%
    {
        background-position: 100% 50%;
    }

    75%
    {
        background-position: 50% 75%;
    }

    100%
    {
        background-position: 0% 50%;
    }
}

@keyframes tiktokGradient
{
    0%
    {
        background-position: 0% 50%;
    }

    25%
    {
        background-position: 50% 25%;
    }

    50%
    {
        background-position: 100% 50%;
    }

    75%
    {
        background-position: 50% 75%;
    }

    100%
    {
        background-position: 0% 50%;
    }
}

.lead
{
    color: var(--muted);
    margin: 8px 0 16px;
    font-size: 15px;
}

.hero-cta
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual
{
    display: flex;
    justify-content: center;
}

.visual-card
{
    max-width: 420px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    padding: 18px;
    box-sizing: border-box;
}

/* Cuando el hero usa una única tarjeta combinada, disponer contenido y visual lado a lado en pantallas anchas */
.hero-card.hero-main
{
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
    align-items: center;
}

@media(min-width:900px)
{
    .hero-card.hero-main
    {
        grid-template-columns: 1fr 420px;
    }
}

.visual-card img
{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Estadísticas */
.stats
{
    display: flex;
    gap: 14px;
    margin: 28px 0 28px;
    flex-wrap: wrap;
}

.stat
{
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    border-radius: 12px;
    min-width: 30%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat .num
{
    font-weight: 900;
    font-size: 28px;
    color: var(--accent2);
}

.stat .label
{
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

/* Herramientas LIVE visibles */
.live-showcase
{
    margin: 42px 0 52px;
    padding: 0;
}

.section-heading
{
    max-width: 780px;
    margin-bottom: 22px;
}

.section-heading .eyebrow
{
    margin: 0 0 8px;
    color: var(--tiktok-1);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading h2
{
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.08;
}

.section-heading p:not(.eyebrow)
{
    margin: 12px 0 0;
    color: #c7cee3;
    line-height: 1.65;
}

.live-tool-grid
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 0;
}

.live-tool.feature
{
    margin: 0;
}

/* Características */
.features
{
    display: grid;
    gap: 14px;
    margin: 48px 0 48px;
}

.feature
{
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.feature .icon
{
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #fff;
}

.feature .icon i
{
    display: flex;
    width: 56px !important;
    height: 56px !important;
    margin: 0 28px 28px 0;
    line-height: 1;
    text-align: center;
    justify-content: center;
}

.feature h3
{
    margin: 0 0 6px;
}

.feature p
{
    margin: 0;
    color: var(--muted);
}

.feature
{
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s, background .28s;
    cursor: pointer;
}

.feature:hover
{
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
}

.feature .icon
{
    transition: transform .28s, box-shadow .28s;
}

.feature:hover .icon
{
    transform: scale(1.06) rotate(-6deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.feature .cta
{
    margin-top: 10px;
    display: inline-block;
    font-weight: 700;
    color: var(--accent1);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

/* Clase utilitaria usada en CTAs de tipo anchor dentro de las características */
.feature-btn
{
    margin-top: 10px;
    display: inline-block;
    font-weight: 700;
    color: var(--accent1);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

/* Banner flotante del hero */
.hero-header
{
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.floating-banner
{
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.10);
    animation: levitate 4s ease-in-out infinite;
    transition: transform .25s ease, box-shadow .25s ease;
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 22px 44px rgba(102, 126, 234, 0.18);
}

.floating-div
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.10);
    animation: levitate 4s ease-in-out infinite;
    transition: transform .25s ease, box-shadow .25s ease;
}

.floating-div:hover
{
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 22px 44px rgba(102, 126, 234, 0.18);
}

.floating-div .fb-content
{
    display: flex;
    gap: 10px;
    align-items: center;
}

.floating-div .fb-content i
{
    font-size: 18px;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
}

.floating-div .fb-label
{
    font-size: 11px;
    font-weight: 900;
    color: var(--accent3);
    text-transform: uppercase;
}

.floating-div .fb-title
{
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    opacity: 0.95;
}

@keyframes levitate
{
    0%
    {
        transform: translateY(0);
    }

    50%
    {
        transform: translateY(-8px);
    }

    100%
    {
        transform: translateY(0);
    }
}

/* Modal (detalles de la característica) */
.modal
{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.modal.active
{
    display: flex;
}

.modal-backdrop
{
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(4px);
}

.modal-content
{
    position: relative;
    z-index: 121;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 1.2rem;
    max-width: 720px;
    width: calc(100% - 40px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.6);
    box-sizing: border-box;
}

.modal-close
{
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.modal h3
{
    margin: 0 0 .5rem;
}

.modal p
{
    color: var(--muted);
}

/* Descripción del modal como lista */
.modal-desc ul
{
    margin: 0.4rem 0 0 1.05rem;
    padding: 0;
    color: var(--muted);
    list-style: disc;
}

.modal-desc li
{
    margin-bottom: .55rem;
    line-height: 1.45;
}

.modal-actions
{
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Pie de página con fondo degradado y halo suave para recuperar la estética original */
footer
{
    flex-shrink: 0;
    padding: 32px 0 40px;
    margin-top: 48px;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(6, 7, 23, 0.98) 100%);
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    overflow: hidden;
}

/* Halo tenue animado para el footer */
footer::before
{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 55%);
    opacity: 0.4;
    pointer-events: none;
}

footer .container
{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    max-width: min(960px, 90vw);
    padding: 0 18px;
}


/* Distribución responsiva del footer para recuperar el layout original en escritorio */
@media(min-width:768px)
{
    footer .container
    {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
        text-align: center;
    }

    footer .container > div:first-child
    {
        grid-column: 1 / -1;
        margin-bottom: 4px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    footer .container > div
    {
        text-align: center;
    }
}

/* Selector de idioma flotante mostrado en la esquina del pie en todas las páginas */
.footer-lang
{
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 220;
    background: rgba(3, 6, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    --lang-selector-width: 190px;
}

.footer-lang select
{
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 0.95rem;
    min-width: var(--lang-selector-width, 190px);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-lang select:focus
{
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.footer-lang select::-ms-expand
{
    display: none;
}

/* Custom language picker using FontAwesome icons (JS creates .naobot-lang-select) */
.footer-lang.naobot-lang-has-custom select
{
    display: none;
}

.footer-lang .naobot-lang-select
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: var(--lang-selector-width, 190px);
    max-width: var(--lang-selector-width, 190px);
    flex: 0 0 var(--lang-selector-width, 190px);
    position: relative;
}

.naobot-lang-toggle
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: var(--lang-selector-width, 190px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.naobot-lang-toggle:focus-visible
{
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.naobot-lang-toggle i
{
    width: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.naobot-lang-label
{
    font-weight: 700;
}

.naobot-lang-options
{
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 1px);
    display: none;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: rgba(3, 6, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    z-index: 400;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.65);
    min-width: 100%;
    max-width: 100%;
}

.naobot-lang-options.open
{
    display: block;
}

.naobot-lang-option
{
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    color: #fff;
}

.naobot-lang-option:hover,
.naobot-lang-option:focus
{
    background: rgba(255, 255, 255, 0.02);
    outline: none;
}

.naobot-lang-option[aria-selected="true"]
{
    background: rgba(102, 126, 234, 0.12);
}

.naobot-lang-option i
{
    width: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.naobot-lang-option-label
{
    font-weight: 700;
}

@media(max-width:640px)
{
    .footer-lang
    {
        right: 8px;
        bottom: 8px;
        padding: 8px 10px;
        --lang-selector-width: 160px;
    }

    .footer-lang select
    {
        font-size: 0.9rem;
        padding: 7px 14px;
    }

    .naobot-lang-toggle
    {
        padding: 7px 14px;
    }
}

.gradient-text
{
    background: linear-gradient(90deg, var(--accent1), #8b5cf6, var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}


/* Respetar la preferencia del usuario para reducir movimiento */
@media (prefers-reduced-motion: reduce)
{

    .hero-title .accent_tiktok,
    .hero-title .accent_discord,
    .footer-sub .gradient-text,
    .footer-powered .gradient-text
    {
        animation: none !important;
        background-size: auto !important;
    }
}

@media(min-width:900px)
{
    .hero-inner
    {
        grid-template-columns: 1fr 420px;
    }

    .features
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-tool-grid
    {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats
    {
        justify-content: space-between;
    }
}

@media(max-width:480px)
{
    .header-inner
    {
        padding: 12px 14px;
    }

    .brand-text
    {
        font-size: 16px;
    }

    .brand-small img
    {
        height: 42px;
    }

    .hero-card
    {
        padding: 18px;
    }

    .visual-card
    {
        max-width: 320px;
    }
}

/* Ayudantes del footer (movidos desde estilos inline) */
.footer-sub
{
    margin-top: 6px;
    color: #d6dbf5;
}

.footer-powered
{
    margin-top: 6px;
    color: #d6dbf5;
}

footer .container a
{
    color: #fff;
    font-weight: 600;
}
