@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }

/* ============================================================
   TOKENS — sistema KV "Awaken New Horizons" (tema claro)
   ============================================================ */
:root {
    --coral:          #F25C4B;
    --coral-dark:     #D94535;
    --lime:           #A8E032;
    --lime-dark:      #8AC428;
    --yellow:         #FFC72C;
    --purple:         #8B5CF6;

    --bg:             #EDECE7;
    --bg-gradient:    linear-gradient(145deg, #EDECE7 0%, #E4E2D8 100%);
    --surface:        #FFFFFF;
    --surface-hover:  #F7F6F2;
    --border:         #D5D3CB;
    --border-focus:   #1A1918;
    --text:           #1A1918;
    --muted:          #7A7870;
    --muted-light:    #B0AEA6;

    --font:           'Space Grotesk', system-ui, sans-serif;
    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      18px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(26,25,24,.08), 0 1px 2px rgba(26,25,24,.04);
    --shadow-md:   0 4px 12px rgba(26,25,24,.08), 0 2px 4px rgba(26,25,24,.04);
    --shadow-lg:   0 8px 24px rgba(26,25,24,.10), 0 4px 8px rgba(26,25,24,.05);
}

body {
    background: var(--bg);
    background-image: var(--bg-gradient);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    line-height: 1.5;
}

.hidden { display: none !important; }

/* ============================================================
   HEADER
   ============================================================ */
.admin-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .75rem 1.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -.02em;
    color: var(--text);
    white-space: nowrap;
}

.admin-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.admin-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: color .15s;
}
.admin-header nav a:hover { color: var(--text); }
.admin-header nav a.nav-active { color: var(--text); }

.user-name {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 500;
}

.btn-logout {
    color: var(--coral) !important;
    font-weight: 700 !important;
}

/* Superadmin badge */
.badge-superadmin {
    background: #EDE9FF;
    color: var(--purple);
    border-radius: 999px;
    padding: .2rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(139,92,246,.2);
    transition: background .15s;
}
.badge-superadmin:hover { background: #DDD5FF; color: var(--purple) !important; }

/* ============================================================
   PAGE CONTAINERS
   ============================================================ */
.page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.page-inner > h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}

/* ============================================================
   LOGIN
   ============================================================ */
.page-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    background-image: var(--bg-gradient);
}

.login-wrap {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.5rem;
}

.login-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
    display: block;
    text-align: center;
    margin-bottom: .35rem;
}
.login-logo span { color: var(--coral); }

.login-tagline {
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 2.25rem;
    font-weight: 500;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--shadow-md);
}

.login-card h2 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.5rem;
}

.login-form { display: flex; flex-direction: column; gap: 1rem; }

.login-register-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
}
.login-register-link a {
    color: var(--coral);
    font-weight: 700;
    text-decoration: none;
}
.login-register-link a:hover { text-decoration: underline; }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: .9rem; }

.field label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: .4rem;
}

.fields-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.fields-row .field { flex: 1; min-width: 160px; }

.field-checkbox label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
}

.field-hint {
    display: block;
    font-size: .73rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: .25rem;
}

.field-optional {
    font-size: .7rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted-light);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .05rem .45rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: .65rem .9rem;
    font-size: .92rem;
    font-family: var(--font);
    font-weight: 500;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(26,25,24,.07);
}
textarea { resize: vertical; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    font-family: var(--font);
    text-decoration: none;
    letter-spacing: -.01em;
    transition: background .15s, transform .1s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 4px 12px rgba(242,92,75,.25);
}
.btn-primary:hover { background: var(--coral-dark); box-shadow: 0 4px 16px rgba(242,92,75,.35); }

.btn-secondary {
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover { border-color: var(--text); background: var(--surface-hover); }

.btn-sm { font-size: .78rem; padding: .35rem .8rem; }

.btn-approve {
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    color: #15803D;
    font-size: .78rem;
    padding: .35rem .75rem;
}
.btn-approve:hover { background: #DCFCE7; }

.btn-hide {
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    color: #92400E;
    font-size: .78rem;
    padding: .35rem .75rem;
}
.btn-hide:hover { background: #FEF3C7; }

.btn-delete {
    background: #FFF1F0;
    border: 1.5px solid #FECACA;
    color: #B91C1C;
    font-size: .78rem;
    padding: .35rem .75rem;
}
.btn-delete:hover { background: #FEE2E2; }

.btn-edit {
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: .78rem;
    padding: .35rem .75rem;
}
.btn-edit:hover { border-color: var(--text); }

/* Regenerar código */
.btn-regen {
    background: var(--coral);
    color: #fff;
    border: none;
    width: 100%;
    box-shadow: 0 2px 8px rgba(242,92,75,.2);
}
.btn-regen:hover { background: var(--coral-dark); }

/* WhatsApp */
.btn-share-wapp {
    display: block;
    width: 100%;
    margin-top: .5rem;
    background: #25D366;
    color: #fff;
    border: none;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: .6rem;
    font-size: .85rem;
    font-weight: 700;
    font-family: var(--font);
    transition: background .15s;
}
.btn-share-wapp:hover { background: #1ebe5d; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.alert-success {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #86EFAC;
}
.alert-error {
    background: #FFF1F0;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.badge-panelist     { background: #EDE9FF; color: #6D3EE8; }
.badge-active       { background: #F0FDF4; color: #15803D; border: 1px solid #86EFAC; }
.badge-inactive     { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.badge-role-admin   { background: #EFF6FF; color: #1D4ED8; }
.badge-auto-approve { background: #F0FDF4; color: #15803D; }
.badge-demo         { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; font-weight: 700; }
.badge-manual       { background: #FFFBEB; color: #92400E; }

/* Plan pills en el header */
.plan-info { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.plan-info strong { color: var(--text); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.form-section.card { margin-bottom: 1.5rem; }
.form-section h2 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed; inset: 0;
    background: rgba(26,25,24,.45);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 500;
    padding: 1rem;
}
.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}
.modal-box h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
}
.modal-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.data-table th {
    text-align: left;
    padding: .6rem .9rem;
    background: var(--bg);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: .7rem .9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}
.data-table tr:hover td { background: var(--surface-hover); }
.data-table tr:last-child td { border-bottom: none; }
.actions-cell { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.events-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}
.row-self td { background: rgba(242,92,75,.04); }
code {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .1rem .4rem;
    font-size: .8rem;
}

/* ============================================================
   LAYOUT DASHBOARD (evento.php)
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 49px);
    align-items: start;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-height: calc(100vh - 49px);
    position: sticky;
    top: 49px;
}

.sidebar h3 {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted-light);
}
.sidebar select { width: 100%; }
.sidebar-links { display: flex; flex-direction: column; gap: .5rem; }

/* Breadcrumb */
.breadcrumb-back {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}
.breadcrumb-back:hover { color: var(--text); }

.sidebar-event-name {
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.3;
}
.sidebar-event-status {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: -.5rem;
}

.main-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================================
   CÓDIGO DE MODERADOR (sidebar)
   ============================================================ */
.mod-code-box {
    padding: 1.1rem;
    background: #FFF6F5;
    border: 1.5px solid rgba(242,92,75,.2);
    border-radius: var(--radius);
}
.mod-code-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .4rem;
}
.mod-code-value {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--coral);
    margin-bottom: .5rem;
    font-family: var(--font);
}
.mod-code-empty {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .5rem;
}
.mod-code-url {
    font-size: .65rem;
    color: var(--muted);
    word-break: break-all;
    margin-bottom: .6rem;
    line-height: 1.4;
}

/* Header moderador */
.mod-header-event { font-weight: 700; font-size: .95rem; flex: 1; }
.mod-header-name  { font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* ============================================================
   WELCOME BAR (dashboard home)
   ============================================================ */
.welcome-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}
.welcome-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
    margin-bottom: .3rem;
    line-height: 1.1;
}
.welcome-sub {
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
}
.welcome-alert {
    color: var(--coral);
    font-weight: 700;
}
.welcome-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    padding-top: .25rem;
}

/* Plan pill */
.plan-pill {
    display: inline-block;
    padding: .25rem .8rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.plan-pill--free       { background: var(--bg); border: 1.5px solid var(--border); color: var(--muted); }
.plan-pill--pro        { background: #FFF1EF; border: 1.5px solid rgba(242,92,75,.3); color: var(--coral); }
.plan-pill--enterprise { background: #EDE9FF; border: 1.5px solid rgba(139,92,246,.3); color: var(--purple); }

/* ============================================================
   EMPTY DASHBOARD
   ============================================================ */
.empty-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 5rem 2rem;
    text-align: center;
}
.empty-dashboard-icon { font-size: 2.5rem; opacity: .2; margin-bottom: .5rem; }
.empty-dashboard-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.empty-dashboard-sub { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   EVENTS GRID (dashboard home)
   ============================================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.event-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, transform .12s, box-shadow .15s;
}
.event-card:hover {
    border-color: var(--coral);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.event-card--inactive { opacity: .5; }
.event-card--inactive:hover { opacity: .75; }

.event-card-header {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.event-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot--active   { background: #22C55E; box-shadow: 0 0 6px rgba(34,197,94,.5); }
.dot--inactive { background: var(--muted-light); }

.event-status-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.event-card-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    line-height: 1.3;
}
.event-card-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: -.5rem;
}

.event-card-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.event-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}
.event-metric-val {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
}
.event-metric-val--date {
    font-size: .7rem;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--muted);
}
.event-metric-label {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted-light);
    font-weight: 700;
}
.event-metric--alert .event-metric-val { color: var(--coral); }

.event-card-actions {
    display: flex;
    gap: .6rem;
    margin-top: auto;
}
.event-card-actions .btn { flex: 1; }

/* ============================================================
   KPI ROW (evento.php)
   ============================================================ */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.kpi-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-top: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    box-shadow: var(--shadow-sm);
}
.kpi-card:not(.kpi-card--alert):not(.kpi-card--date) { border-top-color: var(--coral); }
.kpi-card--alert  { border-top-color: var(--yellow); }
.kpi-card--date   { border-top-color: var(--border); }

.kpi-val {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.05em;
    color: var(--text);
    line-height: 1;
}
.kpi-val--sm {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--muted);
}
.kpi-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
}

/* ============================================================
   FILTER BAR — chips de panelista
   ============================================================ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.filter-label {
    font-size: .75rem;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chip {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--muted);
    transition: border-color .15s, color .15s, background .15s;
}
.filter-chip:hover { border-color: var(--text); color: var(--text); }
.filter-chip--active {
    background: #FFF1EF;
    border-color: var(--coral);
    color: var(--coral);
}

/* ============================================================
   QUESTIONS
   ============================================================ */
.questions-section h2 {
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--coral);
    color: #fff;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    font-size: .72rem;
    font-weight: 700;
    padding: 0 6px;
}
.count-badge--live { background: #22C55E; }

.question-cards {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.question-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    box-shadow: var(--shadow-sm);
}

/* Acento izquierdo por estado */
.card-pending   { border-left: 3px solid var(--yellow); }
.card-approved  { border-left: 3px solid var(--coral); }
.card-answering {
    border-left: 3px solid #22C55E;
    background: #F0FDF4;
    border-color: #86EFAC;
    border-left-color: #22C55E;
}
.card-answered  { border-left: 3px solid var(--border); opacity: .75; }
.card-hidden    { border-left: 3px solid #FECACA; opacity: .65; }

.q-text   { font-size: .95rem; font-weight: 500; color: var(--text); line-height: 1.45; }
.q-meta   { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .8rem; }
.q-author { color: var(--muted); font-weight: 500; }
.q-time   { color: var(--muted-light); margin-left: auto; font-size: .75rem; }
.q-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.votes-count { font-size: .8rem; color: var(--coral); font-weight: 700; }

/* ============================================================
   COLLAPSIBLE SECTION
   ============================================================ */
.collapsible-section {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.collapsible-section summary {
    padding: .85rem 1.1rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    user-select: none;
    list-style: none;
    color: var(--text);
    transition: background .12s;
}
.collapsible-section summary::-webkit-details-marker { display: none; }
.collapsible-section summary::before {
    content: '▶';
    font-size: .6rem;
    color: var(--muted-light);
    transition: transform .15s;
}
details[open] .collapsible-section summary::before,
details.collapsible-section[open] > summary::before { transform: rotate(90deg); }
.collapsible-section summary:hover { background: var(--surface-hover); }
.collapsible-section .question-cards { padding: .9rem 1rem 1rem; border-top: 1px solid var(--border); }

/* ============================================================
   PANELISTAS SECTION
   ============================================================ */
.panelists-details {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.panelists-summary {
    padding: .85rem 1.1rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    user-select: none;
    list-style: none;
    color: var(--text);
    transition: background .12s;
}
.panelists-summary::-webkit-details-marker { display: none; }
.panelists-summary::before {
    content: '▶';
    font-size: .6rem;
    color: var(--muted-light);
    transition: transform .15s;
    margin-right: .1rem;
}
details[open] .panelists-summary::before { transform: rotate(90deg); }
.panelists-summary:hover { background: var(--surface-hover); }

.panelists-body {
    padding: 1rem 1.1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.panelist-add-form { margin-bottom: 1rem; }
.panelist-add-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.panelist-input { flex: 1; min-width: 140px; }
.panelist-input--sm { flex: 0; width: 70px !important; min-width: 70px; }

.panelist-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.panelist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .9rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    gap: .75rem;
}
.panelist-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.panelist-name {
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.panelist-role { font-size: .75rem; color: var(--muted); }
.panelist-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* ============================================================
   SHOW MORE
   ============================================================ */
.more-questions.hidden { display: none; }
.show-more-btn {
    display: inline-block;
    margin-top: .5rem;
    padding: .4rem 1rem;
    background: transparent;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: border-color .15s, color .15s;
}
.show-more-btn:hover { border-color: var(--coral); color: var(--coral); }

/* ============================================================
   SUPERADMIN
   ============================================================ */
.sa-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.sa-metric {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-top: 3px solid var(--coral);
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
    min-width: 140px;
    box-shadow: var(--shadow-sm);
}
.sa-metric-val {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--coral);
    display: block;
    line-height: 1;
    margin-bottom: .2rem;
}
.sa-metric-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

/* Badges superadmin */
.badge-superadmin-role {
    background: #EDE9FF;
    color: var(--purple);
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .72rem;
    font-weight: 700;
}
.badge-suspended {
    background: #FFF1F0;
    color: #B91C1C;
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid #FECACA;
}
.badge-active-owner {
    background: #F0FDF4;
    color: #15803D;
    border-radius: 999px;
    padding: .15rem .55rem;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid #86EFAC;
}

/* ============================================================
   MISC
   ============================================================ */
.empty-state, .empty-msg {
    color: var(--muted);
    font-size: .88rem;
    padding: .5rem 0;
    font-weight: 500;
}
.mt-2 { margin-top: 1rem; }

/* ============================================================
   WIZARD MODAL
   ============================================================ */

/* Overlay */
.wz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,25,24,.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 600;
    padding: 1rem;
    animation: wz-fade-in .18s ease;
}
@keyframes wz-fade-in { from { opacity: 0; } to { opacity: 1; } }

.wz-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: wz-enter .22s cubic-bezier(.22,.61,.36,1);
    position: relative;
}
@keyframes wz-enter {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Close button */
.wz-close {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted-light);
    font-family: var(--font);
    padding: .1rem .3rem;
    transition: color .12s;
}
.wz-close:hover { color: var(--text); }

/* Header */
.wz-header {
    padding: 1.75rem 1.75rem .5rem;
}
.wz-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    padding-right: 2rem;
}

/* Progress bar */
.wz-progress {
    padding: 1.25rem 1.75rem .5rem;
}
.wz-progress-track {
    height: 3px;
    background: var(--border);
    border-radius: 999px;
    margin-bottom: 1rem;
    position: relative;
    overflow: visible;
}
.wz-progress-fill {
    height: 100%;
    background: var(--coral);
    border-radius: 999px;
    transition: width .35s cubic-bezier(.22,.61,.36,1);
    width: 0%;
}

.wz-steps {
    display: flex;
    justify-content: space-between;
}
.wz-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    flex: 1;
}
.wz-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted-light);
    transition: border-color .2s, background .2s, color .2s;
}
.wz-step-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted-light);
    transition: color .2s;
}

.wz-step--active .wz-step-dot {
    border-color: var(--coral);
    background: var(--coral);
    color: #fff;
}
.wz-step--active .wz-step-label { color: var(--text); }

.wz-step--done .wz-step-dot {
    border-color: var(--coral);
    background: #FFF1EF;
    color: var(--coral);
}
.wz-step--done .wz-step-dot span::after { content: '✓'; }
.wz-step--done .wz-step-dot span { font-size: 0; }
.wz-step--done .wz-step-label { color: var(--muted); }

/* Body */
.wz-body {
    padding: 1.5rem 1.75rem .5rem;
    flex: 1;
}

/* Panels */
.wz-panel { animation: wz-fade-in .15s ease; }

/* Step 2 intro */
.wz-section-intro {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Panelist add row in wizard */
.wz-panelist-add { margin-bottom: 1rem; }
.wz-p-error {
    font-size: .8rem;
    color: #B91C1C;
    margin-top: .3rem;
    font-weight: 500;
}

/* Slug wrap */
.wz-slug-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    transition: border-color .15s;
}
.wz-slug-wrap:focus-within { border-color: var(--text); }
.wz-slug-prefix {
    padding: .65rem .75rem;
    background: var(--bg);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
    white-space: nowrap;
    border-right: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wz-slug-wrap input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
}
.wz-slug-wrap input:focus { box-shadow: none !important; }

/* Toggle switch */
.wz-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.wz-toggle input { opacity: 0; width: 0; height: 0; }
.wz-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}
.wz-toggle-track::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.wz-toggle input:checked + .wz-toggle-track { background: var(--coral); }
.wz-toggle input:checked + .wz-toggle-track::before { transform: translateX(16px); }

/* Step 3: moderator explainer */
.wz-mod-explainer {
    background: #FFF6F5;
    border: 1.5px solid rgba(242,92,75,.2);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    font-size: .88rem;
    color: var(--text);
    line-height: 1.55;
}
.wz-mod-explainer-icon { font-size: 1.6rem; }
.wz-mod-explainer p { margin: 0; }
.wz-mod-explainer strong { color: var(--coral); }

.wz-mod-code-area {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.wz-mod-code-empty p { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; }

.wz-mod-code-reveal { text-align: center; }
.wz-mod-code-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .4rem;
}
.wz-mod-code-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .15em;
    color: var(--coral);
    margin: .4rem 0 .6rem;
    font-family: var(--font);
}
.wz-mod-code-hint {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 360px;
    margin: 0 auto;
}

/* Step 4: success */
.wz-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F0FDF4;
    border: 2px solid #86EFAC;
    color: #15803D;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.wz-sum-block {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin-bottom: .9rem;
}
.wz-sum-block:last-child { margin-bottom: 0; }

.wz-sum-block--mod {
    background: #FFF6F5;
    border-color: rgba(242,92,75,.2);
}

.wz-sum-label {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .35rem;
}
.wz-sum-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
}
.wz-sum-desc {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .2rem;
}
.wz-sum-meta {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.wz-sum-empty { font-size: .85rem; color: var(--muted); }

.wz-sum-panelists {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .88rem;
}
.wz-sum-panelists li { display: flex; align-items: center; gap: .4rem; }
.wz-sum-role { color: var(--muted); }

.wz-sum-code {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--coral);
    margin: .35rem 0;
}
.wz-sum-hint { font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }

.wz-sum-urls {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.wz-sum-url-row {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.wz-sum-url-row span {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
}
.wz-sum-url-row a,
.wz-sum-url {
    font-size: .82rem;
    color: var(--coral);
    text-decoration: none;
    word-break: break-all;
    font-weight: 600;
}
.wz-sum-url-row a:hover,
.wz-sum-url:hover { text-decoration: underline; }

/* Tres tarjetas de acceso — paso 4 */
.wz-access-cards {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .75rem;
}

.wz-access-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
}

.wz-ac-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .1rem;
}

.wz-ac-body {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.wz-ac-title {
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.wz-ac-desc {
    font-size: .82rem;
    line-height: 1.5;
}

.wz-ac-code {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .15em;
    margin: .15rem 0 .1rem;
}

.wz-ac-url {
    font-size: .78rem;
    font-weight: 600;
    word-break: break-all;
    text-decoration: none;
}
.wz-ac-url:hover { text-decoration: underline; }

/* Moderador — coral */
.wz-access-card--mod {
    background: #FFF6F5;
    border-color: rgba(242,92,75,.2);
}
.wz-access-card--mod .wz-ac-title { color: var(--coral-dark); }
.wz-access-card--mod .wz-ac-desc  { color: #7A3830; }
.wz-access-card--mod .wz-ac-code  { color: var(--coral); }
.wz-access-card--mod .wz-ac-url   { color: var(--coral); }

/* Participantes — lime/green */
.wz-access-card--participantes {
    background: #F4FDE8;
    border-color: rgba(168,224,50,.35);
}
.wz-access-card--participantes .wz-ac-title { color: #4A7A00; }
.wz-access-card--participantes .wz-ac-desc  { color: #4A6020; }
.wz-access-card--participantes .wz-ac-url   { color: #4A7A00; }

/* Pizarra — purple */
.wz-access-card--pizarra {
    background: #F5F3FF;
    border-color: rgba(139,92,246,.2);
}
.wz-access-card--pizarra .wz-ac-title { color: #5B21B6; }
.wz-access-card--pizarra .wz-ac-desc  { color: #4C3080; }
.wz-access-card--pizarra .wz-ac-url   { color: var(--purple); }

/* Footer */
.wz-footer {
    padding: 1rem 1.75rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.wz-footer-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    align-items: center;
}
.wz-error {
    font-size: .85rem;
    color: #B91C1C;
    font-weight: 500;
    background: #FFF1F0;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
}

/* ============================================================
   DRAFT CARDS (dashboard)
   ============================================================ */
.drafts-section { margin-bottom: 2rem; }

.drafts-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.drafts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .9rem;
}

.draft-card {
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    box-shadow: none;
    transition: border-color .15s;
}
.draft-card:hover { border-color: var(--coral); }

.draft-card-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.01em;
}
.draft-card-step {
    font-size: .72rem;
    color: var(--muted);
    font-weight: 500;
}
.draft-card-actions {
    display: flex;
    gap: .5rem;
}

/* ============================================================
   IMPERSONATION BANNER
   ============================================================ */
.impersonation-banner {
    background: #EDE9FF;
    border-bottom: 1.5px solid rgba(139,92,246,.25);
    padding: .6rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--purple);
    flex-wrap: wrap;
}
.impersonation-banner strong { font-weight: 800; }
.impersonation-banner .btn {
    background: var(--purple);
    color: #fff;
    border: none;
    font-size: .78rem;
    white-space: nowrap;
}
.impersonation-banner .btn:hover { background: #7C3AED; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .event-card-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        position: static;
        min-height: auto;
    }
    .fields-row { flex-direction: column; }
    .welcome-title { font-size: 1.4rem; }
}
@media (max-width: 600px) {
    .events-grid { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .event-card-actions { flex-direction: column; }
}

/* ============================================================
   EVENTO TOPBAR
   ============================================================ */
.evento-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.evento-topbar-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.breadcrumb-back {
    font-size: .82rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.breadcrumb-back:hover { color: var(--text); }
.evento-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0;
    line-height: 1.2;
}
.evento-status-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

/* ============================================================
   RESOURCE CARDS — 2×2 grid
   ============================================================ */
.resource-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.rc {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
}
.rc:hover { box-shadow: var(--shadow-md); }

/* Color accents */
.rc--participantes { border-top: 3px solid var(--lime); }
.rc--pizarra       { border-top: 3px solid var(--purple); }
.rc--panelistas    { border-top: 3px solid var(--yellow); align-self: start; }
.rc--moderador     { border-top: 3px solid var(--coral); }

.rc-header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.rc-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .05rem;
}
.rc-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .2rem;
}
.rc-desc {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.45;
}

/* URL box */
.rc-url-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    overflow: hidden;
}
.rc-url-text {
    font-size: .78rem;
    font-family: monospace;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Code display */
.rc-code-display {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .6rem .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.rc-code-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin: 0;
}
.rc-code-value {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--coral);
    font-family: monospace;
    margin: 0;
}

/* Panelists mini list */
.rc-panelist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin: 0;
    padding: 0;
}
.rc-panelist-list li {
    font-size: .82rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.rc-p-name { font-weight: 700; }
.rc-p-role { color: var(--muted); }
.rc-p-more {
    font-size: .78rem;
    color: var(--muted);
    font-style: italic;
}
.rc-empty {
    font-size: .82rem;
    color: var(--muted);
    font-style: italic;
    margin: 0;
}

/* Action row */
.rc-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

/* QR area */
.rc-qr {
    display: flex;
    justify-content: center;
    padding-top: .25rem;
}
.rc-qr img, .rc-qr canvas {
    border-radius: 6px;
    display: block;
}

/* Bypass hint */
.rc-bypass-hint {
    font-size: .75rem;
    color: var(--muted);
    text-align: center;
    margin: -.25rem 0 0;
}

/* Open button variants */
.rc-btn-open { font-weight: 700; }
.rc-btn-open--participantes { background: var(--lime); color: #1A1918; border-color: var(--lime-dark); }
.rc-btn-open--participantes:hover { background: var(--lime-dark); }
.rc-btn-open--pizarra { background: var(--purple); color: #fff; border-color: var(--purple); }
.rc-btn-open--pizarra:hover { background: #7C3AED; }

/* ============================================================
   PANELISTS SECTION (full management)
   ============================================================ */
.panelists-section {
    margin-bottom: 2rem;
}
.panelists-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.panelists-section-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}
.panelist-add-form {
    margin-bottom: 1rem;
}
.panelist-add-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
/* Dentro de un rc card: inputs en fila, botón debajo */
.rc .panelist-add-form { margin-bottom: .75rem; }
.rc .panelist-add-row { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
.rc .panelist-add-row .panelist-input { flex: 1; min-width: 120px; }
.rc .panelist-add-row .btn { flex-shrink: 0; }
.panelist-input {
    flex: 1;
    min-width: 140px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    font-size: .88rem;
    font-family: var(--font);
    color: var(--text);
    transition: border-color .15s;
}
.panelist-input:focus { outline: none; border-color: var(--border-focus); }
.panelist-input--sm { flex: 0 0 80px; min-width: 60px; }

.panelist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 0;
    margin: 0;
}
.panelist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
}
.panelist-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    min-width: 0;
}
.panelist-name {
    font-weight: 700;
    font-size: .9rem;
}
.panelist-role {
    font-size: .82rem;
    color: var(--muted);
}
.panelist-actions {
    display: flex;
    gap: .4rem;
    flex-shrink: 0;
}

/* ============================================================
   DEMO EVENT BANNER (evento.php)
   ============================================================ */
.demo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.demo-banner-left {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    flex: 1;
    min-width: 0;
}
.demo-banner-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: .05rem; }
.demo-banner-title {
    font-size: .92rem;
    font-weight: 800;
    color: #92400E;
    margin-bottom: .2rem;
}
.demo-banner-desc {
    font-size: .82rem;
    color: #B45309;
    line-height: 1.45;
    margin: 0;
}

/* Event card demo highlight */
.event-card--demo {
    border-color: #FDE68A;
    background: linear-gradient(to bottom, #FFFDF5, var(--surface));
}

/* ============================================================
   ADMIN BYPASS BANNER (moderador/index.php)
   ============================================================ */
.mod-admin-banner {
    background: rgba(242,92,75,.08);
    border-bottom: 1.5px solid rgba(242,92,75,.2);
    padding: .6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .83rem;
    font-weight: 500;
    color: var(--coral);
    flex-wrap: wrap;
}
.mod-admin-banner strong { font-weight: 800; }
.mod-admin-banner .btn {
    background: var(--coral);
    color: #fff;
    border: none;
    font-size: .78rem;
    white-space: nowrap;
    padding: .35rem .75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}
.mod-admin-banner .btn:hover { background: var(--coral-dark); }

/* ============================================================
   MODERATION CARD
   ============================================================ */
.mod-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    transition: border-color .2s, background .2s;
}
.mod-card--on {
    border-color: rgba(34,197,94,.35);
    background: #F0FDF4;
}
.mod-card--off {
    border-color: var(--border);
    background: var(--surface);
}
.mod-card-left {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    flex: 1;
    min-width: 0;
}
.mod-card-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: .1rem;
}
.mod-card-title {
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text);
    margin-bottom: .25rem;
}
.mod-card-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}
.mod-card-desc strong { color: var(--text); font-weight: 700; }
.mod-card-btn { white-space: nowrap; flex-shrink: 0; }
.mod-card-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Estado automático: columna Pendientes atenuada */
.kanban-board.kanban-mod-auto .kanban-col:first-child {
    opacity: .4;
    pointer-events: none;
}
.kanban-board.kanban-mod-auto .kanban-col:first-child .kanban-col-header::after {
    content: 'desactivada';
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted-light);
    margin-left: .4rem;
}

/* ============================================================
   FILTER BAR WRAP
   ============================================================ */
.filter-bar-wrap {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: .7rem 1.1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   ANSWERING BANNER
   ============================================================ */
.answering-banner {
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.answering-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,.2);
    flex-shrink: 0;
    margin-top: .4rem;
    animation: answering-pulse 1.6s ease-in-out infinite;
}
@keyframes answering-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
    50%       { box-shadow: 0 0 0 7px rgba(34,197,94,.08); }
}
.answering-content { display: flex; flex-direction: column; gap: .3rem; }
.answering-label {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #16A34A;
}
.answering-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
}
.answering-author { font-size: .82rem; color: var(--muted); }

/* ============================================================
   KANBAN BOARD
   ============================================================ */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.kanban-col {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-bottom: 1.5px solid var(--border);
    background: var(--surface);
}
.kanban-col-header--pending  { border-top: 3px solid var(--yellow); }
.kanban-col-header--approved { border-top: 3px solid var(--coral); }
.kanban-col-header--answered { border-top: 3px solid #22C55E; }
.kanban-col-title {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text);
}
.kanban-col-body {
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-height: 80px;
}
/* Cards dentro del kanban: padding más compacto */
.kanban-col-body .question-card {
    padding: .8rem .95rem;
    box-shadow: none;
    border-radius: var(--radius-sm);
}
.kanban-empty {
    font-size: .82rem;
    color: var(--muted-light);
    text-align: center;
    padding: 1.75rem 0;
    font-style: italic;
}

/* Count badge por columna */
.count-badge--pending  { background: var(--yellow); color: #1A1918; }
.count-badge--approved { background: var(--coral); }
.count-badge--answered { background: #22C55E; }
.count-badge--muted    { background: var(--muted-light); }

/* ============================================================
   RESPONSIVE — resource cards
   ============================================================ */
@media (max-width: 1000px) {
    .kanban-board { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .resource-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .rc-actions { flex-direction: column; align-items: stretch; }
    .rc-actions .btn { text-align: center; }
    .panelist-add-row { flex-direction: column; }
    .panelist-input, .panelist-input--sm { flex: 1; min-width: 0; width: 100%; }
    .evento-topbar { flex-direction: column; align-items: flex-start; }
}
