/* =====================================================================
   LUVEXA — Hoja de estilos base
   Paleta: Midnight #171329 · Electric Violet #A855F7 · Romantic Coral #FF477E
           Snow White #F8F5FC · Fresh Mint #22C7A9
   Tipografías: Outfit (títulos y marca) · Inter (texto e interfaz)

   Accesibilidad: el texto blanco sobre #A855F7 no alcanza contraste AA
   (3.96:1). Los botones usan --lx-violet-strong (#9333EA, 5.4:1) y los
   enlaces una variante más oscura o más clara según el tema.
   ===================================================================== */

/* ---------- Tipografías locales (sin Google Fonts: privacidad y CSP) ---------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    --lx-midnight: #171329;
    --lx-violet: #A855F7;
    --lx-violet-strong: #9333EA;
    --lx-coral: #FF477E;
    --lx-snow: #F8F5FC;
    --lx-mint: #22C7A9;

    --lx-font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lx-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --lx-radius-sm: 10px;
    --lx-radius: 16px;
    --lx-radius-lg: 24px;
    --lx-radius-pill: 999px;

    --lx-ease: cubic-bezier(.2, .8, .2, 1);
    --lx-container: 1160px;

    /* Tema claro */
    --lx-bg: var(--lx-snow);
    --lx-surface: #FFFFFF;
    --lx-surface-2: #F1EAFB;
    --lx-text: var(--lx-midnight);
    --lx-muted: #5E5873;
    --lx-border: rgba(23, 19, 41, .10);
    --lx-link: #7E22CE;
    --lx-shadow: 0 12px 40px rgba(23, 19, 41, .10);
    --lx-shadow-lg: 0 30px 80px rgba(23, 19, 41, .18);
    --lx-hero-bg:
        radial-gradient(90% 90% at 85% 0%, rgba(168, 85, 247, .24) 0%, rgba(168, 85, 247, .08) 40%, transparent 70%),
        radial-gradient(45% 40% at 5% 65%, rgba(255, 71, 126, .16) 0%, rgba(255, 71, 126, .05) 40%, transparent 70%),
        var(--lx-snow);

    color-scheme: light;
}

:root[data-theme="dark"] {
    --lx-bg: var(--lx-midnight);
    --lx-surface: #211B3A;
    --lx-surface-2: #2A2349;
    --lx-text: var(--lx-snow);
    --lx-muted: #B7B0CC;
    --lx-border: rgba(248, 245, 252, .10);
    --lx-link: #C084FC;
    --lx-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    --lx-shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
    --lx-hero-bg:
        radial-gradient(90% 90% at 85% 0%, rgba(168, 85, 247, .38) 0%, rgba(168, 85, 247, .12) 40%, transparent 70%),
        radial-gradient(45% 40% at 5% 65%, rgba(255, 71, 126, .24) 0%, rgba(255, 71, 126, .07) 40%, transparent 70%),
        var(--lx-midnight);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --lx-bg: var(--lx-midnight);
        --lx-surface: #211B3A;
        --lx-surface-2: #2A2349;
        --lx-text: var(--lx-snow);
        --lx-muted: #B7B0CC;
        --lx-border: rgba(248, 245, 252, .10);
        --lx-link: #C084FC;
        --lx-shadow: 0 12px 40px rgba(0, 0, 0, .35);
        --lx-shadow-lg: 0 30px 80px rgba(0, 0, 0, .5);
        --lx-hero-bg:
            radial-gradient(90% 90% at 85% 0%, rgba(168, 85, 247, .38) 0%, rgba(168, 85, 247, .12) 40%, transparent 70%),
            radial-gradient(45% 40% at 5% 65%, rgba(255, 71, 126, .24) 0%, rgba(255, 71, 126, .07) 40%, transparent 70%),
            var(--lx-midnight);
        color-scheme: dark;
    }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--lx-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lx-text);
    background: var(--lx-bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s var(--lx-ease), color .3s var(--lx-ease);
}

h1, h2, h3, h4 {
    font-family: var(--lx-font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--lx-text);
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--lx-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--lx-coral); }

code {
    font-size: .875em;
    padding: .12em .4em;
    border-radius: 6px;
    background: var(--lx-surface-2);
    color: var(--lx-text);
}

:focus-visible { outline: 3px solid var(--lx-violet); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.lx-skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--lx-radius-sm);
    background: var(--lx-violet-strong); color: #fff; font-weight: 600;
    transition: top .2s;
}
.lx-skip:focus { top: 16px; color: #fff; }

.lx-container { width: 100%; max-width: var(--lx-container); margin: 0 auto; padding: 0 20px; }
.lx-muted { color: var(--lx-muted); }

/* ---------- Logotipo provisional ---------- */
.lx-logo {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--lx-font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -.04em;
    color: var(--lx-text);
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}
.lx-logo__mark { width: 36px; height: 36px; display: block; transition: transform .35s var(--lx-ease); }
.lx-logo:hover .lx-logo__mark { transform: scale(1.08) rotate(-4deg); }
.lx-logo__text { padding-bottom: 2px; }
.lx-logo__dot { color: var(--lx-coral); }
.lx-logo:hover { color: var(--lx-text); }
.lx-logo--lg { font-size: 2.4rem; gap: 12px; margin-bottom: 24px; }
.lx-logo--lg .lx-logo__mark { width: 56px; height: 56px; }
@media (max-width: 420px) {
    .lx-header .lx-logo { font-size: 1.35rem; gap: 6px; }
    .lx-header .lx-logo__mark { width: 30px; height: 30px; }
}

/* ---------- Botones ---------- */
.lx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 44px; padding: .65em 1.25em;
    border-radius: var(--lx-radius-pill);
    border: 1px solid transparent;
    font: 600 .95rem/1.2 var(--lx-font-body);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--lx-ease), box-shadow .18s var(--lx-ease), background-color .18s, color .18s, border-color .18s;
}
.lx-btn:hover { transform: translateY(-1px); }
.lx-btn:active { transform: translateY(0) scale(.98); }
.lx-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.lx-btn--primary {
    background: var(--lx-violet-strong);
    background-image: linear-gradient(135deg, #9D44F0 0%, var(--lx-violet-strong) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(147, 51, 234, .35);
}
.lx-btn--primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(147, 51, 234, .45); }

.lx-btn--ghost {
    background: transparent;
    color: var(--lx-text);
    border-color: var(--lx-border);
}
.lx-btn--ghost:hover { color: var(--lx-text); border-color: var(--lx-violet); background: color-mix(in srgb, var(--lx-violet) 8%, transparent); }

.lx-btn--light { background: var(--lx-snow); color: var(--lx-midnight); }
.lx-btn--light:hover { color: var(--lx-midnight); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }

.lx-btn--lg { min-height: 52px; padding: .8em 1.6em; font-size: 1rem; }
.lx-btn--block { width: 100%; }

.lx-icon-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--lx-border); background: transparent; color: var(--lx-text);
    cursor: pointer; transition: background-color .2s, transform .2s var(--lx-ease);
}
.lx-icon-btn:hover { background: var(--lx-surface-2); transform: rotate(-12deg); }

/* ---------- Encabezado ---------- */
.lx-header {
    position: sticky; top: 0; z-index: 50; height: 72px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .3s, border-color .3s;
}
/* Al hacer scroll el encabezado gana fondo translúcido y desenfoque.
   El desenfoque va en una capa ::before: si se aplicara al propio encabezado,
   la barra inferior fija del móvil (que está dentro) quedaría pegada a él. */
.lx-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: transparent; transition: background-color .3s;
}
.lx-header.is-scrolled { border-bottom-color: var(--lx-border); }
.lx-header.is-scrolled::before {
    background: color-mix(in srgb, var(--lx-bg) 80%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.lx-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.lx-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lx-nav { display: flex; gap: 28px; margin-left: 24px; }
.lx-nav a { color: var(--lx-muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lx-nav a:hover { color: var(--lx-text); }

.lx-show-sm { display: none; }

@media (max-width: 860px) {
    .lx-show-sm { display: inline-grid; }
    .lx-hide-sm { display: none; }
    .lx-nav {
        position: absolute; left: 0; right: 0; top: 72px;
        flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px;
        background: var(--lx-bg); border-bottom: 1px solid var(--lx-border);
        box-shadow: var(--lx-shadow);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s var(--lx-ease), visibility .2s;
    }
    .lx-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .lx-nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--lx-border); }
    .lx-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 420px) {
    .lx-header__actions .lx-btn--primary { padding: .6em 1em; font-size: .875rem; }
}

/* ---------- Hero ---------- */
.lx-hero {
    position: relative; overflow: hidden;
    /* Se extiende bajo el encabezado translúcido para que el degradado sea continuo. */
    margin-top: -72px;
    padding: 128px 0 88px;
    background: var(--lx-hero-bg);
}
.lx-hero__glow {
    position: absolute; width: 520px; height: 520px; right: -120px; top: 40px;
    border-radius: 50%; filter: blur(80px); opacity: .35;
    background: conic-gradient(from 180deg, var(--lx-violet), var(--lx-coral), var(--lx-violet));
    animation: lx-float 14s ease-in-out infinite;
    pointer-events: none;
}
.lx-hero__grid {
    position: relative;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}

.lx-eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    font: 600 .8rem/1 var(--lx-font-body); letter-spacing: .08em; text-transform: uppercase;
    color: var(--lx-link);
    margin-bottom: 18px;
}

.lx-hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 22px; }
.lx-gradient-text {
    background: linear-gradient(100deg, var(--lx-violet) 0%, var(--lx-coral) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lx-hero__lead { font-size: 1.15rem; color: var(--lx-muted); max-width: 34rem; margin-bottom: 30px; }
.lx-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.lx-hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lx-hero__facts li { display: inline-flex; align-items: center; gap: .5em; font-size: .9rem; color: var(--lx-muted); }
.lx-hero__facts i { color: var(--lx-mint); }

/* Tarjetas ilustrativas del hero */
.lx-hero__visual { position: relative; min-height: 520px; display: grid; place-items: center; }

.lx-demo-card {
    position: relative; z-index: 2;
    width: min(340px, 86vw);
    border-radius: var(--lx-radius-lg);
    background: var(--lx-surface);
    box-shadow: var(--lx-shadow-lg);
    overflow: hidden;
    transform: rotate(-2deg);
    animation: lx-card-in .9s var(--lx-ease) both;
}
.lx-demo-card--back {
    position: absolute; z-index: 1;
    transform: rotate(7deg) translate(36px, 10px) scale(.94);
    opacity: .7;
    animation: lx-card-back-in 1s var(--lx-ease) .1s both;
}
.lx-demo-card__photo {
    position: relative; height: 330px;
    background:
        radial-gradient(70% 55% at 30% 30%, rgba(255, 255, 255, .35), transparent 60%),
        radial-gradient(60% 60% at 75% 75%, rgba(255, 71, 126, .9), transparent 70%),
        linear-gradient(160deg, #C084FC 0%, var(--lx-violet-strong) 45%, #3B1E6E 100%);
}
.lx-demo-card__photo--b {
    height: 430px;
    background:
        radial-gradient(60% 50% at 70% 25%, rgba(255, 255, 255, .25), transparent 60%),
        linear-gradient(200deg, var(--lx-mint) 0%, #1E6F86 55%, var(--lx-midnight) 100%);
}
.lx-demo-card__photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(23, 19, 41, .75), transparent 55%);
}
.lx-demo-card__match {
    position: absolute; z-index: 1; top: 14px; left: 14px;
    display: inline-flex; align-items: center; gap: .4em;
    padding: .4em .8em; border-radius: var(--lx-radius-pill);
    background: var(--lx-mint); color: var(--lx-midnight);
    font: 600 .8rem/1 var(--lx-font-body);
}
.lx-demo-card__info { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 14px; color: var(--lx-snow); }
.lx-demo-card__name { font: 700 1.5rem/1.1 var(--lx-font-display); margin: 0 0 4px; }
.lx-demo-card__meta { margin: 0; font-size: .85rem; opacity: .9; }
.lx-demo-card__body { padding: 16px 18px 18px; }
.lx-demo-card__actions { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }

.lx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lx-chip {
    padding: .35em .75em; border-radius: var(--lx-radius-pill);
    font-size: .78rem; font-weight: 500;
    background: var(--lx-surface-2); color: var(--lx-text);
}
.lx-chip--shared { background: color-mix(in srgb, var(--lx-mint) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lx-mint) 55%, transparent); }

.lx-round-btn {
    display: inline-grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    font-size: 1.35rem; background: var(--lx-surface);
    box-shadow: var(--lx-shadow);
}
.lx-round-btn--pass { color: var(--lx-muted); border: 1px solid var(--lx-border); }
.lx-round-btn--like { color: #fff; background: var(--lx-coral); box-shadow: 0 10px 26px rgba(255, 71, 126, .45); }
.lx-demo-card .lx-round-btn--like { animation: lx-pulse 2.6s ease-in-out 1.2s infinite; }

.lx-toast-demo {
    position: absolute; z-index: 3; right: -8px; top: 36px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px; border-radius: var(--lx-radius);
    background: var(--lx-surface); box-shadow: var(--lx-shadow-lg);
    animation: lx-toast-in .7s var(--lx-ease) .9s both;
}
.lx-toast-demo strong { display: block; font-family: var(--lx-font-display); font-size: 1.05rem; }
.lx-toast-demo span { font-size: .85rem; color: var(--lx-muted); }
.lx-toast-demo__icon {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--lx-coral), var(--lx-violet)); color: #fff;
}
.lx-toast-demo__icon i { color: #fff; }

/* ---------- Secciones ---------- */
.lx-section { padding: 96px 0; }
.lx-section--tint { background: var(--lx-surface-2); }
.lx-section__head { max-width: 640px; margin-bottom: 48px; }
.lx-section__title { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.lx-section__lead { color: var(--lx-muted); font-size: 1.08rem; }

.lx-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    counter-reset: none;
}
.lx-step {
    padding: 28px 24px; border-radius: var(--lx-radius-lg);
    background: var(--lx-surface); border: 1px solid var(--lx-border);
    transition: transform .25s var(--lx-ease), box-shadow .25s var(--lx-ease);
}
.lx-step:hover { transform: translateY(-4px); box-shadow: var(--lx-shadow); }
.lx-step h3 { font-size: 1.2rem; margin-top: 18px; }
.lx-step p { color: var(--lx-muted); margin: 0; font-size: .95rem; }
.lx-step__num {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    font: 700 1.05rem/1 var(--lx-font-display); color: #fff;
    background: linear-gradient(135deg, var(--lx-violet), var(--lx-coral));
}

.lx-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lx-feature {
    padding: 28px 24px; border-radius: var(--lx-radius-lg);
    background: var(--lx-surface); border: 1px solid var(--lx-border);
}
.lx-feature h3 { font-size: 1.15rem; margin-top: 18px; }
.lx-feature p { color: var(--lx-muted); margin: 0; font-size: .95rem; }
.lx-feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.2rem; }
.lx-feature__icon--violet { background: color-mix(in srgb, var(--lx-violet) 16%, transparent); color: var(--lx-link); }
.lx-feature__icon--coral { background: color-mix(in srgb, var(--lx-coral) 16%, transparent); color: var(--lx-coral); }
.lx-feature__icon--mint { background: color-mix(in srgb, var(--lx-mint) 18%, transparent); color: var(--lx-mint); }

.lx-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.lx-checklist { list-style: none; margin: 0; padding: 28px; border-radius: var(--lx-radius-lg); background: var(--lx-surface); border: 1px solid var(--lx-border); box-shadow: var(--lx-shadow); }
.lx-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--lx-border); }
.lx-checklist li:last-child { border-bottom: 0; }
.lx-checklist i { color: var(--lx-mint); margin-top: 4px; }

.lx-cta { padding: 0 0 96px; }
.lx-cta__inner {
    text-align: center; padding: 64px 24px; border-radius: 32px; color: var(--lx-snow);
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(255, 71, 126, .55), transparent 60%),
        radial-gradient(60% 120% at 100% 100%, rgba(34, 199, 169, .35), transparent 60%),
        linear-gradient(135deg, #3B1E6E, var(--lx-midnight));
}
.lx-cta__inner h2 { color: var(--lx-snow); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.lx-cta__inner p { opacity: .85; margin-bottom: 26px; }

/* ---------- Pie ---------- */
.lx-footer { border-top: 1px solid var(--lx-border); padding: 56px 0 28px; font-size: .92rem; }
.lx-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.lx-footer__brand p { color: var(--lx-muted); margin: 12px 0 0; }
.lx-footer__adult { display: flex; gap: .5em; align-items: center; }
.lx-footer__links { display: flex; flex-direction: column; gap: 10px; }
.lx-footer__links h2 { font-size: .8rem; font-family: var(--lx-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--lx-muted); margin-bottom: 4px; }
.lx-footer__links a { color: var(--lx-text); text-decoration: none; }
.lx-footer__links a:hover { color: var(--lx-link); }
.lx-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--lx-border); color: var(--lx-muted); font-size: .85rem; }

/* ---------- Layout mínimo: errores e instalador ---------- */
.lx-minimal { min-height: 100vh; background: var(--lx-hero-bg); }
.lx-minimal__main { width: 100%; max-width: 880px; margin: 0 auto; padding: 48px 20px; text-align: center; }

.lx-panel {
    max-width: 460px; margin: 0 auto; padding: 32px;
    text-align: left; border-radius: var(--lx-radius-lg);
    background: var(--lx-surface); border: 1px solid var(--lx-border); box-shadow: var(--lx-shadow);
}
.lx-panel--wide { max-width: 880px; }
.lx-panel__title { font-size: 1.8rem; }
.lx-panel__subtitle { font-size: 1.05rem; margin: 28px 0 10px; }
.lx-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.lx-error { text-align: center; }
.lx-error__code { font: 700 4.5rem/1 var(--lx-font-display); margin: 0 0 8px; }
.lx-error__code { background: linear-gradient(100deg, var(--lx-violet), var(--lx-coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-error__title { font-size: 1.35rem; font-weight: 600; }
.lx-error__actions { margin: 24px 0 16px; }
.lx-error__ref { color: var(--lx-muted); font-size: .8rem; margin: 0; }

/* ---------- Formularios ---------- */
.lx-form { display: grid; gap: 12px; margin-top: 16px; }
.lx-label { font-weight: 600; font-size: .9rem; }
.lx-input {
    width: 100%; min-height: 48px; padding: .7em 1em;
    border-radius: var(--lx-radius-sm); border: 1px solid var(--lx-border);
    background: var(--lx-bg); color: var(--lx-text); font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.lx-input:focus { outline: none; border-color: var(--lx-violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-violet) 25%, transparent); }

/* ---------- Avisos ---------- */
.lx-alert { padding: 12px 16px; border-radius: var(--lx-radius-sm); margin: 16px 0; font-size: .92rem; border: 1px solid transparent; }
.lx-alert p:last-child { margin-bottom: 0; }
.lx-alert--error { background: color-mix(in srgb, var(--lx-coral) 12%, transparent); border-color: color-mix(in srgb, var(--lx-coral) 40%, transparent); }
.lx-alert--ok { background: color-mix(in srgb, var(--lx-mint) 14%, transparent); border-color: color-mix(in srgb, var(--lx-mint) 45%, transparent); }
.lx-alert--info { background: color-mix(in srgb, var(--lx-violet) 10%, transparent); border-color: color-mix(in srgb, var(--lx-violet) 35%, transparent); }
.lx-code-block { display: block; margin-top: 8px; padding: 10px 12px; word-break: break-all; user-select: all; }

/* Lista de comprobaciones del instalador */
.lx-checks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--lx-border); border-radius: var(--lx-radius-sm); overflow: hidden; }
.lx-check { display: grid; grid-template-columns: 22px minmax(140px, 1fr) 2fr; gap: 10px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--lx-border); font-size: .9rem; }
.lx-check:last-child { border-bottom: 0; }
.lx-check__label { font-weight: 600; }
.lx-check__detail { color: var(--lx-muted); }
.lx-check--ok i { color: var(--lx-mint); }
.lx-check--warn i { color: #E8A317; }
.lx-check--fail { background: color-mix(in srgb, var(--lx-coral) 8%, transparent); }
.lx-check--fail i { color: var(--lx-coral); }
.lx-list-plain { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 600px) {
    .lx-check { grid-template-columns: 22px 1fr; }
    .lx-check__detail { grid-column: 2; }
    .lx-panel { padding: 24px 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .lx-steps, .lx-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .lx-hero { padding: 104px 0 64px; }
    .lx-hero__grid, .lx-split { grid-template-columns: 1fr; gap: 40px; }
    .lx-hero__visual { min-height: 480px; }
    .lx-toast-demo { right: 0; top: 8px; }
    .lx-footer__inner { grid-template-columns: 1fr 1fr; }
    .lx-footer__brand { grid-column: 1 / -1; }
    .lx-section { padding: 72px 0; }
}

@media (max-width: 560px) {
    .lx-steps, .lx-features { grid-template-columns: 1fr; }
    .lx-hero__cta .lx-btn { width: 100%; }
    .lx-demo-card__photo { height: 290px; }
    .lx-demo-card__photo--b { height: 380px; }
    .lx-hero__visual { min-height: 440px; }
}

/* ---------- Animaciones ---------- */
@keyframes lx-float { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-30px, 30px) rotate(25deg); } }
@keyframes lx-card-in { from { opacity: 0; transform: translateY(30px) rotate(-6deg); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes lx-card-back-in { from { opacity: 0; transform: rotate(0) translate(0, 30px) scale(.9); } to { opacity: .7; transform: rotate(7deg) translate(36px, 10px) scale(.94); } }
@keyframes lx-toast-in { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes lx-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Módulo 2 · Registro, acceso y área privada
   ===================================================================== */
.lx-header__actions form { margin: 0; display: inline-flex; }

/* ---------- Páginas de autenticación ---------- */
.page-auth main, .page-app main { min-height: calc(100vh - 72px); }
.page-auth { background: var(--lx-hero-bg); background-attachment: fixed; }

.lx-auth { padding: 32px 16px 80px; display: grid; place-items: start center; }
.lx-auth__card {
    width: 100%; max-width: 440px; padding: 36px 32px;
    border-radius: var(--lx-radius-lg);
    background: var(--lx-surface); border: 1px solid var(--lx-border); box-shadow: var(--lx-shadow-lg);
    animation: lx-toast-in .5s var(--lx-ease) both;
}
.lx-auth__card--wide { max-width: 640px; }
.lx-auth__card--center { text-align: center; }
.lx-auth__card--center p { margin-left: auto; margin-right: auto; max-width: 34rem; }
.lx-auth__head { margin-bottom: 20px; }
.lx-auth__head h1 { font-size: 1.9rem; margin-bottom: 6px; }
.lx-auth__head p { margin: 0; }
.lx-auth__alt { text-align: center; margin: 22px 0 0; font-size: .92rem; color: var(--lx-muted); }
.lx-auth__icon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px;
    border-radius: 20px; font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--lx-violet), var(--lx-violet-strong));
}
.lx-auth__icon--mint { background: linear-gradient(135deg, var(--lx-mint), #149C84); }
.lx-auth__icon--coral { background: linear-gradient(135deg, var(--lx-coral), #D62F63); }
.lx-auth__card h1 { font-size: 1.8rem; }

.lx-field { margin-bottom: 18px; }
.lx-field .lx-label { display: block; margin-bottom: 6px; }
.lx-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.lx-small-link { font-size: .85rem; }
.lx-hint { margin: 6px 0 0; font-size: .82rem; color: var(--lx-muted); }
.lx-hint i { color: var(--lx-mint); }
.lx-field-error { margin: 6px 0 0; font-size: .85rem; color: var(--lx-coral); font-weight: 500; }
.lx-input[aria-invalid="true"] { border-color: var(--lx-coral); }
.lx-select { appearance: auto; }
.lx-input[type="date"] { min-height: 48px; }

.lx-input-group { position: relative; }
.lx-input-group .lx-input { padding-right: 52px; }
.lx-input-group__btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 40px; border: 0; border-radius: 8px;
    background: transparent; color: var(--lx-muted); cursor: pointer;
}
.lx-input-group__btn:hover { color: var(--lx-text); }

.lx-strength { height: 4px; border-radius: 4px; margin-top: 8px; background: var(--lx-surface-2); overflow: hidden; }
.lx-strength span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s var(--lx-ease), background-color .3s; }

.lx-link-btn { background: none; border: 0; padding: 0; color: var(--lx-link); text-decoration: underline; cursor: pointer; font: inherit; }
.lx-form--inline { display: flex; gap: 10px; flex-wrap: wrap; }
.lx-form--inline .lx-input { flex: 1 1 220px; width: auto; }

/* Trampa para bots */
.lx-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Registro por pasos ---------- */
.lx-progress { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 8px; }
.lx-progress__item {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding-top: 10px; border-top: 4px solid var(--lx-surface-2);
    font-size: .85rem; font-weight: 600; color: var(--lx-muted);
    transition: border-color .3s, color .3s;
}
.lx-progress__item span {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--lx-surface-2); font-size: .75rem;
}
.lx-progress__item.is-active, .lx-progress__item.is-done { border-top-color: var(--lx-violet); color: var(--lx-text); }
.lx-progress__item.is-active span, .lx-progress__item.is-done span { background: var(--lx-violet-strong); color: #fff; }

.lx-step-panel { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.lx-step-panel__title { font: 700 1.25rem/1.2 var(--lx-font-display); margin-bottom: 18px; padding: 0; float: none; }
.lx-step-panel__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
/* Con JavaScript solo se ve el paso activo */
.lx-register.is-js .lx-step-panel { display: none; margin-bottom: 0; }
.lx-register.is-js .lx-step-panel.is-active { display: block; animation: lx-step-in .35s var(--lx-ease) both; }
.lx-register:not(.is-js) .lx-step-panel__nav button[type="button"] { display: none; }

/* Opciones tipo píldora */
.lx-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-choice { position: relative; cursor: pointer; }
.lx-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lx-choice span {
    display: inline-flex; align-items: center; gap: .45em;
    min-height: 40px; padding: .5em 1em; border-radius: var(--lx-radius-pill);
    border: 1px solid var(--lx-border); background: var(--lx-bg);
    font-size: .9rem; font-weight: 500; transition: all .15s;
}
.lx-choices--sm .lx-choice span { min-height: 36px; font-size: .85rem; padding: .4em .85em; }
.lx-choice:hover span { border-color: var(--lx-violet); }
.lx-choice input:checked + span {
    background: color-mix(in srgb, var(--lx-violet) 16%, var(--lx-surface));
    border-color: var(--lx-violet); color: var(--lx-text);
    box-shadow: inset 0 0 0 1px var(--lx-violet);
}
.lx-choice input:focus-visible + span { outline: 3px solid var(--lx-violet); outline-offset: 2px; }
.lx-choice input:disabled + span { opacity: .45; cursor: not-allowed; }
.lx-chip-group__title { margin: 14px 0 8px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--lx-muted); }

.lx-goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lx-goal { position: relative; cursor: pointer; }
.lx-goal input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lx-goal__body {
    display: flex; align-items: center; gap: 10px; height: 100%;
    padding: 14px 16px; border-radius: var(--lx-radius);
    border: 1px solid var(--lx-border); background: var(--lx-bg);
    font-weight: 600; font-size: .92rem; transition: all .15s;
}
.lx-goal__body i { color: var(--lx-coral); font-size: 1.1rem; width: 20px; text-align: center; }
.lx-goal:hover .lx-goal__body { border-color: var(--lx-violet); }
.lx-goal input:checked + .lx-goal__body { border-color: var(--lx-violet); box-shadow: inset 0 0 0 1px var(--lx-violet); background: color-mix(in srgb, var(--lx-violet) 12%, var(--lx-surface)); }
.lx-goal input:focus-visible + .lx-goal__body { outline: 3px solid var(--lx-violet); outline-offset: 2px; }

.lx-check-inline { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: .88rem; cursor: pointer; }
.lx-check-inline input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--lx-violet-strong); }
.lx-consents { padding: 16px; border-radius: var(--lx-radius); background: var(--lx-surface-2); margin-bottom: 20px; }
.lx-consents .lx-check-inline:first-child { margin-top: 0; }

.lx-range-pair { display: flex; align-items: flex-end; gap: 12px; }
.lx-range-pair label { display: grid; gap: 4px; font-size: .82rem; flex: 1; }
.lx-range-pair__sep { padding-bottom: 12px; color: var(--lx-muted); }

.lx-counter { float: right; font-size: .8rem; font-weight: 600; padding: .2em .7em; border-radius: var(--lx-radius-pill); background: var(--lx-surface-2); color: var(--lx-muted); }
.lx-counter.is-ok { background: color-mix(in srgb, var(--lx-mint) 20%, transparent); color: var(--lx-text); }

/* ---------- Área privada ---------- */
.lx-app { padding: 32px 0 80px; }
.lx-app h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.lx-app__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.lx-container--narrow { max-width: 720px; }
.lx-card { padding: 24px; border-radius: var(--lx-radius-lg); background: var(--lx-surface); border: 1px solid var(--lx-border); margin-bottom: 20px; }
.lx-card__title { font-size: 1.15rem; margin-bottom: 16px; }
.lx-card__subtitle { font-size: 1rem; margin: 20px 0 10px; }

.lx-welcome { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.lx-welcome h1 { margin: 0; }
.lx-welcome .lx-eyebrow { margin-bottom: 6px; }
.lx-avatar {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 50%;
    font: 700 1.1rem/1 var(--lx-font-display); color: #fff;
    background: linear-gradient(135deg, var(--lx-violet), var(--lx-coral));
}
.lx-avatar--lg { width: 68px; height: 68px; font-size: 1.7rem; }

.lx-soon {
    display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin-bottom: 20px;
    border-radius: var(--lx-radius-lg); color: var(--lx-snow);
    background: radial-gradient(80% 140% at 0% 0%, rgba(255, 71, 126, .45), transparent 60%), linear-gradient(135deg, #3B1E6E, var(--lx-midnight));
}
.lx-soon h2 { color: var(--lx-snow); font-size: 1.2rem; margin-bottom: 6px; }
.lx-soon p { margin: 0; color: rgba(248, 245, 252, .8); }
.lx-soon__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: rgba(248, 245, 252, .12); font-size: 1.2rem; }

.lx-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0; }
.lx-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lx-muted); font-weight: 600; }
.lx-facts dd { margin: 2px 0 0; font-weight: 500; }
.lx-tag { display: inline-flex; align-items: center; gap: .35em; margin-left: 6px; padding: .15em .6em; border-radius: var(--lx-radius-pill); font-size: .75rem; font-weight: 600; background: var(--lx-surface-2); color: var(--lx-muted); vertical-align: middle; }
.lx-tag--mint { background: color-mix(in srgb, var(--lx-mint) 20%, transparent); color: var(--lx-text); }

.lx-side-nav { display: flex; flex-direction: column; gap: 2px; }
.lx-side-nav a, .lx-side-nav button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border-radius: var(--lx-radius-sm); border: 0; background: none;
    color: var(--lx-text); text-decoration: none; font: 500 .95rem var(--lx-font-body); cursor: pointer; text-align: left;
}
.lx-side-nav a:hover, .lx-side-nav button:hover { background: var(--lx-surface-2); color: var(--lx-text); }
.lx-side-nav i { width: 18px; color: var(--lx-muted); }
.lx-side-nav form { margin: 0; }

.lx-back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: .9rem; text-decoration: none; }
.lx-session-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.lx-session { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--lx-radius); background: var(--lx-surface); border: 1px solid var(--lx-border); }
.lx-session.is-current { border-color: var(--lx-mint); }
.lx-session p { margin: 4px 0 0; font-size: .85rem; }
.lx-session__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lx-surface-2); color: var(--lx-link); flex-shrink: 0; }

/* ---------- Documentos legales ---------- */
.lx-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.lx-legal__nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.lx-legal__nav a { padding: 10px 14px; border-radius: var(--lx-radius-sm); color: var(--lx-muted); text-decoration: none; font-weight: 500; }
.lx-legal__nav a:hover { background: var(--lx-surface-2); color: var(--lx-text); }
.lx-legal__nav a[aria-current="page"] { background: var(--lx-surface-2); color: var(--lx-text); font-weight: 600; }
.lx-legal__doc { max-width: 720px; }
.lx-legal__doc h2 { font-size: 1.25rem; margin-top: 32px; }
.lx-legal__doc li { margin-bottom: 6px; }

@media (max-width: 860px) {
    .lx-app__grid, .lx-legal { grid-template-columns: 1fr; }
    .lx-legal__nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .lx-auth { padding: 16px 12px 56px; }
    .lx-auth__card { padding: 26px 20px; }
    .lx-goal-grid, .lx-facts { grid-template-columns: 1fr; }
    .lx-progress__item { font-size: 0; gap: 0; justify-content: center; }
    .lx-progress__item span { font-size: .75rem; }
}

@keyframes lx-step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* Instalador: diagnóstico de correo */
.lx-pre { margin: 10px 0 0; padding: 12px; max-height: 320px; overflow: auto; border-radius: var(--lx-radius-sm); background: var(--lx-bg); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.lx-details { margin: 12px 0; }
.lx-details summary, .lx-alert summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.lx-details .lx-checks { margin-top: 10px; }

/* =====================================================================
   Fase 2 · Perfil, ajustes y cuenta
   ===================================================================== */
.lx-nav--app { gap: 6px; margin-left: 28px; }
.lx-nav--app a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--lx-radius-pill); }
.lx-nav--app a[aria-current="page"] { background: var(--lx-surface-2); color: var(--lx-text); }
@media (max-width: 860px) {
    /* En móvil, la navegación de la cuenta pasa a una barra inferior fija, como en una app. */
    .lx-nav--app {
        position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 60;
        flex-direction: row; justify-content: space-around; margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--lx-bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--lx-border); border-bottom: 0; box-shadow: none;
        transform: none; opacity: 1; visibility: visible;
    }
    .lx-nav--app a { flex-direction: column; gap: 2px; padding: 6px 14px; font-size: .72rem; border-bottom: 0; border-radius: var(--lx-radius-sm); }
    .lx-nav--app a i { font-size: 1.15rem; }
    .page-app main { padding-bottom: 72px; }
}

.lx-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.lx-card__head .lx-card__title { margin: 0; }
.lx-card__title .lx-counter { float: right; }
.lx-btn--sm { min-height: 36px; padding: .4em .95em; font-size: .85rem; }
.lx-bio { white-space: normal; margin: 0 0 18px; line-height: 1.65; }

.lx-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

/* Interruptores */
.lx-switch { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; cursor: pointer; border-bottom: 1px solid var(--lx-border); }
.lx-switch:last-child { border-bottom: 0; }
.lx-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lx-switch__track { position: relative; flex-shrink: 0; width: 46px; height: 26px; margin-top: 2px; border-radius: 999px; background: var(--lx-surface-2); border: 1px solid var(--lx-border); transition: background-color .2s; }
.lx-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--lx-ease); }
.lx-switch input:checked + .lx-switch__track { background: var(--lx-violet-strong); border-color: var(--lx-violet-strong); }
.lx-switch input:checked + .lx-switch__track::after { transform: translateX(20px); }
.lx-switch input:focus-visible + .lx-switch__track { outline: 3px solid var(--lx-violet); outline-offset: 2px; }

.lx-sticky-actions {
    position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 12px;
    margin: 8px -4px 0; padding: 14px 4px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--lx-bg) 70%, transparent);
}
@media (max-width: 860px) { .lx-sticky-actions { bottom: 64px; } }

/* Ajustes */
.lx-settings-links { display: grid; gap: 10px; margin: 20px 0; }
.lx-settings-link {
    display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; width: 100%;
    padding: 14px 18px; border-radius: var(--lx-radius); border: 1px solid var(--lx-border);
    background: var(--lx-surface); color: var(--lx-text); text-decoration: none; text-align: left; font: inherit; cursor: pointer;
    transition: border-color .2s, transform .2s var(--lx-ease);
}
.lx-settings-link[hidden] { display: none; }
.lx-settings-link:hover { color: var(--lx-text); border-color: var(--lx-violet); transform: translateY(-1px); }
.lx-settings-link > span:nth-child(2) { display: grid; gap: 2px; }
.lx-settings-link .lx-muted { font-size: .85rem; }
.lx-settings-link__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lx-surface-2); color: var(--lx-link); font-size: 1.1rem; }
.lx-settings-link > i { color: var(--lx-muted); }

.lx-card--danger { border-color: color-mix(in srgb, var(--lx-coral) 45%, var(--lx-border)); }
.lx-btn--danger { background: #D62F63; color: #fff; }
.lx-btn--danger:hover { color: #fff; background: #BF2455; box-shadow: 0 10px 24px rgba(214, 47, 99, .35); }
.lx-checklist--plain { padding: 0; border: 0; box-shadow: none; background: none; margin-bottom: 16px; }
.lx-checklist--plain i.fa-circle-xmark { color: var(--lx-coral); }
.lx-checklist--plain i.fa-circle-info { color: var(--lx-link); }
.lx-card .lx-form > button { justify-self: start; }
@media (max-width: 560px) { .lx-card .lx-form > button { justify-self: stretch; } }

/* =====================================================================
   Fase 3 · Descubrir, matches y perfil completo
   ===================================================================== */

/* Avatares provisionales (sin fotos todavía): degradados de la paleta */
.lx-av-1 { background: linear-gradient(160deg, #C084FC 0%, #9333EA 50%, #3B1E6E 100%); }
.lx-av-2 { background: linear-gradient(160deg, #FF8FB0 0%, #FF477E 45%, #7A1E48 100%); }
.lx-av-3 { background: linear-gradient(160deg, #5EEAD4 0%, #22C7A9 40%, #1E4E6B 100%); }
.lx-av-4 { background: linear-gradient(160deg, #FDBA74 0%, #FB7185 50%, #6D28D9 100%); }
.lx-av-5 { background: linear-gradient(160deg, #A5B4FC 0%, #6366F1 45%, #1E1B4B 100%); }
.lx-av-6 { background: linear-gradient(160deg, #F0ABFC 0%, #C026D3 45%, #4A044E 100%); }
.lx-avatar[class*="lx-av-"] { background-size: cover; }
.lx-avatar--xl { width: 112px; height: 112px; font-size: 2.6rem; border: 4px solid rgba(248, 245, 252, .9); }
.lx-text-coral { color: var(--lx-coral); }
.lx-small { font-size: .8rem; }
.lx-tag--coral { background: color-mix(in srgb, var(--lx-coral) 18%, transparent); color: var(--lx-text); }

/* Escenario de descubrimiento */
.page-discover main { min-height: calc(100vh - 72px); }
.lx-discover { padding: 16px 16px 40px; }
.lx-discover__stage { max-width: 420px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; }
.lx-deck { position: relative; width: 100%; height: min(640px, calc(100vh - 230px)); min-height: 460px; }
.lx-deck__loading, .lx-deck__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; }
.lx-deck__empty h2 { font-size: 1.35rem; margin: 6px 0 0; }
.lx-deck__error { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; }
.lx-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--lx-surface-2); border-top-color: var(--lx-violet); animation: lx-spin .8s linear infinite; }
@keyframes lx-spin { to { transform: rotate(360deg); } }

/* Tarjeta de perfil */
.lx-card-profile {
    --depth: 0; --like: 0; --pass: 0; --exit-x: 1;
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    border-radius: var(--lx-radius-lg); overflow: hidden;
    background: var(--lx-surface); box-shadow: var(--lx-shadow-lg); border: 1px solid var(--lx-border);
    z-index: calc(10 - var(--depth));
    transform: translateY(calc(var(--depth) * 12px)) scale(calc(1 - var(--depth) * .04));
    transition: transform .35s var(--lx-ease), opacity .35s var(--lx-ease);
    touch-action: pan-y; user-select: none; -webkit-user-select: none;
    cursor: grab;
}
.lx-card-profile:not(.is-top) { pointer-events: none; }
.lx-card-profile.is-dragging { transition: none; cursor: grabbing; }
.lx-card-profile.is-leaving { pointer-events: none; transition: transform .38s var(--lx-ease), opacity .38s; opacity: 0; }
.lx-card-profile.is-liked { transform: translateX(140%) rotate(22deg); }
.lx-card-profile.is-passed { transform: translateX(-140%) rotate(-22deg); }
.lx-card-profile:focus-visible { outline: 3px solid var(--lx-violet); outline-offset: 4px; }

.lx-card-profile__cover { position: relative; flex: 1 1 58%; min-height: 220px; display: grid; place-items: center; color: rgba(248, 245, 252, .92); }
.lx-card-profile__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 19, 41, .82), transparent 55%); pointer-events: none; }
.lx-card-profile__initial { font: 700 clamp(5rem, 22vw, 8rem)/1 var(--lx-font-display); opacity: .9; text-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.lx-card-profile__match {
    position: absolute; z-index: 2; top: 14px; left: 14px;
    display: inline-flex; align-items: center; gap: .4em;
    padding: .4em .8em; border-radius: var(--lx-radius-pill);
    background: var(--lx-mint); color: var(--lx-midnight); font: 600 .8rem/1 var(--lx-font-body);
}
.lx-card-profile__menu {
    position: absolute; z-index: 3; top: 10px; right: 10px;
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(23, 19, 41, .45); color: #fff; backdrop-filter: blur(6px);
}
.lx-card-menu { position: absolute; z-index: 4; top: 56px; right: 10px; min-width: 170px; padding: 6px; border-radius: var(--lx-radius-sm); background: var(--lx-surface); border: 1px solid var(--lx-border); box-shadow: var(--lx-shadow-lg); }
.lx-card-menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--lx-text); font: 500 .9rem var(--lx-font-body); cursor: pointer; text-align: left; }
.lx-card-menu button:hover { background: var(--lx-surface-2); }
.lx-card-profile__info { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; color: var(--lx-snow); }
.lx-card-profile__name { font: 700 1.7rem/1.1 var(--lx-font-display); margin: 0 0 4px; color: var(--lx-snow); }
.lx-card-profile__meta, .lx-card-profile__activity { margin: 0; font-size: .88rem; opacity: .92; }
.lx-card-profile__activity { margin-top: 4px; color: var(--lx-mint); font-weight: 600; }
.lx-card-profile__activity::before { content: "● "; }
.lx-card-profile__body { flex: 0 1 auto; max-height: 42%; overflow: hidden; padding: 16px 18px 18px; display: grid; gap: 10px; align-content: start; }
.lx-card-profile__goal { margin: 0; font-weight: 600; }
.lx-card-profile__goal i { color: var(--lx-coral); }
.lx-card-profile__bio { margin: 0; color: var(--lx-muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lx-card-profile__shared { margin: 0; font-size: .82rem; font-weight: 600; color: var(--lx-text); }
.lx-card-profile__shared::before { content: "\2726  "; color: var(--lx-mint); }
.lx-chip i { margin-right: 2px; opacity: .8; }

/* Sellos al arrastrar */
.lx-stamp {
    position: absolute; z-index: 3; top: 64px; padding: 6px 14px; border-radius: 10px;
    font: 800 1.6rem/1 var(--lx-font-display); letter-spacing: .06em; border: 4px solid currentColor;
    pointer-events: none; transition: opacity .1s;
}
.lx-stamp--like { left: 22px; color: var(--lx-mint); transform: rotate(-14deg); opacity: var(--like); }
.lx-stamp--pass { right: 22px; color: var(--lx-coral); transform: rotate(14deg); opacity: var(--pass); }

/* Botones de acción */
.lx-deck-actions { display: flex; align-items: center; justify-content: center; gap: 22px; }
.lx-deck-actions[hidden] { display: none; }
.lx-deck-actions--inline { margin: 24px 0 8px; }
.lx-deck-actions .lx-round-btn { width: 64px; height: 64px; font-size: 1.5rem; border: 1px solid var(--lx-border); cursor: pointer; transition: transform .18s var(--lx-ease), box-shadow .18s; }
.lx-deck-actions .lx-round-btn:hover { transform: scale(1.08); }
.lx-deck-actions .lx-round-btn:active { transform: scale(.94); }
.lx-deck-actions .lx-round-btn:disabled { opacity: .5; cursor: default; transform: none; }
.lx-round-btn--info { width: 48px !important; height: 48px !important; font-size: 1.05rem !important; color: var(--lx-link); background: var(--lx-surface); }
.lx-round-btn--pass { background: var(--lx-surface); }
.lx-round-btn--like { border-color: transparent !important; }
.lx-deck-hint { text-align: center; font-size: .82rem; margin: 0; max-width: 340px; }

/* Animación de match */
.lx-match {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(60% 50% at 50% 42%, rgba(255, 71, 126, .42), transparent 70%),
        radial-gradient(50% 40% at 50% 60%, rgba(168, 85, 247, .30), transparent 70%),
        rgba(23, 19, 41, .95);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .25s;
}
.lx-match.is-open { opacity: 1; }
.lx-match__content { position: relative; z-index: 2; text-align: center; color: var(--lx-snow); max-width: 420px; }
.lx-match__title {
    font: 800 clamp(2.6rem, 10vw, 3.6rem)/1 var(--lx-font-display); margin-bottom: 10px; color: #fff;
    background: linear-gradient(100deg, #fff, #FFC2D4); -webkit-background-clip: text; background-clip: text; color: transparent;
    transform: scale(.6); opacity: 0;
}
.lx-match.is-open .lx-match__title { animation: lx-pop .55s var(--lx-ease) .1s forwards; }
.lx-match__text { opacity: .9; margin-bottom: 28px; }
.lx-match__avatars { display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.lx-match__avatars .lx-avatar { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.lx-match.is-open .lx-match__avatars .lx-avatar:first-child { animation: lx-slide-l .6s var(--lx-ease) both; }
.lx-match.is-open .lx-match__avatars .lx-avatar:last-child { animation: lx-slide-r .6s var(--lx-ease) both; }
.lx-match__heart { z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 -14px; border-radius: 50%; background: var(--lx-coral); color: #fff; font-size: 1.4rem; box-shadow: 0 10px 30px rgba(255, 71, 126, .6); }
.lx-match.is-open .lx-match__heart { animation: lx-beat 1.1s ease-in-out .5s infinite; }
.lx-match__actions { display: grid; gap: 12px; }
.lx-btn--ghost-light { background: transparent; color: var(--lx-snow); border-color: rgba(248, 245, 252, .35); }
.lx-btn--ghost-light:hover { color: #fff; border-color: #fff; }
.lx-match__hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lx-match__hearts i { position: absolute; bottom: -40px; color: rgba(255, 71, 126, .7); font-size: 1.4rem; }
.lx-match.is-open .lx-match__hearts i { animation: lx-float-up 3.2s ease-in infinite; }
.lx-match__hearts i:nth-child(1) { left: 10%; animation-delay: 0s; }
.lx-match__hearts i:nth-child(2) { left: 25%; animation-delay: .6s; font-size: 2rem; }
.lx-match__hearts i:nth-child(3) { left: 45%; animation-delay: 1.2s; }
.lx-match__hearts i:nth-child(4) { left: 62%; animation-delay: .3s; font-size: 1.1rem; }
.lx-match__hearts i:nth-child(5) { left: 78%; animation-delay: .9s; font-size: 2.2rem; }
.lx-match__hearts i:nth-child(6) { left: 90%; animation-delay: 1.5s; }
@keyframes lx-pop { 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes lx-slide-l { from { transform: translateX(-60px) rotate(-12deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
@keyframes lx-slide-r { from { transform: translateX(60px) rotate(12deg); opacity: 0; } to { transform: rotate(6deg); opacity: 1; } }
@keyframes lx-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes lx-float-up { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; } }

/* Diálogos */
.lx-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--lx-border); border-radius: var(--lx-radius-lg); background: var(--lx-surface); color: var(--lx-text); box-shadow: var(--lx-shadow-lg); }
.lx-dialog::backdrop { background: rgba(23, 19, 41, .65); backdrop-filter: blur(3px); }
.lx-dialog__body { padding: 26px; display: grid; gap: 12px; }
.lx-dialog__body h2 { font-size: 1.35rem; margin: 0; }
.lx-dialog__body p { margin: 0; }
.lx-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.lx-report-reasons { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.lx-report-reasons legend { margin-bottom: 6px; }
.lx-radio-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--lx-radius-sm); border: 1px solid var(--lx-border); cursor: pointer; font-size: .92rem; }
.lx-radio-row:has(input:checked) { border-color: var(--lx-violet); background: color-mix(in srgb, var(--lx-violet) 10%, transparent); }
.lx-radio-row input { accent-color: var(--lx-violet-strong); width: 18px; height: 18px; }
.lx-radio-row .lx-tag { margin-left: auto; }
.lx-report-urgent { font-size: .85rem; }

/* Aviso flotante */
.lx-toast {
    position: fixed; z-index: 250; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--lx-radius-pill);
    background: var(--lx-midnight); color: var(--lx-snow); box-shadow: var(--lx-shadow-lg); font-size: .92rem;
    opacity: 0; transition: opacity .25s, transform .25s var(--lx-ease);
}
:root[data-theme="dark"] .lx-toast { background: var(--lx-snow); color: var(--lx-midnight); }
.lx-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .lx-toast { bottom: 84px; } }

/* Perfil completo */
.lx-profile-full__cover { position: relative; height: 340px; border-radius: var(--lx-radius-lg); overflow: hidden; display: grid; place-items: center; color: rgba(248, 245, 252, .92); margin-bottom: 20px; }
.lx-profile-full__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 19, 41, .82), transparent 55%); }
.lx-profile-full__cover .lx-card-profile__name { font-size: 2rem; }
.lx-profile-full__safety { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: .88rem; }
.lx-profile-full__safety .lx-link-btn { text-decoration: none; color: var(--lx-muted); }
.lx-profile-full__safety .lx-link-btn:hover { color: var(--lx-coral); }

/* Lista de matches */
.lx-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lx-page-head h1 { margin-bottom: 4px; }
.lx-page-head p { margin: 0; }
.lx-empty { text-align: center; padding: 48px 16px; }
.lx-empty h2 { font-size: 1.4rem; }
.lx-match-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.lx-match-card { display: block; border-radius: var(--lx-radius); overflow: hidden; background: var(--lx-surface); border: 1px solid var(--lx-border); text-decoration: none; color: var(--lx-text); transition: transform .2s var(--lx-ease), box-shadow .2s; }
.lx-match-card:hover { color: var(--lx-text); transform: translateY(-3px); box-shadow: var(--lx-shadow); }
.lx-match-card__cover { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; color: rgba(248, 245, 252, .92); font: 700 3.6rem/1 var(--lx-font-display); }
.lx-match-card__new { position: absolute; top: 10px; left: 10px; padding: .25em .7em; border-radius: var(--lx-radius-pill); background: var(--lx-coral); color: #fff; font: 600 .72rem/1.4 var(--lx-font-body); }
.lx-match-card__body { display: grid; gap: 2px; padding: 12px 14px 14px; }

/* Indicador en la navegación */
.lx-nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--lx-coral); color: #fff; font: 700 .68rem/1 var(--lx-font-body); }
@media (max-width: 860px) {
    .lx-nav--app a { position: relative; padding: 6px 10px; }
    .lx-nav-badge { position: absolute; top: 0; right: 4px; }
}

@media (max-width: 560px) {
    .lx-discover { padding: 8px 12px 24px; }
    .lx-deck { height: calc(100vh - 72px - 64px - 150px); min-height: 420px; }
    .lx-profile-full__cover { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
    .lx-match__hearts { display: none; }
}
.lx-soon--link { text-decoration: none; align-items: center; transition: transform .2s var(--lx-ease), box-shadow .2s; }
.lx-soon--link:hover { transform: translateY(-2px); box-shadow: var(--lx-shadow-lg); color: var(--lx-snow); }
.lx-soon--link p { margin: 0; color: rgba(248, 245, 252, .82); }
.lx-soon__arrow { margin-left: auto; font-size: 1.2rem; color: var(--lx-snow); }
.lx-app__main > .lx-settings-link { margin-bottom: 20px; }

/* ==========================================================================
   Fotografías
   ========================================================================== */
.lx-photo-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; border-radius: inherit; -webkit-user-drag: none; user-select: none; }
.has-photo > .lx-card-profile__initial,
.lx-match-card__cover.has-photo > span:not(.lx-match-card__new) { visibility: hidden; }
.lx-avatar { position: relative; overflow: hidden; }
.lx-avatar.has-photo { color: transparent; }
.lx-match-card__cover { overflow: hidden; }
.lx-match-card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 19, 41, .35), transparent 40%); pointer-events: none; }
.lx-match-card__new { z-index: 1; }
.lx-card-profile__photos {
    position: absolute; z-index: 2; top: 56px; left: 14px;
    display: inline-flex; align-items: center; gap: .35em; padding: .25em .65em;
    border-radius: var(--lx-radius-pill); background: rgba(23, 19, 41, .55); color: var(--lx-snow);
    font-size: .78rem; font-weight: 600; backdrop-filter: blur(6px);
}

.lx-tag--wait { background: color-mix(in srgb, #E8A317 22%, transparent); color: var(--lx-text); }
.lx-tag--danger { background: color-mix(in srgb, var(--lx-coral) 20%, transparent); color: var(--lx-text); }
.lx-tag--violet { background: color-mix(in srgb, var(--lx-violet) 20%, transparent); color: var(--lx-text); }
.lx-mod__panel .lx-tag { margin-left: 0; }
.lx-card__title > i, .lx-card__subtitle > i { margin-right: .35em; }
.lx-card__title > .lx-small { margin-left: .35em; font-weight: 500; }
.lx-text-mint { color: var(--lx-mint); }
.lx-text-violet { color: var(--lx-violet); }
.lx-text-danger { color: #D62F63; }
.lx-text-danger:hover { color: #BF2455; }

/* Subida */
.lx-dropzone {
    position: relative; display: grid; place-items: center; min-height: 180px; padding: 20px;
    border: 2px dashed color-mix(in srgb, var(--lx-violet) 45%, var(--lx-border)); border-radius: var(--lx-radius);
    background: color-mix(in srgb, var(--lx-violet) 5%, transparent); cursor: pointer; text-align: center; overflow: hidden;
    transition: border-color .2s, background .2s;
}
.lx-dropzone:hover, .lx-dropzone.is-over { border-color: var(--lx-violet); background: color-mix(in srgb, var(--lx-violet) 10%, transparent); }
.lx-upload:has(#photo:focus-visible) .lx-dropzone { outline: 3px solid var(--lx-violet); outline-offset: 3px; }
.lx-dropzone__hint { display: grid; gap: 4px; justify-items: center; }
.lx-dropzone__hint i { font-size: 2rem; color: var(--lx-violet); }
.lx-choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-rules { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.lx-rules i { width: 1.2em; }
.lx-form--tight { gap: 8px; margin-top: 8px; }

/* Cuadrícula de fotos propias */
.lx-photo-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(170px, calc(50% - 8px)), 1fr)); }
.lx-photo-item {
    display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; border-radius: var(--lx-radius); overflow: hidden;
    background: var(--lx-surface); box-shadow: 0 0 0 1px var(--lx-border), 0 6px 18px rgba(23, 19, 41, .06);
    transition: transform .2s var(--lx-ease), box-shadow .2s;
}
.lx-photo-item:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--lx-border), 0 14px 30px rgba(23, 19, 41, .12); }
.lx-photo-item__img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--lx-surface-2); overflow: hidden; cursor: zoom-in; }
.lx-photo-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--lx-ease); }
.lx-photo-item__img:hover img { transform: scale(1.04); }
.lx-photo-item__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 19, 41, .55), transparent 38%); pointer-events: none; }
.lx-photo-item__img:focus-visible { outline: 3px solid var(--lx-violet); outline-offset: -3px; }
.lx-photo-item__main, .lx-photo-item__lock, .lx-photo-item__status {
    position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: .35em;
    padding: .28em .65em; border-radius: var(--lx-radius-pill);
    background: rgba(23, 19, 41, .58); color: var(--lx-snow); font-size: .72rem; font-weight: 600; line-height: 1.3;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lx-photo-item__main { top: 10px; left: 10px; }
.lx-photo-item__main i { color: #FFD166; }
.lx-photo-item__lock { top: 10px; right: 10px; padding: .4em; }
.lx-photo-item__status { left: 10px; bottom: 10px; }
.lx-photo-status--approved i { color: #5EEAD4; }
.lx-photo-status--pending i, .lx-photo-status--in_review i, .lx-photo-status--appealed i { color: #FCD34D; }
.lx-photo-status--rejected { background: rgba(214, 47, 99, .85); }
.lx-photo-item__zoom {
    position: absolute; z-index: 1; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(23, 19, 41, .58); color: var(--lx-snow); font-size: .85rem;
    opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; backdrop-filter: blur(8px);
}
.lx-photo-item__img:hover .lx-photo-item__zoom, .lx-photo-item__img:focus-visible .lx-photo-item__zoom { opacity: 1; transform: none; }
@media (hover: none) { .lx-photo-item__zoom { display: none; } }
.lx-photo-item--rejected .lx-photo-item__img img { filter: grayscale(.7) brightness(.85); }

.lx-photo-item__bar { display: flex; justify-content: space-around; gap: 2px; padding: 6px 4px; border-top: 1px solid var(--lx-border); min-width: 0; }
.lx-photo-item__bar form { display: contents; }
.lx-photo-btn {
    flex: 1 1 0; min-width: 0; max-width: 40px; height: 40px; aspect-ratio: 1; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: transparent; color: var(--lx-muted); font-size: 1rem; cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s;
}
.lx-photo-btn:hover:not(:disabled) { background: var(--lx-surface-2); color: var(--lx-violet-strong); transform: translateY(-1px); }
.lx-photo-btn:focus-visible { outline: 3px solid var(--lx-violet); outline-offset: 1px; }
.lx-photo-btn:disabled { opacity: .35; cursor: not-allowed; }
.lx-photo-btn.is-on, .lx-photo-btn.is-on:disabled { opacity: 1; color: #E8A317; cursor: default; }
.lx-photo-btn--danger:hover:not(:disabled) { color: #D62F63; background: color-mix(in srgb, var(--lx-coral) 12%, transparent); }
.lx-photo-item__note { padding: 0 12px 12px; font-size: .82rem; display: grid; gap: 6px; }
.lx-photo-item__note p { margin: 0; color: var(--lx-muted); }
.lx-photo-item__note summary { cursor: pointer; color: var(--lx-violet-strong); font-weight: 600; }

/* Visor de fotos (carrusel) */
.lx-no-scroll { overflow: hidden; }
.lx-lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(10, 8, 20, .94); color: var(--lx-snow); overflow: hidden;
}
.lx-lightbox::backdrop { background: rgba(10, 8, 20, .7); }
.lx-lightbox[open] { display: grid; animation: lx-fade .2s ease-out; }
@keyframes lx-fade { from { opacity: 0; } }
.lx-lightbox__frame { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 72px 72px; touch-action: pan-y; }
.lx-lightbox__img {
    max-width: calc(100vw - 144px); max-height: calc(100dvh - 136px); width: auto; height: auto; border-radius: var(--lx-radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none;
    opacity: 0; transition: opacity .25s, transform .3s var(--lx-ease);
}
.lx-lightbox__img.from-right { transform: translateX(40px); }
.lx-lightbox__img.from-left { transform: translateX(-40px); }
.lx-lightbox__img.is-in { opacity: 1; transform: none; }
.lx-lightbox__spinner { position: absolute; font-size: 1.6rem; opacity: .7; }
.lx-lightbox__btn {
    position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(248, 245, 252, .12); color: var(--lx-snow); font-size: 1.15rem;
    transition: background-color .15s, transform .15s;
}
.lx-lightbox__btn:hover { background: rgba(248, 245, 252, .24); }
.lx-lightbox__btn:focus-visible { outline: 3px solid var(--lx-violet); outline-offset: 2px; }
.lx-lightbox__close { top: 14px; right: 14px; }
.lx-lightbox__nav { top: 50%; transform: translateY(-50%); }
.lx-lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lx-lightbox__nav--prev { left: 14px; }
.lx-lightbox__nav--next { right: 14px; }
.lx-lightbox__footer {
    position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 14px;
    font-size: .9rem; color: rgba(248, 245, 252, .85); pointer-events: none;
}
.lx-lightbox__count { font-variant-numeric: tabular-nums; font-weight: 600; }
.lx-lightbox__caption:empty, .lx-lightbox__count:empty { display: none; }
.lx-lightbox__caption:not(:empty) + .lx-lightbox__count:not(:empty)::before { content: "·"; margin-right: 14px; opacity: .6; }
.lx-lightbox__dots { position: absolute; left: 0; right: 0; bottom: 48px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.lx-lightbox__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(248, 245, 252, .35); transition: background-color .2s, transform .2s; }
.lx-lightbox__dots span.is-active { background: var(--lx-snow); transform: scale(1.3); }
@media (max-width: 640px) {
    .lx-lightbox__frame { padding: 60px 8px 84px; }
    .lx-lightbox__img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 144px); }
    .lx-lightbox__nav { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; }
    .lx-lightbox__nav:hover { transform: none; }
    .lx-lightbox__nav--prev { left: 16px; }
    .lx-lightbox__nav--next { right: 16px; }
    .lx-lightbox__footer { bottom: 26px; }
    .lx-lightbox__dots { bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .lx-lightbox__img, .lx-photo-item, .lx-photo-item__img img { transition: none; } }

/* Portada del perfil ampliable */
.lx-profile-full__cover::after { pointer-events: none; }
.lx-profile-full__zoom { position: absolute; inset: 0; display: block; border-radius: inherit; cursor: zoom-in; }
.lx-profile-full__zoom .lx-photo-item__zoom { top: 14px; right: 14px; bottom: auto; }
.lx-profile-full__cover:hover .lx-photo-item__zoom { opacity: 1; transform: none; }

/* Galería en el perfil */
.lx-gallery { list-style: none; padding: 0; margin: -6px 0 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.lx-gallery--private { margin: 10px 0 0; flex-wrap: wrap; }
.lx-gallery__item { display: block; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--lx-radius-sm); overflow: hidden; cursor: pointer; background: var(--lx-surface-2); }
.lx-gallery--private .lx-gallery__item { width: 96px; height: 96px; }
.lx-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-gallery__item.is-active, .lx-gallery__item:hover { border-color: var(--lx-violet); }

/* Compartir fotos privadas */
.lx-share-grid { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.lx-share-item { position: relative; display: block; aspect-ratio: 1; border-radius: var(--lx-radius-sm); overflow: hidden; cursor: pointer; }
.lx-share-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lx-share-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.6) brightness(.8); transition: filter .2s; }
.lx-share-item__check {
    position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(23, 19, 41, .55); color: transparent; border: 2px solid var(--lx-snow);
}
.lx-share-item input:checked ~ img { filter: none; }
.lx-share-item input:checked ~ .lx-share-item__check { background: var(--lx-violet); color: #fff; }
.lx-share-item input:focus-visible ~ img { outline: 3px solid var(--lx-violet); outline-offset: -3px; }

/* Moderación */
.lx-stats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.lx-stats li { display: grid; padding: 14px 16px; border-radius: var(--lx-radius); background: var(--lx-surface); border: 1px solid var(--lx-border); }
.lx-stats strong { font: 700 1.8rem/1.1 var(--lx-font-display); }
.lx-stats span { color: var(--lx-muted); font-size: .85rem; }
.lx-mod { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; }
.lx-mod__media { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 180px; align-items: start; }
.lx-mod__photo, .lx-mod__crop { margin: 0; display: grid; gap: 6px; }
.lx-mod__photo img { max-width: 100%; max-height: 78vh; width: auto; height: auto; display: block; margin: 0 auto; border-radius: var(--lx-radius-lg); background: #0d0a18; }
.lx-mod__crop img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--lx-radius); display: block; }
.lx-mod__media figcaption { font-size: .8rem; color: var(--lx-muted); }
@media (max-width: 560px) { .lx-mod__media { grid-template-columns: 1fr; } .lx-mod__crop { max-width: 200px; } }
.lx-mod__panel { display: grid; gap: 12px; position: sticky; top: 90px; }
.lx-mod__panel form { margin: 0; }
.lx-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--lx-violet); background: var(--lx-surface-2); border-radius: 0 var(--lx-radius-sm) var(--lx-radius-sm) 0; }
@media (max-width: 860px) {
    .lx-mod { grid-template-columns: 1fr; }
    .lx-mod__panel { position: static; }
}
@media (max-width: 560px) {
    /* Barra inferior: Ajustes y Moderar quedan en Inicio para que quepan los accesos principales. */
    .lx-nav--app .lx-nav-extra { display: none; }
    .lx-nav--app a { padding: 6px 6px; }
}

/* Encuadre 4:5 */
.lx-cropper { display: grid; gap: 10px; justify-items: center; }
.lx-cropper__stage {
    position: relative; width: min(100%, 320px); aspect-ratio: 4 / 5; overflow: hidden;
    border-radius: var(--lx-radius); background: #0d0a18; cursor: grab; touch-action: none; user-select: none;
    box-shadow: 0 0 0 1px var(--lx-border), var(--lx-shadow);
}
.lx-cropper__stage:focus-visible { outline: 3px solid var(--lx-violet); outline-offset: 3px; }
.lx-cropper__stage.is-dragging { cursor: grabbing; }
.lx-cropper__img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
/* Miniatura cuadrada: la parte superior del recorte (igual que en el servidor). */
.lx-cropper__thumb { position: absolute; left: 0; right: 0; top: 6%; height: 80%; border: 2px dashed rgba(248, 245, 252, .75); border-radius: 4px; pointer-events: none; }
.lx-cropper__grid {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
    background:
        linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
        linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% - .5px), rgba(255, 255, 255, .45) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% - .5px), rgba(255, 255, 255, .45) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.lx-cropper__stage.is-dragging .lx-cropper__grid { opacity: 1; }
.lx-cropper__zoom { display: flex; align-items: center; gap: 10px; width: min(100%, 320px); }
.lx-cropper__zoom .lx-icon-btn { width: 36px; height: 36px; flex-shrink: 0; }
.lx-range { flex: 1; accent-color: var(--lx-violet-strong); }
.lx-cropper__hint { text-align: center; max-width: 360px; margin: 0; }
.lx-upload__crop { display: grid; gap: 8px; justify-items: center; padding: 16px; border-radius: var(--lx-radius); background: color-mix(in srgb, var(--lx-violet) 5%, transparent); }
.lx-dialog--crop { width: min(440px, calc(100% - 24px)); }
.lx-dialog--crop .lx-dialog__body { padding: 20px; }

/* Portada del perfil con foto: misma proporción 4:5 que las tarjetas. */
.lx-profile-full__cover.has-photo { height: auto; aspect-ratio: 4 / 5; width: min(100%, 520px); margin-left: auto; margin-right: auto; }
.lx-profile-full__cover.has-photo + .lx-gallery, .lx-gallery { justify-content: center; }
.lx-panel__subtitle--sm { font-size: .95rem; margin-top: 20px; }
.lx-check--group { background: transparent; border-bottom: 0; padding-top: 14px; }
.lx-check--group .lx-check__label { grid-column: 1 / -1; }

/* Moderación: pestañas, filtros y listado de fotos */
.lx-tabs { display: flex; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--lx-border); overflow-x: auto; }
.lx-tabs__item {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: -1px;
    color: var(--lx-muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.lx-tabs__item:hover { color: var(--lx-text); }
.lx-tabs__item[aria-current="page"] { color: var(--lx-violet-strong); border-bottom-color: var(--lx-violet-strong); }
.lx-tabs__badge { min-width: 20px; padding: 0 6px; border-radius: var(--lx-radius-pill); background: var(--lx-coral); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }

.lx-filters { display: grid; gap: 14px; margin-bottom: 18px; }
.lx-filters__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(170px, calc(50% - 6px)), 1fr)); }
.lx-filters__grid .lx-field { margin: 0; }
.lx-filters__wide { grid-column: span 2; }
.lx-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lx-filters__count { margin-left: auto; }

.lx-pool { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(190px, calc(50% - 8px)), 1fr)); }
.lx-pool__item { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; border-radius: var(--lx-radius); overflow: hidden; background: var(--lx-surface); box-shadow: 0 0 0 1px var(--lx-border); }
.lx-pool__img img:not([src]) { visibility: hidden; }
.lx-pool__img.is-hidden { cursor: pointer; background: repeating-linear-gradient(135deg, var(--lx-surface-2) 0 12px, color-mix(in srgb, var(--lx-violet) 10%, var(--lx-surface-2)) 12px 24px); }
.lx-pool__veil { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 6px; color: var(--lx-text); font-weight: 600; z-index: 1; }
.lx-pool__img.is-hidden .lx-pool__veil { display: grid; }
.lx-pool__veil i { font-size: 1.5rem; color: var(--lx-violet-strong); }
.lx-pool__show { margin-top: 4px; padding: .3em .9em; border-radius: var(--lx-radius-pill); background: var(--lx-violet-strong); color: #fff; font-size: .8rem; }
.lx-pool__img.is-hidden .lx-photo-item__lock { display: none; }
.lx-pool__body { display: grid; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.lx-pool__body p { margin: 0; overflow-wrap: anywhere; }
.lx-pool__who a { color: var(--lx-text); text-decoration: none; }
.lx-pool__body p.lx-pool__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.lx-pool__who a:hover { color: var(--lx-violet-strong); text-decoration: underline; }
.lx-pool__reason { color: #B4234F; }
.lx-pool__actions { margin-top: 6px; }
.lx-pool__actions summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--lx-violet-strong); }
.lx-pool__forms { display: grid; gap: 8px; margin-top: 8px; }
.lx-pool__forms form { margin: 0; display: grid; gap: 6px; }
.lx-input--sm { padding: 6px 10px; font-size: .85rem; min-height: 36px; }
.lx-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 24px 0 0; }
.lx-filters__grid > * { min-width: 0; }
.lx-filters__grid .lx-input { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .lx-filters__count { margin-left: 0; width: 100%; } }

/* Protección de fotos (disuasiva; la marca de agua la pone el servidor) */
.lx-photo-fill, .lx-photo-item__img img, .lx-gallery__item img, .lx-share-item img, .lx-mod__photo img,
.lx-mod__crop img, .lx-pool__img img, .lx-lightbox__img, .lx-avatar img {
    -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.lx-photo-fill, .lx-photo-item__img img, .lx-gallery__item img, .lx-share-item img, .lx-pool__img img, .lx-avatar img { pointer-events: none; }
.lx-photo-item__img, .lx-gallery__item, .lx-lightbox__frame, .lx-mod__photo, .lx-pool__img, .lx-profile-full__cover, .lx-card-profile__cover { -webkit-touch-callout: none; }
.lx-shield .lx-photo-fill, .lx-shield .lx-photo-item__img img, .lx-shield .lx-gallery__item img, .lx-shield .lx-share-item img,
.lx-shield .lx-mod__photo img, .lx-shield .lx-mod__crop img, .lx-shield .lx-pool__img img, .lx-shield .lx-lightbox__img, .lx-shield .lx-avatar img {
    filter: blur(28px) saturate(.6) brightness(.75) !important;
}
@media print {
    .lx-photo-fill, .lx-photo-item__img img, .lx-gallery__item img, .lx-share-item img, .lx-mod__photo img,
    .lx-mod__crop img, .lx-pool__img img, .lx-lightbox, .lx-avatar img { visibility: hidden !important; }
}
.lx-shield-notice {
    position: fixed; z-index: 2000; left: 50%; top: 84px; transform: translateX(-50%);
    padding: 10px 18px; border-radius: var(--lx-radius-pill); background: rgba(23, 19, 41, .88); color: var(--lx-snow);
    font-size: .9rem; font-weight: 600; box-shadow: var(--lx-shadow-lg); pointer-events: none; white-space: nowrap;
}
.lx-shield-notice[hidden] { display: none; }
@media (max-width: 560px) { .lx-shield-notice { white-space: normal; text-align: center; width: calc(100% - 32px); } }

/* ==========================================================================
   Chat
   ========================================================================== */
.lx-icon-btn--plain { border: 0; background: transparent; }
.lx-online-dot { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--lx-mint); border: 2px solid var(--lx-surface); z-index: 2; }
.lx-avatar { flex-shrink: 0; }

/* Lista */
.lx-chat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.lx-chat-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--lx-radius); color: var(--lx-text); text-decoration: none; transition: background-color .15s; }
.lx-chat-row:hover { background: var(--lx-surface); color: var(--lx-text); }
.lx-chat-row .lx-avatar { width: 52px; height: 52px; font-size: 1.3rem; overflow: visible; }
.lx-chat-row .lx-avatar img { border-radius: 50%; }
.lx-chat-row__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lx-chat-row__top { display: flex; align-items: center; gap: 8px; }
.lx-chat-row__time { margin-left: auto; font-size: .78rem; color: var(--lx-muted); }
.lx-chat-row__preview { color: var(--lx-muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-chat-row.is-unread .lx-chat-row__preview { color: var(--lx-text); font-weight: 600; }
.lx-chat-row__badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--lx-radius-pill); background: var(--lx-coral); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

/* Conversación: ocupa la pantalla, como una app */
.page-chat .lx-footer { display: none; }
.page-chat main { padding-bottom: 0 !important; }
.lx-chat {
    --lx-chat-top: 72px;
    display: flex; flex-direction: column; width: min(100%, 760px); margin: 0 auto;
    height: calc(100dvh - var(--lx-chat-top)); background: var(--lx-surface);
    border-left: 1px solid var(--lx-border); border-right: 1px solid var(--lx-border);
}
@media (max-width: 860px) { .lx-chat { height: calc(100dvh - var(--lx-chat-top) - 66px - env(safe-area-inset-bottom)); border: 0; } }
.lx-chat__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--lx-border); position: relative; }
.lx-chat__peer { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--lx-text); text-decoration: none; }
.lx-chat__peer:hover { color: var(--lx-text); }
.lx-chat__peer .lx-avatar { width: 42px; height: 42px; font-size: 1.1rem; }
.lx-chat__peer > span:last-child { display: grid; min-width: 0; }
.lx-chat__activity { font-size: .8rem; color: var(--lx-mint); font-weight: 600; min-height: 1em; }
.lx-chat__menu { position: relative; }
.lx-chat__menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; }
.lx-chat__menu summary::-webkit-details-marker { display: none; }
.lx-chat__menu .lx-card-menu { top: 46px; right: 0; min-width: 230px; display: grid; }
.lx-chat__menu .lx-card-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--lx-text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.lx-chat__menu .lx-card-menu a:hover { background: var(--lx-surface-2); }
.lx-chat__menu .lx-card-menu form { margin: 0; }

.lx-chat__notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; font-size: .85rem; background: color-mix(in srgb, var(--lx-violet) 8%, var(--lx-surface)); border-bottom: 1px solid var(--lx-border); }
.lx-chat__notice > i { color: var(--lx-violet-strong); }
.lx-chat__notice > span { flex: 1; min-width: 200px; }
.lx-chat__notice.is-unlocked { background: color-mix(in srgb, var(--lx-mint) 12%, var(--lx-surface)); }
.lx-chat__notice.is-unlocked > i { color: var(--lx-mint); }
.lx-chat__status { margin: 8px 12px 0; }

.lx-chat__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 6px; background: var(--lx-bg); }
.lx-chat__older { display: block; margin: 0 auto 10px; }
.lx-chat__messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lx-chat__empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 16px; }
.lx-chat__empty .lx-avatar { width: 84px; height: 84px; font-size: 2rem; }
.lx-msg-day { align-self: center; margin: 12px 0 6px; padding: .2em .8em; border-radius: var(--lx-radius-pill); background: var(--lx-surface-2); color: var(--lx-muted); font-size: .75rem; font-weight: 600; text-transform: capitalize; }
.lx-msg { max-width: min(78%, 520px); display: grid; gap: 2px; }
.lx-msg__text { margin: 0; padding: 9px 13px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.lx-msg--theirs { align-self: flex-start; }
.lx-msg--theirs .lx-msg__text { background: var(--lx-surface); border: 1px solid var(--lx-border); border-bottom-left-radius: 6px; }
.lx-msg--mine { align-self: flex-end; justify-items: end; }
.lx-msg--mine .lx-msg__text { background: linear-gradient(135deg, #9333EA, #C026D3); color: #fff; border-bottom-right-radius: 6px; }
.lx-msg__meta { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; color: var(--lx-muted); padding: 0 6px; }
.lx-msg__seen.is-read { color: var(--lx-violet); }
.lx-msg__seen-label { font-size: .7rem; color: var(--lx-muted); padding: 0 6px; }
.lx-msg--system { align-self: center; max-width: 92%; text-align: center; }
.lx-msg--system p { margin: 6px 0; padding: 8px 14px; border-radius: var(--lx-radius); background: color-mix(in srgb, var(--lx-mint) 14%, var(--lx-surface)); font-size: .85rem; }

.lx-chat__new { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 5; padding: 8px 16px; border: 0; border-radius: var(--lx-radius-pill); background: var(--lx-violet-strong); color: #fff; font-weight: 600; box-shadow: var(--lx-shadow-lg); cursor: pointer; }
.lx-chat { position: relative; }

.lx-chat__composer { position: relative; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--lx-border); background: var(--lx-surface); }
.lx-chat__bar { display: flex; align-items: flex-end; gap: 6px; }
.lx-chat__input {
    flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 10px 14px; border-radius: 22px;
    border: 1px solid var(--lx-border); background: var(--lx-bg); color: var(--lx-text); font: inherit; line-height: 1.35;
    overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.lx-chat__input::-webkit-scrollbar { display: none; }
.lx-chat__input:focus { outline: none; border-color: var(--lx-violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lx-violet) 20%, transparent); }
.lx-chat__send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--lx-violet-strong); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .15s, opacity .15s; }
.lx-chat__send:disabled { opacity: .4; cursor: not-allowed; }
.lx-chat__send:not(:disabled):hover { transform: scale(1.06); }
.lx-chat__count { display: block; text-align: right; padding: 4px 8px 0; }
.lx-chat__blocked { margin: 0 0 8px; padding: 10px 12px; border-radius: var(--lx-radius-sm); background: color-mix(in srgb, var(--lx-coral) 12%, var(--lx-surface)); color: var(--lx-text); font-size: .85rem; }
.lx-chat__blocked i { color: #D62F63; }
.lx-chat__blocked a { font-weight: 700; }
.lx-chat__emoji, .lx-chat__gifts {
    position: absolute; left: 10px; bottom: calc(100% + 6px); z-index: 6; width: min(380px, calc(100% - 20px));
    padding: 8px; border-radius: var(--lx-radius); background: var(--lx-surface); border: 1px solid var(--lx-border); box-shadow: var(--lx-shadow-lg);
}
.lx-chat__emoji[hidden], .lx-chat__gifts[hidden] { display: none; }
.lx-chat__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--lx-border); }
.lx-chat__tabs button {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: var(--lx-radius-pill);
    background: none; color: var(--lx-muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.lx-chat__tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--lx-violet) 16%, var(--lx-surface)); color: var(--lx-text); }
.lx-chat__tabs i { font-size: .7rem; color: var(--lx-muted); }
.lx-chat__emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.lx-chat__emoji-grid[hidden], .lx-chat__tabpanel[hidden] { display: none; }
.lx-chat__emoji-grid button { border: 0; background: none; font-size: 1.35rem; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; }
.lx-chat__emoji-grid button:hover, .lx-chat__emote-grid button:not(:disabled):hover { background: var(--lx-surface-2); }
.lx-chat__emote-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.lx-chat__emote-grid button { border: 0; background: none; padding: 6px 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center; transition: transform .12s; }
.lx-chat__emote-grid button:not(:disabled):active { transform: scale(.9); }
.lx-chat__emote-grid img { width: 34px; height: 34px; pointer-events: none; }
.lx-chat__tabpanel.is-locked .lx-chat__emote-grid { opacity: .45; filter: grayscale(.6); }
.lx-chat__tabpanel.is-locked button { cursor: default; }
.lx-chat__unlock-pack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 10px; border-radius: var(--lx-radius-sm); background: color-mix(in srgb, var(--lx-violet) 10%, var(--lx-surface)); font-size: .82rem; }
.lx-chat__unlock-pack span { flex: 1; min-width: 160px; }

.lx-chat__gifts-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 8px; }
.lx-hearts-pill {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--lx-radius-pill);
    background: color-mix(in srgb, #FF477E 14%, var(--lx-surface)); color: var(--lx-text); font-weight: 700; font-size: .85rem; text-decoration: none;
}
.lx-hearts-pill .fa-heart { color: #FF477E; }
.lx-hearts-pill:hover { color: var(--lx-text); background: color-mix(in srgb, #FF477E 22%, var(--lx-surface)); }
.lx-chat__gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lx-chat__gift-grid button {
    display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--lx-border); border-radius: var(--lx-radius-sm);
    background: var(--lx-bg); color: var(--lx-text); font: inherit; cursor: pointer; transition: transform .12s, border-color .12s;
}
.lx-chat__gift-grid button:hover { border-color: var(--lx-violet); transform: translateY(-2px); }
.lx-chat__gift-grid button.is-sending { opacity: .5; pointer-events: none; }
.lx-chat__gift-grid img { width: 44px; height: 44px; pointer-events: none; }
.lx-chat__gift-name { font-size: .7rem; line-height: 1.15; text-align: center; min-height: 2.3em; display: grid; align-items: center; }
.lx-chat__gift-price { font-size: .75rem; font-weight: 700; }
.lx-chat__gift-price i { color: #FF477E; font-size: .65rem; }
.lx-chat__gifts-note { margin: 8px 4px 2px; }
.lx-chat__gift-btn i { color: #FF477E; }

/* Emotes y regalos dentro de los mensajes */
.lx-emote { width: 1.6em; height: 1.6em; vertical-align: -.45em; margin: 0 1px; user-select: none; -webkit-user-drag: none; }
.lx-msg__text.is-jumbo { background: none !important; border: 0 !important; padding: 2px 4px; }
.lx-msg__text.is-jumbo .lx-emote { width: 56px; height: 56px; vertical-align: middle; }
.lx-msg__gift {
    position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 18px 12px; min-width: 150px;
    border-radius: 20px; background: linear-gradient(160deg, color-mix(in srgb, #FF477E 14%, var(--lx-surface)), color-mix(in srgb, var(--lx-violet) 18%, var(--lx-surface)));
    border: 1px solid color-mix(in srgb, #FF477E 30%, var(--lx-border)); overflow: hidden;
}
.lx-msg__gift img { width: 84px; height: 84px; user-select: none; -webkit-user-drag: none; }
.lx-msg__gift-caption { font-weight: 700; font-size: .85rem; text-align: center; }
.lx-msg__gift-hearts { position: absolute; inset: 0; pointer-events: none; }
.lx-msg__gift-hearts i { position: absolute; bottom: -12px; color: #FF477E; opacity: 0; font-size: .8rem; }
.lx-msg__gift.is-new img { animation: lx-gift-pop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.lx-msg__gift.is-new .lx-msg__gift-hearts i { animation: lx-gift-float 1.8s ease-out both; }
.lx-msg__gift-hearts i:nth-child(1) { left: 12%; animation-delay: .1s; }
.lx-msg__gift-hearts i:nth-child(2) { left: 30%; animation-delay: .35s; font-size: 1rem; }
.lx-msg__gift-hearts i:nth-child(3) { left: 50%; animation-delay: .2s; color: #C084FC; }
.lx-msg__gift-hearts i:nth-child(4) { left: 68%; animation-delay: .5s; }
.lx-msg__gift-hearts i:nth-child(5) { left: 84%; animation-delay: .3s; color: #C084FC; font-size: 1rem; }
.lx-msg__gift-hearts i:nth-child(6) { left: 42%; animation-delay: .65s; font-size: .65rem; }
@keyframes lx-gift-pop { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes lx-gift-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-150px) scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .lx-msg__gift.is-new img, .lx-msg__gift.is-new .lx-msg__gift-hearts i { animation: none; }
}

/* Corazones */
.lx-hearts { display: grid; gap: 20px; }
.lx-hearts__balance {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px; border-radius: var(--lx-radius-lg, 20px); color: #fff;
    background: linear-gradient(135deg, #9333EA, #C026D3 55%, #FF477E);
}
.lx-hearts__balance .fa-heart { font-size: 2.4rem; }
.lx-hearts__balance strong { font-size: 2.2rem; line-height: 1; display: block; }
.lx-hearts__balance p { margin: 0; opacity: .9; }
.lx-hearts__packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.lx-hearts__pack { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 12px; border: 1px solid var(--lx-border); border-radius: var(--lx-radius); background: var(--lx-surface); }
.lx-hearts__pack .lx-hearts__qty { font-size: 1.6rem; font-weight: 800; }
.lx-hearts__pack .lx-hearts__qty i { color: #FF477E; }
.lx-hearts__pack form { width: 100%; margin: 0; }
.lx-hearts__pack .lx-btn { width: 100%; justify-content: center; }
.lx-hearts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.lx-hearts__item { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--lx-radius-sm); background: var(--lx-surface); border: 1px solid var(--lx-border); text-align: center; font-size: .8rem; }
.lx-hearts__item img { width: 52px; height: 52px; }
.lx-hearts__emotes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.lx-hearts__emotes img { width: 36px; height: 36px; }
.lx-hearts__emote-pack { padding: 14px; border: 1px solid var(--lx-border); border-radius: var(--lx-radius); background: var(--lx-surface); display: grid; gap: 4px; }
.lx-hearts__emote-pack.is-locked .lx-hearts__emotes { opacity: .5; filter: grayscale(.5); }
.lx-hearts__emote-pack header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lx-hearts__emote-pack form { margin: 0; }
.lx-hearts__history { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lx-hearts__history td { padding: 8px 6px; border-bottom: 1px solid var(--lx-border); }
.lx-hearts__history td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.lx-hearts__history .is-in { color: var(--lx-mint); }
.lx-gifts-received { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-gifts-received span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 4px; border-radius: var(--lx-radius-pill); background: var(--lx-surface-2); font-weight: 700; font-size: .85rem; }
.lx-gifts-received img { width: 28px; height: 28px; }
@media (max-width: 560px) {
    .lx-chat__emote-grid { grid-template-columns: repeat(5, 1fr); }
    .lx-chat__emoji-grid { grid-template-columns: repeat(7, 1fr); }
}

/* Liberar chat */
.lx-unlock { display: grid; gap: 12px; justify-items: start; }
.lx-unlock h1 { font-size: 1.5rem; margin: 0; }
.lx-unlock__steps { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.lx-unlock__steps li { color: var(--lx-muted); }
.lx-unlock__steps li.is-done { color: var(--lx-text); font-weight: 600; }
.lx-unlock__steps li.is-done i { color: var(--lx-mint); }
.lx-unlock form { width: 100%; }
.lx-match-card__cta { margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--lx-violet-strong); }
.lx-alert--action { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
    .lx-chat__notice { padding: 8px 12px; font-size: .8rem; flex-wrap: nowrap; }
    .lx-chat__notice > span { min-width: 0; }
    .lx-chat__notice .lx-btn { flex-shrink: 0; padding: 6px 10px; }
    .lx-msg { max-width: 86%; }
}
.lx-inline-form { display: inline-block; margin: 6px 0 0; }

/* Fotos privadas solo en la app */
.lx-app-only { display: flex; gap: 14px; align-items: flex-start; background: color-mix(in srgb, var(--lx-violet) 8%, var(--lx-surface)); }
.lx-app-only__icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #9333EA, #C026D3); }
.lx-app-only p { margin: 4px 0 0; }

/* Datos con números del perfil (hijos, estatura) */
.lx-numbers { display: grid; gap: 4px; padding: 14px; margin: 4px 0 16px; border-radius: var(--lx-radius); background: color-mix(in srgb, var(--lx-violet) 6%, var(--lx-surface)); border: 1px dashed color-mix(in srgb, var(--lx-violet) 35%, var(--lx-border)); }
.lx-numbers__intro { margin: 0 0 8px; font-size: .85rem; color: var(--lx-muted); }
.lx-numbers__intro i { color: var(--lx-violet-strong); margin-right: 4px; }
.lx-numbers .lx-field:last-child { margin-bottom: 0; }
.lx-card-profile__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; font-size: .85rem; color: var(--lx-muted); }
.lx-card-profile__facts[hidden] { display: none; }
.lx-card-profile__facts i { color: var(--lx-violet-strong); margin-right: 3px; }
