:root {
    --fire-navy-950: var(--nf-ink);
    --fire-navy-900: var(--nf-night);
    --fire-navy-800: var(--nf-navy);
    --fire-navy-700: var(--nf-blue);
    --fire-red-700: #9d101c;
    --fire-red-600: var(--nf-live);
    --fire-red-500: #ef3442;
    --fire-red-100: #ffebed;
    --fire-surface: var(--nf-surface);
    --fire-text: var(--nf-text);
    --fire-muted: var(--nf-muted);
    --fire-border: var(--nf-border);
    --bazar-primary: var(--nf-blue);
    --bazar-primary-hover: var(--nf-blue-hover);
    --bazar-primary-dark: var(--nf-night);
    --bazar-primary-light: var(--nf-blue-soft);
    --brand-yellow: var(--nf-blue-bright);
    --brand-yellow-dark: var(--nf-blue);
    --brand-black: var(--nf-night);
    --brand-black-soft: var(--nf-ink);
    --brand-green: var(--nf-blue-bright);
    --brand-green-dark: var(--nf-blue);
    --table-yellow: var(--nf-blue-bright);
    --table-black: var(--nf-night);
    --table-green: var(--nf-blue);
    --table-green-dark: var(--nf-night);
    --table-border: var(--nf-border);
    --table-hover: rgba(var(--nf-blue-rgb), .055);
    --table-background: var(--nf-panel);
    --table-text: var(--nf-text);
    --socios-yellow: var(--nf-blue-bright);
    --socios-yellow-hover: var(--nf-blue);
    --socios-black: var(--nf-night);
    --socios-green: var(--nf-blue);
    --socios-green-dark: var(--nf-night);
    --surface: var(--nf-surface);
    --border: var(--nf-border);
    --text: var(--nf-text);
    --muted: var(--nf-muted);
}

::selection { color: #fff; background: var(--nf-blue); }

body {
    color: var(--nf-text);
    background:
        radial-gradient(circle at 88% 4%, rgba(var(--nf-blue-rgb), .09), transparent 25rem),
        var(--nf-surface);
}

a { color: var(--nf-blue); }
a:hover { color: var(--nf-blue-hover); }

.content-area {
    background:
        radial-gradient(circle at 92% 5%, rgba(var(--nf-blue-rgb), .045), transparent 28rem),
        var(--nf-surface);
}

.app-workspace {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: stretch;
}

.app-page {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Navegación */
.sidebar {
    background:
        radial-gradient(circle at 50% -2%, rgba(var(--nf-blue-rgb), .44), transparent 17rem),
        radial-gradient(circle at 10% 75%, rgba(var(--nf-blue-rgb), .18), transparent 20rem),
        linear-gradient(180deg, var(--nf-night) 0%, var(--nf-ink) 72%);
    border-right: 1px solid rgba(var(--nf-blue-on-dark-rgb), .18);
    box-shadow: 10px 0 34px rgba(2, 6, 17, .18);
}

.sidebar-brand { padding-top: 16px; }
.brand-link { gap: 12px; }
.brand-logo {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 17px;
    background: var(--nf-ink);
    box-shadow: 0 0 24px rgba(var(--nf-blue-bright-rgb), .24);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.brand-logo img,.home-hero-mark img,.auth-showcase__brand img,.auth-mobile-brand img,.fire-popup-navbar .navbar-brand img { aspect-ratio: 1 / 1; object-fit: contain; }
.brand-company { display:block; max-height:2.4em; overflow:hidden; overflow-wrap:anywhere; color: #fff; font-family: "Arial Narrow", "Segoe UI", sans-serif; font-size: 1.05rem; letter-spacing: .12em; }
.brand-system { color: var(--nf-blue-on-dark); font-size: .62rem; letter-spacing: .08em; }
.sidebar-divider { background: linear-gradient(90deg, var(--nf-blue-bright), rgba(var(--nf-blue-bright-rgb), .04)); }
.sidebar-link i:first-child, .nav-link-content i, .subnav-link i { color: var(--nf-blue-on-dark); }
.live-status-dot {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background-color: #ef334e;
    vertical-align: .08em;
}
[data-live-menu-indicator] { margin-inline-start: .25rem; }
[data-live-menu-indicator][hidden], [data-live-event-id][hidden] { display: none !important; }
.sidebar-menu-group { display:flex; flex-direction:column; gap:3px; margin-bottom:15px; }
.sidebar-menu-label { margin:9px 14px 5px; color:var(--nf-blue-light); font-size:.61rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.sidebar-menu-group + .sidebar-menu-group { padding-top:8px; border-top:1px solid rgba(var(--nf-blue-on-dark-rgb), .12); }
.sidebar-menu-group .sidebar-link { min-height:44px; padding-top:10px; padding-bottom:10px; }
.sidebar-menu-group .sidebar-link span { flex:1; text-align:left; font-size:.82rem; line-height:1.4; }
.sidebar-menu-group.sidebar-dropdown { display:block; margin-bottom:8px; padding:0; border:1px solid transparent; border-radius:12px; }
.sidebar-dropdown__toggle { display:flex; align-items:center; gap:10px; min-height:48px; padding:12px; border-radius:11px; color:var(--nf-blue-pale); font-size:.8rem; font-weight:650; line-height:1.4; list-style:none; cursor:pointer; transition:background .18s ease,color .18s ease; }
.sidebar-dropdown__toggle::-webkit-details-marker { display:none; }
.sidebar-dropdown__toggle > span { flex:1; min-width:0; }
.sidebar-dropdown__toggle > i:first-child { flex:none; width:20px; font-size:1rem; color:var(--nf-blue-on-dark); }
.sidebar-dropdown__chevron { flex:none; color:var(--nf-blue-light); font-size:.72rem; transition:transform .18s ease; }
.sidebar-dropdown__toggle:hover { color:#fff; background:rgba(var(--nf-blue-bright-rgb), .12); }
.sidebar-dropdown__toggle:focus-visible { outline:2px solid var(--nf-blue-on-dark); outline-offset:2px; }
.sidebar-dropdown[open] { background:rgba(var(--nf-blue-bright-rgb), .05); border-color:rgba(var(--nf-blue-on-dark-rgb), .15); }
.sidebar-dropdown[open] > .sidebar-dropdown__toggle { color:#fff; background:rgba(var(--nf-blue-bright-rgb), .09); }
.sidebar-dropdown[open] > .sidebar-dropdown__toggle .sidebar-dropdown__chevron { transform:rotate(180deg); }
.sidebar-dropdown__items { display:flex; flex-direction:column; gap:3px; padding:4px 5px 7px 12px; }
.sidebar-dropdown:not([open]) > .sidebar-dropdown__items { display:none; }
.sidebar-dropdown__items .sidebar-link { margin:0; border-radius:9px; gap:10px; }
.sidebar-link.sidebar-link--quick { min-height:48px; margin-bottom:14px; gap:10px; border:1px solid rgba(231,185,35,.32); background:rgba(231,185,35,.07); }
.sidebar-link--quick span { flex:1; text-align:left; font-size:.83rem; }
.sidebar-link--quick i:first-child { color:var(--nf-gold); }
.sidebar-link--quick:hover { border-color:var(--nf-gold); background:rgba(231,185,35,.12); }
.sidebar-link.sidebar-link--quick.active { border-color:var(--nf-gold); background:linear-gradient(135deg,var(--nf-blue),var(--nf-blue-hover)); }
@media(prefers-reduced-motion:reduce) { .sidebar-dropdown__toggle,.sidebar-dropdown__chevron { transition:none; } }
.sidebar-link:hover { color: #fff; background: rgba(var(--nf-blue-bright-rgb), .1); }
.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--nf-blue), var(--nf-blue-hover));
    box-shadow: 0 8px 22px rgba(var(--nf-blue-rgb), .34), inset 0 1px rgba(255, 255, 255, .16);
}
.sidebar-link.active i:first-child, .sidebar-link.active .nav-link-content i { color: #fff; }
.subnav { border-left-color: rgba(var(--nf-blue-bright-rgb), .48); }
.subnav-link.active { color: var(--nf-blue-on-dark); background: rgba(var(--nf-blue-bright-rgb), .11); }
.security-badge { border-color: rgba(var(--nf-blue-bright-rgb), .24); background: rgba(var(--nf-blue-bright-rgb), .08); }
.security-badge > i { color: var(--nf-blue-on-dark); }

.topbar {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--nf-border);
    box-shadow: 0 6px 22px rgba(var(--nf-ink-rgb), .055);
    backdrop-filter: blur(16px);
}
.topbar-kicker { display:block; max-width:min(52vw,520px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color: var(--nf-blue); letter-spacing: .09em; }
.topbar-title h1 { color: var(--nf-night); }
.user-avatar { color: #fff; background: linear-gradient(145deg, var(--nf-blue-bright), var(--nf-navy)); box-shadow: 0 5px 14px rgba(var(--nf-blue-rgb), .22); }
.my-acceso .my-acceso__trigger { display:flex; align-items:center; gap:11px; padding:7px 12px 7px 7px; border:1px solid var(--nf-border); border-radius:14px; background:#fff; box-shadow:0 3px 12px rgba(var(--nf-ink-rgb), .04); transition:box-shadow .2s,border-color .2s; }
.my-acceso .my-acceso__trigger:hover,.my-acceso .my-acceso__trigger[aria-expanded="true"] { background:var(--nf-blue-soft); border-color:var(--nf-blue); box-shadow:0 5px 18px rgba(var(--nf-blue-rgb), .12); }
.my-acceso__trigger:focus-visible { outline:3px solid #e7b923; outline-offset:3px; }
.my-acceso .user-avatar { width:38px; height:38px; flex:none; overflow:hidden; border:2px solid #e7b923; }
.my-acceso .user-avatar img { width:100%; height:100%; object-fit:cover; }
.my-acceso .my-acceso__kicker { display:block; color:var(--nf-blue); font-size:.62rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.my-acceso__trigger strong { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.83rem; color:var(--nf-night); }
.my-acceso .my-acceso__menu { width:310px; max-width:calc(100vw - 24px); padding:8px; margin-top:10px!important; border:1px solid var(--nf-border); border-radius:18px; box-shadow:0 18px 45px rgba(var(--nf-ink-rgb), .18); background:#fff; overflow:hidden; }
.my-acceso__identity { padding:16px; margin-bottom:7px; border-radius:12px; background:linear-gradient(125deg,var(--nf-night),var(--nf-blue-hover)); border-bottom:2px solid #e7b923; }
.my-acceso .my-acceso__identity .my-acceso__kicker { color:#e7c85b; }
.my-acceso__identity strong { display:block; margin:5px 0; color:#fff; font-size:1rem; overflow-wrap:anywhere; }
.my-acceso__identity small { display:block; color:var(--nf-blue-on-dark); font-size:.65rem; letter-spacing:.025em; }
.my-acceso .dropdown-item { display:flex; align-items:center; gap:12px; padding:12px 10px; border-radius:10px; color:var(--nf-navy); font-size:.81rem; font-weight:650; white-space:normal; transition:background .18s,color .18s; }
.my-acceso .dropdown-item > .bi:first-child { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:10px; background:var(--nf-blue-soft); color:var(--nf-blue); font-size:1rem; }
.my-acceso .dropdown-item span { flex:1; min-width:0; }
.my-acceso .dropdown-item small { display:block; color:var(--nf-blue-mid); margin-top:3px; font-size:.68rem; font-weight:400; }
.my-acceso .my-acceso__arrow { font-size:.65rem; color:var(--nf-blue-mid); }
.my-acceso .dropdown-item:hover,.my-acceso .dropdown-item:focus { background:var(--nf-blue-soft); color:var(--nf-blue); }
.my-acceso .dropdown-item.text-danger:hover { background:#fff0f2; }
.my-acceso .dropdown-item.text-danger > .bi:first-child { background:#fff0f2; color:#b92d45; }
@media(prefers-reduced-motion:reduce) { .my-acceso .my-acceso__trigger,.my-acceso .dropdown-item { transition:none; } }
.topbar .sidebar-toggle {
    flex: 0 0 42px;
    padding: 0;
    color: #fff;
    background: var(--nf-blue);
    border-color: var(--nf-blue);
}
.topbar .sidebar-toggle > .bi { display: grid; line-height: 1; }
.topbar .sidebar-toggle:is(:hover, :active, :focus-visible) {
    color: #fff;
    background: var(--nf-blue-hover);
    border-color: var(--nf-blue-hover);
}
.topbar .sidebar-toggle:focus-visible { outline: 2px solid var(--nf-blue); outline-offset: 2px; }
.user-menu:hover, .user-menu:focus { color: var(--nf-blue); background: var(--nf-blue-soft); border-color: var(--nf-blue-border); }
.app-footer { color: var(--nf-muted); background: rgba(255, 255, 255, .78); border-top: 0; }
.collaborator-logos__list { display: flex; flex-wrap: wrap; width: 100%; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.collaborator-logo { display: block; flex: none; width: clamp(6rem, 13vw, 8rem); aspect-ratio: 1 / 1; padding: .375rem; border: 1px solid var(--nf-border); border-radius: .5rem; background: var(--nf-panel); }
.app-footer .collaborator-logo { width: clamp(2.75rem, 8vw, 4rem); padding: .25rem; }
.collaborator-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
a.collaborator-logo:hover { border-color: var(--nf-blue); }
a.collaborator-logo:focus-visible { outline: 2px solid var(--nf-blue); outline-offset: 2px; }
.collaborator-settings__summary { display: flex; align-items: center; gap: .75rem; padding: 1rem; color: var(--nf-navy); cursor: pointer; list-style: none; }
.collaborator-settings__summary::-webkit-details-marker { display: none; }
.collaborator-settings__summary:focus-visible { outline: 2px solid var(--nf-blue); outline-offset: -2px; }
details[open] > .collaborator-settings__summary .bi-chevron-down { transform: rotate(180deg); }
@media (max-width: 991.98px) {
    body:not(.stream-watch-page) .app-footer { display: flex; }
}

/* Superficies y componentes */
.page-section-header,
.content-area .form-title {
    border-color: var(--nf-border);
    border-left-color: var(--nf-blue) !important;
    border-top-color: var(--nf-blue) !important;
    background:
        radial-gradient(circle at 93% 20%, rgba(var(--nf-blue-bright-rgb), .1), transparent 15rem),
        #fff;
    box-shadow: 0 14px 34px rgba(var(--nf-ink-rgb), .07);
}
.page-section-header::after { display: none; }
.page-section-icon { background: linear-gradient(145deg, var(--nf-blue-bright), var(--nf-night)); box-shadow: 0 8px 20px rgba(var(--nf-blue-rgb), .24); }
.page-section-kicker, .list-toolbar-label i { color: var(--nf-blue); }
.page-section-header h1, .content-area .form-title h1, label, .form-label { color: var(--nf-night); }
.content-area .form-title h1::after { background: linear-gradient(90deg, var(--nf-blue-bright), var(--nf-live)); }

.form-section,
.personalFormManualWith,
.tableFormManualWith,
.card,
.modal-content,
.accordion-item {
    border-color: var(--nf-border) !important;
    background: var(--nf-panel);
    box-shadow: 0 12px 30px rgba(var(--nf-ink-rgb), .065);
}
.content-area form.personalFormManualWith,
.content-area > .container-fluid > form:has(> .form-section) { border-color: var(--nf-border) !important; box-shadow: 0 18px 44px rgba(var(--nf-ink-rgb), .09) !important; }
.content-area form.personalFormManualWith > .form-section,
.content-area > .container-fluid > form > .form-section,
.content-area form.personalFormManualWith > .modal-body,
.content-area > .container-fluid > form > .modal-body { border-top-color: var(--nf-blue) !important; }

.form-control, .form-select, .input-group-text {
    border-color: var(--nf-blue-pale);
    border-radius: 10px;
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--nf-blue-bright);
    box-shadow: 0 0 0 .22rem rgba(var(--nf-blue-bright-rgb), .13);
}
.form-check-input:checked { background-color: var(--nf-blue); border-color: var(--nf-blue); }

.table-responsive { border-color: var(--nf-border); box-shadow: 0 12px 28px rgba(var(--nf-ink-rgb), .06); }
.table-responsive > table.table thead th,
.tableFormManualWith .table-responsive > table.table thead th {
    color: var(--nf-blue-soft);
    background: linear-gradient(180deg, var(--nf-navy), var(--nf-night)) !important;
    border-color: rgba(255, 255, 255, .08) !important;
}
.table-responsive > table.table tbody tr:hover > *,
.tableFormManualWith .table-responsive > table.table tbody tr:hover td { background: rgba(var(--nf-blue-bright-rgb), .055) !important; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: var(--table-hover); }
.table a:not(.btn) { color: var(--nf-blue); }
.badge.bg-primary { background: var(--nf-blue) !important; }
.badge.bg-danger { background: var(--nf-live) !important; }

/* Métodos registrados / Flow */
.payment-toolbar {
    max-width: 1100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.payment-toolbar > div { display: grid; gap: 2px; }
.payment-toolbar strong { color: var(--nf-night); }
.payment-toolbar small { color: var(--nf-muted); }
.payment-toolbar form { width: auto !important; margin: 0 !important; }
.payment-alert { max-width: 1100px; margin: 0 auto 1rem; padding: 12px 14px; border-radius: 10px; }
.payment-alert--error { color: #8d1520; border: 1px solid #ffc2c7; background: #fff0f1; }
.payment-alert--success { color: #12653c; border: 1px solid #a9e8c8; background: #edfff5; }
.payment-empty {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    color: var(--nf-muted);
    border: 1px dashed var(--nf-blue-on-dark);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}
.payment-empty > i { color: var(--nf-blue); font-size: 2.5rem; }
.payment-empty h2 { margin: .75rem 0 .35rem; color: var(--nf-night); font-size: 1.15rem; }
.payment-empty p { margin: 0; }
.payment-card-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1rem; }
.registered-card {
    min-height: 165px;
    padding: 18px;
    color: var(--nf-blue-soft);
    border: 1px solid var(--nf-blue-hover);
    border-radius: 16px;
    background: radial-gradient(circle at 90% 10%, rgba(var(--nf-blue-bright-rgb), .32), transparent 9rem), linear-gradient(135deg, var(--nf-navy), var(--nf-deep));
    box-shadow: 0 14px 30px rgba(2,6,17,.18);
}
.registered-card.is-default { border-color: #d9ab18; box-shadow: 0 14px 30px rgba(2,6,17,.18), inset 0 0 0 1px rgba(229,178,10,.28); }
.stream-admin-list,.stream-admin-card { min-width:0; max-width:100%; }
.stream-admin-card h2 { overflow-wrap:anywhere; }
.stream-admin-card .table-responsive { min-width:0; max-width:100%; }
.stream-admin-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.stream-admin-tab { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:10px 15px; border:1px solid var(--nf-blue-pale); border-radius:10px; background:#fff; color:var(--nf-blue-hover); text-decoration:none; font-size:.85rem; font-weight:700; }
.stream-admin-tab span { display:inline-grid; place-items:center; min-width:24px; height:24px; padding:0 6px; border-radius:7px; background:var(--nf-blue-soft); font-size:.75rem; }
.stream-admin-tab:hover,.stream-admin-tab.is-active { color:#fff; background:var(--nf-blue); border-color:var(--nf-blue); }
.stream-admin-tab.is-active span,.stream-admin-tab:hover span { background:#ffffff29; }
.stream-admin-tab:focus-visible,.stream-admin-actions .btn:focus-visible { outline:3px solid #f2c735; outline-offset:3px; }
.stream-admin-card__heading { display:grid; gap:18px; }
.stream-admin-card__identity { min-width:0; }
.stream-admin-card__identity > .badge { padding:6px 9px; font-size:.7rem; letter-spacing:.02em; }
.stream-admin-card__identity h2 { color:#fff; margin:10px 0 8px; line-height:1.4; }
.stream-admin-card__meta { display:flex; flex-wrap:wrap; gap:6px 16px; color:var(--nf-blue-on-dark); font-size:.78rem; }
.stream-admin-card__meta span { display:inline-flex; align-items:center; gap:6px; }
.stream-admin-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; padding-top:16px; border-top:1px solid #ffffff21; min-width:0; }
.stream-admin-actions > form { width:auto!important; min-width:0; margin:0!important; }
.stream-admin-actions .btn { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; height:100%; min-height:42px; padding:9px 12px; border-radius:9px; color:#fff!important; font-size:.8rem; line-height:1.3; font-weight:650; text-align:center; white-space:normal; }
.stream-admin-actions .btn i { flex-shrink:0; }
.stream-admin-actions .btn-outline-primary { background:var(--nf-blue-hover); border-color:var(--nf-blue-mid); }
.stream-admin-actions .btn-outline-primary:hover { background:var(--nf-blue); }
.stream-admin-actions .btn-outline-warning { background:#604d1a; border-color:#b38c2b; }
.stream-admin-actions .btn-outline-warning:hover { background:#806420; }
.stream-admin-actions .btn-outline-info { background:var(--nf-blue-hover); border-color:var(--nf-blue-mid); }
.stream-admin-actions .btn-outline-info:hover { background:var(--nf-muted); }
.stream-admin-actions .btn-outline-danger { background:#622b3b; border-color:#af4761; }
.stream-admin-actions .btn-outline-danger:hover { background:#86334b; }
.stream-admin-actions .btn-warning { background:#806420; border-color:#b38c2b; }
.stream-admin-recordings { border:1px solid rgba(var(--nf-blue-light-rgb), 0.349); border-radius:10px; overflow:hidden; }
.stream-admin-recordings > summary { cursor:pointer; padding:12px 16px; font-size:.85rem; font-weight:600; }
.stream-admin-recordings > summary span { color:var(--nf-blue-on-dark); }
.stream-admin-card .stream-audience > summary { color:var(--nf-blue-soft); }
@media(max-width:575.98px) { .stream-admin-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } .stream-admin-actions .btn { font-size:.76rem; padding-inline:8px; } .stream-admin-tab { flex:1; padding-inline:10px; font-size:.78rem; } }
.registered-card__top { margin-bottom: 1.4rem; display: flex; align-items: center; justify-content: space-between; }
.registered-card__top i { color: var(--nf-blue-on-dark); font-size: 1.45rem; }
.registered-card__top span { padding: 4px 8px; color: #ffe693; border-radius: 999px; background: rgba(229,178,10,.16); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.registered-card > strong { display: block; color: #fff; font-size: .85rem; text-transform: uppercase; }
.registered-card__number { margin: .45rem 0 .65rem; font-size: 1.05rem; font-weight: 750; letter-spacing: .08em; }
.registered-card > small { color: var(--nf-blue-light); }
.registered-card__actions { margin-top: 1rem; padding-top: .8rem; display: flex; flex-wrap: wrap; gap: 7px; border-top: 1px solid rgba(var(--nf-blue-border-rgb), .16); }
.registered-card__actions form { width: auto !important; margin: 0 !important; }
.registered-card__button { border: 1px solid var(--nf-muted); padding: 6px 9px; color: var(--nf-blue-pale); border-radius: 8px; background: rgba(var(--nf-blue-bright-rgb), .1); font-size: .7rem; font-weight: 750; }
.registered-card__button:hover { color: #fff; background: rgba(var(--nf-blue-bright-rgb), .25); }
.registered-card__button--danger { color: #ffabb2; border-color: #873540; background: rgba(216,19,34,.1); }
.registered-card__button--danger:hover { color: #fff; background: rgba(216,19,34,.3); }
.oneclick-result { max-width: 500px; text-align: center; }
.oneclick-result__icon { margin: .5rem auto 1rem; font-size: 3.5rem; }
.oneclick-result__icon.is-success { color: #4ade80; }
.oneclick-result__icon.is-error { color: #ff6472; }
.oneclick-result p { margin: 0 0 1.25rem; color: var(--nf-blue-border); }
.oneclick-result .login100-form-btn { text-decoration: none; }

/* Inicio */
.home-hero {
    background:
        radial-gradient(circle at 80% 30%, rgba(var(--nf-blue-bright-rgb), .3), transparent 20rem),
        linear-gradient(125deg, var(--nf-ink) 0%, var(--nf-navy) 66%, var(--nf-blue-hover) 100%);
    border: 1px solid rgba(var(--nf-blue-on-dark-rgb), .18);
    box-shadow: 0 22px 50px rgba(2, 6, 17, .23);
}
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.45) .7px, transparent .7px); background-size: 27px 27px; opacity: .16; }
.home-eyebrow { color: var(--nf-blue-on-dark); }
.home-hero-mark { opacity: .9; }
.home-hero-mark img { border: 1px solid rgba(255,255,255,.14); border-radius: 22px; box-shadow: 0 0 44px rgba(var(--nf-blue-bright-rgb), .3); }
.module-card-featured .module-icon, .module-icon { color: #fff; background: linear-gradient(145deg, var(--nf-blue-bright), var(--nf-navy)); }
.module-card:hover { border-color: var(--nf-blue-border); box-shadow: 0 15px 32px rgba(var(--nf-blue-rgb), .1); }
.module-card > .bi-arrow-right { color: var(--nf-blue); }

/* Chat */
.live-chat { border-color: rgba(var(--nf-blue-on-dark-rgb), .24); background: var(--nf-ink); box-shadow: -10px 0 32px rgba(2, 6, 17, .12); }
.live-chat__header { background: linear-gradient(135deg, var(--nf-navy), var(--nf-night) 72%); border-bottom: 1px solid rgba(var(--nf-blue-on-dark-rgb), .2); }
.live-chat__header strong i { color: var(--nf-blue-border); }
.live-chat__messages { background: linear-gradient(180deg, var(--nf-ink), var(--nf-deep)); }
.live-chat__empty { color: var(--nf-blue-light); }
.live-chat__empty i { color: var(--nf-blue-light); }
.live-chat__message { border-color: var(--nf-navy); background: var(--nf-text); box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.live-chat__message.is-own { border-color: var(--nf-blue-bright); background: var(--nf-night); }
.live-chat__message-meta strong { color: var(--nf-blue-on-dark); }
.live-chat__message-meta time { color: var(--nf-blue-mid); }
.live-chat__message p { color: var(--nf-blue-soft); }
.live-chat__filters { border-color: var(--nf-navy); background: var(--nf-ink); }
.live-chat__filters button { color: var(--nf-blue-light); }
.live-chat__filters button.is-active { color: #fff; background: linear-gradient(135deg, var(--nf-blue), var(--nf-navy)); box-shadow: inset 0 0 0 1px rgba(var(--nf-blue-border-rgb), .25); }
.live-chat__message.is-paid.paid-tier-1 { border-color: #e1a91a; background: linear-gradient(135deg, #49370a, #261e08); }
.live-chat__message.is-paid.paid-tier-2 { border-color: #13a878; background: linear-gradient(135deg, #073f39, #082923); }
.live-chat__message.is-paid.paid-tier-3 { border-color: var(--nf-blue-border); background: linear-gradient(135deg, var(--nf-navy), var(--nf-night)); }
.live-chat__message.is-paid.paid-tier-4 { border-color: #9b6cff; background: linear-gradient(135deg, #382365, #1d1338); }
.live-chat__message.is-paid.paid-tier-5 { border-color: #e13b52; background: linear-gradient(135deg, #59162a, #2b0b18); box-shadow: 0 8px 28px rgba(225,59,82,.22); }
.live-chat__message.is-paid .live-chat__paid-badge { color: #ffd75d; }
.live-chat__mention { color: var(--nf-blue-on-dark); background: rgba(var(--nf-blue-bright-rgb), .2); }
.live-chat__action { color: var(--nf-blue-light); }
.live-chat__action:hover { color: var(--nf-blue-on-dark); background: var(--nf-navy); }
.live-chat__like.is-active { color: var(--nf-blue-on-dark); background: rgba(var(--nf-blue-bright-rgb), .2); }
.live-chat__moderate { color: #ff7c87; }
.live-chat__composer { border-top-color: var(--nf-navy); background: var(--nf-ink); }
.live-chat__input-row textarea { color: #f5f9ff; border-color: var(--nf-blue-hover); background: var(--nf-text); }
.live-chat__input-row textarea::placeholder { color: var(--nf-blue-mid); }
.live-chat__emoji-button { background: var(--nf-night); }
.live-chat__send { background: linear-gradient(135deg, var(--nf-blue-bright), var(--nf-blue)); }
.live-chat__emoji-picker { border-color: var(--nf-blue-hover); background: var(--nf-text); }
.live-chat__emoji-picker button:hover { background: var(--nf-navy); }
.live-chat-open { background: linear-gradient(180deg, var(--nf-navy), var(--nf-night)); box-shadow: -6px 0 20px rgba(2, 6, 17, .1); }
.live-chat-open:hover { background: linear-gradient(180deg, var(--nf-blue-bright), var(--nf-blue)); }

/* Acceso */
:root {
    --login-primary: var(--nf-blue);
    --login-primary-hover: var(--nf-blue-hover);
    --login-dark: #f1f6ff;
    --login-dark-soft: var(--nf-blue-pale);
    --login-secondary: var(--nf-blue-on-dark);
    --login-secondary-dark: var(--nf-blue-border);
    --login-background: var(--nf-ink);
    --login-white: var(--nf-ink);
    --login-border: var(--nf-blue-hover);
    --login-text: var(--nf-blue-soft);
    --login-muted: var(--nf-blue-light);
}
body:has(.login-page) {
    background:
        radial-gradient(circle at 16% 25%, rgba(var(--nf-blue-bright-rgb), .26), transparent 28rem),
        radial-gradient(circle at 85% 75%, rgba(var(--nf-blue-rgb), .2), transparent 30rem),
        linear-gradient(145deg, var(--nf-ink), var(--nf-night) 58%, var(--nf-ink));
}
.login-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.7) .65px, transparent .65px); background-size: 31px 31px; opacity: .14; }
.wrap-login100 { border-color: rgba(var(--nf-blue-on-dark-rgb), .24); background: rgba(var(--nf-ink-rgb), .94); box-shadow: 0 28px 75px rgba(0,0,0,.52), 0 0 48px rgba(var(--nf-blue-bright-rgb), .1); backdrop-filter: blur(18px); }
.wrap-login100::before { height: 5px; background: linear-gradient(90deg, var(--nf-blue), var(--nf-blue-bright) 72%, var(--nf-live) 72%, var(--nf-live)); }
.login100-form .wrap-input100:first-child img, .auth-brand-logo { display: block; width: min(100%, 310px) !important; height: auto; margin: 0 auto 12px !important; border-radius: 16px; box-shadow: 0 0 32px rgba(var(--nf-blue-bright-rgb), .18); }
.login100-form .login-heading, .login100-form label { color: #f1f6ff !important; }
.login100-form .login-heading small { color: var(--nf-blue-light); }
.login100-form .login-heading::after { background: linear-gradient(90deg, var(--nf-blue-bright), var(--nf-live)) !important; }
.login100-form .input100 {
    display: block;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    color: #f4f8ff !important;
    -webkit-text-fill-color: #f4f8ff;
    caret-color: var(--nf-blue-bright);
    border-color: var(--nf-blue-hover);
    background: var(--nf-text);
}
.login100-form .input100::placeholder { color: var(--nf-blue-mid); }
.login100-form .input100::selection { color: #fff; background: var(--nf-blue); }
.login100-form .input100:hover { border-color: var(--nf-blue-bright); }
.login100-form .input100:focus,
.login100-form .input100:active {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    border-color: var(--nf-blue-bright);
    background: var(--nf-night) !important;
    box-shadow: 0 0 0 4px rgba(var(--nf-blue-bright-rgb), .14);
}
.login100-form input.input100:-webkit-autofill,
.login100-form input.input100:-webkit-autofill:hover,
.login100-form input.input100:-webkit-autofill:focus,
.login100-form input.input100:-webkit-autofill:active {
    color: #f4f8ff !important;
    -webkit-text-fill-color: #f4f8ff !important;
    caret-color: var(--nf-blue-bright);
    border-color: var(--nf-blue-bright) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--nf-text) inset !important;
    box-shadow: 0 0 0 1000px var(--nf-text) inset !important;
    transition: background-color 9999s ease-out 0s;
}
.login100-form input.input100:autofill {
    color: #f4f8ff !important;
    -webkit-text-fill-color: #f4f8ff !important;
    background: var(--nf-text) !important;
}
.login100-form-btn { background: linear-gradient(135deg, var(--nf-blue-bright), var(--nf-blue)); border-color: var(--nf-blue); box-shadow: 0 9px 22px rgba(var(--nf-blue-rgb), .28); }
.login100-form-btn:hover { background: linear-gradient(135deg, var(--nf-blue), var(--nf-blue-hover)); border-color: var(--nf-blue-hover); }
.login100-form .wrap-input100,
.login100-form .container-login100-form-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.register-card { max-width: 520px; }
.register-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.register-grid__full { grid-column: auto; }
.registration-success { margin: 12px 0; padding: 11px 13px; color: #bce8d0; border: 1px solid rgba(65, 196, 126, .35); border-radius: 9px; background: rgba(22, 101, 52, .24); font-size: .8rem; }

/* Mensajes y estados de validación en las vistas de acceso. */
.login100-form .field-validation-error,
.login100-form .text-danger {
    display: block;
    margin-top: 6px;
    color: #ffabb2 !important;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.35;
}

.login100-form .input-validation-error {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-color: #ff6472 !important;
    background: #32121d !important;
    box-shadow: 0 0 0 3px rgba(216, 19, 34, .16) !important;
}

.login100-form .validation-summary-errors,
.login100-form [data-valmsg-summary="true"]:not(.validation-summary-valid) {
    display: block;
    margin: 12px 0;
    padding: 12px 14px;
    color: #ffe4e7 !important;
    border: 1px solid #b93b48 !important;
    border-left: 4px solid #ff6472 !important;
    border-radius: 9px;
    background: #351019 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
    font-size: .79rem;
    line-height: 1.45;
}

.login100-form .validation-summary-errors ul,
.login100-form [data-valmsg-summary="true"]:not(.validation-summary-valid) ul {
    margin: 0;
    padding-left: 18px;
}

.login100-form .validation-summary-errors li + li,
.login100-form [data-valmsg-summary="true"]:not(.validation-summary-valid) li + li {
    margin-top: 4px;
}

.login100-form .registration-success {
    color: #d8ffea !important;
    border-color: #2f9360;
    border-left: 4px solid #4ade80;
    background: #0e3825;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.fire-popup-navbar { background: linear-gradient(135deg, var(--nf-night), var(--nf-ink)); border-bottom: 3px solid var(--nf-blue); }
.fire-popup-navbar .navbar-brand img { max-height: 74px; border-radius: 10px; }

@media (max-width: 575.98px) {
    .brand-logo { width: 58px; height: 58px; flex-basis: 58px; }
    .home-hero-mark { opacity: .3; }
    .login100-form .wrap-input100:first-child img, .auth-brand-logo { max-width: 235px; }
    .register-grid { grid-template-columns: 1fr; }
    .register-grid__full { grid-column: auto; }
}

/* Resumen financiero de compras */
.purchase-summary-filter { display:grid; grid-template-columns:minmax(170px,240px) minmax(130px,190px) minmax(0,1fr); align-items:end; gap:14px; width:100%; margin:0 0 18px; padding:18px; border:1px solid var(--nf-border); border-radius:16px; background:#fff; box-shadow:0 12px 30px rgba(var(--nf-ink-rgb), .065); }
.purchase-summary-filter__actions { display:flex; flex-wrap:wrap; gap:10px; }
.purchase-summary-filter > div { min-width:0; }
.purchase-summary-filter label { display:block; margin-bottom:6px; font-size:.72rem; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.purchase-summary-filter .btn { min-height:44px; white-space:nowrap; }
.purchase-summary-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.purchase-summary-metric { display:flex; align-items:center; gap:14px; min-width:0; padding:18px; border:1px solid var(--nf-border); border-radius:16px; background:#fff; box-shadow:0 12px 28px rgba(var(--nf-ink-rgb), .06); }
.purchase-summary-metric--primary { color:#fff; border-color:var(--nf-blue); background:radial-gradient(circle at 100% 0,rgba(229,178,10,.22),transparent 10rem),linear-gradient(135deg,var(--nf-navy),var(--nf-blue)); }
.purchase-summary-metric__icon { display:grid; place-items:center; flex:none; width:46px; height:46px; border-radius:13px; color:var(--nf-blue); background:var(--nf-blue-soft); font-size:1.2rem; }
.purchase-summary-metric--primary .purchase-summary-metric__icon { color:#ffe381; background:rgba(255,255,255,.12); }
.purchase-summary-metric > div { min-width:0; }
.purchase-summary-metric small,.purchase-summary-metric span { display:block; color:var(--nf-blue-mid); font-size:.68rem; }
.purchase-summary-metric small { margin-bottom:3px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.purchase-summary-metric strong { display:block; color:var(--nf-night); font-size:clamp(1.25rem,2vw,1.7rem); line-height:1.2; overflow-wrap:anywhere; }
.purchase-summary-metric--primary small,.purchase-summary-metric--primary span { color:var(--nf-blue-pale); }
.purchase-summary-metric--primary strong { color:#fff; }
.purchase-summary-panel { overflow:hidden; border:1px solid var(--nf-border); border-radius:18px; background:#fff; box-shadow:0 16px 38px rgba(var(--nf-ink-rgb), .075); }
.purchase-summary-panel__header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px; border-bottom:1px solid var(--nf-border); }
.purchase-summary-panel__header h2 { margin:3px 0 0; color:var(--nf-night); font-size:1.15rem; }
.purchase-summary-period { flex:none; padding:8px 11px; color:var(--nf-blue); border:1px solid var(--nf-blue-border); border-radius:999px; background:var(--nf-blue-soft); font-size:.72rem; font-weight:750; }
.purchase-summary-panel .table-responsive { border:0; border-radius:0; box-shadow:none; }
.purchase-summary-table tbody td { padding:15px 18px; border-color:#e8eef6; }
.purchase-summary-table tbody td:first-child strong,.purchase-summary-table tbody td:first-child span { display:block; }
.purchase-summary-table tbody td:first-child strong { color:var(--nf-night); font-size:.82rem; text-transform:capitalize; }
.purchase-summary-table tbody td:first-child span { color:var(--nf-blue-mid); font-size:.7rem; }
.purchase-summary-count,.purchase-summary-share { display:inline-block; min-width:54px; padding:5px 8px; border-radius:999px; color:var(--nf-blue); background:var(--nf-blue-soft); font-size:.72rem; font-weight:800; text-align:center; }
.purchase-summary-share { min-width:70px; color:#735a00; background:#fff7d8; }
.purchase-summary-table tfoot th { padding:15px 18px; color:#fff; border-color:var(--nf-navy); background:var(--nf-night); }
.purchase-summary-empty { display:grid; place-items:center; gap:6px; padding:36px 16px; color:var(--nf-blue-mid); text-align:center; }
.purchase-summary-empty i { color:var(--nf-blue-light); font-size:1.8rem; }
.purchase-summary-empty strong { color:var(--nf-night); }
.purchase-summary-empty span { font-size:.76rem; }
@media(max-width:1199.98px) { .purchase-summary-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767.98px) {
    .purchase-summary-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .purchase-summary-filter .btn { grid-column:1/-1; }
    .purchase-summary-filter__actions { grid-column:1/-1; }
    .purchase-summary-panel__header { align-items:flex-start; flex-direction:column; }
}
@media(max-width:575.98px) {
    .purchase-summary-filter,.purchase-summary-metrics { grid-template-columns:1fr; }
    .purchase-summary-filter { padding:14px; }
    .purchase-summary-metric { padding:15px; }
    .purchase-summary-panel__header { padding:16px; }
    .purchase-summary-table tbody td,.purchase-summary-table tfoot th { padding:12px; }
}

/* Selección del proveedor de pagos */
.payment-provider-current { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:15px 18px; color:var(--nf-blue-mid); border:1px solid var(--nf-border); border-radius:14px; background:#fff; font-size:.76rem; }
.payment-provider-current strong { display:flex; align-items:center; gap:8px; color:var(--nf-blue); font-size:.9rem; }
.payment-provider-form { width:100%!important; margin:0!important; }
.payment-provider-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.payment-provider-option { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:16px; min-width:0; padding:22px; cursor:pointer; border:1px solid var(--nf-border); border-radius:18px; background:linear-gradient(145deg,#fff,#f8fbff); box-shadow:0 10px 28px rgba(var(--nf-ink-rgb), .06); transition:border-color .2s,box-shadow .2s,transform .2s; }
.payment-provider-option:hover { transform:translateY(-2px); border-color:var(--nf-blue-border); box-shadow:0 16px 32px rgba(var(--nf-ink-rgb), .1); }
.payment-provider-option.is-selected { border-color:var(--nf-blue); box-shadow:0 0 0 3px rgba(var(--nf-blue-bright-rgb), .12),0 16px 32px rgba(var(--nf-ink-rgb), .1); }
.payment-provider-option > input { position:absolute; width:1px; height:1px; opacity:0; }
.payment-provider-option__check { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:25px; height:25px; color:transparent; border:1px solid var(--nf-blue-on-dark); border-radius:50%; background:#fff; }
.payment-provider-option.is-selected .payment-provider-option__check { color:#fff; border-color:var(--nf-blue); background:var(--nf-blue); }
.payment-provider-option__brand { display:grid; place-items:center; width:52px; height:52px; color:#fff; border-radius:15px; background:linear-gradient(145deg,var(--nf-blue-bright),var(--nf-blue)); font-size:1.35rem; box-shadow:0 9px 20px rgba(var(--nf-blue-rgb), .22); }
.payment-provider-option__brand--flow { color:var(--nf-night); background:linear-gradient(145deg,#ffe671,#e7b923); }
.payment-provider-option__content { display:block; min-width:0; padding-right:18px; }
.payment-provider-option__top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:9px; }
.payment-provider-option__top strong { color:var(--nf-night); font-size:1rem; }
.payment-provider-option__content > span:nth-child(2) { display:block; color:var(--nf-blue-mid); font-size:.78rem; line-height:1.6; }
.payment-provider-option__content small { display:block; margin-top:12px; color:var(--nf-blue-mid); font-size:.68rem; line-height:1.5; }
.payment-provider-option__content small i { margin-right:4px; color:var(--nf-blue); }
.payment-provider-status { padding:5px 8px; border-radius:999px; font-size:.6rem; font-weight:850; text-transform:uppercase; }
.payment-provider-status.is-ready { color:#12603c; background:#dcf8e9; }
.payment-provider-status.is-configured { color:var(--nf-blue); background:var(--nf-blue-soft); }
.payment-provider-status.is-pending { color:#765a00; background:#fff3c4; }
.payment-provider-warning { display:flex; align-items:flex-start; gap:12px; margin-top:16px; padding:15px 17px; color:#6c4f00; border:1px solid #efd47c; border-radius:13px; background:#fff8dd; }
.payment-provider-warning[hidden] { display:none; }
.payment-provider-warning > i { margin-top:2px; color:#d19c00; }
.payment-provider-warning strong,.payment-provider-warning span { display:block; }
.payment-provider-warning strong { margin-bottom:3px; font-size:.8rem; }
.payment-provider-warning span { font-size:.72rem; line-height:1.5; }
.payment-provider-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:16px; padding:16px 18px; border:1px solid var(--nf-border); border-radius:14px; background:#fff; }
.payment-provider-actions p { margin:0; color:var(--nf-blue-mid); font-size:.7rem; line-height:1.5; }
.payment-provider-actions p i { margin-right:5px; color:var(--nf-blue); }
.payment-provider-roadmap { margin-top:20px; padding:22px; border:1px solid var(--nf-border); border-radius:18px; background:#fff; box-shadow:0 12px 30px rgba(var(--nf-ink-rgb), .055); }
.payment-provider-roadmap h2 { margin:4px 0 18px; color:var(--nf-night); font-size:1.1rem; }
.payment-provider-roadmap ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.payment-provider-roadmap li { display:flex; align-items:flex-start; gap:10px; padding:13px; border-radius:12px; background:#f2f6fb; }
.payment-provider-roadmap li > span { display:grid; place-items:center; flex:none; width:25px; height:25px; color:#fff; border-radius:8px; background:var(--nf-blue); font-size:.65rem; font-weight:850; }
.payment-provider-roadmap strong,.payment-provider-roadmap small { display:block; }
.payment-provider-roadmap strong { color:var(--nf-navy); font-size:.75rem; }
.payment-provider-roadmap small { margin-top:3px; color:var(--nf-blue-mid); font-size:.65rem; line-height:1.45; }
@media(max-width:991.98px) { .payment-provider-roadmap ol { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:767.98px) { .payment-provider-grid { grid-template-columns:1fr; } .payment-provider-actions { align-items:stretch; flex-direction:column; } .payment-provider-actions .btn { width:100%; } }
@media(max-width:575.98px) { .payment-provider-current { align-items:flex-start; flex-direction:column; } .payment-provider-option { padding:17px; } .payment-provider-roadmap ol { grid-template-columns:1fr; } }

/* Administración de bloqueos del chat */
.chat-block-header { max-width:1200px; margin-right:auto; margin-left:auto; }
.chat-block-table { max-width:1200px; margin:0 auto; border-radius:16px; }
.chat-block-table td small { display:block; margin-top:3px; color:var(--nf-muted); font-size:.7rem; }
.chat-block-badge { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:.68rem; font-weight:850; }
.chat-block-badge.is-temporary { color:var(--nf-blue); background:var(--nf-blue-soft); }
.chat-block-badge.is-permanent { color:#991b1b; background:#fee2e2; }
.chat-block-empty { max-width:720px; margin:3rem auto; padding:3rem 1.5rem; border:1px dashed var(--nf-blue-border); border-radius:18px; background:#fff; text-align:center; }
.chat-block-empty > i { color:var(--nf-blue); font-size:2.5rem; }
.chat-block-empty h2 { margin:.8rem 0 .35rem; color:var(--nf-night); font-size:1.2rem; }
.chat-block-empty p { margin:0; color:var(--nf-muted); }

/* Selección y exhibición del mensaje destacado */
.highlight-admin-header,.highlight-toolbar,.highlight-list,.highlight-display-shell { max-width:1100px; margin-right:auto; margin-left:auto; }
.highlight-toolbar { margin-bottom:1rem; padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:1rem; border:1px solid var(--nf-border); border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(var(--nf-ink-rgb), .05); }
.highlight-toolbar > div { display:grid; gap:2px; }
.highlight-toolbar strong { color:var(--nf-night); font-size:.82rem; }
.highlight-toolbar small { color:var(--nf-muted); font-size:.72rem; }
.highlight-toolbar label,.highlight-display-toolbar label { display:flex; align-items:center; gap:8px; margin:0; color:var(--nf-muted); font-size:.72rem; white-space:nowrap; }
.highlight-toolbar select,.highlight-display-toolbar select { width:auto; min-width:125px; }
.highlight-list { display:grid; gap:10px; }
.highlight-list-item { position:relative; padding:15px 17px; overflow:hidden; border:1px solid var(--nf-silver); border-left:5px solid var(--highlight-color,var(--nf-blue)); border-radius:14px; background:#fff; box-shadow:0 8px 22px rgba(var(--nf-ink-rgb), .055); }
.highlight-list-item.is-selected { box-shadow:0 0 0 2px var(--highlight-color,var(--nf-blue)),0 12px 28px rgba(var(--nf-ink-rgb), .13); }
.highlight-list-item__meta,.highlight-list-item__footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.highlight-list-item__meta strong { color:var(--nf-night); font-size:.78em; }
.highlight-list-item__meta time { color:var(--nf-muted); font-size:.67em; }
.highlight-list-item p { margin:8px 0 12px; color:var(--nf-navy); font-size:1em; line-height:1.45; overflow-wrap:anywhere; }
.highlight-list-item__footer > span { color:var(--highlight-color,var(--nf-blue)); font-size:.7em; font-weight:800; }
.highlight-list-item__footer form { width:auto!important; margin:0!important; }
.highlight-control { max-width:1100px; margin:0 auto; }
.managed-work-badge { display:block; width:fit-content; margin-top:9px; padding:4px 8px; border-radius:7px; color:#785800; background:#fff3c6; font-size:.65rem; font-weight:700; }
.managed-work-badge.is-done { color:#255c42; background:#dcf2e7; }
.person-photo-panel { display:flex; align-items:center; gap:22px; max-width:1050px; margin:0 auto 24px; padding:24px; border:1px solid var(--nf-border); border-radius:18px; background:#fff; }
.person-photo-avatar { display:grid; place-items:center; flex:none; width:86px; height:86px; overflow:hidden; border:3px solid #e7b923; border-radius:50%; background:var(--nf-night); color:#fff; font-size:36px; }
.person-photo-avatar img { width:100%; height:100%; object-fit:cover; }
.person-photo-panel form { flex:1; min-width:0; margin:0!important; width:auto!important; }
.person-photo-panel input[type="file"] { flex:1 1 200px; min-width:0; }
.live-alerts-hub .card { border:1px solid var(--nf-border); border-radius:18px; box-shadow:0 8px 26px rgba(var(--nf-ink-rgb), .06); }
.live-alerts-hub h2 { font-size:1.05rem; font-weight:750; color:var(--nf-night); }
.live-alerts-hub p { color:var(--nf-blue); font-size:.9rem; line-height:1.65; }
.live-alerts-hub .form-control { font-size:.8rem; }
.live-alerts-hub__icon { display:grid; place-items:center; width:42px; height:42px; margin-bottom:15px; border-radius:12px; background:var(--nf-blue-soft); color:var(--nf-blue); border-bottom:2px solid #e7b923; }
@media(max-width:575.98px) { .person-photo-panel { align-items:flex-start; flex-direction:column; padding:18px; } .person-photo-panel form { width:100%!important; } }
.highlight-control__bar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; padding:10px; border:1px solid var(--nf-border); border-radius:14px; background:#fff; box-shadow:0 7px 20px rgba(var(--nf-ink-rgb), .045); }
.highlight-filter { display:flex; align-items:center; gap:5px; }
.highlight-filter button { border:0; padding:8px 12px; color:var(--nf-muted); border-radius:9px; background:transparent; font-size:.74rem; font-weight:800; }
.highlight-filter button span { margin-left:4px; padding:2px 6px; border-radius:999px; background:#eef3f9; font-size:.62rem; }
.highlight-filter button.is-active { color:#fff; background:var(--nf-blue); }
.highlight-filter button.is-active span { color:var(--nf-blue); background:#fff; }
.highlight-size { display:flex; align-items:center; gap:7px; margin:0; color:var(--nf-muted); font-size:.72rem; }
.highlight-size select { width:auto; min-width:120px; }
.highlight-selection-status { display:flex; align-items:center; gap:8px; margin-bottom:10px; padding:9px 12px; color:var(--nf-blue); border-radius:10px; background:var(--nf-blue-soft); font-size:.74rem; font-weight:800; }
.highlight-simple-list { display:grid; overflow:hidden; border:1px solid var(--nf-border); border-radius:15px; background:#fff; box-shadow:0 10px 28px rgba(var(--nf-ink-rgb), .055); }
.highlight-simple-item { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:18px; padding:13px 15px; border-bottom:1px solid #e7edf5; border-left:4px solid var(--highlight-color,var(--nf-blue)); background:#fff; transition:background .18s ease,box-shadow .18s ease; }
.highlight-simple-item:last-child { border-bottom:0; }
.highlight-simple-item[hidden] { display:none; }
.highlight-simple-item.is-selected { position:relative; z-index:1; background:var(--highlight-bg,var(--nf-blue-soft)); box-shadow:inset 0 0 0 1px var(--highlight-color,var(--nf-blue)); }
.highlight-simple-item__body { min-width:0; }
.highlight-simple-item__meta { display:flex; align-items:center; gap:9px; }
.highlight-simple-item__meta strong { color:var(--nf-night); font-size:.78em; }
.highlight-simple-item__meta time { color:var(--nf-muted); font-size:.62em; }
.highlight-simple-item p { margin:5px 0 7px; color:var(--nf-navy); font-size:.9em; line-height:1.35; overflow-wrap:anywhere; }
.highlight-simple-item__type { color:var(--highlight-color,var(--nf-blue)); font-size:.64em; font-weight:800; }
.highlight-simple-item form { width:auto!important; margin:0!important; }
.highlight-select-button { min-width:126px; border:1px solid var(--nf-blue-pale); padding:8px 11px; color:var(--nf-blue-hover); border-radius:9px; background:#fff; font-size:.7rem; font-weight:850; }
.highlight-select-button[aria-pressed="true"] { color:#fff; border-color:var(--highlight-color,var(--nf-blue)); background:var(--highlight-color,var(--nf-blue)); }
.highlight-select-button:disabled { opacity:.55; }
.highlight-simple-list { gap:12px; padding:12px; background:var(--nf-surface); }
.highlight-simple-item { display:block; padding:0; border:0; border-radius:15px; background:transparent; }
.highlight-simple-item.is-selected { background:transparent; box-shadow:none; }
.highlight-simple-item form { width:100%!important; }
.highlight-message-button { display:flex; align-items:center; justify-content:space-between; gap:18px; width:100%; min-width:0; padding:18px 20px; border:1px solid var(--nf-silver); border-left:4px solid var(--highlight-color,var(--nf-blue)); border-radius:15px; background:linear-gradient(125deg,#fff,#f9fbff); color:var(--nf-navy); text-align:left; font-size:inherit; font-weight:400; box-shadow:0 3px 10px rgba(var(--nf-ink-rgb), .04); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease; }
.highlight-message-button:hover:not(:disabled) { transform:translateY(-2px); border-color:var(--highlight-color,var(--nf-blue)); box-shadow:0 10px 24px rgba(var(--nf-ink-rgb), .1); }
.highlight-message-button:active:not(:disabled) { transform:scale(.99); }
.highlight-message-button:focus-visible { outline:3px solid var(--nf-blue); outline-offset:3px; }
.highlight-message-button[aria-pressed="true"] { background:var(--highlight-bg,var(--nf-blue-soft)); color:var(--nf-navy); border-color:var(--highlight-color,var(--nf-blue)); box-shadow:0 5px 18px rgba(var(--nf-ink-rgb), .1); animation:nf-highlight-select .35s ease-out; }
.highlight-message-text { display:block; margin:8px 0 10px; font-size:.95em; line-height:1.55; overflow-wrap:anywhere; white-space:pre-wrap; }
.highlight-simple-item__meta { flex-wrap:wrap; overflow-wrap:anywhere; }
.highlight-message-action { display:flex; flex-shrink:0; align-items:center; gap:7px; padding:9px 12px; border-radius:10px; background:#eaf0f8; color:var(--nf-blue-hover); font-size:.7rem; font-weight:800; }
.highlight-message-button[aria-pressed="true"] .highlight-message-action { background:var(--nf-night); color:#fff; }
@keyframes nf-highlight-select { from { transform:scale(.985); } to { transform:scale(1); } }
@media(max-width:575.98px) { .highlight-message-button { flex-direction:column; align-items:stretch; padding:15px; gap:12px; } .highlight-message-action { align-self:flex-end; } }
@media(prefers-reduced-motion:reduce) { .highlight-message-button { transition:none; } .highlight-message-button[aria-pressed="true"] { animation:none; } .highlight-message-button:hover:not(:disabled),.highlight-message-button:active:not(:disabled) { transform:none; } }
.highlight-no-results { padding:2rem; color:var(--nf-muted); text-align:center; }
.tier-standard { --highlight-color:var(--nf-blue); --highlight-bg:var(--nf-blue-soft); }
.tier-yellow { --highlight-color:#d4a400; --highlight-bg:#fff7cf; }
.tier-green { --highlight-color:#168447; --highlight-bg:#dcfce7; }
.tier-sky { --highlight-color:var(--nf-blue-mid); --highlight-bg:var(--nf-blue-soft); }
.tier-violet { --highlight-color:#7340c7; --highlight-bg:#eee7ff; }
.tier-red { --highlight-color:#d11d2b; --highlight-bg:#ffe5e8; }
.text-size-sm { font-size:13px; }.text-size-md { font-size:16px; }.text-size-lg { font-size:20px; }.text-size-xl { font-size:26px; }
.highlight-display-shell { min-height:calc(100vh - 175px); display:flex; flex-direction:column; overflow:hidden; border:1px solid rgba(var(--nf-blue-on-dark-rgb), .24); border-radius:20px; background:radial-gradient(circle at 75% 20%,rgba(var(--nf-blue-bright-rgb), .18),transparent 25rem),linear-gradient(145deg,var(--nf-ink),var(--nf-text)); box-shadow:0 22px 55px rgba(2,6,17,.22); }
.highlight-display-toolbar { padding:13px 16px; display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid rgba(var(--nf-blue-on-dark-rgb), .18); }
.highlight-display-toolbar > div { display:grid; }
.highlight-display-toolbar span { color:var(--nf-blue-on-dark); font-size:.62rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.highlight-display-toolbar strong { color:#fff; font-size:.92rem; }
.highlight-display-toolbar label { color:var(--nf-blue-border)!important; }
.highlight-stage { flex:1; min-height:300px; display:grid; place-items:center; padding:clamp(18px,5vw,65px); }
.highlight-stage__empty { display:grid; justify-items:center; gap:10px; color:var(--nf-blue-mid); }
.highlight-stage__empty[hidden],.highlight-card[hidden] { display:none; }
.highlight-stage__empty i { font-size:2.8em; }
.highlight-card { width:min(100%,900px); padding:clamp(22px,5vw,52px); color:var(--nf-text); border:3px solid var(--highlight-color,var(--nf-blue)); border-radius:24px; background:linear-gradient(145deg,#fff,var(--highlight-bg,var(--nf-blue-soft))); box-shadow:0 24px 70px rgba(0,0,0,.35),inset 0 1px #fff; }
.highlight-card__label { margin-bottom:18px; color:var(--highlight-color,var(--nf-blue)); font-size:.65em; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.highlight-card > strong { display:block; color:var(--highlight-color,var(--nf-blue)); font-size:.9em; }
.highlight-card > p { margin:12px 0 18px; color:var(--nf-text); font-size:1.65em; font-weight:750; line-height:1.24; overflow-wrap:anywhere; }
.highlight-card [data-highlight-amount] { color:var(--highlight-color,var(--nf-blue)); font-size:.78em; font-weight:900; }
@media(max-width:767.98px){.highlight-toolbar,.highlight-display-toolbar,.highlight-control__bar{align-items:stretch;flex-direction:column}.highlight-filter{display:grid;grid-template-columns:repeat(3,1fr)}.highlight-filter button{padding:8px 4px}.highlight-size{justify-content:space-between}.highlight-simple-item{grid-template-columns:1fr;gap:9px}.highlight-select-button{width:100%}.highlight-list-item__footer{align-items:flex-start;flex-direction:column}.highlight-display-shell{min-height:100%;border-radius:14px}.highlight-stage{min-height:220px;padding:14px}.highlight-card{padding:22px;border-radius:17px}.text-size-xl{font-size:21px}}

@media (max-width: 767.98px) {
    .app-workspace { flex-direction: column; }
    .live-chat { box-shadow: 0 -8px 26px rgba(2, 6, 17, .12); }
}

@media (max-width: 991.98px) {
    .sidebar {
        width: min(86vw, 320px);
        max-width: 320px;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 18px 0 48px rgba(2, 6, 17, .42);
    }

    .sidebar-nav {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .sidebar-overlay {
        background: rgba(2, 6, 17, .7);
        backdrop-filter: blur(5px);
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 1020;
        min-height: 64px;
        padding: 9px 12px;
        padding-top: max(9px, env(safe-area-inset-top));
        gap: 8px;
    }

    .topbar > div:first-child { min-width: 0; gap: 8px !important; }
    .topbar-title { min-width: 0; }
    .topbar-title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-actions { flex: 0 0 auto; }
    .user-menu { min-width: 42px; min-height: 42px; padding: 5px 8px; }
    .dropdown-menu { max-width: calc(100vw - 24px); }
}

@media (max-width: 575.98px) {
    .public-auth-actions { gap: 4px; }
    .public-auth-link { padding: 7px 6px; font-size: .74rem; }
    .public-auth-register { padding: 8px 9px !important; font-size: .72rem; white-space: nowrap; }
}

/* Chat y señal: composición móvil según la orientación del dispositivo. */
@media (max-width: 991.98px) and (orientation: portrait) {
    .main-wrapper {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .topbar { flex: 0 0 auto; }

    .app-workspace {
        min-height: 0;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .app-page {
        width: 100%;
        flex: 0 0 auto;
    }

    .content-area {
        width: 100%;
        flex: none;
        overflow: visible;
    }

    .public-home-page .content-area {
        min-height: min(56.25vw, 46dvh);
    }

    .content-area > .container-fluid {
        min-height: 100%;
        padding-top: .75rem !important;
        padding-bottom: .75rem !important;
    }

    .app-footer { display: none; }

    .live-chat {
        position: relative;
        width: 100%;
        height: clamp(360px, 58dvh, 620px);
        min-height: 360px;
        flex: 0 0 auto;
        align-self: stretch;
        border-width: 1px 0 0;
    }

    .live-chat-open {
        position: relative;
        width: 100%;
        height: 48px;
        flex: 0 0 48px;
        flex-direction: row;
        justify-content: center;
        padding: 8px 14px;
        border: 0;
        border-top: 1px solid rgba(var(--nf-blue-on-dark-rgb), .24);
    }

    .live-chat-open span { writing-mode: horizontal-tb; }
}

@media (max-width: 991.98px) and (orientation: landscape) {
    .main-wrapper {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .topbar { flex: 0 0 auto; }

    .app-workspace {
        min-height: 0;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .app-page {
        width: min(62vw, calc((100dvh - 64px) * 16 / 9));
        height: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }

    .public-home-page .app-page {
        width: auto;
        flex: 0 0 auto;
        aspect-ratio: 16 / 9;
    }

    .content-area {
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    .content-area > .container-fluid {
        min-height: 100%;
        padding: .75rem !important;
    }

    .app-footer { display: none; }

    .live-chat {
        position: relative;
        width: clamp(280px, 38vw, 390px);
        height: 100%;
        min-width: 280px;
        flex: 0 0 clamp(280px, 38vw, 390px);
        align-self: stretch;
        border-width: 0 0 0 1px;
    }

    .live-chat-open {
        position: relative;
        width: 48px;
        height: 100%;
        flex: 0 0 48px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 18px 8px;
        border: 0;
        border-left: 1px solid rgba(var(--nf-blue-on-dark-rgb), .24);
    }

    .live-chat-open span { writing-mode: vertical-rl; }

    .app-workspace.chat-is-collapsed .app-page {
        max-width: calc(100% - 48px);
    }
}

/* Home público */
.stream-catalog-filters { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:20px; }
.stream-catalog-filters button { padding:10px 16px; border:1px solid var(--nf-blue-pale); border-radius:10px; color:var(--nf-navy); background:#fff; font-weight:700; }
.stream-catalog-filters button.is-active { color:#fff; border-color:var(--nf-blue); background:var(--nf-blue); }
.stream-catalog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr)); gap:20px; }
.stream-catalog-card { overflow:hidden; border:1px solid var(--nf-blue-pale); border-radius:16px; background:#fff; text-decoration:none; box-shadow:0 10px 28px rgba(var(--nf-ink-rgb), .08); transition:transform .18s,border-color .18s; }
.stream-catalog-card:hover { transform:translateY(-3px); border-color:var(--nf-blue); }
.stream-catalog-card[hidden],#streamFilterEmpty[hidden] { display:none!important; }
.stream-catalog-card__cover { position:relative; display:grid; place-items:center; aspect-ratio:16/9; overflow:hidden; color:var(--nf-blue-on-dark); background:radial-gradient(circle at 60% 30%,var(--nf-blue-hover),var(--nf-deep)); }
.stream-catalog-card__cover > i { font-size:3.5rem; }
.stream-catalog-card__cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.stream-catalog-card__badge { position:absolute; left:12px; bottom:12px; padding:6px 9px; border-radius:6px; background:var(--nf-ink); color:#ffd75d; font-size:.65rem; font-weight:800; }
.stream-catalog-card__badge.is-live { color:#fff; background:#c52a36; }
.stream-catalog-card__body { display:grid; gap:8px; padding:18px; }
.stream-catalog-card__body h2 { margin:0; color:var(--nf-text); font-size:1.1rem; overflow-wrap:anywhere; }
.stream-catalog-card__body small { color:var(--nf-blue-mid); }
.stream-catalog-card__body > span { color:var(--nf-blue); font-size:.8rem; font-weight:800; }
.video-home-section {
    margin-block: 1.25rem 2rem;
    scroll-margin-top: calc(var(--mobile-header-height, 76px) + 1rem);
    padding: clamp(.625rem, 1.5vw, 1rem);
    border: 1px solid var(--nf-blue-hover);
    border-radius: .875rem;
    background: var(--nf-navy) url("../img/video-home-available.webp") center / cover no-repeat;
}
.video-home-section > h2 { color: #fff; }
.video-home-section--purchases {
    --video-card-accent: var(--nf-purchase-green-dark);
    --video-card-accent-rgb: var(--nf-purchase-green-rgb);
    margin-block-end: 0;
    border-color: var(--nf-purchase-green-dark);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: var(--nf-purchase-green) url("../img/video-home-purchases.webp") center / cover no-repeat;
}
.video-home-section--purchases > h2 { color: var(--nf-night); }
.video-home-section--purchases + .video-home-section {
    margin-block-start: 0;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.video-home-empty { margin: 0; padding: 1rem; border: 1px dashed var(--nf-border); border-radius: .75rem; color: var(--nf-muted); background: var(--nf-panel); }
.video-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: .875rem; }
.video-home-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--nf-border); border-radius: .75rem; background: var(--nf-panel); }
.video-home-card:is(:hover, :focus-within) {
    border-color: var(--video-card-accent, var(--nf-blue));
    box-shadow: 0 0 0 2px rgba(var(--video-card-accent-rgb, var(--nf-blue-rgb)), .24), 0 8px 18px rgba(var(--nf-blue-rgb), .16);
}
.video-home-card__cover > i { font-size: 1.75rem; }
.video-home-card__body { display: flex; flex: 1; flex-direction: column; min-height: 8.75rem; padding: .625rem; }
.video-home-card__body :is(h2, h3) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.5em; margin: 0 0 .25rem; color: var(--nf-night); font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.video-home-section .video-home-card__body > h3 {
    display: block;
    overflow: visible;
    font-weight: 700;
}
.video-home-card__status { overflow: hidden; margin: 0 0 .25rem; color: var(--nf-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.video-home-card__kind { display: inline-flex; align-items: center; align-self: flex-start; gap: .3rem; margin-bottom: .35rem; padding: .15rem .4rem; border-radius: .3rem; color: var(--nf-blue-hover); background: var(--nf-blue-soft); font-size: .72rem; font-weight: 700; }
.video-home-card__schedule { margin: 0 0 .35rem; color: var(--nf-muted); font-size: .75rem; }
.video-home-card__price { min-height: 1em; margin: 0 0 .35rem; color: var(--nf-blue); font-size: .78rem; font-weight: 750; }
.video-home-card__body .btn { padding-block: .25rem; font-size: .78rem; }
.video-home-card__watch {
    --bs-btn-color: #24390b;
    --bs-btn-bg: var(--nf-purchase-green);
    --bs-btn-border-color: var(--nf-purchase-green-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #486b1a;
    --bs-btn-hover-border-color: #486b1a;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #395615;
    --bs-btn-active-border-color: #395615;
    --bs-btn-focus-shadow-rgb: var(--nf-purchase-green-rgb);
}
.purchase-expiry { display: grid; gap: .125rem; box-sizing: border-box; width: 100%; margin: .5rem 0; padding: .35rem .55rem; border: 1px solid var(--nf-border); border-radius: .5rem; font-size: .78rem; font-weight: 700; }
.purchase-expiry small { color: inherit; font-weight: 500; }
.purchase-expiry--available { border-color: #c5dfcf; background: linear-gradient(115deg, #e9f6ee, #f9fcfa); color: #24563d; }
.purchase-expiry--warning { border-color: #e9d9ad; background: linear-gradient(115deg, #fff5dc, #fffdf7); color: #604b18; }
.purchase-expiry--critical { border-color: #edcbd0; background: linear-gradient(115deg, #fcecef, #fff9fa); color: #722e38; }
.video-home-card__actions .purchase-expiry { margin: 0; font-size: .741rem; }
.commerce-cart-table tbody td:first-child { white-space: normal; min-width: 9rem; overflow-wrap: anywhere; }
.commerce-cart-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.commerce-cart-controls form { margin: 0; }
.commerce-cart-discount { flex: 0 1 24rem; min-width: 0; }
.commerce-cart-discount .input-group { align-items: stretch; }
.commerce-cart-discount .form-control { min-width: 0; }
.commerce-cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.commerce-cart-actions .btn { min-height: 44px; }
@media (max-width: 575.98px) {
    .video-home-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.25rem), 1fr)); gap: .625rem; }
    .video-home-card__body .btn { min-height: 44px; }
    .commerce-cart-discount { flex-basis: 100%; }
}
.stream-player { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border:1px solid var(--nf-navy); border-radius:14px; background:var(--nf-deep); }
.stream-player iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.stream-waiting { position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center; padding:20px; overflow:auto; color:#fff; background:var(--nf-deep); }
.stream-waiting[hidden] { display:none; }
.stream-waiting__image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.28; pointer-events:none; }
.stream-waiting__content { position:relative; max-width:620px; text-align:center; padding:18px; border-radius:14px; background:rgba(var(--nf-deep-rgb), .8); }
.stream-waiting__badge { color:#f2c735; font-size:.8rem; letter-spacing:.06em; }
.stream-waiting h2 { margin:12px 0; color:#fff; font-size:clamp(1rem,3vw,1.8rem); }
.stream-waiting p { font-size:clamp(.75rem,1.8vw,.95rem); margin:0 0 12px; color:var(--nf-silver); }
@media(max-width:575.98px) { .stream-waiting { padding:8px; } .stream-waiting__content { padding:8px; } .stream-waiting h2 { margin:5px 0; } .stream-waiting__badge { font-size:.65rem; } }
.stream-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px; margin-top:10px; border:1px solid var(--nf-border); border-radius:12px; background:#eef4fb; }
.stream-controls .btn { min-height:44px; }
.stream-controls__live { background:#d6a800; color:var(--nf-text); font-weight:700; border:1px solid #b99000; }
.stream-controls__live:hover { background:#efc62b; color:var(--nf-text); }
.stream-controls__status { flex-basis:100%; margin:0; font-size:.85rem; color:var(--nf-blue-hover); overflow-wrap:anywhere; }
.stream-controls__status:empty { display:none; }
@media(max-width:575.98px) { .stream-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:8px; gap:6px; } .stream-controls .btn { padding:9px 5px; font-size:.8rem; } .stream-controls__live,.stream-controls__status { grid-column:1/-1; } }
.stream-watch__back { display:inline-block; margin-bottom:15px; color:var(--nf-blue); font-weight:700; text-decoration:none; }
.stream-watch__info { padding:22px 0; }
.stream-watch__info h1 { margin:8px 0; color:var(--nf-text); font-size:clamp(1.4rem,3vw,2.2rem); overflow-wrap:anywhere; }
.stream-watch__info > small { color:var(--nf-blue-mid); }
.stream-watch__info p { margin-top:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.stream-watch__hint { padding:12px 15px; border-left:3px solid #d6a800; color:var(--nf-blue-hover); background:var(--nf-blue-soft); font-size:.85rem; }
@media(max-width:575.98px) { .stream-catalog-filters { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; } .stream-catalog-filters button { padding:9px 5px; font-size:.7rem; } .stream-catalog-grid { gap:14px; } .stream-player { border-radius:9px; } }
@media(prefers-reduced-motion:reduce) { .stream-catalog-card { transition:none; } }

.public-auth-actions { display: flex; align-items: center; gap: .65rem; }
.public-auth-link { padding: .5rem .7rem; color: var(--nf-night); font-size: .84rem; font-weight: 800; text-decoration: none; }
.public-auth-link:hover { color: var(--nf-blue); }
.public-auth-register { padding: .55rem .9rem !important; font-size: .8rem; }
.public-home-page .content-area { background: radial-gradient(circle at 84% 2%, rgba(var(--nf-blue-bright-rgb), .18), transparent 26rem), linear-gradient(145deg, #f7faff, #edf3fa); }
.public-home-page .home-hero { min-height: 360px; padding: clamp(2rem,5vw,4.5rem); overflow: hidden; border: 1px solid rgba(var(--nf-blue-light-rgb), .2); border-radius: 24px; background: radial-gradient(circle at 78% 40%, rgba(var(--nf-blue-bright-rgb), .34), transparent 22rem), linear-gradient(130deg,var(--nf-ink) 0%,var(--nf-text) 66%,var(--nf-navy) 100%); box-shadow: 0 24px 60px rgba(2,6,17,.2); }
.public-home-page .home-hero::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg,transparent 45%,rgba(229,178,10,.11) 45.2%,transparent 46%); }
.public-home-page .home-hero-copy { position:relative; z-index:2; max-width:690px; }
.public-home-page .home-eyebrow { color:var(--nf-blue-border); letter-spacing:.1em; }
.public-home-page .home-hero h2 { max-width:650px; color:#fff; font-size:clamp(2.1rem,4.6vw,4.25rem); line-height:.98; letter-spacing:-.04em; }
.public-home-page .home-hero p { max-width:620px; color:var(--nf-blue-on-dark); font-size:1rem; line-height:1.7; }
.public-home-page .home-hero-mark { right:-3%; width:min(38%,390px); opacity:.27; filter:drop-shadow(0 0 30px rgba(var(--nf-blue-bright-rgb), .45)); }
.home-secondary-action { color:#fff; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.08); }
.home-secondary-action:hover { color:#fff; border-color:#fff; background:rgba(255,255,255,.15); }
.home-trust { display:flex; flex-wrap:wrap; gap:1.1rem; margin-top:1.5rem; color:var(--nf-blue-light); font-size:.76rem; font-weight:700; }
.home-trust i { margin-right:.3rem; color:var(--nf-gold); }
.public-home-page .home-access-section { margin-top:2rem; }
.public-home-page .home-modules { grid-template-columns:repeat(3,minmax(0,1fr)); }
.public-home-page .module-card { cursor:default; }
.home-status { margin-left:auto; padding:.35rem .55rem; color:var(--nf-blue); border:1px solid var(--nf-blue-border); border-radius:999px; background:var(--nf-blue-soft); font-size:.62rem; font-weight:900; text-transform:uppercase; white-space:nowrap; }
@media (max-width: 991.98px) {
    .public-home-page .home-hero { min-height:100%; padding:1.5rem; border-radius:18px; }
    .public-home-page .home-hero h2 { font-size:clamp(1.65rem,6vw,2.5rem); }
    .public-home-page .home-hero p { font-size:.82rem; line-height:1.45; }
    .public-home-page .home-trust, .public-home-page .home-access-section { display:none; }
}
@media (max-width: 575.98px) {
    .public-auth-link { display:none; }
    .public-auth-register { padding:.45rem .65rem !important; }
    .public-home-page .home-hero-mark { opacity:.16; }
}

/* Invitación de apoyo en Home */
.home-support { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; margin-top:18px; padding:15px 18px; border:1px solid var(--nf-border); border-left:3px solid #d5a919; border-radius:14px; color:var(--nf-night); background:#fff; box-shadow:0 8px 24px rgba(var(--nf-ink-rgb), .06); }
.home-support__icon { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; color:#815e00; background:#fff5d3; font-size:1rem; }
.home-support__copy { min-width:0; }
.home-support h3 { margin:0 0 2px; color:var(--nf-night); font-size:1rem; font-weight:800; line-height:1.3; }
.home-support p { margin:0; color:var(--nf-blue-bright); font-size:.78rem; line-height:1.45; }
.home-support small { display:block; margin-top:3px; color:var(--nf-blue-mid); font-size:.68rem; line-height:1.4; }
.home-support__actions { display:flex; flex-wrap:wrap; gap:8px; }
.home-support__button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:8px 12px; border:1px solid var(--nf-blue-mid); border-radius:9px; font-size:.76rem; font-weight:750; line-height:1.3; text-decoration:none; text-align:center; transition:background .2s ease; }
.home-support__button--super { color:#6f5000; border-color:#cfb248; background:#fff7dc; }
.home-support__button--super:hover { color:#4e3900; background:#ffebaa; }
.home-support__button:focus-visible { outline:3px solid var(--nf-blue-border); outline-offset:3px; }
@media(max-width:1199.98px) {
    .home-support { grid-template-columns:auto minmax(0,1fr); }
    .home-support__actions { grid-column:2; }
}
@media(max-width:575.98px) {
    .home-support { padding:13px; gap:9px; margin-top:14px; }
    .home-support__icon { width:32px; height:32px; align-self:start; }
    .home-support__actions { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-support__button { padding:8px; font-size:.72rem; }
}
@media(max-width:359.98px) { .home-support__actions { grid-template-columns:1fr; } }

/* Experiencia unificada de acceso y seguridad */
body:has(.auth-shell) { overflow-x:hidden; }
.login-page:has(.auth-shell) { padding:clamp(16px,4vw,48px); }
.auth-shell { position:relative; z-index:1; width:min(100%,980px); min-height:650px; display:grid; grid-template-columns:minmax(310px,.9fr) minmax(420px,1.1fr); overflow:hidden; border:1px solid rgba(var(--nf-blue-on-dark-rgb), .23); border-radius:26px; background:var(--nf-ink); box-shadow:0 35px 90px rgba(0,0,0,.55),0 0 60px rgba(var(--nf-blue-bright-rgb), .1); }
.auth-shell--compact { width:min(100%,930px); min-height:620px; }
.auth-shell--register { width:min(100%,1120px); min-height:720px; grid-template-columns:minmax(320px,.78fr) minmax(560px,1.22fr); }
.auth-showcase { position:relative; isolation:isolate; display:flex; flex-direction:column; padding:34px; overflow:hidden; color:#fff; background:radial-gradient(circle at 35% 24%,rgba(var(--nf-blue-bright-rgb), .38),transparent 19rem),linear-gradient(155deg,var(--nf-ink) 0%,var(--nf-night) 65%,var(--nf-navy) 100%); }
.auth-showcase::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(118deg,transparent 54%,rgba(229,178,10,.16) 54.3%,transparent 55.2%); }
.auth-showcase::after { content:""; position:absolute; z-index:-1; right:-90px; bottom:-100px; width:300px; aspect-ratio:1; border:1px solid rgba(var(--nf-blue-on-dark-rgb), .16); border-radius:50%; box-shadow:0 0 0 42px rgba(var(--nf-blue-bright-rgb), .035),0 0 0 85px rgba(var(--nf-blue-bright-rgb), .025); }
.auth-showcase__brand { align-self:flex-start; display:block; width:138px; overflow:hidden; border:1px solid rgba(255,255,255,.16); border-radius:16px; box-shadow:0 14px 35px rgba(0,0,0,.32); }
.auth-showcase__brand img { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
.auth-showcase__content { margin:auto 0; }
.auth-kicker { display:inline-flex; align-items:center; gap:7px; margin-bottom:18px; color:var(--nf-blue-on-dark); font-size:.7rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.auth-kicker i { color:var(--nf-gold); }
.auth-showcase h1 { margin:0 0 18px; max-width:430px; color:#fff; font-family:"Arial Narrow","Segoe UI",sans-serif; font-size:clamp(2.5rem,4vw,4rem); font-weight:850; line-height:.98; letter-spacing:-.04em; }
.auth-showcase p { max-width:410px; margin:0; color:var(--nf-blue-border); font-size:.9rem; line-height:1.7; }
.auth-showcase__footer { display:flex; align-items:center; gap:8px; color:var(--nf-blue-light); font-size:.72rem; font-weight:700; }
.auth-showcase__footer i { color:var(--nf-blue-on-dark); }
.auth-benefits { display:grid; gap:9px; margin:22px 0 0; padding:0; list-style:none; color:var(--nf-blue-on-dark); font-size:.78rem; }
.auth-benefits i { margin-right:7px; color:var(--nf-gold); }
.wrap-login100.auth-card { max-width:none; min-width:0; margin:0 !important; border:0; border-radius:0; background:linear-gradient(150deg,var(--nf-text),var(--nf-ink)); box-shadow:none; backdrop-filter:none; }
.wrap-login100.auth-card::before { display:none; }
.auth-form.login100-form { min-height:100%; display:flex; flex-direction:column; justify-content:center; padding:clamp(32px,5vw,66px) clamp(28px,5vw,64px) !important; }
.auth-mobile-brand { display:none; }
.auth-heading { margin-bottom:28px; }
.auth-heading > span { display:block; margin-bottom:7px; color:var(--nf-blue-on-dark); font-size:.69rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.auth-heading h2 { margin:0 0 8px; color:#f6f9ff; font-size:clamp(1.7rem,3vw,2.25rem); font-weight:800; letter-spacing:-.025em; }
.auth-heading p { margin:0; color:var(--nf-blue-light); font-size:.82rem; }
.auth-field { width:100%; margin-bottom:18px; }
.auth-field > label,.auth-label-row label { display:block; margin:0 0 7px; color:var(--nf-silver) !important; font-size:.75rem; font-weight:750; }
.auth-label-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.auth-label-row a { color:var(--nf-blue-on-dark); font-size:.7rem; font-weight:700; text-decoration:none; }
.auth-input { position:relative; display:flex; align-items:center; }
.auth-input > i { position:absolute; z-index:2; left:15px; color:var(--nf-blue-light); font-size:.95rem; pointer-events:none; }
.login100-form .auth-input .input100 { height:50px; padding:0 15px 0 44px !important; color:#f6f9ff !important; border:1px solid var(--nf-blue-hover); border-radius:12px; background:var(--nf-text); font-size:.86rem; }
.login100-form .auth-input .input100:focus { border-color:var(--nf-blue-bright); background:var(--nf-night) !important; box-shadow:0 0 0 4px rgba(var(--nf-blue-bright-rgb), .13); }
.auth-field > span { display:block; margin-top:5px; color:#ffabb2; font-size:.7rem; }
.auth-submit.login100-form-btn { width:100%; min-height:52px; margin-top:5px; display:flex; align-items:center; justify-content:center; gap:.5rem; text-align:center; padding:0 19px; border:1px solid var(--nf-blue-bright); border-radius:12px; color:#fff; font-size:.82rem; font-weight:850; letter-spacing:.01em; }
.auth-submit i { transition:transform .2s ease; }
.auth-submit:hover i { transform:translateX(4px); }
.auth-form-footer { margin-top:20px; color:var(--nf-blue-light); font-size:.76rem; text-align:center; }
.auth-form-footer a { color:var(--nf-blue-on-dark); font-weight:800; text-decoration:none; }
.auth-back { align-self:center; display:inline-flex; align-items:center; gap:6px; margin-top:16px; color:var(--nf-blue-light); font-size:.7rem; font-weight:700; text-decoration:none; }
.auth-back:hover,.auth-form-footer a:hover,.auth-label-row a:hover { color:#fff; }
.auth-local-form { width:100%; min-width:0; }
.auth-provider-divider { display:flex; align-items:center; gap:12px; margin:22px 0 16px; color:var(--nf-blue-light); font-size:.72rem; }
.auth-provider-divider::before,.auth-provider-divider::after { content:""; flex:1; height:1px; background:var(--nf-navy); }
.auth-google-form { width:100%; }
.auth-google-button { width:100%; min-height:48px; display:flex; align-items:center; gap:12px; padding:0 12px; border:1px solid #747775; border-radius:12px; color:#1f1f1f; background:#fff; font-family:Roboto,Arial,sans-serif; font-size:14px; font-weight:500; cursor:pointer; transition:box-shadow .2s ease,border-color .2s ease; }
.auth-google-button img { display:block; flex-shrink:0; width:20px; height:20px; object-fit:contain; }
.auth-google-button span { flex:1; padding-right:32px; text-align:center; }
.auth-google-button:hover { border-color:#1f1f1f; box-shadow:0 4px 16px rgba(var(--nf-blue-bright-rgb), .16); }
.auth-google-button:focus-visible { outline:3px solid var(--nf-blue-bright); outline-offset:3px; }
.auth-provider-note { margin:12px 0 0; color:var(--nf-blue-light); font-size:.72rem; line-height:1.6; }
.auth-provider-note i { color:var(--nf-blue-on-dark); margin-right:4px; }
.auth-provider-error { display:flex; align-items:flex-start; gap:8px; margin:12px 0; padding:12px 14px; border:1px solid #ac5266; border-radius:10px; color:#ffced7; background:#452031; font-size:.8rem; line-height:1.5; }
.auth-google-identity { display:flex; align-items:center; gap:12px; margin:0 0 22px; padding:14px; border:1px solid var(--nf-blue-hover); border-radius:12px; background:var(--nf-night); }
.auth-google-identity > img { flex-shrink:0; box-sizing:content-box; width:20px; height:20px; padding:7px; border-radius:8px; background:#fff; }
.auth-google-identity > div { flex:1; min-width:0; }
.auth-google-identity span { display:block; margin-bottom:3px; color:var(--nf-blue-border); font-size:.69rem; }
.auth-google-identity strong { display:block; color:var(--nf-blue-soft); overflow-wrap:anywhere; font-size:.82rem; font-weight:650; }
.auth-google-identity > i { flex-shrink:0; color:#69d8a0; font-size:1.1rem; }
.auth-register-grid { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px; }
.auth-register-grid__confirm { grid-column:2; }
.auth-shell.auth-shell--reset { grid-template-columns:minmax(0,1fr); max-width:560px; }
.auth-shell--first-user .auth-showcase__brand { align-self:center; }
.login100-form .auth-input select.input100 { width:100%; padding-left:15px !important; color-scheme:dark; }
.auth-shell--first-user .auth-local-form > .auth-form-footer { margin:4px 0 20px; text-align:left; line-height:1.6; }
.auth-shell--register .auth-field { margin-bottom:13px; }
.auth-shell--register .auth-heading { margin-bottom:20px; }

@media (max-width: 820px) {
    .login-page:has(.auth-shell) { align-items:flex-start; padding:14px; }
    .auth-shell,.auth-shell--compact,.auth-shell--register { width:min(100%,560px); min-height:0; grid-template-columns:1fr; border-radius:20px; }
    .auth-showcase { display:none; }
    .wrap-login100.auth-card { border-radius:20px; }
    .auth-form.login100-form { min-height:0; padding:30px clamp(20px,6vw,38px) 32px !important; }
    .auth-mobile-brand { display:block; margin:0 auto 23px; width:112px; overflow:hidden; border:1px solid rgba(var(--nf-blue-on-dark-rgb), .22); border-radius:14px; box-shadow:0 10px 28px rgba(0,0,0,.3); }
    .auth-mobile-brand img { display:block; width:100% !important; height:auto; margin:0 !important; border-radius:0; box-shadow:none; }
}
@media (max-width: 575.98px) {
    .login-page:has(.auth-shell) { padding:0; }
    .auth-shell,.auth-shell--compact,.auth-shell--register { width:100%; min-height:100dvh; border:0; border-radius:0; }
    .wrap-login100.auth-card { border-radius:0; }
    .auth-form.login100-form { justify-content:flex-start; padding:24px 20px 28px !important; }
    .auth-mobile-brand { width:90px; margin-bottom:18px; }
    .auth-heading { margin-bottom:22px; }
    .auth-heading h2 { font-size:1.65rem; }
    .auth-register-grid { grid-template-columns:1fr; }
    .auth-register-grid__confirm { grid-column:auto; }
}

/* Configuración central de servicios */
.service-settings{max-width:1120px;margin:0 auto}.service-settings__hero{display:flex;align-items:center;gap:1.25rem;padding:1.6rem 1.75rem;margin-bottom:1.25rem;border:1px solid var(--nf-border);border-left:5px solid var(--nf-blue-bright);border-radius:18px;background:linear-gradient(115deg,#fff 58%,var(--nf-blue-soft));box-shadow:0 18px 42px rgba(var(--nf-night-rgb), .09)}.service-settings__hero-icon{display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:16px;color:#fff;font-size:1.55rem;background:linear-gradient(145deg,var(--nf-blue-bright),var(--nf-blue-hover));box-shadow:0 10px 24px rgba(var(--nf-blue-bright-rgb), .25)}.service-settings__eyebrow{display:block;margin-bottom:.25rem;color:var(--nf-blue);font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.service-settings__hero h2{margin:0;color:var(--nf-text);font-size:clamp(1.45rem,3vw,2rem);font-weight:800}.service-settings__hero p{max-width:780px;margin:.4rem 0 0;color:var(--nf-blue-bright)}.service-settings__form{overflow:hidden;border:1px solid var(--nf-border);border-radius:20px;background:#fff;box-shadow:0 18px 45px rgba(var(--nf-night-rgb), .08)}.service-settings__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--nf-silver)}.service-toggle-card{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:1rem;min-height:150px;padding:1.4rem;background:#fff;transition:background .2s ease}.service-toggle-card:hover{background:#f8fbff}.service-toggle-card__icon{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;color:var(--nf-blue-on-dark);font-size:1.35rem;background:var(--nf-text)}.service-toggle-card__icon--gold{color:#ffc43d}.service-toggle-card__icon--live{color:#fff;background:linear-gradient(145deg,var(--nf-blue),var(--nf-blue-bright))}.service-toggle-card__copy h3{margin:0 0 .35rem;color:var(--nf-text);font-size:1.05rem;font-weight:800}.service-toggle-card__copy p{margin:0;color:var(--nf-blue-mid);font-size:.88rem;line-height:1.5}.service-switch{display:flex;flex-direction:column;align-items:center;gap:.35rem;cursor:pointer}.service-switch input{position:absolute;opacity:0;pointer-events:none}.service-switch span{position:relative;width:50px;height:28px;border-radius:999px;background:var(--nf-blue-border);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);transition:.2s}.service-switch span:after{content:"";position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:.2s}.service-switch input:checked+span{background:var(--nf-blue-bright)}.service-switch input:checked+span:after{transform:translateX(22px)}.service-switch input:focus-visible+span{outline:3px solid rgba(var(--nf-blue-bright-rgb), .25);outline-offset:3px}.service-switch strong{font-size:.69rem;letter-spacing:.05em;text-transform:uppercase;color:var(--nf-blue-mid)}.service-switch strong:after{content:attr(data-off)}.service-switch input:checked~strong{color:var(--nf-blue)}.service-switch input:checked~strong:after{content:attr(data-on)}.service-settings__footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.15rem 1.4rem;background:#f7faff}.service-settings__footer p{margin:0;color:var(--nf-blue-mid);font-size:.84rem}.service-settings__footer .btn{min-width:220px;border-radius:11px;font-weight:700}.service-unavailable{max-width:700px;margin:clamp(2rem,8vh,6rem) auto;padding:clamp(2rem,5vw,4rem);text-align:center;border:1px solid var(--nf-silver);border-radius:24px;background:linear-gradient(145deg,#fff,var(--nf-blue-soft));box-shadow:0 24px 60px rgba(var(--nf-night-rgb), .12)}.service-unavailable__icon{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 1.2rem;border-radius:22px;color:#fff;font-size:2rem;background:linear-gradient(145deg,var(--nf-blue),var(--nf-blue-bright))}.service-unavailable h2{margin:.35rem 0 .75rem;color:var(--nf-text);font-weight:800}.service-unavailable p{color:var(--nf-blue-mid)}.service-unavailable__note{font-size:.88rem}.service-unavailable .btn{margin-top:.7rem;border-radius:11px;font-weight:700}
@media(max-width:780px){.service-settings__hero{align-items:flex-start;padding:1.25rem}.service-settings__hero-icon{flex-basis:48px;height:48px}.service-settings__grid{grid-template-columns:1fr}.service-toggle-card{grid-template-columns:46px 1fr auto;min-height:130px;padding:1.15rem}.service-toggle-card__icon{width:46px;height:46px}.service-settings__footer{align-items:stretch;flex-direction:column}.service-settings__footer .btn{width:100%}}
.alert-delivery-settings{padding:1.4rem;border-top:1px solid var(--nf-silver);background:#f7faff}.alert-delivery-settings__header{display:flex;align-items:flex-start;gap:.9rem;margin-bottom:1rem}.alert-delivery-settings__header>span{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:13px;background:var(--nf-text);color:#ffc43d;font-size:1.1rem}.alert-delivery-settings__header small{display:block;color:var(--nf-blue);font-size:.68rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.alert-delivery-settings__header h3{margin:.15rem 0 .3rem;color:var(--nf-text);font-size:1.08rem;font-weight:850}.alert-delivery-settings__header p{margin:0;color:var(--nf-blue-mid);font-size:.84rem}.alert-delivery-settings__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.alert-delivery-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.85rem;min-height:126px;padding:1.8rem 1rem 1rem;border:1px solid var(--nf-silver);border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(var(--nf-night-rgb), .04)}.alert-delivery-card__type{position:absolute;left:1rem;top:.6rem;padding:.2rem .45rem;border-radius:999px;background:var(--nf-blue-soft);color:var(--nf-blue);font-size:.58rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.alert-delivery-card__type--manual{background:#fff3d6;color:#846000}.alert-delivery-card>div{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center}.alert-delivery-card>div>i{grid-row:1/3;color:var(--nf-blue-bright);font-size:1.1rem}.alert-delivery-card h4{margin:0;color:var(--nf-night);font-size:.88rem;font-weight:800}.alert-delivery-card p{grid-column:2;margin:.2rem 0 0;color:var(--nf-blue-mid);font-size:.72rem;line-height:1.4}

/* Compra identificable y controles que no desbordan en móviles. */
.live-chat,.live-chat__composer,.live-chat__paid-panel { box-sizing:border-box; min-width:0; }
.live-chat__paid-panel input,.live-chat__paid-panel textarea { min-width:0; max-width:100%; box-sizing:border-box; }
@media(max-width:991.98px) {
    :root { --mobile-header-height:calc(64px + env(safe-area-inset-top,0px)); }
    .topbar { position:fixed; top:0; right:0; left:0; height:var(--mobile-header-height); z-index:1030; }
    .main-wrapper { padding-top:var(--mobile-header-height); box-sizing:border-box; }
    .live-chat { max-width:100%; min-width:0; }
    .live-chat__header { position:sticky; top:0; z-index:5; gap:6px; flex-wrap:wrap; }
    .live-chat__header-actions { flex-wrap:wrap; }
    .live-chat__composer,.live-chat__input-row { width:100%; max-width:100%; min-width:0; }
    .live-chat__input-row textarea { flex:1 1 0; min-width:0; }
    /* Evita el zoom automático al enfocar campos pequeños en navegadores móviles. */
    #liveChatInput,#liveChatPaidInput,#liveChatPaidAmount { font-size:16px; }
    .live-chat__paid-panel { width:auto; max-width:calc(100% - 10px); max-height:min(70dvh,calc(100dvh - var(--mobile-header-height) - 20px)); overflow-y:auto; }
    .live-chat__paid-footer { gap:8px; flex-wrap:wrap; }
}
@media(max-width:991.98px) and (orientation:portrait) {
    .live-chat { width:100%; flex-basis:auto; }
    .app-workspace,.app-page { min-width:0; max-width:100%; }
}
@media(max-width:991.98px) and (orientation:landscape) {
    .app-workspace { overflow-x:hidden; }
    .public-home-page .app-page { min-width:0; flex:1 1 62%; }
    .live-chat { width:38%; flex:0 1 38%; min-width:0; }
}
@media(max-width:780px){.alert-delivery-settings{padding:1rem}.alert-delivery-settings__grid{grid-template-columns:1fr}.alert-delivery-card{min-height:112px}}

/* Administración del logo: la muestra conserva el aspecto 1:1 del icono y del menú. */
.service-logo-settings{max-width:1080px;margin:0 auto}
.service-logo-settings__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.service-logo-settings__panel{min-width:0;padding:1.6rem;border:1px solid var(--nf-border);border-radius:20px;background:#fff;box-shadow:0 18px 45px rgba(var(--nf-night-rgb), .08)}
.service-logo-settings__panel-heading h3{margin:.2rem 0 .45rem;color:var(--nf-text);font-size:1.25rem;font-weight:800}
.service-logo-settings__panel-heading p{margin:0;color:var(--nf-blue-mid);line-height:1.55}
.service-logo-settings__eyebrow{color:var(--nf-blue);font-size:.73rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.service-logo-settings__samples{display:flex;align-items:end;flex-wrap:wrap;gap:1.75rem;margin:1.6rem 0 1.2rem}
.service-logo-settings__sample{display:flex;align-items:center;flex-direction:column;gap:.65rem;color:var(--nf-muted);font-size:.83rem;font-weight:700}
.service-logo-settings__image{display:grid;place-items:center;aspect-ratio:1 / 1;overflow:hidden;border:1px solid var(--nf-blue-on-dark);border-radius:18px;background:var(--nf-ink);box-shadow:0 10px 24px rgba(var(--nf-night-rgb), .18)}
.service-logo-settings__image img{display:block;width:100%;height:100%;aspect-ratio:1 / 1;object-fit:contain}
.service-logo-settings__image--large{width:160px}.service-logo-settings__image--small{width:52px;border-radius:11px}.service-logo-settings__image--preview{width:120px}
.service-logo-settings__state{margin:0;color:var(--nf-blue-mid);font-size:.86rem}
.service-logo-settings__form{display:flex;flex-direction:column;gap:.8rem;margin-top:1.4rem}
.service-logo-settings__form label{color:var(--nf-night);font-weight:700}
.service-logo-settings__form input{color:var(--nf-night);background:#fff}
.service-logo-settings__form input:focus{color:var(--nf-night);background:#fff}
.service-logo-settings__form small{color:var(--nf-blue-mid);line-height:1.45}
.service-logo-settings__form .btn{align-self:flex-start;min-width:180px;font-weight:700}
.service-logo-settings__upload-preview{display:flex;align-items:center;gap:1rem;color:var(--nf-muted);font-size:.85rem;font-weight:700}
.service-logo-settings__upload-preview[hidden]{display:none}
.service-logo-settings__feedback{min-height:1.25rem;margin:0;color:var(--nf-blue);font-size:.84rem}
@media(max-width:780px){.service-logo-settings__grid{grid-template-columns:1fr}.service-logo-settings__panel{padding:1.2rem}.service-logo-settings__form .btn{width:100%}}

.service-title-settings { max-width:1080px; margin:0 auto; }
.service-title-settings__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.service-title-settings__panel { min-width:0; padding:1.6rem; border:1px solid var(--nf-border); border-radius:20px; background:#fff; box-shadow:0 18px 45px rgba(var(--nf-night-rgb), .08); }
.service-title-settings__panel h3 { margin:.2rem 0 .45rem; color:var(--nf-text); font-size:1.25rem; font-weight:800; }
.service-title-settings__panel p { margin:0; color:var(--nf-blue-mid); line-height:1.55; }
.service-title-settings__eyebrow { color:var(--nf-blue); font-size:.73rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.service-title-settings__form { display:flex; flex-direction:column; gap:.8rem; margin-top:1.6rem; }
.service-title-settings__form label { color:var(--nf-night); font-weight:700; }
.service-title-settings__form input,.service-title-settings__form input:focus { color:var(--nf-night); background:#fff; }
.service-title-settings__form small { color:var(--nf-blue-mid); line-height:1.45; }
.service-title-settings__form .btn { align-self:flex-start; min-width:180px; font-weight:700; }
.service-title-settings__preview-menu { display:flex; align-items:center; gap:13px; min-height:92px; margin:1.55rem 0 1rem; padding:14px 17px; border:1px solid rgba(var(--nf-blue-on-dark-rgb), .25); border-radius:16px; background:linear-gradient(135deg,var(--nf-night),var(--nf-navy)); box-shadow:0 12px 24px rgba(var(--nf-ink-rgb), .15); color:#fff; }
.service-title-settings__preview-mark { display:grid; place-items:center; flex:none; width:52px; height:52px; border:1px solid rgba(255,255,255,.2); border-radius:12px; background:var(--nf-deep); color:var(--nf-blue-on-dark); font-size:1.45rem; }
.service-title-settings__preview-menu strong { display:block; overflow-wrap:anywhere; line-height:1.15; letter-spacing:.08em; text-transform:uppercase; }
.service-title-settings__preview-menu small { display:block; margin-top:5px; color:var(--nf-blue-on-dark); font-size:.69rem; letter-spacing:.05em; }
.service-title-settings__preview-tab { display:flex; align-items:center; gap:9px; max-width:100%; padding:10px 12px; border:1px solid var(--nf-border); border-radius:12px; background:var(--nf-surface); color:var(--nf-navy); font-size:.85rem; }
.service-title-settings__preview-tab span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.service-title-settings__panel .service-title-settings__legal-note { display:flex; align-items:flex-start; gap:8px; margin-top:1.3rem; color:var(--nf-blue-mid); font-size:.81rem; }
.service-title-settings__legal-note i { flex:none; color:var(--nf-blue); }
@media(max-width:780px) { .service-title-settings__grid { grid-template-columns:1fr; } .service-title-settings__panel { padding:1.2rem; } .service-title-settings__form .btn { width:100%; } }

/* Home por perfil: cifras claras para operación y comunidad al centro. */
.home-role-operator {
    overflow: hidden;
    border: 1px solid var(--nf-silver);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(var(--nf-night-rgb), .08);
}
.home-role-operator__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 3vw, 40px);
    color: #fff;
    background: radial-gradient(circle at 92% 10%, rgba(var(--nf-blue-bright-rgb), .3), transparent 22rem), linear-gradient(125deg, var(--nf-night), var(--nf-navy));
}
.home-role-operator__eyebrow,
.home-role-community__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--nf-blue-on-dark);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.home-role-operator__eyebrow i { color: #f4ca52; font-size: 1rem; }
.home-role-operator__heading h2 {
    max-width: 710px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.85rem, 3.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}
.home-role-operator__heading p {
    max-width: 600px;
    margin: 10px 0 0;
    color: var(--nf-blue-on-dark);
    font-size: .9rem;
    line-height: 1.55;
}
.home-role-operator__actions,
.home-role-community__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.home-role-operator__actions .btn,
.home-role-community__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}
.home-role-community__actions button { cursor: pointer; }
.home-role-operator__secondary,
.home-role-community__secondary {
    color: var(--nf-blue-soft);
    border: 1px solid rgba(var(--nf-blue-on-dark-rgb), .45);
    background: rgba(255, 255, 255, .07);
}
.home-role-operator__secondary:hover,
.home-role-community__secondary:hover {
    color: #fff;
    border-color: var(--nf-blue-border);
    background: rgba(255, 255, 255, .15);
}
.home-role-operator__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 12px 0;
}
.home-role-operator__stat {
    min-width: 0;
    padding: 14px clamp(15px, 2.3vw, 30px);
    border-right: 1px solid var(--nf-blue-soft);
}
.home-role-operator__stat:last-child { border-right: 0; }
.home-role-operator__stat-value {
    display: block;
    color: var(--nf-blue);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-variant-numeric: tabular-nums;
    font-weight: 850;
    line-height: 1;
}
.home-role-operator__stat h3 {
    margin: 8px 0 0;
    color: var(--nf-night);
    font-size: .8rem;
    font-weight: 800;
}
.home-role-community {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(340px, 32vw, 450px);
    overflow: hidden;
    border: 1px solid rgba(var(--nf-blue-border-rgb), .3);
    border-radius: 22px;
    color: #fff;
    background: var(--nf-ink);
    box-shadow: 0 24px 60px rgba(2, 6, 17, .2);
    isolation: isolate;
}
.home-role-community::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(var(--nf-deep-rgb), .99) 0%, rgba(var(--nf-deep-rgb), .95) 30%, rgba(var(--nf-deep-rgb), .64) 52%, transparent 84%);
}
.home-role-community__picture {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}
.home-role-community__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-role-community__copy {
    position: relative;
    z-index: 2;
    width: min(60%, 640px);
    padding: clamp(27px, 4vw, 56px);
}
.home-role-community__eyebrow i { color: #f4ca52; font-size: 1rem; }
.home-role-community__copy h2 {
    max-width: 580px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    font-weight: 820;
    line-height: 1.03;
    letter-spacing: -.045em;
}
.home-role-community__copy p {
    max-width: 490px;
    margin: 18px 0 22px;
    color: var(--nf-blue-pale);
    font-size: .95rem;
    line-height: 1.6;
}
@media (max-width: 1199.98px) {
    .home-role-operator__heading { align-items: flex-start; flex-direction: column; }
    .home-role-community__copy { width: min(70%, 600px); }
}
@media (max-width: 767.98px) {
    .home-role-community { display: block; min-height: 0; }
    .home-role-community::after { display: none; }
    .home-role-community__picture { position: relative; height: clamp(250px, 80vw, 420px); }
    .home-role-community__picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--nf-ink), transparent 46%); }
    .home-role-community__picture img { object-position: center 38%; }
    .home-role-community__copy { width: 100%; padding: 12px 24px 28px; }
    .home-role-community__copy h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
    .home-role-community__copy p { margin: 13px 0 18px; font-size: .85rem; }
    .home-role-operator__heading { padding: 23px; }
    .home-role-operator__stats { padding: 10px 0; }
    .home-role-operator__stat { padding: 12px; }
}
@media (max-width: 479.98px) {
    .home-role-operator__heading h2 { font-size: 1.85rem; }
    .home-role-operator__stats { grid-template-columns: 1fr; padding: 0 16px; }
    .home-role-operator__stat { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--nf-blue-soft); }
    .home-role-operator__stat:last-child { border-bottom: 0; }
    .home-role-operator__stat-value { min-width: 50px; font-size: 1.8rem; }
    .home-role-operator__stat h3 { margin: 0; font-size: .77rem; }
    .home-role-operator__actions,
    .home-role-community__actions { flex-direction: column; align-items: stretch; }
    .home-role-operator__actions .btn,
    .home-role-community__actions .btn { width: 100%; }
    .home-role-community__copy { padding: 8px 18px 24px; }
}
.sidebar-live-link { margin-block: .65rem; border: 1px solid rgba(var(--nf-blue-light-rgb), .25); background: rgba(var(--nf-blue-hover-rgb), .18); }
html.chat-prefers-collapsed .app-workspace > .live-chat { display: none !important; }
html.chat-prefers-collapsed .app-workspace:not(.chat-is-external) > .live-chat-open { display: flex !important; }
.sidebar-live-link > span:first-of-type { flex: 1; min-width: 0; }
.sidebar-live-link small { display: block; font-size: .68rem; font-weight: 400; color: var(--nf-blue-border); margin-top: .15rem; }
.sidebar-live-link.has-live { border-color: rgba(255,99,117,.5); background: linear-gradient(110deg,rgba(155,25,49,.22),rgba(var(--nf-blue-hover-rgb), .22)); }
.sidebar-live-link.has-live > i { color: #ff7184; }
.sidebar-live-count { border-radius: 1rem; padding: .1rem .5rem; color: #fff; background: #c62642; font-size: .7rem; }
.live-stream-notice { position: fixed; top: 88px; right: 1rem; z-index: 1060; display: flex; align-items: center; gap: .8rem; width: min(360px,calc(100vw - 2rem)); padding: .9rem 1rem; background: var(--nf-night); color: var(--nf-blue-soft); border: 1px solid var(--nf-blue-mid); border-left: 3px solid #ff677b; border-radius: .8rem; box-shadow: 0 12px 30px rgba(var(--nf-ink-rgb), 0.251); animation: live-notice-in .2s ease-out; }
.live-stream-notice[hidden], #liveStreamNavigation[hidden], .sidebar-live-count[hidden], .stream-audience__metrics[hidden] { display: none !important; }
.live-stream-notice > i { color: #ff7184; font-size: 1.25rem; }
.live-stream-notice > div { flex: 1; min-width: 0; }
.live-stream-notice strong { display: block; font-size: .82rem; }
.live-stream-notice a { display: block; color: var(--nf-blue-on-dark); font-size: .78rem; overflow-wrap: anywhere; margin-top: .2rem; }
.live-stream-notice button { border: 0; background: transparent; color: var(--nf-blue-on-dark); padding: .4rem; }
.stream-audience { border: 1px solid rgba(var(--nf-blue-light-rgb), .35); border-radius: .65rem; background: rgba(var(--nf-blue-hover-rgb), .08); }
.stream-audience > summary { padding: .8rem 1rem; font-size: .85rem; font-weight: 600; cursor: pointer; }
.stream-audience__body { padding: 0 1rem 1rem; }
.stream-audience__body label { max-width: 220px; font-size: .8rem; display: block; color: inherit; }
.stream-audience__metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: .75rem; }
.stream-audience__metrics > div { padding: .9rem; border: 1px solid rgba(var(--nf-blue-light-rgb), .3); border-radius: .6rem; background: rgba(var(--nf-blue-mid-rgb), .1); }
.stream-audience__metrics strong { display: block; font-size: 1.2rem; color: inherit; }
.stream-audience__metrics small { display: block; margin-top: .3rem; opacity: .85; }
@keyframes live-notice-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 575.98px) { .live-stream-notice { top: 76px; } }
@media (prefers-reduced-motion: reduce) { .live-stream-notice { animation: none; } }

/* Keep root settings in the footer while the main navigation scrolls. */
.sidebar-nav { flex: 1 1 auto; min-height: 0; }
.sidebar-footer { flex: 0 0 auto; max-height: 60dvh; overflow-y: auto; }
.sidebar-configuration { margin-bottom: 12px; }
.sidebar-configuration .sidebar-dropdown { margin-bottom: 0; }
#applicationName, #channelName, #logo-settings { scroll-margin-top: 100px; }

/* Indicador persistente de la página actual en el menú. */
.sidebar-link.active[aria-current="page"] { border-color: var(--nf-blue-on-dark); font-weight: 800; box-shadow: inset 3px 0 var(--nf-blue-on-dark), 0 8px 22px rgba(var(--nf-blue-rgb), .25); }

.user-menu__identity { display:flex; flex-direction:column; min-width:0; max-width:240px; }
.user-menu__identity strong,.user-menu__email { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.user-menu__email { display:block; margin-top:3px; color:var(--nf-muted); font-size:.65rem; font-weight:650; line-height:1.3; }
@media(max-width:575px) { .user-menu__identity { max-width:140px; } }

/* Alineación consistente de los textos en los subítems del menú. */
.sidebar-dropdown__items .sidebar-link {
    justify-content: flex-start;
    text-align: right;
}
.sidebar-dropdown__items .sidebar-link > span {
    flex: 1;
    margin-left: 0;
    text-align: right;
}
