/* ==========================================================================
   Livesic — Spotify-style design layer (v1)
   Capa global que se superpone a livesic.css sin romper la estructura
   existente. Aplica el lenguaje visual de Spotify (oscuro, cards densas,
   pills, tipografía bold, headers con gradient, iconografía Lucide).
   Mantiene compatibilidad con modo claro.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base global
   -------------------------------------------------------------------------- */
html,
body {
    font-family: var(--lv-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--lv-theme-bg);
    color: var(--lv-theme-ink);
}

:root[data-lv-theme="dark"] body {
    background:
        radial-gradient(1200px 600px at 0% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% -10%, rgba(255, 45, 141, 0.08), transparent 60%),
        var(--lv-theme-bg);
}

a {
    color: inherit;
}

::selection {
    background: var(--lv-brand-2);
    color: #fff;
}

/* --------------------------------------------------------------------------
   2. Iconos Lucide (inline SVG)
   -------------------------------------------------------------------------- */
.lv-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: var(--lv-icon-md);
    height: var(--lv-icon-md);
    color: currentColor;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -3px;
}

.lv-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lv-icon--sm { width: var(--lv-icon-sm); height: var(--lv-icon-sm); stroke-width: 2; }
.lv-icon--md { width: var(--lv-icon-md); height: var(--lv-icon-md); }
.lv-icon--lg { width: var(--lv-icon-lg); height: var(--lv-icon-lg); }
.lv-icon--xl { width: var(--lv-icon-xl); height: var(--lv-icon-xl); }

/* --------------------------------------------------------------------------
   3. Site header (topbar) — estilo Spotify
   -------------------------------------------------------------------------- */
.livesic-site-header {
    position: sticky;
    top: 0;
    z-index: 100050;
    background: rgba(10, 10, 11, 0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--lv-theme-border);
    color: var(--lv-theme-ink);
}

:root[data-lv-theme="light"] .livesic-site-header {
    background: rgba(255, 255, 255, 0.82);
    color: var(--lv-theme-ink);
}

.livesic-site-header__inner {
    max-width: 1440px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    min-height: 64px;
}

.livesic-site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.01em;
    flex: 0 0 auto;
}

.livesic-site-header__notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin-left: -8px;
    box-sizing: border-box;
    border: 1px solid var(--lv-theme-border);
    border-radius: 9px;
    color: var(--lv-theme-muted);
    background: transparent;
    text-decoration: none;
    transition: color .15s, background .15s, border-color .15s, transform .15s;
}

.livesic-site-header__notifications:hover {
    color: var(--lv-theme-ink);
    background: var(--lv-chrome-hover);
    border-color: currentColor;
    transform: translateY(-1px);
}

.livesic-site-header__notifications:focus-visible {
    outline: 2px solid var(--lv-theme-accent, #8b5cf6);
    outline-offset: 2px;
}

.livesic-site-header__notifications .lv-icon {
    width: 20px;
    height: 20px;
}

/* Botón "Muro": la imagen tiene fondo oscuro propio. Conservamos un contorno
   sutil para que su tamaño óptico coincida con Avisos y Crear sobre la cabecera. */
.livesic-site-header__wall {
    border: 1px solid var(--lv-theme-border);
    padding: 0;
    overflow: hidden;
    border-radius: 9px;
}

.livesic-site-header__wall:hover {
    border-color: currentColor;
    background: transparent;
}

.livesic-site-header__wall img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

.livesic-site-header__quick-create {
    position: relative;
    flex: 0 0 auto;
}

.livesic-site-header__quick-create-toggle.livesic-site-header__group-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--lv-theme-border);
    border-radius: 9px;
    color: #fff;
    background: var(--lv-brand-gradient);
    box-shadow: 0 7px 18px rgba(124, 58, 237, .24);
    transition: transform .15s, filter .15s, box-shadow .15s;
}

.livesic-site-header__quick-create-toggle.livesic-site-header__group-toggle:hover,
.livesic-site-header__quick-create.is-open .livesic-site-header__quick-create-toggle {
    color: #fff;
    background: var(--lv-brand-gradient);
    border-color: transparent;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(124, 58, 237, .34);
}

.livesic-site-header__quick-create-toggle:focus-visible {
    outline: 2px solid var(--lv-theme-accent, #8b5cf6);
    outline-offset: 2px;
}

.livesic-site-header__quick-create-toggle .lv-icon {
    width: 22px;
    height: 22px;
}

.livesic-site-header__quick-create .livesic-site-header__quick-create-menu {
    right: 0;
    left: auto;
    min-width: 220px;
    padding: 8px;
}

.livesic-site-header__quick-create-title {
    display: block;
    padding: 7px 10px 5px;
    color: var(--lv-theme-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* El menú rápido vive fuera de <nav>, por lo que el color global de los
   enlaces en modo oscuro le ganaba en especificidad y los pintaba azules. */
:root[data-lv-theme="dark"] .livesic-site-header__quick-create .livesic-site-header__quick-create-title,
:root[data-lv-theme="dark"] .livesic-site-header__quick-create .livesic-site-header__quick-create-menu a,
:root[data-lv-theme="dark"] .livesic-site-header__quick-create .livesic-site-header__quick-create-menu a:visited,
:root[data-lv-theme="dark"] .livesic-site-header__quick-create .livesic-site-header__quick-create-menu a:hover,
:root[data-lv-theme="dark"] .livesic-site-header__quick-create .livesic-site-header__quick-create-menu a:focus-visible {
    color: #fff;
}

.livesic-site-header__notification-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    box-sizing: border-box;
    padding: 0 5px;
    border: 2px solid var(--lv-chrome-surface, #101114);
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.livesic-site-header__notification-badge[hidden] { display: none; }

:root[data-lv-theme="light"] .livesic-site-header__notification-badge { border-color: #fff; }

.livesic-site-header__logo {
    width: auto;
    max-width: 180px;
    height: 44px;
    border-radius: 0;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .livesic-site-header__logo {
        height: 38px;
        max-width: 150px;
    }

    .livesic-site-header__notifications {
        width: 40px;
        height: 40px;
        margin-left: -12px;
    }

    .livesic-site-header__quick-create-toggle.livesic-site-header__group-toggle {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }
}

.livesic-site-header__brand-text strong {
    color: inherit;
    font-size: 16px;
    line-height: 1.1;
}

.livesic-site-header__brand-text small {
    color: var(--lv-theme-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.livesic-site-header__nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 16px;
    white-space: nowrap;
}

.livesic-site-header__nav > * {
    flex: 0 0 auto;
    align-self: center;
}

.livesic-site-header__nav a,
.livesic-site-header__group-toggle {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--lv-radius-pill);
    color: var(--lv-theme-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.livesic-site-header__nav a:hover,
.livesic-site-header__group-toggle:hover,
.livesic-site-header__group.is-open .livesic-site-header__group-toggle {
    color: var(--lv-theme-ink);
    background: var(--lv-chrome-hover);
}

:root[data-lv-theme="light"] .livesic-site-header__nav a,
:root[data-lv-theme="light"] .livesic-site-header__group-toggle {
    color: #4a4a4f;
}

:root[data-lv-theme="light"] .livesic-site-header__nav a:hover,
:root[data-lv-theme="light"] .livesic-site-header__group-toggle:hover {
    color: #0a0a0b;
    background: rgba(0, 0, 0, 0.06);
}

.livesic-site-header__nav .lv-icon {
    width: 18px;
    height: 18px;
}

.livesic-site-header__group {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.livesic-site-header__group-caret {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    transition: transform 0.18s ease;
}

.livesic-site-header__group.is-open .livesic-site-header__group-caret {
    transform: rotate(180deg);
}

.livesic-site-header__group-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 6px;
    background: var(--lv-chrome-surface-2);
    border: 1px solid var(--lv-theme-border);
    border-radius: var(--lv-radius-md);
    box-shadow: var(--lv-shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 100060;
}

:root[data-lv-theme="light"] .livesic-site-header__group-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.livesic-site-header__group-menu[hidden] {
    display: none;
}

.livesic-site-header__group-menu a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--lv-theme-ink);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.livesic-site-header__group-menu a:hover {
    background: var(--lv-chrome-hover);
    color: var(--lv-theme-ink);
}

/* Selector de rol activo: visible junto al logo en escritorio. */
.livesic-site-header__role-switch {
    flex: 0 0 auto;
    margin-left: -8px;
}

.livesic-site-header__role-switch-toggle.livesic-site-header__group-toggle {
    min-height: 42px;
    padding: 4px 11px 4px 5px;
    gap: 8px;
    border: 1px solid var(--lv-theme-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--lv-chrome-surface-2) 72%, transparent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.livesic-site-header__role-switch-toggle.livesic-site-header__group-toggle:hover,
.livesic-site-header__role-switch.is-open .livesic-site-header__role-switch-toggle {
    border-color: color-mix(in srgb, var(--lv-theme-accent, #8b5cf6) 55%, var(--lv-theme-border));
    background: var(--lv-chrome-hover);
    transform: translateY(-1px);
}

.livesic-site-header__role-switch-toggle:focus-visible {
    outline: 2px solid var(--lv-theme-accent, #8b5cf6);
    outline-offset: 2px;
}

.livesic-site-header__role-switch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
    color: #fff;
    background: var(--lv-brand-gradient);
    box-shadow: 0 5px 14px rgba(124, 58, 237, .28);
}

.livesic-site-header__role-switch-icon .lv-icon {
    width: 17px;
    height: 17px;
}

.livesic-site-header__role-switch-copy,
.livesic-site-header__role-option-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.livesic-site-header__role-switch-copy small {
    color: var(--lv-theme-muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.livesic-site-header__role-switch-copy strong {
    max-width: 128px;
    overflow: hidden;
    color: var(--lv-theme-ink);
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.livesic-site-header__role-switch-menu {
    width: 286px;
    min-width: 286px;
    padding: 8px;
}

.livesic-site-header__role-switch-title {
    display: block;
    padding: 6px 9px 8px;
    color: var(--lv-theme-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.livesic-site-header__role-option-form {
    margin: 0;
}

.livesic-site-header__role-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 9px 10px;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    color: var(--lv-theme-ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: color .15s, background .15s;
}

.livesic-site-header__role-option:hover {
    background: var(--lv-chrome-hover);
}

.livesic-site-header__role-option.is-active {
    background: color-mix(in srgb, var(--lv-theme-accent, #8b5cf6) 13%, transparent);
    cursor: default;
}

.livesic-site-header__role-option-copy {
    flex: 1 1 auto;
}

.livesic-site-header__role-option-copy strong {
    font-size: 14px;
    line-height: 1.3;
}

.livesic-site-header__role-option-copy small {
    margin-top: 2px;
    color: var(--lv-theme-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

.livesic-site-header__role-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    color: #fff;
    background: var(--lv-brand-gradient);
}

.livesic-site-header__role-option-check .lv-icon {
    width: 14px;
    height: 14px;
}

.livesic-site-header__role-switch-menu .livesic-site-header__role-manage {
    margin-top: 5px;
    padding-top: 11px;
    border-top: 1px solid var(--lv-theme-border);
    border-radius: 0 0 8px 8px;
    color: var(--lv-theme-muted);
    font-size: 12px;
}

.livesic-site-header__account-role-switch {
    display: none !important;
}

:root[data-lv-theme="light"] .livesic-site-header__group-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.livesic-site-header__menu-item-with-badge,
.livesic-site-header__mobile-item-with-badge {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.livesic-site-header__menu-item-with-badge > span:first-child,
.livesic-site-header__mobile-item-with-badge > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.livesic-site-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--lv-radius-pill);
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.livesic-site-header__badge[hidden] {
    display: none !important;
}

/* CTA principal (registro) */
.livesic-site-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.livesic-site-header__actions--account {
    margin-left: auto;
}

.livesic-site-header__account {
    position: relative;
}

.livesic-site-header__account-toggle.livesic-site-header__group-toggle {
    gap: 10px;
    min-height: 46px;
    padding: 4px 8px 4px 5px;
    border: 1px solid var(--lv-theme-border);
    border-radius: var(--lv-radius-pill);
    background: color-mix(in srgb, var(--lv-chrome-surface) 86%, transparent);
    box-shadow: var(--lv-shadow-sm);
}

.livesic-site-header__account-toggle.livesic-site-header__group-toggle:hover,
.livesic-site-header__account.is-open .livesic-site-header__account-toggle {
    border-color: color-mix(in srgb, var(--lv-brand-2) 34%, var(--lv-theme-border));
    background: var(--lv-chrome-surface);
    box-shadow: var(--lv-shadow-md);
}

.livesic-site-header__avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}

.livesic-site-header__avatar-wrap::before,
.livesic-site-header__avatar-wrap::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
    z-index: 2;
}

.livesic-site-header__avatar {
    width: 38px;
    height: 38px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    background: var(--lv-chrome-surface-2);
    box-shadow: inset 0 0 0 1px var(--lv-theme-border);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.livesic-site-header__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lv-theme-muted);
}

.livesic-site-header__badge--avatar {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 0 0 2px var(--lv-chrome-surface), 0 8px 16px rgba(239, 68, 68, 0.28);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.livesic-site-header__account-name {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    max-width: 132px;
    text-align: left;
    line-height: 1.05;
}

.livesic-site-header__account-name span {
    color: var(--lv-theme-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.livesic-site-header__account-name strong {
    overflow: hidden;
    color: var(--lv-theme-ink);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.livesic-site-header__account-menu {
    right: 0;
    left: auto;
    min-width: 256px;
    padding: 8px;
}

.livesic-site-header__account-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    padding: 10px;
    border-radius: 8px;
    background: var(--lv-chrome-hover);
    color: var(--lv-theme-ink);
}

.livesic-site-header__account-card img,
.livesic-site-header__account-card > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--lv-chrome-surface);
}

.livesic-site-header__account-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.livesic-site-header__account-card strong,
.livesic-site-header__account-card small {
    display: block;
    max-width: 176px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.livesic-site-header__account-card strong {
    color: var(--lv-theme-ink);
    font-size: 14px;
    line-height: 1.15;
}

.livesic-site-header__account-card small {
    margin-top: 2px;
    color: var(--lv-theme-muted);
    font-size: 12px;
    font-weight: 700;
}

.livesic-site-header__account-menu .livesic-site-header__account-logout {
    margin-top: 6px;
    border-top: 1px solid var(--lv-theme-border);
    border-radius: 0;
    padding-top: 12px;
    color: #f87171;
}

.livesic-site-header__account-menu .livesic-site-header__account-logout:hover {
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.livesic-site-header__account-menu .livesic-site-header__account-register {
    margin-top: 4px;
    justify-content: center;
    color: var(--lv-brand-accent-ink);
    background: var(--lv-brand-gradient);
    box-shadow: var(--lv-shadow-sm);
}

.livesic-site-header__account-menu .livesic-site-header__account-register:hover {
    color: var(--lv-brand-accent-ink);
    background: var(--lv-brand-gradient);
    filter: brightness(1.06);
}

.livesic-site-header__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--lv-theme-muted);
    text-decoration: none;
    border-radius: var(--lv-radius-pill);
    font-weight: 700;
    font-size: 14px;
    border: 0;
    background: transparent;
    transition: color 0.15s, background 0.15s;
}

.livesic-site-header__link:hover {
    color: var(--lv-theme-ink);
    background: var(--lv-chrome-hover);
}

.livesic-site-header__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--lv-brand-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: var(--lv-radius-pill);
    font-weight: 800;
    font-size: 14px;
    border: 0;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.livesic-site-header__button:hover {
    transform: scale(1.04);
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.36);
}

/* Burger */
.livesic-site-header__burger {
    background: transparent;
    border: 1px solid var(--lv-theme-border);
    color: var(--lv-theme-ink);
    border-radius: var(--lv-radius-md);
}

.livesic-site-header__burger:hover {
    background: var(--lv-chrome-hover);
    border-color: var(--lv-theme-border-strong);
    color: var(--lv-theme-ink);
}

.livesic-site-header__mobile {
    background: var(--lv-chrome-surface);
    border-top: 1px solid var(--lv-theme-border);
}

.livesic-site-header__mobile a {
    color: var(--lv-theme-ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
}

.livesic-site-header__mobile a:hover {
    background: var(--lv-chrome-hover);
}

.livesic-site-header__mobile-heading {
    color: var(--lv-theme-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 12px 12px 4px;
    font-weight: 800;
}

.livesic-site-header__mobile-cta {
    background: var(--lv-brand-gradient) !important;
    color: #fff !important;
    border-radius: var(--lv-radius-pill);
    text-align: center;
    font-weight: 800;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.livesic-site-header__mobile-cta:hover {
    background: var(--lv-brand-gradient) !important;
    color: #fff !important;
    filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   4. Sidebar (utility para futuras vistas tipo Spotify)
   -------------------------------------------------------------------------- */
.lv-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 8px;
    padding: 8px;
    background: var(--lv-theme-bg);
    min-height: calc(100vh - 64px);
}

.lv-shell__sidebar {
    background: var(--lv-chrome-surface);
    border-radius: var(--lv-radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--lv-theme-ink);
}

:root[data-lv-theme="light"] .lv-shell__sidebar {
    background: #ffffff;
    border: 1px solid var(--lv-theme-border);
}

.lv-shell__main {
    background: var(--lv-chrome-surface);
    border-radius: var(--lv-radius-lg);
    overflow: hidden;
    position: relative;
}

:root[data-lv-theme="light"] .lv-shell__main {
    background: #ffffff;
    border: 1px solid var(--lv-theme-border);
}

.lv-sidenav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lv-sidenav__group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lv-theme-muted);
    padding: 12px 12px 6px;
    font-weight: 800;
}

.lv-sidenav__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--lv-theme-muted);
    font-weight: 700;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.lv-sidenav__item:hover {
    color: var(--lv-theme-ink);
    background: var(--lv-chrome-hover);
}

.lv-sidenav__item.is-active {
    color: var(--lv-theme-ink);
    background: var(--lv-chrome-active);
}

.lv-sidenav__item .lv-icon {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   5. Header con gradient tipo "playlist hero"
   -------------------------------------------------------------------------- */
.lv-hero {
    position: relative;
    padding: 32px 32px 24px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%),
        var(--lv-theme-brand-gradient);
    border-radius: var(--lv-radius-lg);
    overflow: hidden;
    isolation: isolate;
}

.lv-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.85;
}

.lv-hero__title {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.05;
    margin: 8px 0 12px;
    letter-spacing: -0.02em;
}

.lv-hero__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.lv-hero__meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    opacity: 0.5;
}

.lv-hero__actions {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Botones (sobrescribe .lv-btn manteniendo API)
   -------------------------------------------------------------------------- */
.lv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--lv-radius-pill);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    color: var(--lv-theme-ink);
    background: transparent;
    transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.lv-btn:hover {
    transform: scale(1.03);
}

.lv-btn:active {
    transform: scale(0.98);
}

.lv-btn--primary {
    background: #fff;
    color: #0a0a0b;
    box-shadow: var(--lv-shadow-sm);
}

.lv-btn--primary:hover {
    background: #f4f4f5;
    color: #0a0a0b;
}

.lv-btn--accent {
    background: var(--lv-brand-accent);
    color: #fff;
    box-shadow: var(--lv-shadow-press);
}

.lv-btn--accent:hover {
    background: #ff66b0;
    color: #fff;
}

.lv-btn--gradient {
    background: var(--lv-brand-gradient);
    color: #fff;
    border: 0;
    box-shadow: var(--lv-shadow-press);
}

.lv-btn--ghost {
    background: transparent;
    color: var(--lv-theme-ink);
    border-color: var(--lv-theme-border-strong);
}

.lv-btn--ghost:hover {
    border-color: var(--lv-theme-ink);
    background: var(--lv-chrome-hover);
}

.lv-btn--link {
    padding: 4px 6px;
    background: transparent;
    color: var(--lv-theme-muted);
    border-radius: var(--lv-radius-sm);
}

.lv-btn--link:hover {
    color: var(--lv-theme-ink);
}

.lv-btn--icon {
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: var(--lv-radius-pill);
    background: var(--lv-chrome-surface-2);
    border: 1px solid var(--lv-theme-border);
    color: var(--lv-theme-ink);
}

.lv-btn--play {
    background: var(--lv-brand-accent);
    color: #fff;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: var(--lv-radius-pill);
    box-shadow: 0 8px 24px rgba(255, 79, 163, 0.45);
}

.lv-btn--play:hover {
    background: #ff66b0;
}

.lv-btn--block {
    display: flex;
    width: 100%;
}

.lv-btn[disabled],
.lv-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* --------------------------------------------------------------------------
   7. Cards (sobrescribe .lv-card)
   -------------------------------------------------------------------------- */
.lv-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--lv-theme-surface-2);
    border: 1px solid var(--lv-theme-border);
    border-radius: var(--lv-radius-md);
    text-decoration: none;
    color: var(--lv-theme-ink);
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
}

.lv-card:hover {
    background: var(--lv-theme-elevated);
    border-color: var(--lv-theme-border-strong);
    transform: translateY(-1px);
    color: var(--lv-theme-ink);
}

.lv-card img,
.lv-card__avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--lv-radius-sm);
    object-fit: cover;
    background: var(--lv-chrome-surface-2);
}

.lv-card__avatar-placeholder {
    color: var(--lv-theme-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
}

.lv-card small {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--lv-theme-muted);
    margin-bottom: 2px;
}

.lv-card strong {
    display: block;
    color: var(--lv-theme-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.lv-card__meta {
    display: block;
    font-size: 13px;
    color: var(--lv-theme-muted);
    margin-top: 2px;
}

.lv-card__arrow {
    margin-left: auto;
    color: var(--lv-theme-muted);
    font-size: 18px;
}

/* Card grande "playlist" */
.lv-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--lv-theme-surface-2);
    border-radius: var(--lv-radius-md);
    text-decoration: none;
    color: var(--lv-theme-ink);
    transition: background 0.18s, transform 0.18s;
    position: relative;
}

.lv-tile:hover {
    background: var(--lv-theme-elevated);
    color: var(--lv-theme-ink);
}

.lv-tile__cover {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--lv-radius-sm);
    object-fit: cover;
    background: var(--lv-chrome-surface-2);
    box-shadow: var(--lv-shadow-md);
}

.lv-tile__title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.25;
    color: var(--lv-theme-ink);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lv-tile__meta {
    font-size: 13px;
    color: var(--lv-theme-muted);
    line-height: 1.4;
}

.lv-tile__play {
    position: absolute;
    right: 22px;
    bottom: 88px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s, transform 0.18s;
}

.lv-tile:hover .lv-tile__play {
    opacity: 1;
    transform: translateY(0);
}

.lv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* --------------------------------------------------------------------------
   8. Chips / pills / tags
   -------------------------------------------------------------------------- */
.lv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--lv-radius-pill);
    background: var(--lv-chrome-surface-2);
    color: var(--lv-theme-ink);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--lv-theme-border);
    text-decoration: none;
}

.lv-chip:hover {
    border-color: var(--lv-theme-border-strong);
    background: var(--lv-theme-elevated);
}

.lv-chip--accent {
    background: var(--lv-brand-accent);
    color: #fff;
    border-color: transparent;
}

.lv-chip--muted {
    background: transparent;
    color: var(--lv-theme-muted);
}

.lv-pill-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    background: var(--lv-chrome-surface-2);
    border-radius: var(--lv-radius-pill);
    border: 1px solid var(--lv-theme-border);
}

.lv-pill-nav a,
.lv-pill-nav button {
    padding: 8px 16px;
    border-radius: var(--lv-radius-pill);
    color: var(--lv-theme-muted);
    background: transparent;
    border: 0;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.lv-pill-nav a:hover,
.lv-pill-nav button:hover {
    color: var(--lv-theme-ink);
}

.lv-pill-nav .is-active,
.lv-pill-nav [aria-current="page"] {
    background: var(--lv-theme-ink);
    color: var(--lv-theme-bg);
}

/* --------------------------------------------------------------------------
   9. Listas / tablas tipo "tracklist"
   -------------------------------------------------------------------------- */
.lv-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lv-list__row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--lv-theme-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.lv-list__row:hover {
    background: var(--lv-chrome-hover);
    color: var(--lv-theme-ink);
}

.lv-list__row strong {
    color: var(--lv-theme-ink);
    font-weight: 700;
    font-size: 14px;
}

.lv-list__row small {
    color: var(--lv-theme-muted);
    font-size: 12px;
}

.lv-list__index {
    font-size: 13px;
    color: var(--lv-theme-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   10. Inputs
   -------------------------------------------------------------------------- */
.lv-input,
.livesic input[type="text"],
.livesic input[type="email"],
.livesic input[type="password"],
.livesic input[type="search"],
.livesic input[type="url"],
.livesic input[type="tel"],
.livesic input[type="number"],
.livesic input[type="date"],
.livesic textarea,
.livesic select {
    width: 100%;
    background: var(--lv-chrome-surface-2);
    border: 1px solid var(--lv-theme-border);
    color: var(--lv-theme-ink);
    padding: 10px 14px;
    border-radius: var(--lv-radius-sm);
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.lv-input:focus,
.livesic input:focus,
.livesic textarea:focus,
.livesic select:focus {
    outline: 0;
    border-color: var(--lv-theme-border-strong);
    box-shadow: var(--lv-theme-focus);
    background: var(--lv-theme-elevated);
}

.lv-input::placeholder,
.livesic textarea::placeholder {
    color: var(--lv-theme-muted);
}

.lv-search {
    display: grid;
    gap: 16px;
    width: min(100%, 1040px);
    max-width: 1040px;
    margin: 28px auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--lv-theme-ink);
}

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

.lv-search__title {
    margin: 0;
    color: var(--lv-theme-ink);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.12;
}

.lv-search__sub {
    max-width: 720px;
    margin: -6px 0 2px;
    color: var(--lv-theme-muted);
    font-size: 14px;
    line-height: 1.5;
}

.lv-search__controls,
.lv-search__location .livesic-region-picker.is-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.lv-search__location,
.lv-search__controls > *,
.lv-search__location .livesic-region-field {
    min-width: 0;
}

.lv-search__input,
.lv-search__controls .lv-tags-field,
.lv-search__genre-field,
.lv-search__instrument-field,
.lv-search__location .livesic-region-field {
    flex: 1 1 220px;
}

.lv-search__input,
.lv-search .lv-tags-field,
.lv-search .lv-tags-input,
.lv-search .livesic-region-picker .livesic-region-field select,
.lv-search .livesic-region-picker .livesic-region-field input[type="text"] {
    width: 100%;
    max-width: 100%;
    color: var(--lv-theme-ink);
}

.lv-search__input,
.lv-search .livesic-region-picker .livesic-region-field select,
.lv-search .livesic-region-picker .livesic-region-field input[type="text"] {
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid var(--lv-theme-border);
    border-radius: var(--lv-radius-sm);
    background-color: var(--lv-chrome-surface-2);
    font-size: 14px;
    outline: 0;
    box-shadow: none;
}

.lv-search .livesic-region-picker .livesic-region-field select {
    padding-right: 36px;
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
}

.lv-search__input:focus,
.lv-search .lv-tags-field:focus-within,
.lv-search .livesic-region-picker .livesic-region-field select:focus,
.lv-search .livesic-region-picker .livesic-region-field input[type="text"]:focus {
    border-color: var(--lv-theme-border-strong);
    box-shadow: var(--lv-theme-focus);
}

.lv-search .lv-tags-field {
    min-height: 44px;
    padding: 6px 12px;
    border-color: var(--lv-theme-border);
    background: var(--lv-chrome-surface-2);
}

.lv-search .lv-tags-input {
    padding: 4px 0 !important;
    background: transparent !important;
}

.lv-search__meta {
    min-height: 16px;
    color: var(--lv-theme-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lv-search__results {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.lv-search__empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--lv-theme-border);
    border-radius: var(--lv-radius-md);
    background: var(--lv-chrome-surface);
    color: var(--lv-theme-muted);
    text-align: center;
}

.lv-search-card {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    gap: 14px;
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--lv-theme-border);
    border-radius: var(--lv-radius-md);
    background: var(--lv-chrome-surface);
    color: var(--lv-theme-ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.lv-search-card:hover {
    transform: translateY(-1px);
    border-color: var(--lv-theme-border-strong);
    background: var(--lv-chrome-surface-2);
    color: var(--lv-theme-ink);
    box-shadow: var(--lv-shadow-sm);
}

.lv-search-card__avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--lv-chrome-surface-2);
    background-position: center;
    background-size: cover;
}

.lv-search-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.lv-search-card__name {
    color: var(--lv-theme-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lv-search-card__sub,
.lv-search-card__loc {
    color: var(--lv-theme-muted);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lv-search-card__count {
    flex: 0 0 auto;
    color: var(--lv-theme-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.lv-search-card .lv-bcall-card__chips {
    margin-top: 4px;
}

@media (max-width: 720px) {
    .lv-search {
        gap: 12px;
        margin: 18px auto;
        padding: 0 14px;
    }

    .lv-search__title {
        font-size: 23px;
    }

    .lv-search__controls,
    .lv-search__location .livesic-region-picker.is-inline {
        gap: 8px;
    }

    .lv-search__input,
    .lv-search__controls .lv-tags-field,
    .lv-search__genre-field,
    .lv-search__instrument-field,
    .lv-search__location .livesic-region-field {
        flex-basis: 100%;
    }

    .lv-search-card {
        padding: 12px;
        gap: 12px;
    }

    .lv-search-card__avatar {
        width: 44px;
        height: 44px;
    }

    .lv-search-card__count {
        display: none;
    }
}

@media (max-width: 420px) {
    .lv-search-card {
        align-items: flex-start;
    }

    .lv-search-card__avatar {
        width: 40px;
        height: 40px;
    }
}

/* --------------------------------------------------------------------------
   11. Section titles
   -------------------------------------------------------------------------- */
.lv-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.lv-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.lv-section__title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--lv-theme-ink);
    margin: 0;
}

.lv-section__subtitle {
    font-size: 13px;
    color: var(--lv-theme-muted);
    margin-top: 4px;
}

.lv-section__link {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lv-theme-muted);
    text-decoration: none;
}

.lv-section__link:hover {
    color: var(--lv-theme-ink);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. Empty state
   -------------------------------------------------------------------------- */
.lv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 48px 24px;
    background: var(--lv-theme-surface-2);
    border-radius: var(--lv-radius-md);
    border: 1px dashed var(--lv-theme-border);
}

.lv-empty .lv-icon {
    width: 40px;
    height: 40px;
    color: var(--lv-theme-muted);
}

.lv-empty__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--lv-theme-ink);
}

.lv-empty__text {
    color: var(--lv-theme-muted);
    font-size: 14px;
    max-width: 36ch;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.livesic-site-footer {
    background: var(--lv-theme-bg-soft);
    border-top: 1px solid var(--lv-theme-border);
    color: var(--lv-theme-muted);
}

:root[data-lv-theme="dark"] .livesic-site-footer {
    background: #050505;
}

.livesic-site-footer a {
    color: var(--lv-theme-muted);
}

.livesic-site-footer a:hover {
    color: var(--lv-theme-ink);
}

/* --------------------------------------------------------------------------
   14. Modo claro: ajustes finos sobre overlays Spotify
   -------------------------------------------------------------------------- */
:root[data-lv-theme="light"] {
    --lv-chrome-bg: #ffffff;
    --lv-chrome-surface: #ffffff;
    --lv-chrome-surface-2: #f4f4f5;
    --lv-chrome-border: rgba(0, 0, 0, 0.08);
    --lv-chrome-ink: #0a0a0b;
    --lv-chrome-muted: #5a5a5f;
    --lv-chrome-hover: rgba(0, 0, 0, 0.05);
    --lv-chrome-active: rgba(0, 0, 0, 0.10);
}

:root[data-lv-theme="light"] .lv-btn--primary {
    background: #0a0a0b;
    color: #fff;
}

:root[data-lv-theme="light"] .lv-btn--primary:hover {
    background: #1a1a1d;
    color: #fff;
}

:root[data-lv-theme="light"] .lv-pill-nav .is-active,
:root[data-lv-theme="light"] .lv-pill-nav [aria-current="page"] {
    background: #0a0a0b;
    color: #fff;
}

:root[data-lv-theme="light"] .livesic-site-header__button {
    background: #0a0a0b;
    color: #fff;
}

:root[data-lv-theme="light"] .livesic-site-header__button:hover {
    background: #1a1a1d;
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .lv-shell {
        grid-template-columns: 1fr;
    }

    .lv-shell__sidebar {
        display: none;
    }
}

@media (max-width: 860px) {
    .livesic-site-header__inner {
        position: relative;
        justify-content: flex-start;
        min-height: 58px;
        padding: 8px 14px;
    }

    .livesic-site-header__nav {
        display: none !important;
    }

    .livesic-site-header__inner--with-role {
        min-height: 58px;
        padding: 8px 4px;
        align-items: center;
        justify-content: flex-start;
        gap: 3px;
    }

    .livesic-site-header__inner--with-role .livesic-site-header__brand {
        position: absolute;
        order: 2;
        top: 50%;
        left: 50%;
        flex: 0 0 auto;
        margin: 0;
        transform: translate(-50%, -50%);
    }

    .livesic-site-header__inner--with-role .livesic-site-header__logo {
        width: auto;
        max-width: 88px;
        height: 38px;
    }

    .livesic-site-header__inner--with-role > .livesic-site-header__burger {
        order: 0;
        width: 34px;
        height: 34px;
        min-height: 34px;
        margin: 0;
        padding: 0;
    }

    .livesic-site-header__inner--with-role > .livesic-site-header__notifications {
        display: inline-flex;
        order: 1;
        width: 34px;
        height: 34px;
        margin-left: 0;
        border-radius: 10px;
    }

    /* La lupa autenticada comparte el grupo izquierdo y queda, por orden del DOM,
       inmediatamente después de la campana de Avisos. */
    .livesic-site-header__inner--with-role > .livesic-site-header__search-toggle {
        order: 1;
        margin: 0;
    }

    /* Al trasladar la lupa fuera del mapa no se reserva una columna vacía. */
    .livesic-map-overlay--header-search .livesic-map-info {
        grid-column: 1 / -1;
    }

    .livesic-site-header__role-switch {
        position: relative;
        order: 4;
        z-index: 2;
        right: auto;
        left: auto;
        top: auto;
        bottom: auto;
        display: inline-flex;
        justify-content: center;
        width: auto;
        max-width: none;
        margin-left: auto;
        transform: none;
    }

    .livesic-site-header__role-switch-toggle.livesic-site-header__group-toggle {
        width: 34px;
        height: 34px;
        max-width: 34px;
        min-height: 34px;
        padding: 0;
        gap: 0;
        border-radius: 10px;
        box-shadow: none;
    }

    /* La tesela llena el boton, asi el selector de rol pesa lo mismo que Muro,
       Avisos y "+". Va con --with-role para ganar en especificidad (0,2,0) al
       modificador --img del final del fichero, que es (0,1,0) pero posterior. */
    .livesic-site-header__inner--with-role .livesic-site-header__role-switch-icon {
        width: 100%;
        height: 100%;
        flex: 1 1 auto;
        border-radius: inherit;
        box-shadow: none;
    }

    .livesic-site-header__role-switch-icon .lv-icon {
        width: 19px;
        height: 19px;
    }

    .livesic-site-header__role-switch-copy,
    .livesic-site-header__role-switch-toggle .livesic-site-header__group-caret {
        display: none;
    }

    .livesic-site-header__role-switch-menu {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: 0;
        max-height: calc(100vh - 74px);
        box-sizing: border-box;
        overflow-y: auto;
        transform: none;
    }

    .livesic-site-header__actions {
        display: none !important;
    }

    .livesic-site-header__actions--account {
        display: inline-flex !important;
        order: 2;
        margin-left: auto;
    }

    .livesic-site-header__quick-create {
        order: 1;
        margin-left: auto;
    }

    .livesic-site-header__inner--with-role > .livesic-site-header__actions--account {
        display: none !important;
    }

    .livesic-site-header__inner--with-role > .livesic-site-header__quick-create {
        order: 5;
        margin: 0;
    }

    .livesic-site-header__inner--with-role .livesic-site-header__quick-create-toggle.livesic-site-header__group-toggle {
        width: 34px;
        height: 34px;
        min-height: 34px;
        border-radius: 10px;
    }

    .livesic-site-header__quick-create .livesic-site-header__quick-create-menu {
        position: fixed;
        top: 64px;
        right: 14px;
        left: 14px;
        transform: none;
        width: auto;
        min-width: 0;
        max-width: none;
        box-sizing: border-box;
    }

    .livesic-site-header__burger {
        display: inline-flex !important;
        order: -1;
        margin-left: 0;
        margin-right: auto;
    }

    .livesic-site-header__brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .livesic-site-header__brand-text {
        display: none;
    }

    .livesic-site-header__account-toggle.livesic-site-header__group-toggle {
        width: 42px;
        min-height: 42px;
        padding: 2px;
        border-radius: 50%;
    }

    .livesic-site-header__account-name,
    .livesic-site-header__account-toggle .livesic-site-header__group-caret {
        display: none;
    }

    .livesic-site-header__avatar-wrap,
    .livesic-site-header__avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .livesic-site-header__account.is-open .livesic-site-header__avatar {
        opacity: 0;
        transform: scale(0.72);
    }

    .livesic-site-header__account.is-open .livesic-site-header__avatar-wrap::before {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .livesic-site-header__account.is-open .livesic-site-header__avatar-wrap::after {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .livesic-site-header__account.is-open .livesic-site-header__badge--avatar {
        opacity: 0;
        transform: scale(0.72);
        pointer-events: none;
    }

    .livesic-site-header__account-menu {
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
        min-width: 0;
    }

    body.admin-bar .livesic-site-header__account-menu {
        top: 110px;
    }
}

@media (max-width: 720px) {
    .livesic-site-header__inner {
        padding: 8px 14px;
    }

    .lv-hero {
        padding: 24px 20px 20px;
    }

    .lv-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   16. Utilidades
   -------------------------------------------------------------------------- */
.lv-stack { display: flex; flex-direction: column; gap: var(--lv-space-4); }
.lv-row   { display: flex; align-items: center; gap: var(--lv-space-3); }
.lv-row--wrap { flex-wrap: wrap; }
.lv-spacer { flex: 1; }
.lv-mute  { color: var(--lv-theme-muted); }
.lv-bold  { font-weight: 800; }
.lv-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* --------------------------------------------------------------------------
   Iconos de cabecera como imagen: Muro, Avisos, Cambiar rol y Crear ("+").
   Las teselas ya traen su propio fondo oscuro; el redondeo lo pone el CSS.
   -------------------------------------------------------------------------- */
.livesic-site-header__icon-img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

/* Avisos: como "Muro", pero SIN overflow:hidden, que recortaria el badge de
   no leidos (va fuera del boton, en top:-5px / right:-6px). */
.livesic-site-header__notifications--img {
    padding: 0;
}

.livesic-site-header__notifications--img:hover {
    background: transparent;
}

/* Cambiar rol: la tesela sustituye al degradado de marca. */
.livesic-site-header__role-switch-icon--img {
    overflow: hidden;
    background: #000;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
}

/* Crear ("+"): idem; el realce de hover/abierto lo siguen dando el
   transform y el filter de las reglas originales. */
.livesic-site-header__quick-create-toggle--img.livesic-site-header__group-toggle,
.livesic-site-header__quick-create-toggle--img.livesic-site-header__group-toggle:hover,
.livesic-site-header__quick-create.is-open .livesic-site-header__quick-create-toggle--img {
    padding: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .22);
}


/* --------------------------------------------------------------------------
   Pantallas muy estrechas (<=359px): las teselas de 42px dejarian el logo
   centrado pegado al badge de Avisos. Van a la anterior. Mismos selectores que
   el bloque de <=860px y por detras en el fichero, asi que ganan por orden.
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
    .livesic-site-header__inner--with-role .livesic-site-header__logo {
        max-width: 80px;
        height: 34px;
    }

    .livesic-site-header__inner--with-role > .livesic-site-header__burger {
        width: 31px;
        height: 31px;
        min-height: 31px;
    }

    .livesic-site-header__inner--with-role > .livesic-site-header__notifications {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }

    .livesic-site-header__role-switch-toggle.livesic-site-header__group-toggle {
        width: 31px;
        height: 31px;
        max-width: 31px;
        min-height: 31px;
        border-radius: 9px;
    }

    .livesic-site-header__inner--with-role .livesic-site-header__quick-create-toggle.livesic-site-header__group-toggle {
        width: 31px;
        height: 31px;
        min-height: 31px;
        border-radius: 9px;
    }
}


/* --------------------------------------------------------------------------
   Campanita: SEGUNDO badge para las CONVOCATORIAS (2026-08-16). El rojo de
   siempre (resto de avisos) sigue arriba a la derecha; este va ABAJO a la
   derecha, en azul y con un maletin delante del numero, para que se distinga
   a golpe de vista y no se solape con el otro (34px de tesela: 19+19 caben).
   -------------------------------------------------------------------------- */
.livesic-site-header__notification-badge--gigs {
    top: auto;
    bottom: -6px;
    right: -6px;
    gap: 3px;
    padding: 0 5px 0 4px;
    background: #0284c7;
    color: #fff;
}

.livesic-site-header__notification-badge-icon {
    display: block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
}


/* --------------------------------------------------------------------------
   Marco completo de pantalla + zonas seguras.

   El layout standalone no heredaba el reset de WordPress y algunos navegadores
   aplicaban sus 8px de margen por defecto al body: la cabecera quedaba separada
   de los cuatro bordes y medía 16px menos que el viewport. En iPhone/iPad con
   viewport-fit=cover, el fondo de la cabecera debe cubrir también el notch,
   manteniendo los controles dentro de la zona segura.
   -------------------------------------------------------------------------- */
html {
    min-height: 100%;
    margin: 0;
}

body.livesic-app {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    box-sizing: border-box;
}

.livesic-site-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
}

.livesic-site-header__inner {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.livesic-site-header__search {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (max-width: 860px) {
    .livesic-site-header__inner {
        padding-left: max(14px, env(safe-area-inset-left, 0px));
        padding-right: max(14px, env(safe-area-inset-right, 0px));
    }

    .livesic-site-header__inner--with-role {
        padding-left: max(4px, env(safe-area-inset-left, 0px));
        padding-right: max(4px, env(safe-area-inset-right, 0px));
    }

    .livesic-site-header__role-switch-menu {
        top: calc(60px + env(safe-area-inset-top, 0px));
    }

    .livesic-site-header__quick-create .livesic-site-header__quick-create-menu,
    .livesic-site-header__account-menu {
        top: calc(64px + env(safe-area-inset-top, 0px));
    }
}


/* --------------------------------------------------------------------------
   Rol activo en móvil: A = artista, O = organizador, T = técnico de sonido.
   Fan no necesita selector en cabecera; el botón "+" ocupa su sitio a la derecha.
   -------------------------------------------------------------------------- */
.livesic-site-header__role-badge {
    display: none;
}

@media (max-width: 860px) {
    .livesic-site-header__role-switch-icon--img {
        position: relative;
        overflow: visible;
    }

    .livesic-site-header__role-switch-icon--img > .livesic-site-header__icon-img {
        border-radius: inherit;
    }

    .livesic-site-header__role-badge {
        position: absolute;
        top: -5px;
        left: -5px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        box-sizing: border-box;
        border: 2px solid #101114;
        border-radius: 999px;
        color: #fff;
        font-size: 9px;
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 2px 7px rgba(0, 0, 0, .45);
        pointer-events: none;
    }

    .livesic-site-header__role-badge--artist {
        background: #7c3aed;
    }

    .livesic-site-header__role-badge--organizer {
        background: #0284c7;
    }

    .livesic-site-header__role-badge--sound-tech {
        background: #ea580c;
    }

    .livesic-site-header__inner--fan > .livesic-site-header__role-switch {
        display: none;
    }

    .livesic-site-header__inner--fan > .livesic-site-header__quick-create {
        margin-left: auto;
    }
}

@media (max-width: 359px) {
    .livesic-site-header__role-badge {
        top: -4px;
        left: -4px;
        width: 15px;
        height: 15px;
        font-size: 8px;
    }
}

/* --------------------------------------------------------------------------
   Atajo al CALENDARIO personal (2026-08-31). Reutiliza el peso de la tesela
   de Muro (34/31px, overflow oculto) y se coloca JUSTO ANTES del selector de
   rol: en escritorio por orden del DOM y en movil con order:3. El grupo
   derecho arranca ahora en esta tesela, asi que el margin-left:auto se le
   pasa del selector de rol a ella (dos margenes auto se repartirian el hueco).
   La clase --with-cal solo la pone el blade cuando la tesela existe, para no
   tocar la cabecera de fans y tecnicos.
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .livesic-site-header__inner--with-cal > .livesic-site-header__calendar {
        order: 3;
        margin-left: auto;
    }

    .livesic-site-header__inner--with-cal > .livesic-site-header__role-switch {
        margin-left: 0;
    }
}
