/**
 * Flex Landing — design system + Fase 0/1 (nav + hero)
 * Independiente del dashboard. No editar estilos de app aquí.
 */

/* -------------------------------------------------------------------------- */
/* FASE 0 — Design tokens                                                      */
/* -------------------------------------------------------------------------- */

.fl-root,
body.fl-brand-mode {
    --fl-green: #c4e860;
    --fl-green-deep: #46963c;
    --fl-green-soft: rgba(196, 232, 96, 0.14);
    --fl-green-line: rgba(196, 232, 96, 0.35);

    --fl-bg: #05080f;
    --fl-bg-elevated: #0a1220;
    --fl-bg-nav: rgba(5, 8, 15, 0.72);

    --fl-ink: #f4f6f8;
    --fl-ink-muted: rgba(244, 246, 248, 0.68);
    --fl-ink-faint: rgba(244, 246, 248, 0.42);

    --fl-white-warm: #f7f5f0;
    --fl-gray-100: #e8eaed;
    --fl-gray-400: #8b93a7;
    --fl-gray-700: #2a3348;
    --fl-gray-900: #121826;

    --fl-space-1: 0.25rem;
    --fl-space-2: 0.5rem;
    --fl-space-3: 0.75rem;
    --fl-space-4: 1rem;
    --fl-space-5: 1.5rem;
    --fl-space-6: 2rem;
    --fl-space-7: 3rem;
    --fl-space-8: 4.5rem;
    --fl-space-9: 7rem;

    --fl-text-xs: 0.75rem;
    --fl-text-sm: 0.875rem;
    --fl-text-md: 1rem;
    --fl-text-lg: 1.125rem;
    --fl-text-xl: 1.25rem;
    --fl-text-2xl: clamp(1.5rem, 2.2vw, 1.85rem);
    --fl-text-3xl: clamp(2rem, 4vw, 3rem);
    --fl-text-display: clamp(2.65rem, 7.2vw, 5.35rem);

    --fl-leading-tight: 1.05;
    --fl-leading-snug: 1.2;
    --fl-leading-body: 1.55;

    --fl-tracking-tight: -0.035em;
    --fl-tracking-display: -0.045em;

    --fl-radius-sm: 6px;
    --fl-radius-md: 12px;
    --fl-radius-lg: 20px;
    --fl-radius-pill: 999px;

    --fl-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --fl-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --fl-dur-fast: 180ms;
    --fl-dur: 420ms;
    --fl-dur-slow: 900ms;

    --fl-font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
    --fl-font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;

    /* Compat caritas (dashboard usa --flex) */
    --flex: var(--fl-green);
    --flex-green: var(--fl-green);

    --fl-nav-h: 72px;
    --fl-max: 1180px;

    font-family: var(--fl-font-body);
    color: var(--fl-ink);
    background: var(--fl-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Modo marca: oculta chrome legacy solo en web (no app nativa) */
html:not(.flex-app-native) body.fl-brand-mode > header,
html:not(.flex-app-native) body.fl-brand-mode > #mobile-menu-overlay,
html:not(.flex-app-native) body.fl-brand-mode > #mobile-help-sheet {
    display: none !important;
}

html:not(.flex-app-native) body.fl-brand-mode {
    background: #05080f;
    padding-bottom: 48px;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

html:not(.flex-app-native).fl-brand-scroll {
    background: #05080f;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow-x: hidden;
}

html:not(.flex-app-native) body.fl-brand-mode main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
    background: #05080f;
}

html:not(.flex-app-native) body.fl-brand-mode #inicio.view.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: #05080f !important;
    color: #f4f6f8 !important;
}

/* Shell full-bleed (rompe el max-width del dashboard) */
html:not(.flex-app-native) body.fl-brand-mode .fl-root.landing-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow-x: clip;
    flex: 1 1 auto;
}

/* Nav solo en modo marca (web). En app nativa no se muestra. */
html.flex-app-native .fl-nav,
html:not(.flex-app-native) body:not(.fl-brand-mode) .fl-nav {
    display: none !important;
}

html:not(.flex-app-native) body.fl-brand-mode #registroForm.view.active,
html:not(.flex-app-native) body.fl-brand-mode #registroOtpChoice.view.active,
html:not(.flex-app-native) body.fl-brand-mode #registroOtpVerify.view.active,
html:not(.flex-app-native) body.fl-brand-mode #registroScan.view.active,
html:not(.flex-app-native) body.fl-brand-mode #loginForm.view.active,
html:not(.flex-app-native) body.fl-brand-mode #olvidoContrasenaForm.view.active,
html:not(.flex-app-native) body.fl-brand-mode #miNegocioMenu.view.active,
html:not(.flex-app-native) body.fl-brand-mode #miNegocioLogin.view.active,
html:not(.flex-app-native) body.fl-brand-mode #miNegocioRegistro.view.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background:
        radial-gradient(ellipse 55% 45% at 12% 18%, rgba(196, 232, 96, 0.08), transparent 55%),
        radial-gradient(ellipse 45% 40% at 92% 78%, rgba(70, 150, 60, 0.1), transparent 52%),
        #05080f !important;
    color: var(--fl-ink) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Aurora legacy (dashboard): genera la línea horizontal + scroll lateral */
html:not(.flex-app-native) body.fl-brand-mode #registroForm.view::before,
html:not(.flex-app-native) body.fl-brand-mode #registroOtpChoice.view::before,
html:not(.flex-app-native) body.fl-brand-mode #registroOtpVerify.view::before,
html:not(.flex-app-native) body.fl-brand-mode #registroScan.view::before,
html:not(.flex-app-native) body.fl-brand-mode #loginForm.view::before,
html:not(.flex-app-native) body.fl-brand-mode #olvidoContrasenaForm.view::before,
html:not(.flex-app-native) body.fl-brand-mode #miNegocioMenu.view::before,
html:not(.flex-app-native) body.fl-brand-mode #miNegocioLogin.view::before,
html:not(.flex-app-native) body.fl-brand-mode #miNegocioRegistro.view::before {
    content: none !important;
    display: none !important;
    animation: none !important;
}

.fl-legacy-sections {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/* FASE 1 — Navbar                                                             */
/* -------------------------------------------------------------------------- */

.fl-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1200;
    height: var(--fl-nav-h);
    display: flex;
    align-items: center;
    transition:
        background var(--fl-dur) var(--fl-ease-soft),
        border-color var(--fl-dur) var(--fl-ease-soft),
        backdrop-filter var(--fl-dur) var(--fl-ease-soft);
    border-bottom: 1px solid transparent;
    background: transparent;
}

.fl-nav.is-scrolled {
    background: var(--fl-bg-nav);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.fl-nav__inner {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
}

.fl-nav__cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(1.5rem, 3vw, 3rem);
    min-width: 0;
}

.fl-nav__brand {
    font-family: var(--fl-font-display);
    font-weight: 700;
    font-size: clamp(1.35rem, 2vw, 1.55rem);
    letter-spacing: 0.04em;
    color: var(--fl-ink);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    justify-self: start;
}

.fl-nav__brand span {
    color: var(--fl-green);
}

.fl-nav__links {
    display: contents;
}

.fl-nav__actions {
    display: contents;
}

.fl-nav__link {
    position: relative;
    font-size: var(--fl-text-sm);
    font-weight: 500;
    color: var(--fl-ink-muted);
    background: none;
    border: 0;
    padding: 0.35rem 0;
    cursor: pointer;
    transition: color var(--fl-dur-fast) var(--fl-ease-soft);
}

.fl-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--fl-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--fl-dur-fast) var(--fl-ease-out);
}

.fl-nav__link:hover,
.fl-nav__link:focus-visible {
    color: var(--fl-ink);
    outline: none;
}

.fl-nav__link:hover::after,
.fl-nav__link:focus-visible::after,
.fl-nav__link.is-active::after {
    transform: scaleX(1);
}

.fl-nav__link.is-active {
    color: var(--fl-ink);
}

.fl-nav__ghost {
    position: relative;
    font-size: var(--fl-text-sm);
    font-weight: 500;
    color: var(--fl-ink-muted);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0.35rem 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--fl-dur-fast) var(--fl-ease-soft);
}

.fl-nav__ghost::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--fl-green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--fl-dur-fast) var(--fl-ease-out);
}

.fl-nav__ghost:hover,
.fl-nav__ghost:focus-visible {
    color: var(--fl-ink);
    outline: none;
}

.fl-nav__ghost:hover::after,
.fl-nav__ghost:focus-visible::after,
.fl-nav__ghost.is-active::after {
    transform: scaleX(1);
}

.fl-nav__ghost.is-active {
    color: var(--fl-ink);
}

.fl-nav__help {
    position: relative;
}

.fl-nav__help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.fl-nav__chevron {
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform var(--fl-dur-fast) var(--fl-ease-out);
    flex-shrink: 0;
    opacity: 0.85;
}

.fl-nav__help-btn[aria-expanded="true"] .fl-nav__chevron {
    transform: rotate(225deg) translateY(-1px);
}

.fl-help-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(420px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: var(--fl-radius-md);
    background: #0f1624;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity var(--fl-dur-fast) var(--fl-ease-soft),
        transform var(--fl-dur-fast) var(--fl-ease-out),
        visibility var(--fl-dur-fast);
    z-index: 1300;
}

.fl-help-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fl-help-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.1rem;
}

.fl-help-menu__title {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fl-ink-faint);
}

.fl-help-menu__item {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0 0 0.4rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fl-ink);
    font-family: var(--fl-font-body);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition:
        background var(--fl-dur-fast) var(--fl-ease-soft),
        border-color var(--fl-dur-fast) var(--fl-ease-soft);
}

.fl-help-menu__item:last-child {
    margin-bottom: 0;
}

.fl-help-menu__item:hover,
.fl-help-menu__item:focus-visible {
    background: rgba(196, 232, 96, 0.1);
    border-color: rgba(196, 232, 96, 0.35);
    outline: none;
}

.fl-nav__ghost-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    box-sizing: border-box;
}

.fl-nav__drawer-label {
    margin: 0.75rem 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fl-ink-faint);
}

.fl-nav__drawer-label:first-of-type {
    margin-top: 0.35rem;
}

.fl-nav__drawer .fl-nav__ghost::after,
.fl-nav__drawer .fl-nav__link::after {
    display: none;
}

.fl-nav__cta {
    font-size: var(--fl-text-sm);
    font-weight: 600;
    color: #0a1220;
    background: var(--fl-green);
    border: 0;
    border-radius: var(--fl-radius-pill);
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform var(--fl-dur-fast) var(--fl-ease-out),
        background var(--fl-dur-fast) var(--fl-ease-soft);
}

.fl-nav__cta:hover {
    background: #d4f070;
    transform: translateY(-1px);
}

.fl-nav__menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.fl-nav__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    justify-self: end;
    min-width: 0;
}

.fl-nav__mobile-auth {
    display: none;
    align-items: center;
    gap: clamp(0.45rem, 2vw, 0.75rem);
    min-width: 0;
}

.fl-nav__mobile-auth-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    white-space: nowrap;
}

.fl-nav__menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--fl-ink);
    transition: transform var(--fl-dur-fast) var(--fl-ease-out), opacity var(--fl-dur-fast);
}

.fl-nav.is-open .fl-nav__menu-btn span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.fl-nav.is-open .fl-nav__menu-btn span:nth-child(2) {
    opacity: 0;
}
.fl-nav.is-open .fl-nav__menu-btn span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.fl-nav__drawer {
    display: none;
}

@media (max-width: 1100px) {
    .fl-nav__cluster {
        gap: clamp(1rem, 2vw, 1.6rem);
    }
}

@media (max-width: 980px) {
    .fl-nav__cluster {
        display: none;
    }

    .fl-nav__mobile-auth {
        display: flex;
    }

    .fl-nav__menu-btn {
        display: flex;
    }

    .fl-nav__drawer {
        display: block;
        position: fixed;
        inset: calc(var(--fl-nav-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
        background: rgba(5, 8, 15, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: var(--fl-space-5) 1.25rem var(--fl-space-6);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition:
            opacity var(--fl-dur) var(--fl-ease-soft),
            transform var(--fl-dur) var(--fl-ease-out);
    }

    .fl-nav.is-open .fl-nav__drawer {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .fl-nav__drawer-links {
        display: flex;
        flex-direction: column;
        gap: var(--fl-space-3);
    }

    .fl-nav__drawer .fl-nav__link,
    .fl-nav__drawer .fl-nav__ghost,
    .fl-nav__drawer .fl-nav__cta {
        width: 100%;
        text-align: left;
        font-size: var(--fl-text-md);
    }

    .fl-nav__drawer .fl-nav__cta {
        text-align: center;
        margin-top: var(--fl-space-2);
    }
}

/* -------------------------------------------------------------------------- */
/* FASE 1 — Hero                                                               */
/* -------------------------------------------------------------------------- */

.fl-hero {
    position: relative;
    min-height: calc(100svh - 48px);
    min-height: calc(100vh - 48px);
    display: grid;
    align-items: start;
    isolation: isolate;
    overflow-x: clip;
    overflow-y: visible;
}

.fl-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 55% at 72% 42%, rgba(70, 150, 60, 0.18), transparent 58%),
        radial-gradient(ellipse 50% 40% at 18% 75%, rgba(196, 232, 96, 0.06), transparent 55%),
        linear-gradient(180deg, #05080f 0%, #0a1220 48%, #070b14 100%);
}

.fl-hero__layout {
    position: relative;
    z-index: 2;
    width: min(var(--fl-max), calc(100% - 2.5rem));
    margin: 0 auto;
    padding: calc(var(--fl-nav-h) + 1.35rem) 0 2.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    min-height: calc(100svh - 48px);
    min-height: calc(100vh - 48px);
    box-sizing: border-box;
}

.fl-hero__copy {
    max-width: 36rem;
    overflow: visible;
    padding-top: 0.25rem;
}

.fl-hero__brand {
    font-family: var(--fl-font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    letter-spacing: 0.06em;
    color: var(--fl-green);
    margin: 0 0 var(--fl-space-4);
    line-height: 1;
}

.fl-hero__eyebrow {
    font-size: var(--fl-text-sm);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fl-green);
    margin: 0 0 var(--fl-space-5);
}

.fl-hero__title {
    font-family: var(--fl-font-body);
    font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 4.25rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--fl-white-warm);
    margin: 0 0 var(--fl-space-4);
    padding-bottom: 0.08em;
    overflow: visible;
}

.fl-hero__title em {
    font-style: normal;
    color: var(--fl-green);
}

.fl-hero__sub {
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    line-height: var(--fl-leading-body);
    color: var(--fl-ink-muted);
    margin: 0 0 var(--fl-space-6);
    max-width: 32rem;
    font-weight: 400;
}

.fl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fl-space-4);
    align-items: center;
}

.fl-btn {
    font-family: var(--fl-font-body);
    font-size: var(--fl-text-md);
    font-weight: 600;
    border-radius: var(--fl-radius-pill);
    padding: 0.9rem 1.45rem;
    cursor: pointer;
    border: 0;
    transition:
        transform var(--fl-dur-fast) var(--fl-ease-out),
        background var(--fl-dur-fast) var(--fl-ease-soft),
        color var(--fl-dur-fast) var(--fl-ease-soft),
        border-color var(--fl-dur-fast) var(--fl-ease-soft);
}

.fl-btn--primary {
    background: var(--fl-green);
    color: #0a1220;
}

.fl-btn--primary:hover {
    background: #d4f070;
    transform: translateY(-1px);
}

.fl-btn--ghost {
    background: transparent;
    color: var(--fl-ink);
    border: 1px solid rgba(244, 246, 248, 0.22);
}

.fl-btn--ghost:hover {
    border-color: rgba(196, 232, 96, 0.55);
    color: var(--fl-green);
}

/* Caritas animadas (misma animación que el hero anterior) */
.fl-faces {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(48vh, 400px);
    margin-top: 0.5rem;
}

.fl-root .fl-faces__inner.welcome-hero {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    min-height: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fl-root .fl-faces .faces-stage {
    width: min(340px, 72vw);
    height: min(340px, 72vw);
    margin: 0 auto;
}

.fl-faces.fl-reveal {
    transform: translateY(18px);
}

.fl-faces.fl-reveal.is-in {
    transform: translateY(0);
}

/* Reveal motion */
.fl-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity var(--fl-dur-slow) var(--fl-ease-out),
        transform var(--fl-dur-slow) var(--fl-ease-out);
}

.fl-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

.fl-reveal-delay-1 {
    transition-delay: 90ms;
}
.fl-reveal-delay-2 {
    transition-delay: 180ms;
}
.fl-reveal-delay-3 {
    transition-delay: 280ms;
}
.fl-reveal-delay-4 {
    transition-delay: 380ms;
}

/* -------------------------------------------------------------------------- */
/* FASE 2 — Problema + Visión                                                  */
/* -------------------------------------------------------------------------- */

.fl-section {
    position: relative;
    padding: clamp(5rem, 12vh, 8.5rem) 0;
    scroll-margin-top: calc(var(--fl-nav-h) + 12px);
}

.fl-section__inner {
    width: min(var(--fl-max), calc(100% - 2.5rem));
    margin: 0 auto;
}

.fl-section__inner--narrow {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.fl-section__eyebrow {
    font-size: var(--fl-text-sm);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fl-green);
    margin: 0 0 var(--fl-space-5);
}

.fl-section__title {
    font-family: var(--fl-font-body);
    font-weight: 700;
    font-size: var(--fl-text-3xl);
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--fl-white-warm);
    margin: 0 0 var(--fl-space-5);
}

.fl-section__title-accent {
    color: var(--fl-ink-muted);
    font-weight: 600;
}

.fl-section__lead {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: var(--fl-leading-body);
    color: var(--fl-ink-muted);
    margin: 0 0 var(--fl-space-7);
    max-width: 36rem;
}

.fl-section--problem {
    background:
        radial-gradient(ellipse 60% 50% at 12% 20%, rgba(196, 232, 96, 0.05), transparent 55%),
        linear-gradient(180deg, #05080f 0%, #080d18 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fl-section--vision {
    background:
        radial-gradient(ellipse 55% 45% at 88% 30%, rgba(70, 150, 60, 0.1), transparent 60%),
        linear-gradient(180deg, #080d18 0%, #05080f 100%);
}

.fl-proof-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 44rem;
}

.fl-proof-list__item {
    font-family: var(--fl-font-body);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 500;
    color: var(--fl-ink);
    padding: 0;
    letter-spacing: -0.01em;
}

.fl-section__quote {
    font-family: var(--fl-font-body);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--fl-white-warm);
    margin: 0;
    padding: var(--fl-space-6) 0 0;
    border-top: 1px solid rgba(196, 232, 96, 0.22);
    max-width: 34rem;
}

/* -------------------------------------------------------------------------- */
/* FASE 3 — Cómo funciona + Seguridad                                          */
/* -------------------------------------------------------------------------- */

.fl-section--flow {
    background:
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(196, 232, 96, 0.06), transparent 55%),
        linear-gradient(180deg, #05080f 0%, #0a1220 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fl-flow-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.fl-flow-layout__copy .fl-section__lead {
    max-width: 34rem;
}

.fl-flow-layout__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fl-flow-totem {
    display: block;
    width: min(100%, 420px);
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 18px;
    filter:
        drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45))
        drop-shadow(0 8px 20px rgba(27, 54, 93, 0.32));
}

.fl-section--security {
    background:
        radial-gradient(ellipse 45% 40% at 10% 80%, rgba(70, 150, 60, 0.08), transparent 55%),
        linear-gradient(180deg, #0a1220 0%, #05080f 100%);
}

.fl-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}

.fl-flow__step {
    display: flex;
    flex-direction: column;
    gap: var(--fl-space-4);
    padding: 0;
    position: relative;
}

.fl-flow__index {
    font-family: var(--fl-font-display);
    font-size: var(--fl-text-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--fl-green);
}

.fl-flow__name {
    font-family: var(--fl-font-body);
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fl-white-warm);
    margin: 0 0 var(--fl-space-2);
}

.fl-flow__text {
    font-size: var(--fl-text-md);
    line-height: var(--fl-leading-body);
    color: var(--fl-ink-muted);
    margin: 0;
    max-width: 16rem;
}

.fl-trust {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-trust__line {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.55;
    color: var(--fl-ink-muted);
    margin: 0;
    padding: var(--fl-space-5) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-trust__line strong {
    display: block;
    color: var(--fl-white-warm);
    font-weight: 600;
    margin-bottom: var(--fl-space-2);
    letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------------- */
/* FASE 4 — Ecosystem + Manifiesto                                             */
/* -------------------------------------------------------------------------- */

.fl-section--eco {
    background:
        radial-gradient(ellipse 55% 40% at 80% 10%, rgba(196, 232, 96, 0.07), transparent 55%),
        linear-gradient(180deg, #05080f 0%, #0a1220 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fl-eco {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.75rem);
}

.fl-eco__item {
    display: flex;
    flex-direction: column;
    gap: var(--fl-space-3);
    padding: 0;
}

.fl-eco__name {
    font-family: var(--fl-font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fl-green);
}

.fl-eco__desc {
    font-size: var(--fl-text-md);
    line-height: var(--fl-leading-body);
    color: var(--fl-ink-muted);
    max-width: 15rem;
}

.fl-section--app {
    background:
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(196, 232, 96, 0.08), transparent 55%),
        radial-gradient(ellipse 40% 35% at 10% 80%, rgba(70, 150, 60, 0.07), transparent 50%),
        linear-gradient(180deg, #0a1220 0%, #05080f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0;
}

.fl-app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
}

.fl-app-layout__copy {
    padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.fl-app-layout__copy .fl-section__lead {
    max-width: 40ch;
}

.fl-app-stores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
}

.fl-app-store {
    display: inline-flex;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.18s ease, filter 0.18s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.fl-app-store:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.fl-app-store:focus-visible {
    outline: 2px solid rgba(196, 232, 96, 0.92);
    outline-offset: 3px;
}

.fl-app-store img {
    display: block;
    width: clamp(132px, 36vw, 180px);
    height: auto;
}

.fl-app-layout__visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 0;
}

.fl-app-mockup {
    width: 100%;
    max-width: min(440px, 94vw);
    height: auto;
    display: block;
    background: transparent;
    filter:
        drop-shadow(0 32px 52px rgba(0, 0, 0, 0.5))
        drop-shadow(0 10px 24px rgba(27, 54, 93, 0.35));
}

.fl-section--manifesto {
    background:
        radial-gradient(ellipse 70% 55% at 50% 100%, rgba(70, 150, 60, 0.14), transparent 60%),
        linear-gradient(180deg, #0a1220 0%, #05080f 100%);
    padding-bottom: clamp(4rem, 10vh, 6.5rem);
    text-align: center;
}

.fl-section__inner--manifesto {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.fl-section--manifesto .fl-section__eyebrow {
    display: inline-block;
}

.fl-manifesto__title {
    font-family: var(--fl-font-body);
    font-weight: 700;
    font-size: clamp(1.85rem, 4.2vw, 3.1rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--fl-white-warm);
    margin: 0 0 var(--fl-space-7);
}

.fl-manifesto__accent {
    color: var(--fl-green);
}

.fl-manifesto__brand {
    font-family: var(--fl-font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 0.08em;
    color: var(--fl-green);
    margin: 0 0 var(--fl-space-7);
    line-height: 1;
}

.fl-manifesto__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fl-space-4);
    justify-content: center;
    align-items: center;
}

.fl-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--fl-space-6) 0 calc(var(--fl-space-6) + env(safe-area-inset-bottom, 0px));
    background: #05080f;
}

.fl-footer__inner {
    width: min(var(--fl-max), calc(100% - 2.5rem));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--fl-space-4);
}

.fl-footer__brand {
    font-family: var(--fl-font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fl-green);
    font-size: var(--fl-text-sm);
}

.fl-footer__meta {
    font-size: var(--fl-text-xs);
    color: var(--fl-ink-faint);
    letter-spacing: 0.04em;
}

.fl-footer__links {
    display: flex;
    gap: var(--fl-space-5);
}

.fl-footer__links a {
    font-size: var(--fl-text-sm);
    color: var(--fl-ink-muted);
    text-decoration: none;
    transition: color var(--fl-dur-fast) var(--fl-ease-soft);
}

.fl-footer__links a:hover {
    color: var(--fl-ink);
}

/* -------------------------------------------------------------------------- */
/* FASE 5 — Motion polish · mobile · performance                               */
/* -------------------------------------------------------------------------- */

html.fl-brand-scroll {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html.fl-brand-scroll {
        scroll-behavior: auto;
    }
}

body.fl-nav-open {
    overflow: hidden;
    touch-action: none;
}

.fl-nav {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--fl-nav-h) + env(safe-area-inset-top, 0px));
}

.fl-nav__link.is-active {
    color: var(--fl-ink);
}

.fl-nav__drawer .fl-nav__link.is-active {
    color: var(--fl-green);
}

.fl-btn:focus-visible,
.fl-nav__link:focus-visible,
.fl-nav__ghost:focus-visible,
.fl-nav__cta:focus-visible,
.fl-nav__brand:focus-visible,
.fl-nav__menu-btn:focus-visible,
.fl-footer__links a:focus-visible {
    outline: 2px solid var(--fl-green);
    outline-offset: 3px;
}

/* Anchors (legacy helper) */
.fl-anchor {
    height: 1px;
    width: 100%;
    scroll-margin-top: calc(var(--fl-nav-h) + 16px);
}

@media (max-width: 900px) {
    .fl-root {
        --fl-nav-h: 64px;
        --fl-text-display: clamp(2.2rem, 9vw, 3.4rem);
        --fl-text-3xl: clamp(1.7rem, 6.5vw, 2.35rem);
    }

    .fl-section {
        padding: clamp(3.5rem, 10vh, 5.5rem) 0;
    }

    .fl-section__inner,
    .fl-nav__inner,
    .fl-footer__inner {
        width: min(var(--fl-max), calc(100% - 1.75rem));
    }

    .fl-nav__cta,
    .fl-nav__ghost,
    .fl-btn {
        min-height: 44px;
    }

    .fl-nav__mobile-auth-btn {
        min-height: 40px;
        font-size: 0.75rem;
    }

    @media (max-width: 380px) {
        .fl-nav__mobile-auth {
            gap: 0.4rem;
        }

        .fl-nav__mobile-auth-btn {
            font-size: 0.7rem;
        }
    }

    .fl-nav__drawer {
        top: calc(var(--fl-nav-h) + env(safe-area-inset-top, 0px));
        max-height: calc(100svh - var(--fl-nav-h) - env(safe-area-inset-top, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .fl-nav__drawer .fl-nav__link,
    .fl-nav__drawer .fl-nav__ghost {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .fl-hero__layout {
        grid-template-columns: 1fr;
        padding-top: calc(var(--fl-nav-h) + env(safe-area-inset-top, 0px) + 1rem);
        padding-bottom: 2.5rem;
        align-content: start;
        align-items: start;
        gap: 1.75rem;
        min-height: auto;
    }

    .fl-hero__copy {
        max-width: none;
        text-align: left;
    }

    .fl-hero__brand {
        font-size: clamp(1.65rem, 7vw, 2.4rem);
    }

    .fl-faces {
        order: -1;
        min-height: min(38vh, 320px);
        margin-top: 0.25rem;
    }

    .fl-root .fl-faces .faces-stage {
        width: min(280px, 68vw);
        height: min(280px, 68vw);
    }

    .fl-proof-list {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }

    .fl-flow-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .fl-flow-layout__visual {
        order: -1;
    }

    .fl-flow-totem {
        width: min(100%, 320px);
    }

    .fl-flow {
        grid-template-columns: 1fr 1fr;
    }

    .fl-eco {
        grid-template-columns: 1fr 1fr;
    }

    .fl-app-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .fl-app-layout__copy {
        padding-bottom: 0;
    }

    .fl-app-layout__visual {
        order: -1;
    }

    .fl-app-mockup {
        max-width: min(320px, 78vw);
    }

    .fl-app-stores {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .fl-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fl-btn {
        width: 100%;
        text-align: center;
    }

    .fl-proof-list {
        grid-template-columns: 1fr;
    }

    .fl-section__inner--narrow {
        text-align: left;
    }

    .fl-flow {
        grid-template-columns: 1fr;
    }

    .fl-flow__text {
        max-width: none;
    }

    .fl-eco {
        grid-template-columns: 1fr;
    }

    .fl-eco__desc {
        max-width: none;
    }

    .fl-manifesto__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fl-manifesto__actions .fl-btn {
        width: 100%;
    }

    .fl-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fl-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fl-root .doodle-face,
    .fl-root .wobble-head,
    .fl-root .eye-blink,
    .fl-root .smile-bounce,
    .fl-root .wink-eye,
    .fl-root .heart-pulse,
    .fl-root .shades-gleam,
    .fl-root .mouth-laugh {
        animation: none !important;
    }

    .fl-root .doodle-face:first-child {
        opacity: 1;
    }
}

/* -------------------------------------------------------------------------- */
/* Auth guest — Crear cuenta / flujo (misma arquitectura que landing)         */
/* -------------------------------------------------------------------------- */

.fl-auth {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: calc(var(--fl-nav-h, 72px) + env(safe-area-inset-top, 0px) + 2.5rem) 0 3.5rem;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.fl-auth__layout {
    width: min(920px, calc(100% - 2rem));
    max-width: 920px;
    margin: 0 auto;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel.auth-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.35rem);
    text-align: left;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 90% 70% at 8% -10%, rgba(196, 232, 96, 0.1), transparent 50%),
        linear-gradient(165deg, rgba(14, 22, 36, 0.96) 0%, rgba(8, 14, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(196, 232, 96, 0.05) inset;
    backdrop-filter: none;
    transform: none;
    transition: border-color var(--fl-dur-fast) var(--fl-ease-soft), box-shadow var(--fl-dur-fast) var(--fl-ease-soft);
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel.auth-card:hover {
    transform: none;
    border-color: rgba(196, 232, 96, 0.22);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(196, 232, 96, 0.05) inset;
}

.fl-auth__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(196, 232, 96, 0.9);
}

.fl-auth__title {
    margin: 0 0 0.55rem;
    font-family: var(--fl-font-body);
    font-size: clamp(1.55rem, 3.5vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--fl-white-warm, #f7f5f0);
    text-align: left;
}

.fl-auth__lead {
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fl-ink-muted, rgba(244, 246, 248, 0.68));
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__form.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0 0 1.15rem;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__form.form-grid:has(.fl-auth__submit) {
    margin-bottom: 0;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__form .full-width,
html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__form .flex-pass-focus-trap {
    width: 100%;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel input {
    background: rgba(5, 8, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--fl-ink, #f4f6f8);
    font-family: var(--fl-font-body);
    font-size: 16px;
    transition: border-color var(--fl-dur-fast) var(--fl-ease-soft), box-shadow var(--fl-dur-fast) var(--fl-ease-soft);
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel input:focus {
    border-color: rgba(196, 232, 96, 0.55);
    box-shadow: 0 0 0 3px rgba(196, 232, 96, 0.12);
    outline: none;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel input::placeholder {
    color: rgba(244, 246, 248, 0.38);
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .password-field {
    position: relative;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .password-field input {
    padding-right: 2.75rem;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .toggle-pass-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(244, 246, 248, 0.55);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.35rem;
    line-height: 1;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .toggle-pass-btn:hover {
    color: var(--fl-green, #c4e860);
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit.btn-action,
html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit.fl-btn--primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
    min-height: 48px;
    border-radius: var(--fl-radius-pill, 999px);
    background: var(--fl-green, #c4e860) !important;
    color: #0a1220 !important;
    font-family: var(--fl-font-body);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 0;
    box-shadow: none;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit.btn-action:hover,
html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit.fl-btn--primary:hover {
    background: #d4f070 !important;
    transform: translateY(-1px);
}

.fl-auth__footer {
    margin: 1.15rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--fl-ink-muted, rgba(244, 246, 248, 0.68)) !important;
}

.fl-auth__footer--tight {
    margin-top: 0.55rem;
}

.fl-auth__link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--fl-green, #c4e860);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fl-auth__link:hover {
    color: #d4f070;
}

.fl-auth__status {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #c8eec4;
    background: rgba(196, 232, 96, 0.08);
    border: 1px solid rgba(196, 232, 96, 0.22);
}

html:not(.flex-app-native) body.fl-brand-mode #loginForm .auth-login-msg--error {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(248, 81, 73, 0.45);
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: left;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__actions.negocio-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin: 0.25rem 0 0;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit-ghost.btn-action-outline,
html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit-ghost.fl-btn--ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: var(--fl-radius-pill, 999px);
    background: transparent !important;
    border: 1px solid rgba(244, 246, 248, 0.22) !important;
    color: var(--fl-ink, #f4f6f8) !important;
    font-family: var(--fl-font-body);
    font-size: 0.98rem;
    font-weight: 600;
    box-shadow: none;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit-ghost.btn-action-outline:hover,
html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__submit-ghost.fl-btn--ghost:hover {
    border-color: rgba(196, 232, 96, 0.55) !important;
    color: var(--fl-green, #c4e860) !important;
    background: rgba(196, 232, 96, 0.1) !important;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel--wide {
    max-width: 520px;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fl-ink-muted, rgba(244, 246, 248, 0.68));
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel select {
    width: 100%;
    background: rgba(5, 8, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--fl-ink, #f4f6f8);
    font-family: var(--fl-font-body);
    font-size: 16px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(196, 232, 96, 0.9) 50%),
        linear-gradient(135deg, rgba(196, 232, 96, 0.9) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel select:focus {
    border-color: rgba(196, 232, 96, 0.55);
    box-shadow: 0 0 0 3px rgba(196, 232, 96, 0.12);
}

html:not(.flex-app-native) body.fl-brand-mode .fl-auth-view .fl-auth__panel select option {
    background: #101c30;
    color: #dce8f8;
}

html:not(.flex-app-native) body.fl-brand-mode #miNegocioLogin .negocio-login-error {
    margin: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(248, 81, 73, 0.45);
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: left;
}

html:not(.flex-app-native) body.fl-brand-mode #miNegocioLogin .negocio-login-error:not(.visible) {
    display: none;
}

html:not(.flex-app-native) body.fl-brand-mode #miNegocioLogin .negocio-login-error.visible {
    display: block;
}

html:not(.flex-app-native) body.fl-brand-mode #registroForm .fl-auth__reqs.flex-pass-req-panel {
    border-radius: 18px;
    background: rgba(8, 14, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
    .fl-auth {
        padding-top: calc(var(--fl-nav-h, 64px) + env(safe-area-inset-top, 0px) + 1.5rem);
        padding-bottom: 2.5rem;
        align-items: flex-start;
    }
}
