/* =============================================
   CONXERT — Global Styles + Theme System
   Temas: verde-claro, azulado, amoled, claro, violeta, rojo, fuego
   ============================================= */

/* ---- TEMA: Verde Claro (por defecto) ---- */
:root,
[data-theme="verde-claro"] {
    --bg-body:    #0b1012;
    --bg-card:    #131d1f;
    --bg-input:   #0d1618;
    --border:     #1e3a30;
    --accent:     #25d366;
    --accent-dark:#128c7e;
    --accent-light:#4fe38c;
    --text-primary:#e8fdf2;
    --text-secondary:#7eb89a;
    --text-muted: #4d7a62;
    --danger:     #ef4444;
    --success:    #25d366;
    --warn:       #eab308;
    --sidebar-bg: #0e1a1c;
    --topbar-bg:  #0e1a1c;
    --tag-bg:     rgba(37,211,102,0.12);
    --gradient-body: radial-gradient(circle at 15% 50%, rgba(37,211,102,0.05), transparent 30%),
                     radial-gradient(circle at 85% 30%, rgba(18,140,126,0.05), transparent 30%);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-accent:0 4px 15px rgba(37,211,102,0.25);
    --hover-bg:   rgba(37,211,102,0.10);
    --active-bg:  rgba(37,211,102,0.18);
    --theme-name: "Verde Claro";
}

/* ---- TEMA: Azulado (Ocean) ---- */
[data-theme="azulado"] {
    --bg-body:    #060b14;
    --bg-card:    #0d1b2e;
    --bg-input:   #081222;
    --border:     #1e3556;
    --accent:     #2563eb;
    --accent-dark:#1d4ed8;
    --accent-light:#60a5fa;
    --text-primary:#e1f0ff;
    --text-secondary:#7aacdb;
    --text-muted: #4d7aaa;
    --danger:     #ef4444;
    --success:    #22c55e;
    --warn:       #eab308;
    --sidebar-bg: #070e1c;
    --topbar-bg:  #070e1c;
    --tag-bg:     rgba(37,99,235,0.12);
    --gradient-body: radial-gradient(circle at 15% 50%, rgba(37,99,235,0.06), transparent 30%),
                     radial-gradient(circle at 85% 30%, rgba(96,165,250,0.04), transparent 30%);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-accent:0 4px 15px rgba(37,99,235,0.25);
    --hover-bg:   rgba(37,99,235,0.10);
    --active-bg:  rgba(37,99,235,0.18);
}

/* ---- TEMA: AMOLED (Negro Puro) ---- */
[data-theme="amoled"] {
    --bg-body:    #000000;
    --bg-card:    #0f0f0f;
    --bg-input:   #0a0a0a;
    --border:     #252525;
    --accent:     #e5e7eb;
    --accent-dark:#9ca3af;
    --accent-light:#ffffff;
    --text-primary:#ffffff;
    --text-secondary:#9ca3af;
    --text-muted: #6b7280;
    --danger:     #ef4444;
    --success:    #22c55e;
    --warn:       #eab308;
    --sidebar-bg: #050505;
    --topbar-bg:  #050505;
    --tag-bg:     rgba(229,231,235,0.08);
    --gradient-body: none;
    --shadow-card: 0 8px 40px rgba(0,0,0,0.8);
    --shadow-accent:0 4px 15px rgba(255,255,255,0.05);
    --hover-bg:   rgba(255,255,255,0.06);
    --active-bg:  rgba(255,255,255,0.12);
}

/* ---- TEMA: Claro (Light Mode) ---- */
[data-theme="claro"] {
    --bg-body:    #f0f2f5;
    --bg-card:    #ffffff;
    --bg-input:   #f7f8fa;
    --border:     #e2e8f0;
    --accent:     #128c7e;
    --accent-dark:#0d6e62;
    --accent-light:#1aaa97;
    --text-primary:#111827;
    --text-secondary:#4b5563;
    --text-muted: #9ca3af;
    --danger:     #ef4444;
    --success:    #22c55e;
    --warn:       #eab308;
    --sidebar-bg: #ffffff;
    --topbar-bg:  #ffffff;
    --tag-bg:     rgba(18,140,126,0.10);
    --gradient-body: radial-gradient(circle at 15% 50%, rgba(18,140,126,0.04), transparent 30%),
                     radial-gradient(circle at 85% 30%, rgba(18,140,126,0.03), transparent 30%);
    --shadow-card: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-accent:0 4px 15px rgba(18,140,126,0.15);
    --hover-bg:   rgba(18,140,126,0.08);
    --active-bg:  rgba(18,140,126,0.15);
}

/* ---- TEMA: Violeta (Legacy) ---- */
[data-theme="violeta"] {
    --bg-body:    #0a0a0f;
    --bg-card:    #161622;
    --bg-input:   #0f0f16;
    --border:     #2c2c3e;
    --accent:     #9333ea;
    --accent-dark:#7e22ce;
    --accent-light:#c084fc;
    --text-primary:#ffffff;
    --text-secondary:#9ca3af;
    --text-muted: #6b7280;
    --danger:     #ef4444;
    --success:    #22c55e;
    --warn:       #eab308;
    --sidebar-bg: #0d0d1a;
    --topbar-bg:  #0d0d1a;
    --tag-bg:     rgba(147,51,234,0.12);
    --gradient-body: radial-gradient(circle at 15% 50%, rgba(147,51,234,0.05), transparent 25%),
                     radial-gradient(circle at 85% 30%, rgba(147,51,234,0.05), transparent 25%);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.6);
    --shadow-accent:0 4px 15px rgba(147,51,234,0.30);
    --hover-bg:   rgba(147,51,234,0.10);
    --active-bg:  rgba(147,51,234,0.18);
}

/* ---- TEMA: Rojo Escenario ---- */
[data-theme="rojo"] {
    --bg-body:    #0f0808;
    --bg-card:    #1c0e0e;
    --bg-input:   #140a0a;
    --border:     #3d1515;
    --accent:     #ef4444;
    --accent-dark:#dc2626;
    --accent-light:#fca5a5;
    --text-primary:#fff0f0;
    --text-secondary:#d08888;
    --text-muted: #9a5a5a;
    --danger:     #f97316;
    --success:    #22c55e;
    --warn:       #eab308;
    --sidebar-bg: #110808;
    --topbar-bg:  #110808;
    --tag-bg:     rgba(239,68,68,0.12);
    --gradient-body: radial-gradient(circle at 15% 50%, rgba(239,68,68,0.06), transparent 30%),
                     radial-gradient(circle at 85% 30%, rgba(220,38,38,0.04), transparent 30%);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.6);
    --shadow-accent:0 4px 15px rgba(239,68,68,0.25);
    --hover-bg:   rgba(239,68,68,0.10);
    --active-bg:  rgba(239,68,68,0.18);
}

/* ---- TEMA: Fuego 🔥 ---- */
[data-theme="fuego"] {
    --bg-body:    #0d0800;
    --bg-card:    #1a1000;
    --bg-input:   #120b00;
    --border:     #3d2200;
    --accent:     #f97316;
    --accent-dark:#c2410c;
    --accent-light:#fdba74;
    --text-primary:#fff8f0;
    --text-secondary:#c4915a;
    --text-muted: #8a6040;
    --danger:     #ef4444;
    --success:    #22c55e;
    --warn:       #eab308;
    --sidebar-bg: #100900;
    --topbar-bg:  #100900;
    --tag-bg:     rgba(249,115,22,0.12);
    --gradient-body: radial-gradient(circle at 15% 50%, rgba(249,115,22,0.07), transparent 30%),
                     radial-gradient(circle at 85% 30%, rgba(239,68,68,0.05), transparent 30%);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.6);
    --shadow-accent:0 4px 15px rgba(249,115,22,0.30);
    --hover-bg:   rgba(249,115,22,0.10);
    --active-bg:  rgba(249,115,22,0.18);
}

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    background-image: var(--gradient-body);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    min-height: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-text-size-adjust: 100%;
}

/* =============================================
   LOGIN PAGE STYLES
   ============================================= */
.login-container {
    width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: clamp(16px, 3.5vh, 28px) 16px clamp(32px, 5vh, 48px) 16px;
    box-sizing: border-box;
    flex: 1 0 auto;
}

.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    margin: auto 0;
    padding: 24px 22px;
    box-sizing: border-box;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 2px;
    user-select: none;
}

.login-logo-img {
    max-height: clamp(38px, 5.5vh, 50px);
    width: auto;
    max-width: 78%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.login-logo-img:hover {
    transform: scale(1.03);
}

.login-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(8px, 1.4vh, 11px);
    padding-top: clamp(8px, 1.2vh, 10px);
    border-top: 1px solid var(--border);
}

.btn-inicio-landing {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 33px;
    padding: 0 10px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--border);
    border-radius: 7px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-inicio-landing:hover {
    background: rgba(255,255,255,0.14) !important;
    border-color: var(--accent) !important;
    color: var(--accent-light) !important;
}

.btn-exit-compact {
    height: 33px;
    padding: 0 14px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-exit-compact:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(239,68,68,0.08);
}

.title {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2.5px;
    text-align: center;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-align: center;
    margin: 4px 0 clamp(6px, 1.2vh, 10px) 0;
    text-transform: uppercase;
}

.separator {
    border: none;
    height: 1px;
    background-color: var(--border);
    margin: 0 0 clamp(6px, 1.2vh, 10px) 0;
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--text-primary);
    font-size: 14px;
    height: 42px;
    transition: all 0.2s ease-in-out;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    height: auto;
    padding: 10px 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 37,211,102), 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.error-message {
    font-size: 11px;
    color: var(--danger);
    text-align: center;
    min-height: 20px;
    margin: 8px 0;
    font-weight: 600;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--accent-light) 0%, var(--accent) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

.btn-primary:active {
    background: var(--accent-dark);
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-exit {
    width: 100%;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-exit:hover {
    color: var(--danger);
}

/* =============================================
   TAGS / BADGES
   ============================================= */
.tag {
    background-color: var(--tag-bg);
    color: var(--accent-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    width: 440px;
    max-width: 96vw;
    box-shadow: 0px 8px 60px rgba(0,0,0,0.7);
    max-height: 90vh;
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

.modal-close {
    float: right;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--danger);
}

/* =============================================
   CARDS
   ============================================= */
.anuncio-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.2);
}

.anuncio-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.anuncio-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.anuncio-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.anuncio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.topbar-hamburger {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.topbar-hamburger:hover { background: var(--hover-bg); }

.topbar-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    white-space: nowrap;
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.topbar-btn:hover {
    background: var(--hover-bg);
    color: var(--accent);
}

/* =============================================
   SIDEBAR / DRAWER
   ============================================= */
.sidebar {
    position: fixed;
    top: calc(56px + env(safe-area-inset-top, 0px));
    left: 0;
    width: 260px;
    height: calc(100vh - (56px + env(safe-area-inset-top, 0px)));
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 400;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: calc(56px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 399;
}
.sidebar-overlay.show { display: block; }

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.18s;
}

.sidebar-menu a .menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-menu a:hover {
    background: var(--hover-bg);
    color: var(--accent-light);
}

.sidebar-menu a.active {
    background: var(--active-bg);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 11px;
}

.sidebar-footer {
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.content-area {
    margin-top: calc(56px + env(safe-area-inset-top, 0px));
    padding: 24px 20px;
    padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: margin-left 0.28s ease;
    -webkit-overflow-scrolling: touch;
}

/* On desktop, push content when sidebar is open */
@media (min-width: 769px) {
    .content-area.sidebar-open {
        margin-left: 260px;
        max-width: calc(900px + 260px);
        padding-left: 20px;
    }
}

.module {
    animation: fadeInUp 0.3s ease;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.module-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =============================================
   THEME SWITCHER PANEL
   ============================================= */
.theme-panel {
    display: none;
    position: fixed;
    top: 60px;
    right: 12px;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    z-index: 600;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    animation: fadeInUp 0.2s ease;
}

.theme-panel.open { display: block; }

.theme-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.18s;
    background: var(--bg-input);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-option:hover {
    border-color: var(--accent);
    background: var(--hover-bg);
}

.theme-option.active-theme {
    border-color: var(--accent);
    background: var(--active-bg);
}

.theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
}

/* =============================================
   PROFILE STYLES
   ============================================= */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: background-color 0.3s ease;
}

.profile-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.profile-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-row .form-group {
    flex: 1 1 180px;
}

/* Checkbox grid for genres/roles */
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    background: var(--bg-input);
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s;
}

.check-grid:focus-within {
    border-color: var(--accent);
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 13px;
    text-transform: none;
    margin: 0;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

.check-label:hover {
    background: var(--hover-bg);
}

.check-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    flex-shrink: 0;
    border-radius: 3px;
}

/* Toggle switch */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-sublabel {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(20px); }

/* =============================================
   MIS CONCIERTOS — GOOGLE TASKS STYLE
   ============================================= */
.conciertos-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.concierto-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.concierto-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}

.concierto-item:hover::before { opacity: 1; }
.concierto-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.concierto-item.estado-completado::before { background: var(--success); opacity: 1; }
.concierto-item.estado-cancelado::before { background: var(--danger); opacity: 1; }
.concierto-item.estado-confirmado::before { background: var(--accent); opacity: 1; }

.concierto-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all 0.2s;
    font-size: 12px;
}

.concierto-check:hover {
    border-color: var(--accent);
    background: var(--hover-bg);
}

.concierto-item.estado-completado .concierto-check {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.concierto-body {
    flex: 1;
    min-width: 0;
}

.concierto-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.concierto-item.estado-completado .concierto-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.concierto-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.concierto-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.concierto-pago-info {
    display: flex;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
}

.pago-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.pago-badge.total { background: rgba(37,211,102,0.12); color: var(--success); }
.pago-badge.adelanto { background: rgba(234,179,8,0.12); color: var(--warn); }
.pago-badge.deuda { background: rgba(239,68,68,0.12); color: var(--danger); }

.concierto-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.icon-btn:hover { background: var(--hover-bg); color: var(--accent); }
.icon-btn.danger:hover { background: rgba(239,68,68,0.12); color: var(--danger); }

.fab-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), var(--shadow-accent);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.fab-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.4), var(--shadow-accent);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 52px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 6px;
}

.empty-state small {
    font-size: 13px;
    opacity: 0.7;
}

/* =============================================
   FILTER PANEL
   ============================================= */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    animation: fadeInUp 0.2s ease;
}

.filter-panel.open {
    display: grid;
}

.filter-panel .form-group {
    margin-bottom: 0;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* =============================================
   SETTINGS MODULE
   ============================================= */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
}

.settings-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: var(--bg-input);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.dev-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: var(--shadow-accent);
}

.dev-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-light);
}

.dev-role {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dev-tag {
    display: inline-block;
    margin-top: 6px;
    background: var(--tag-bg);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.app-version {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
    text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    body {
        padding: 0;
        overflow-y: auto;
    }

    .topbar {
        padding-top: env(safe-area-inset-top, 0px);
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
        gap: 8px;
    }

    /* Prevenir auto-zoom molesto de iOS Safari en inputs al hacer focus */
    input, select, textarea {
        font-size: 16px !important;
    }

    .topbar-logo img {
        height: 26px !important;
    }

    .topbar-actions {
        gap: 4px;
    }

    .topbar-btn {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    #topbar-logout-btn {
        padding: 4px 8px !important;
    }

    #topbar-logout-btn span:last-child {
        display: none; /* Ocultar texto 'Salir' en móvil para que no empuje los botones */
    }

    .content-area {
        padding: 14px 10px;
        padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
        margin-left: auto !important;
    }

    .module-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .module-header > div {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .module-header .btn-primary {
        flex: 1 1 auto;
        min-width: 120px;
        margin: 0 !important;
    }

    .modal-content {
        width: 95vw;
        max-height: 88vh;
        overflow-y: auto;
        padding: 18px 14px;
        margin: 10px auto;
        box-sizing: border-box;
    }

    .profile-row {
        flex-direction: column;
        gap: 10px;
    }

    .profile-row .form-group {
        flex: none;
        width: 100%;
    }

    .concierto-item {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 10px;
    }

    .concierto-actions {
        width: 100%;
        justify-content: flex-end;
        border-top: 1px solid var(--border);
        padding-top: 8px;
        margin-left: 0;
    }

    .filter-panel {
        padding: 14px 10px;
    }

    .theme-panel {
        right: 8px;
        width: calc(100vw - 16px);
    }

    .module-title {
        font-size: 18px;
    }

    .fab-btn {
        bottom: 20px;
        right: 16px;
    }

    .login-container {
        padding: max(14px, env(safe-area-inset-top, 14px)) max(12px, env(safe-area-inset-right, 12px)) max(14px, env(safe-area-inset-bottom, 14px)) max(12px, env(safe-area-inset-left, 12px));
    }

    .login-card {
        padding: 22px 18px;
        margin: auto;
        border-radius: 14px;
        max-width: 100%;
    }

    .login-logo-img {
        max-height: 54px;
    }

    .subtitle {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .separator {
        margin-bottom: 14px;
    }
}

@media (max-width: 480px) {
    .module-title {
        font-size: 16px;
    }

    .login-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .login-logo-img {
        max-height: 46px;
    }

    .form-group {
        margin-bottom: 11px;
    }

    .btn-primary {
        height: 42px;
        font-size: 12px;
    }

    .concierto-meta {
        flex-direction: column;
        gap: 6px;
    }

    .concierto-pago-info {
        flex-direction: column;
        gap: 6px;
    }

    .modal-content {
        width: 98vw;
        padding: 14px 10px;
    }
}

/* =============================================
   MONETIZACIÓN: CRÉDITOS, PREMIUM Y SPONSORS
   ============================================= */

/* Status summary grid */
.monetizacion-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.monetizacion-status-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.monetizacion-status-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.status-card-icon {
    font-size: 32px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.status-card-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.status-card-hint {
    font-size: 11px;
    color: var(--text-secondary);
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
    color: #f59e0b;
    border: 1.5px solid #f59e0b;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.badge-gratuito {
    display: inline-flex;
    align-items: center;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Monetization cards grid */
.monetizacion-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}

.monetizacion-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.monetizacion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.monetizacion-card.premium-featured {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 40%);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.12);
}

.monetizacion-card.premium-featured:hover {
    border-color: #f59e0b;
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.25);
}

.monetizacion-card-header {
    margin-bottom: 16px;
}

.monetizacion-badge-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(37, 211, 102, 0.14);
    color: var(--accent-light);
    border: 1px solid rgba(37, 211, 102, 0.3);
    margin-bottom: 10px;
}

.monetizacion-badge-tag.premium-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.monetizacion-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.monetizacion-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Tarifa box */
.tarifa-box {
    background: var(--bg-input);
    border: 1.5px dashed var(--accent);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    text-align: center;
}

.tarifa-box.premium-box {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.06);
}

.tarifa-headline {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: 0.3px;
}

.tarifa-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Feature list */
.monetizacion-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.monetizacion-feature-list li {
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.monetizacion-feature-list li span {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

/* WhatsApp action buttons */
.monetizacion-card-action {
    margin-top: auto;
}

.btn-whatsapp-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: #25d366;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
}

.btn-whatsapp-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
    filter: brightness(1.06);
}

.btn-whatsapp-action:active {
    transform: translateY(0);
}

.btn-whatsapp-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.btn-whatsapp-premium:hover {
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
}

/* Ofertas & Sponsors Module */
.ofertas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.ofertas-header-action {
    flex-shrink: 0;
}

.btn-sponsor-header {
    width: auto;
    padding: 10px 18px;
    font-size: 13px;
    margin: 0;
}

.sponsor-promo-banner {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(18, 140, 126, 0.18));
    border: 1.5px solid rgba(37, 211, 102, 0.35);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.sponsor-promo-content {
    max-width: 650px;
}

.sponsor-promo-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.sponsor-promo-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.sponsor-promo-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 14px 0;
}

.sponsor-benefits-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sponsor-benefits-pills span {
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 14px;
}

.sponsor-promo-cta {
    flex-shrink: 0;
}

.ofertas-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.sponsor-card {
    background: var(--bg-card);
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.sponsor-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.sponsor-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-light);
}

.sponsor-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.sponsor-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.sponsor-card-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.sponsor-status-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .btn-sponsor-header {
        width: 100%;
    }
    .ofertas-header-action {
        width: 100%;
    }
    .monetizacion-cards-grid {
        grid-template-columns: 1fr;
    }
    .monetizacion-card {
        padding: 18px;
    }
}

/* =============================================
   DIRECTORIO / BUSCADOR DE MÚSICOS Y ARTISTAS
   ============================================= */
.directorio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.musico-list-item {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.musico-list-item:hover {
    border-color: var(--accent);
    background: var(--bg-input);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.musico-list-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.musico-list-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
    background: var(--bg-input);
}

.musico-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.musico-list-names {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.musico-list-primary-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musico-list-real-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musico-list-badge-propio {
    background: rgba(37, 211, 102, 0.18);
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.musico-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
}

.musico-list-role {
    background: rgba(37, 211, 102, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(37, 211, 102, 0.25);
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.musico-list-tag {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 11px;
}

.musico-list-tag.tag-equipo {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
    font-weight: 600;
}

.musico-list-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musico-list-bio {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.musico-list-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-list-profile {
    height: 32px;
    padding: 0 12px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-list-profile:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.btn-list-wa {
    height: 32px;
    padding: 0 12px;
    background: #25d366;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-list-wa:hover {
    background: #20ba5a;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .musico-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    .musico-list-left {
        align-items: flex-start;
    }
    .musico-list-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        border-top: 1px solid var(--border);
        padding-top: 8px;
    }
    .musico-list-actions .btn-list-profile,
    .musico-list-actions .btn-list-wa {
        flex: 1;
        justify-content: center;
    }
}

.directorio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 680px) {
    .directorio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .directorio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.musico-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.musico-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.musico-card-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.musico-card-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
    background: var(--bg-input);
}

.musico-card-info {
    flex: 1;
    min-width: 0;
}

.musico-card-apodo {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musico-card-nombre-real {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musico-card-email-id {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.musico-card-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(37, 211, 102, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(37, 211, 102, 0.25);
    margin-top: 5px;
}

.musico-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.musico-card-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.musico-card-bio {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 14px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 32px;
}

.musico-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

