:root {
    --cortex-navy: #111827;
    --cortex-blue: #1f2937;
    --cortex-sky: #f3f4f6;
    --cortex-ink: #273142;
    --cortex-muted: #6b7280;
    --cortex-border: #e2e5e9;
    --cortex-surface: #ffffff;
    --cortex-bg: #f7f7f8;
}

html { min-height: 100%; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--cortex-ink);
    background: var(--cortex-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-navbar {
    min-height: 72px;
    background: #000 !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.navbar-brand { font-size: 1.2rem; letter-spacing: .01em; }
.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
}
.app-navbar .nav-link { color: rgba(255,255,255,.83); border-radius: 8px; padding: .5rem .75rem; }
.app-navbar .nav-link:hover, .app-navbar .nav-link:focus { color: #fff; background: rgba(255,255,255,.1); }

.app-main { flex: 1; width: 100%; padding: 2rem 0 3.5rem; }
.app-footer { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; padding: 1.4rem 0; color: var(--cortex-muted); font-size: .875rem; }

h1, h2, h3, h4, h5, h6 { color: var(--cortex-navy); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 2.5vw, 2.25rem); }

.card, .accordion-item {
    border: 1px solid #d4d4d8;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.card-header, .accordion-button { background: #fff; border-bottom-color: var(--cortex-border); font-weight: 650; }
.card-body { padding: 1.4rem; }

.table-responsive { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.table { margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: #e9eff5; }
.table thead th { background: #edf5fa; color: #334e68; font-size: .75rem; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }

.form-control, .form-select { min-height: 44px; border-color: #d1d5db; border-radius: 2px; }
.form-control:focus, .form-select:focus { border-color: #111827; box-shadow: 0 0 0 .16rem rgba(17,24,39,.12); }
.form-label { color: #334e68; font-weight: 600; }
.btn { border-radius: 2px; font-weight: 600; padding: .58rem 1rem; }
.btn-primary { background-color: var(--cortex-blue); border-color: var(--cortex-blue); }
.btn-primary:hover { background-color: #111827; border-color: #111827; }
.modal-content { border: 0; border-radius: 2px; box-shadow: 0 18px 50px rgba(0,0,0,.16); }

.auth-shell { max-width: 560px; margin: 1.5rem auto; }
.auth-card { border: 0; box-shadow: 0 14px 42px rgba(16,42,67,.12); }
.auth-card .card-body { padding: clamp(1.5rem, 4vw, 2.5rem); }

.hero-panel { position: relative; overflow: hidden; border-radius: 2px; padding: clamp(2rem, 5vw, 4.5rem); color: #fff; background: #111827; box-shadow: none; }
.hero-panel::after { display: none; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h1 { color: #fff; max-width: 720px; }
.hero-panel p { max-width: 620px; color: rgba(255,255,255,.82); }
.hero-eyebrow { color: #d1d5db !important; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-panel--welcome { min-height: min(580px, calc(100vh - 180px)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-panel--welcome h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: 1.12; }
.hero-description { font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.6; }
.welcome-actions .btn { min-width: 220px; min-height: 58px; padding: .8rem 1.5rem; font-size: 1.15rem; }
.welcome-actions .btn-light { color: #102a43; background: #fff; border-color: #fff; }
.welcome-actions .btn-light:hover { color: #111827; background: #f3f4f6; border-color: #f3f4f6; }
.welcome-actions .btn:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }

/* Selección de eventos: un recorrido breve antes de entrar al panel. */
.event-selector { max-width: 1180px; }
.event-selector__hero { padding: clamp(2rem, 4vw, 3.25rem); }
.event-selector__hero .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.55; }
.event-selector__summary { margin-top: -.2rem; }
.event-selector__metric { border-color: #d4d4d8; }
.event-selector__metric .card-body { position: relative; display: grid; gap: .2rem; min-height: 126px; padding: 1.35rem 1.35rem 1.25rem 4.75rem; }
.event-selector__metric-icon { position: absolute; top: 1.35rem; left: 1.35rem; color: #2563eb; font-size: 1.25rem; }
.event-selector__metric span { color: #52525b; font-size: .74rem; font-weight: 700; letter-spacing: .075em; line-height: 1.3; text-transform: uppercase; }
.event-selector__metric strong { color: #111827; font-size: 2rem; font-weight: 720; line-height: 1.1; }
.event-selector__section { scroll-margin-top: 1.5rem; }
.event-selector__section-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .95rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #d4d4d8; }
.event-selector__section-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 2px; font-size: 1.15rem; }
.event-selector__section-kicker { color: #6b7280; font-size: .7rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.event-selector__section-header h2 { color: #111827; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.event-selector__section-header .text-muted { max-width: 690px; font-size: .94rem; line-height: 1.45; }
.event-selector__section-count { display: inline-grid; min-width: 34px; height: 30px; place-items: center; padding: 0 .45rem; color: #27272a; background: #f4f4f5; border: 1px solid #d4d4d8; border-radius: 2px; font-size: .8rem; font-weight: 750; }
.event-selector__event-card { transition: border-color .16s ease, transform .16s ease; }
.event-selector__event-card:hover { border-color: #a1a1aa; transform: translateY(-2px); }
.event-selector__event-card .card-body { padding: 1.3rem; }
.event-selector__event-card--available { border-top: 3px solid #2563eb; }
.event-selector__event-card--past { background: #fafafa; }
.event-selector__event-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 25px; }
.event-selector__year { display: inline-flex; align-items: center; gap: .4rem; color: #52525b; font-size: .82rem; font-weight: 700; }
.event-selector__year i { color: #2563eb; }
.event-selector__status { padding: .42em .65em; border: 1px solid transparent; border-radius: 2px; font-size: .69rem; font-weight: 750; letter-spacing: .025em; }
.event-selector__status--actual { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.event-selector__status--proximo, .event-selector__status--available { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.event-selector__status--pasado { color: #52525b; background: #f4f4f5; border-color: #d4d4d8; }
.event-selector__event-title { margin: 1.25rem 0 .6rem; color: #111827; font-size: 1.14rem; line-height: 1.28; }
.event-selector__event-description { margin-bottom: 1.4rem; color: #6b7280; font-size: .93rem; line-height: 1.55; }
.event-selector__participation { margin: 0 0 1.25rem; padding: .85rem 0 0; border-top: 1px solid #e4e4e7; }
.event-selector__participation-label { display: flex; align-items: center; gap: .4rem; color: #27272a; font-size: .84rem; font-weight: 700; }
.event-selector__participation-label i { color: #2563eb; }
.event-selector__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.event-selector__progress div { padding-right: .35rem; }
.event-selector__progress dt { color: #71717a; font-size: .67rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.event-selector__progress dd { margin: .08rem 0 0; color: #18181b; font-size: 1rem; font-weight: 720; }
.event-selector__event-action { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 42px; margin-top: auto; }
.event-selector__empty-state { display: flex; align-items: center; gap: .75rem; min-height: 88px; padding: 1.2rem 1.3rem; color: #6b7280; background: #fafafa; border: 1px dashed #b7bac0; }
.event-selector__empty-state i { color: #71717a; font-size: 1.25rem; }
@media (max-width: 575.98px) {
    .event-selector__section-header { grid-template-columns: auto minmax(0, 1fr); }
    .event-selector__section-count { grid-column: 2; justify-self: start; }
    .event-selector__metric .card-body { min-height: 112px; }
}

.section-heading { margin: 3rem 0 1.25rem; }
.action-card { position: relative; border: 0; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.action-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(16,42,67,.14); }
.action-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; font-size: 1.4rem; color: #2563eb; background: #eff6ff; }
.action-card .card-title { margin-top: 1.1rem; font-size: 1.1rem; }
.action-card .card-text { color: var(--cortex-muted); }

/* Portada pública */
.public-landing { padding: clamp(.5rem, 2vw, 1.5rem) 0 1rem; }
.public-landing__hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; min-height: min(590px, calc(100vh - 150px)); color: #fff; background: #000; }
.public-landing__intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 7vw, 6rem); }
.public-landing__eyebrow { margin: 0 0 1.5rem; color: #a1a1aa; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.public-landing__hero h1 { max-width: 780px; margin: 0; color: #fff; font-size: clamp(2.6rem, 6vw, 5.7rem); font-weight: 650; letter-spacing: -.06em; line-height: .98; }
.public-landing__description { max-width: 550px; margin: 2rem 0 2.5rem; color: #d4d4d8; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.65; }
.public-landing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.public-landing__actions .btn { min-height: 52px; padding: .75rem 1.15rem; border-radius: 0; }
.public-landing__register { color: #fff; font-weight: 650; text-decoration: none; }
.public-landing__register:hover { color: #d4d4d8; text-decoration: underline; text-underline-offset: .25rem; }
.public-landing__aside { display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; border-left: 1px solid #27272a; }
.public-landing__number { color: #71717a; font-size: 3.5rem; font-weight: 300; letter-spacing: -.08em; }
.public-landing__aside p { margin: 1.3rem 0; color: #fff; font-size: 1.05rem; line-height: 1.45; }
.public-landing__line { width: 100%; height: 1px; background: #3f3f46; }
.public-landing__meta { margin-top: 1rem; color: #a1a1aa; font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.public-landing__services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1px; background: #d4d4d8; gap: 1px; }
.public-service { min-height: 235px; padding: 2rem; background: #fff; }
.public-service__icon { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 2.5rem; font-size: 1.2rem; }
.public-service__icon--blue { color: #2563eb; background: #eff6ff; }
.public-service__icon--green { color: #15803d; background: #f0fdf4; }
.public-service__icon--amber { color: #a16207; background: #fffbeb; }
.public-service h2 { margin-bottom: .65rem; font-size: 1.1rem; }
.public-service p { max-width: 300px; margin: 0; color: #71717a; line-height: 1.6; }

/* Administración */
.admin-module { height: 100vh; overflow: hidden; background: #f7f7f8; }
.admin-module .app-navbar { box-shadow: none; }
.admin-module .app-navbar { flex: 0 0 72px; position: relative; z-index: 2; }
.admin-shell { display: flex; flex: 1; width: 100%; min-height: 0; margin: 0; padding: 0; gap: 0; overflow: hidden; }
.admin-sidebar { width: 280px; flex: 0 0 280px; display: flex; flex-direction: column; min-height: 0; padding: 1.5rem 1rem; border-radius: 0; color: #e5e7eb; background: #000; box-shadow: none; }
.admin-sidebar__brand { display: flex; align-items: center; gap: .7rem; padding: .2rem .45rem 1.8rem; color: #fff; font-size: 1.1rem; font-weight: 750; }
.admin-sidebar__brand .brand-mark { background: rgba(255,255,255,.15); }
.admin-sidebar__label { margin: 0 .55rem .55rem; color: #a1a1aa; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.admin-sidebar__nav { display: grid; gap: .28rem; }
.admin-sidebar__nav a, .admin-sidebar__footer a { display: flex; align-items: center; gap: .8rem; padding: .82rem .75rem; border-radius: 0; color: #d1d5db; font-size: .96rem; font-weight: 600; text-decoration: none; transition: background .16s ease, color .16s ease; }
.admin-sidebar__nav a i, .admin-sidebar__footer a i { width: 1.15rem; font-size: 1.05rem; text-align: center; }
.admin-sidebar__nav a:hover { color: #fff; background: #27272a; transform: none; }
.admin-sidebar__nav a.is-active { color: #000; background: #fff; box-shadow: none; }
.admin-sidebar__footer { margin-top: auto; padding-top: 1.5rem; }
.admin-sidebar__footer a { color: #a1a1aa; border-top: 1px solid #27272a; border-radius: 0; }
.admin-sidebar__footer a:hover { color: #fff; }
.admin-workspace { min-width: 0; flex: 1; height: 100%; overflow-y: auto; overscroll-behavior: contain; border-radius: 0; background: #fff; box-shadow: none; }
.admin-module .app-footer { display: none; }
.admin-main { max-width: none; margin: 0; padding: clamp(1.5rem, 2.5vw, 2.75rem) clamp(1.25rem, 2.7vw, 3rem) 3.5rem; }
.admin-module .app-main > h1, .admin-module h1:first-of-type { margin-bottom: .45rem !important; color: #102a43; font-size: clamp(1.85rem, 3vw, 2.5rem); }
.admin-module .app-main > h1 + .text-muted, .admin-module h1 + .text-muted { max-width: 700px; color: #627d98 !important; font-size: 1.03rem; line-height: 1.6; }
.admin-dashboard-intro { padding: clamp(1.5rem, 3vw, 2.35rem); border-radius: 2px; color: #fff; background: #000; box-shadow: none; }
.admin-dashboard-intro .small { color: #d1d5db; letter-spacing: .1em; }
.admin-dashboard-intro h1 { margin-bottom: .6rem !important; color: #fff !important; }
.admin-dashboard-intro p:last-child { max-width: 640px; color: #e5e7eb; font-size: 1.05rem; line-height: 1.55; }
.admin-module h3 { color: #243b53; font-size: 1.15rem; }
.admin-module .card { border: 1px solid #d4d4d8; border-radius: 0; box-shadow: none; }
.admin-module .card-body { padding: 1.35rem; }
.admin-module .row > [class*="col"] > .card { position: relative; overflow: hidden; background: #fff !important; box-shadow: none; transition: border-color .18s ease; }
.admin-module .row > [class*="col"] > .card::after { display: none; }
.admin-module .row > [class*="col"] > .card:hover { transform: none; box-shadow: none; }
.admin-module .row > [class*="col"] > .card > * { position: relative; z-index: 1; }
.admin-module .card.bg-primary, .admin-module .card.bg-success, .admin-module .card.bg-danger, .admin-module .card.bg-info, .admin-module .card.bg-warning, .admin-module .card.bg-secondary { color: #243b53 !important; background: #fff !important; }
.admin-module .card.bg-primary, .admin-module .card.bg-success, .admin-module .card.bg-danger, .admin-module .card.bg-warning, .admin-module .card.bg-info, .admin-module .card.bg-secondary { border-top: 1px solid #d4d4d8; }
.admin-module .card.bg-light { background: #fafafa !important; }
.admin-module .card .card-title { color: #627d98; font-size: .75rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.admin-module .card .card-text.fs-4, .admin-module .card .card-text.fs-5 { margin-bottom: 0; color: #102a43; font-weight: 750; font-size: 1.75rem !important; }
.admin-filters { background: #f5f5f5; border-color: transparent !important; }
.admin-filters .filter-control { min-width: 180px; }
.admin-module .table-responsive { margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
.admin-module .table { width: 100%; table-layout: fixed; }
.admin-module .table > :not(caption) > * > * { padding: .8rem .7rem; overflow-wrap: anywhere; vertical-align: middle; }
.admin-module .table thead th { font-size: .69rem; letter-spacing: .035em; }
.admin-module .table td { font-size: .88rem; line-height: 1.4; }
.admin-module .table .btn { max-width: 100%; white-space: normal; }
.admin-module .table-actions { width: 1%; }
.admin-module .action-buttons { display: flex; flex-wrap: wrap; gap: .35rem; }
.admin-module .action-buttons .btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 30px; padding: .32rem .48rem; border-radius: 2px; font-size: .72rem; font-weight: 700; line-height: 1.15; }
.admin-module .action-buttons .btn i { font-size: .84rem; }
.admin-module .action-buttons .btn-outline-warning { color: #9c6500; border-color: #d9a323; }
.admin-module .action-buttons .btn-outline-warning:hover { color: #fff; background: #b7791f; border-color: #b7791f; }
.admin-accordion { display: grid; gap: .8rem; }
.admin-accordion__item { overflow: hidden; border: 1px solid #d4d4d8 !important; border-radius: 0 !important; box-shadow: none; }
.admin-accordion .accordion-button { gap: .8rem; padding: 1rem 1.25rem; color: #273142; background: #fff; font-size: 1rem; font-weight: 720; }
.admin-accordion .accordion-button:not(.collapsed) { color: #111827; background: #f9fafb; box-shadow: inset 3px 0 #374151; }
.admin-accordion .accordion-button:focus { box-shadow: inset 3px 0 #374151, 0 0 0 .2rem rgba(17,24,39,.10); }
.admin-accordion--static .accordion-button { cursor: default; pointer-events: none; }
.admin-accordion--static .accordion-button::after { display: none; }
.admin-accordion__count, .admin-disclosure summary span { display: inline-grid; place-items: center; min-width: 28px; height: 24px; margin-left: auto; padding: 0 .45rem; border-radius: 999px; color: #374151; background: #e5e7eb; font-size: .76rem; font-weight: 750; }
.admin-search-results { margin-top: .15rem; overflow: hidden; border: 1px solid #d4d4d8; border-radius: 0; background: #fff; box-shadow: none; }
.admin-search-results__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .95rem 1.2rem; color: #102a43; background: #edf6fc; border-bottom: 1px solid #d9e8f1; font-weight: 720; }
.admin-search-results__heading strong { display: inline-grid; place-items: center; min-width: 28px; height: 25px; padding: 0 .48rem; color: #374151; background: #e5e7eb; border-radius: 999px; font-size: .78rem; }
.admin-disclosure { overflow: hidden; border: 1px solid #d4d4d8; border-radius: 0; background: #fff; box-shadow: none; }
.admin-disclosure summary { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; cursor: pointer; color: #273142; background: #fff; font-size: 1rem; font-weight: 720; list-style: none; }
.admin-disclosure summary::-webkit-details-marker { display: none; }
.admin-disclosure summary::before { content: "\F282"; color: #374151; font-family: "bootstrap-icons"; font-size: .82rem; transition: transform .18s ease; }
.admin-disclosure[open] summary { color: #111827; background: #f9fafb; box-shadow: inset 3px 0 #374151; }
.admin-disclosure[open] summary::before { transform: rotate(90deg); }
.admin-disclosure .card { border: 0; border-top: 1px solid #e1ebf2; border-radius: 0; }
.admin-module .table tbody tr { transition: background-color .15s ease; }
.admin-module .table tbody tr:hover { background: #f4f9fd; }
.admin-module .table a:not(.btn) { color: #273142; font-weight: 650; text-decoration: none; }
.admin-module .table a:not(.btn):hover { text-decoration: underline; }
.admin-module .badge { padding: .45em .7em; border-radius: 999px; font-weight: 650; }
.admin-module .nav-tabs { gap: .4rem; border-bottom: 1px solid #d9e5ee; }
.admin-module .nav-tabs .nav-link { color: #486581; border: 0; border-radius: 9px 9px 0 0; font-weight: 650; }
.admin-module .nav-tabs .nav-link.active { color: #111827; background: #f3f4f6; border-bottom: 3px solid #374151; }
.admin-module .tab-content { background: #fff; border: 1px solid #e1ebf2; border-top: 0; border-radius: 0 0 16px 16px; }
.admin-module .modal-header { padding: 1.15rem 1.4rem; background: #f4f9fd; border-bottom-color: #d9e5ee; }
.admin-module .modal-footer { background: #fbfdff; border-top-color: #d9e5ee; }
.admin-module .alert { border-radius: 12px; }

/* Espacios de trabajo por rol */
.role-module { height: 100vh; overflow: hidden; background: #f7f7f8; }
.role-module .app-navbar { flex: 0 0 72px; position: relative; z-index: 2; box-shadow: none; }
.role-shell { display: flex; flex: 1; width: 100%; min-height: 0; margin: 0; padding: 0; gap: 0; overflow: hidden; }
.role-sidebar { width: 280px; flex: 0 0 280px; display: flex; flex-direction: column; min-height: 0; padding: 1.5rem 1rem; border-radius: 0; color: #e5e7eb; background: #000; box-shadow: none; }
.role-sidebar__brand { display: flex; align-items: center; gap: .7rem; padding: .2rem .45rem 1.8rem; color: #fff; font-size: 1.05rem; font-weight: 750; }
.role-sidebar__brand .brand-mark { background: rgba(255,255,255,.15); }
.role-sidebar__label { margin: 0 .55rem .55rem; color: #a1a1aa; font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.role-sidebar__nav { display: grid; gap: .28rem; overflow-y: auto; }
.role-sidebar__nav a, .role-sidebar__footer a { display: flex; align-items: center; gap: .8rem; padding: .82rem .75rem; border-radius: 0; color: #d1d5db; font-size: .95rem; font-weight: 600; text-decoration: none; transition: background .16s ease, color .16s ease; }
.role-sidebar__nav a i, .role-sidebar__footer a i { width: 1.15rem; font-size: 1.05rem; text-align: center; }
.role-sidebar__nav a:hover { color: #fff; background: #27272a; transform: none; }
.role-sidebar__nav a.is-active { color: #111827; background: #fff; box-shadow: none; }
.role-nav-group { min-width: 0; }
.role-nav-group__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: .75rem; padding: .82rem .75rem; border: 0; border-left: 2px solid transparent; color: #d1d5db; background: transparent; font: inherit; font-size: .95rem; font-weight: 600; text-align: left; transition: color .16s ease, background .16s ease; }
.role-nav-group__toggle:hover { color: #fff; background: #27272a; }
.role-nav-group__toggle > span { display: inline-flex; min-width: 0; align-items: center; gap: .8rem; }
.role-nav-group__toggle > span > i { width: 1.15rem; color: #93c5fd; font-size: 1.05rem; text-align: center; }
.role-nav-group__toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.role-nav-group.is-active > .role-nav-group__toggle { color: #fff; border-left-color: #fff; background: #18181b; }
.role-nav-group__chevron { flex: 0 0 auto; font-size: .75rem; transition: transform .16s ease; }
.role-nav-group__toggle:not(.collapsed) .role-nav-group__chevron { transform: rotate(180deg); }
.role-nav-submenu { display: grid; gap: .12rem; margin: .2rem 0 .35rem 1.35rem; padding: .25rem 0 .25rem .5rem; border-left: 1px solid #3f3f46; }
.role-sidebar__nav .role-nav-submenu a { min-height: 36px; padding: .5rem .6rem; color: #a1a1aa; font-size: .84rem; font-weight: 550; }
.role-sidebar__nav .role-nav-submenu a i { width: 1rem; color: #93c5fd; font-size: .9rem; }
.role-sidebar__nav .role-nav-submenu a:hover { color: #fff; background: #27272a; }
.role-sidebar__nav .role-nav-submenu a.is-active { color: #111827; background: #fff; }
.role-sidebar__nav .role-nav-submenu a.is-active i { color: #111; }
.admin-nav-group { min-width: 0; }
.admin-nav-group__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: .75rem; padding: .82rem .75rem; border: 0; border-left: 2px solid transparent; color: #d1d5db; background: transparent; font: inherit; font-size: .96rem; font-weight: 600; text-align: left; transition: color .16s ease, background .16s ease; }
.admin-nav-group__toggle:hover { color: #fff; background: #27272a; }.admin-nav-group__toggle > span { display: inline-flex; align-items: center; gap: .8rem; }.admin-nav-group__toggle > span > i { width: 1.15rem; color: #93c5fd; font-size: 1.05rem; text-align: center; }.admin-nav-group__toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }.admin-nav-group.is-active > .admin-nav-group__toggle { color: #fff; border-left-color: #fff; background: #18181b; }.admin-nav-group__chevron { flex: 0 0 auto; font-size: .75rem; transition: transform .16s ease; }.admin-nav-group__toggle:not(.collapsed) .admin-nav-group__chevron { transform: rotate(180deg); }.admin-nav-submenu { display: grid; gap: .12rem; margin: .2rem 0 .35rem 1.35rem; padding: .25rem 0 .25rem .5rem; border-left: 1px solid #3f3f46; }.admin-sidebar__nav .admin-nav-submenu a { min-height: 36px; padding: .5rem .6rem; color: #a1a1aa; font-size: .84rem; font-weight: 550; }.admin-sidebar__nav .admin-nav-submenu a i { width: 1rem; color: #93c5fd; font-size: .9rem; }.admin-sidebar__nav .admin-nav-submenu a:hover { color: #fff; background: #27272a; }.admin-sidebar__nav .admin-nav-submenu a.is-active { color: #111; background: #fff; }.admin-sidebar__nav .admin-nav-submenu a.is-active i { color: #111; }
.role-sidebar__footer { margin-top: auto; padding-top: 1rem; }
.role-sidebar__footer a { color: #a1a1aa; border-top: 1px solid #27272a; border-radius: 0; }
.role-sidebar__footer a:hover { color: #fff; }
.role-workspace { min-width: 0; flex: 1; height: 100%; overflow-y: auto; overscroll-behavior: contain; border-radius: 0; background: #fff; box-shadow: none; }
.role-main { max-width: none; margin: 0; padding: clamp(1.5rem, 2.5vw, 2.75rem) clamp(1.25rem, 2.7vw, 3rem) 3.5rem; }
.role-main > .container { width: 100%; max-width: none; padding-right: 0; padding-left: 0; }
.role-module .app-footer { display: none; }
.role-module h1:first-of-type { margin-bottom: .45rem !important; color: #102a43; font-size: clamp(1.85rem, 3vw, 2.45rem); }
.role-module h1 + .lead, .role-module h1 + .text-muted { max-width: 760px; color: #627d98 !important; line-height: 1.6; }
.role-module .card, .role-module .accordion-item { border: 1px solid #d4d4d8; border-radius: 0; box-shadow: none; }
.role-module .card-header { padding: 1rem 1.25rem; color: #273142; background: #fafafa; border-bottom-color: #e5e7eb; font-weight: 720; }
.role-module .card-body { padding: 1.35rem; }
.role-module .table-responsive { margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
.role-module .table { width: 100%; margin-bottom: 0; }
.role-module .table > :not(caption) > * > * { padding: .8rem .75rem; overflow-wrap: anywhere; vertical-align: middle; border-bottom-color: #e6eff5; }
.role-module .table thead th { color: #334e68; background: #edf6f9; font-size: .71rem; letter-spacing: .045em; text-transform: uppercase; }
.role-module .table tbody tr { transition: background-color .15s ease; }
.role-module .table tbody tr:hover { background: #f5fafc; }
.role-module .badge { padding: .45em .7em; border-radius: 999px; font-weight: 650; }
.role-module .btn { border-radius: 2px; }
.role-module .accordion-button { padding: 1rem 1.25rem; color: #243b53; font-weight: 720; }
.role-module .accordion-button:not(.collapsed) { color: #111827; background: #f9fafb; box-shadow: inset 3px 0 #374151; }
.role-module .alert { border-radius: 12px; }
.role-module .form-control, .role-module .form-select { border-color: #c8d9e3; }
.role-module .form-control:focus, .role-module .form-select:focus { border-color: #4b5563; box-shadow: 0 0 0 .22rem rgba(17,24,39,.10); }
.workflow-anchor { scroll-margin-top: 1.25rem; }

/* Paleta monocromática para paneles autenticados */
:is(.admin-module, .role-module) .table thead th { color: #3f3f46; background: #f5f5f5; }
:is(.admin-module, .role-module) .table tbody tr:hover { background: #fafafa; }
:is(.admin-module, .role-module) .card.bg-primary,
:is(.admin-module, .role-module) .card.bg-success,
:is(.admin-module, .role-module) .card.bg-danger,
:is(.admin-module, .role-module) .card.bg-warning,
:is(.admin-module, .role-module) .card.bg-info,
:is(.admin-module, .role-module) .card.bg-secondary { color: #111 !important; background: #fff !important; }
:is(.admin-module, .role-module) .card.bg-primary .card-title,
:is(.admin-module, .role-module) .card.bg-primary .card-text { color: #2563eb !important; }
:is(.admin-module, .role-module) .card.bg-success .card-title,
:is(.admin-module, .role-module) .card.bg-success .card-text { color: #15803d !important; }
:is(.admin-module, .role-module) .card.bg-danger .card-title,
:is(.admin-module, .role-module) .card.bg-danger .card-text { color: #dc2626 !important; }
:is(.admin-module, .role-module) .card.bg-warning .card-title,
:is(.admin-module, .role-module) .card.bg-warning .card-text { color: #a16207 !important; }
:is(.admin-module, .role-module) .card.bg-info .card-title,
:is(.admin-module, .role-module) .card.bg-info .card-text { color: #0f766e !important; }
:is(.admin-module, .role-module) .card.bg-secondary .card-title,
:is(.admin-module, .role-module) .card.bg-secondary .card-text { color: #52525b !important; }
:is(.admin-module, .role-module) .action-card { border: 1px solid #d4d4d8; border-radius: 0; }
:is(.admin-module, .role-module) .badge { border-radius: 2px; }
:is(.admin-module, .role-module) .badge.bg-success { color: #fff !important; background: #16834b !important; }
:is(.admin-module, .role-module) .badge.bg-danger { color: #fff !important; background: #c8333d !important; }
:is(.admin-module, .role-module) .badge.bg-warning { color: #2b2100 !important; background: #f4bd2a !important; }
:is(.admin-module, .role-module) .badge.bg-info { color: #073a54 !important; background: #79cce8 !important; }
:is(.admin-module, .role-module) .badge.bg-secondary { color: #fff !important; background: #60646c !important; }
:is(.admin-module, .role-module) .btn-success { color: #fff; background: #16834b; border-color: #16834b; }
:is(.admin-module, .role-module) .btn-danger { color: #fff; background: #c8333d; border-color: #c8333d; }
:is(.admin-module, .role-module) .btn-warning { color: #2b2100; background: #f4bd2a; border-color: #f4bd2a; }
:is(.admin-module, .role-module) .btn-info { color: #073a54; background: #79cce8; border-color: #79cce8; }
:is(.admin-module, .role-module) .btn-outline-success { color: #16834b; background: #fff; border-color: #16834b; }
:is(.admin-module, .role-module) .btn-outline-danger { color: #c8333d; background: #fff; border-color: #c8333d; }
:is(.admin-module, .role-module) .btn-outline-warning { color: #8a6500; background: #fff; border-color: #c89513; }
:is(.admin-module, .role-module) .btn-outline-info { color: #087099; background: #fff; border-color: #087099; }
:is(.admin-module, .role-module) .btn-outline-primary { color: #1d4ed8; background: #fff; border-color: #1d4ed8; }
:is(.admin-module, .role-module) .btn-success:hover { background: #11693c; border-color: #11693c; }
:is(.admin-module, .role-module) .btn-danger:hover { background: #a72831; border-color: #a72831; }
:is(.admin-module, .role-module) .btn-warning:hover { background: #dba719; border-color: #dba719; }
:is(.admin-module, .role-module) .btn-info:hover { background: #52b9dc; border-color: #52b9dc; }
:is(.admin-module, .role-module) .btn-outline-success:hover { color:#fff; background:#16834b; }
:is(.admin-module, .role-module) .btn-outline-danger:hover { color:#fff; background:#c8333d; }
:is(.admin-module, .role-module) .btn-outline-warning:hover { color:#2b2100; background:#f4bd2a; }
:is(.admin-module, .role-module) .btn-outline-info:hover { color:#073a54; background:#79cce8; }
:is(.admin-module, .role-module) .btn-outline-primary:hover { color:#fff; background:#1d4ed8; }
:is(.admin-module, .role-module) .alert { color: #111; background: #f5f5f5; border: 0; }
.admin-sidebar__nav a i, .role-sidebar__nav a i { color: #93c5fd; }
.admin-sidebar__nav a.is-active i, .role-sidebar__nav a.is-active i { color: #111; }
:is(.admin-module, .role-module) .card-header > i,
:is(.admin-module, .role-module) h3 > i { color: #2563eb; }

/* Iconos como guía visual: color por intención, sin rellenar los botones. */
:is(.admin-module, .role-module) .btn-outline-primary i { color: #2563eb; }
:is(.admin-module, .role-module) .btn-outline-success i { color: #15803d; }
:is(.admin-module, .role-module) .btn-outline-danger i { color: #dc2626; }
:is(.admin-module, .role-module) .btn-outline-warning i { color: #a16207; }
:is(.admin-module, .role-module) .btn-outline-info i { color: #0f766e; }
:is(.admin-module, .role-module) .btn-editar i,
:is(.admin-module, .role-module) .btn-reactivar i { color: #15803d; }
:is(.admin-module, .role-module) .btn-eliminar i { color: #dc2626; }
:is(.admin-module, .role-module) .btn-generar-pago i,
:is(.admin-module, .role-module) .btn-condonar i { color: #a16207; }
:is(.admin-module, .role-module) .btn-ver-evaluaciones i,
:is(.admin-module, .role-module) .btn-editar-area i { color: #2563eb; }
.table .action-icon-only { display: inline-grid !important; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0 !important; place-items: center; vertical-align: middle; }
.table .action-icon-only i { margin: 0 !important; font-size: .95rem; }

/* Color solo en el texto de métricas de usuarios. */
.admin-module .user-metric--administrador .card-title, .admin-module .user-metric--administrador .card-text { color: #1d4ed8 !important; }
.admin-module .user-metric--coordinador .card-title, .admin-module .user-metric--coordinador .card-text { color: #0f766e !important; }
.admin-module .user-metric--coordinador-area .card-title, .admin-module .user-metric--coordinador-area .card-text { color: #a16207 !important; }
.admin-module .user-metric--revisor-pagos .card-title, .admin-module .user-metric--revisor-pagos .card-text { color: #15803d !important; }
.admin-module .user-metric--autor .card-title, .admin-module .user-metric--autor .card-text { color: #7c3aed !important; }
.admin-module .user-metric--asistente .card-title, .admin-module .user-metric--asistente .card-text { color: #52525b !important; }
.admin-module .user-metric--cartel .card-title, .admin-module .user-metric--cartel .card-text { color: #db2777 !important; }
.admin-module .user-metric--revisor-extensos .card-title, .admin-module .user-metric--revisor-extensos .card-text { color: #dc2626 !important; }

/* Centro de coordinación de área: dos flujos claramente separados. */
.area-dashboard { max-width: 1320px; margin: 0 auto; padding: clamp(1.25rem, 2.8vw, 2.75rem); }
.area-dashboard__hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: clamp(1.6rem, 3.6vw, 3rem); color: #fff; background: #111; }
.area-dashboard__hero h1 { margin: 0 0 .65rem; color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.area-dashboard__hero > div > p:last-child { max-width: 680px; margin: 0; color: #d4d4d8; font-size: 1.03rem; line-height: 1.6; }
.area-dashboard__eyebrow, .area-workspace__kicker { margin: 0 0 .55rem; color: #71717a; font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.area-dashboard__hero .area-dashboard__eyebrow { color: #a1a1aa; }
.area-dashboard__event { display: grid; min-width: 230px; gap: .45rem; padding: 1rem 1.1rem; border: 1px solid #3f3f46; background: #18181b; }
.area-dashboard__event span { color: #a1a1aa; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.area-dashboard__event strong { color: #fff; line-height: 1.25; }
.area-dashboard__event a { width: fit-content; margin-top: .2rem; color: #d4d4d8; font-size: .85rem; text-decoration: none; }
.area-dashboard__event a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2rem; }
.area-dashboard__event a i { margin-right: .4rem; }
.area-dashboard__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.5rem 0; border: 1px solid #d4d4d8; background: #d4d4d8; gap: 1px; }
.area-metric { position: relative; display: grid; gap: .35rem; min-height: 170px; padding: 1.3rem; background: #fff; }
.area-metric > i { margin-bottom: .25rem; font-size: 1.25rem; }
.area-metric span { color: #52525b; font-size: .72rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.area-metric strong { color: #111; font-size: 2.15rem; line-height: 1; }
.area-metric a, .area-metric small { align-self: end; color: #52525b; font-size: .84rem; font-weight: 650; text-decoration: none; }
.area-metric a:hover { color: #111; text-decoration: underline; text-underline-offset: .22rem; }
.area-metric a i { margin-left: .25rem; }
.area-metric--poster > i { color: #db2777; }.area-metric--success > i { color: #15803d; }.area-metric--warning > i { color: #a16207; }.area-metric--info > i { color: #2563eb; }
.area-dashboard__workspaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.area-workspace { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1.4rem; border: 1px solid #d4d4d8; background: #fff; }
.area-workspace__icon { display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid; font-size: 1.15rem; }
.area-workspace__icon--poster { color: #be185d; border-color: #f9a8d4; background: #fdf2f8; }.area-workspace__icon--article { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.area-workspace__kicker { margin-bottom: .35rem; }.area-workspace h2 { margin: 0 0 .5rem; color: #18181b; font-size: 1.15rem; }.area-workspace p:not(.area-workspace__kicker) { margin: 0; color: #71717a; line-height: 1.5; }
.area-workspace .btn { grid-column: 2; justify-self: start; margin-top: .2rem; }
.area-dashboard__article-status, .area-dashboard__queue, .area-dashboard__history { margin-top: 2.4rem; }
.area-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.area-section-heading h2 { margin: 0; color: #18181b; font-size: 1.35rem; }.area-section-heading .area-dashboard__eyebrow { margin-bottom: .25rem; }
.area-stage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #d4d4d8; background: #d4d4d8; gap: 1px; }
.area-stage-grid > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .65rem; padding: 1rem; background: #fff; }
.area-stage-grid strong { color: #18181b; font-size: 1.45rem; line-height: 1; }.area-stage-grid p { grid-column: 1 / -1; margin: .65rem 0 0; color: #71717a; font-size: .8rem; line-height: 1.35; }
.area-stage__dot { display: block; width: 10px; height: 10px; border-radius: 50%; }.area-stage__dot--blue { background: #2563eb; }.area-stage__dot--yellow { background: #d97706; }.area-stage__dot--green { background: #15803d; }.area-stage__dot--violet { background: #7c3aed; }.area-stage__dot--gray { background: #71717a; }
.area-dashboard__queue { scroll-margin-top: 1rem; }
@media (max-width: 991.98px) { .area-dashboard__hero { align-items: stretch; flex-direction: column; }.area-dashboard__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.area-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .area-dashboard { padding: 1rem; }.area-dashboard__metrics, .area-dashboard__workspaces, .area-stage-grid { grid-template-columns: 1fr; }.area-workspace .btn { grid-column: 1 / -1; }.area-section-heading { align-items: start; flex-direction: column; }.area-dashboard__event { min-width: 0; } }

/* Espacios editoriales: una página por etapa, con lectura más directa. */
.editorial-stage, .poster-workspace, .area-overview { width: min(100%, 1280px); margin: 0 auto; padding: clamp(1.25rem, 2.8vw, 2.8rem); }
.editorial-stage__header { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; padding: clamp(1.3rem, 3vw, 2.15rem); border: 1px solid #d4d4d8; border-left: 4px solid #18181b; background: #fff; }
.editorial-stage__eyebrow { margin: 0 0 .55rem; color: #71717a; font-size: .71rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.editorial-stage__eyebrow i { margin-right: .4rem; color: #2563eb; }
.editorial-stage__header h1 { margin: 0 0 .55rem; color: #18181b; font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -.04em; }
.editorial-stage__header p:not(.editorial-stage__eyebrow) { max-width: 720px; margin: 0; color: #52525b; line-height: 1.6; }
.editorial-stage__back { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; padding: .55rem .75rem; border: 1px solid #d4d4d8; color: #27272a; font-size: .85rem; font-weight: 650; text-decoration: none; }
.editorial-stage__back:hover { border-color: #71717a; color: #111; background: #fafafa; }
.editorial-stage__context { display: grid; flex: 0 0 235px; gap: .35rem; padding: .9rem 1rem; border-left: 1px solid #e4e4e7; color: #18181b; }
.editorial-stage__context span { color: #71717a; font-size: .68rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.editorial-stage__context strong { font-size: .93rem; line-height: 1.3; }.editorial-stage__context small { color: #71717a; }.editorial-stage__context a { color: #27272a; font-size: .82rem; text-decoration: none; }.editorial-stage__context a:hover { text-decoration: underline; }
.editorial-stage .card, .editorial-panel { overflow: hidden; margin-bottom: 1.25rem; border: 1px solid #d4d4d8 !important; border-radius: 0; box-shadow: none; background: #fff; }
.editorial-stage .card-header { padding: 1rem 1.2rem; color: #18181b !important; background: #fafafa !important; border-bottom: 1px solid #e4e4e7; font-size: .95rem; font-weight: 750; }
.editorial-stage .card-body { padding: 1.2rem; }.editorial-stage .card-body > .table-responsive { margin: -.15rem; }
.editorial-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid #e4e4e7; }
.editorial-panel__heading h2 { margin: 0; color: #18181b; font-size: 1.12rem; }.editorial-panel__heading .editorial-stage__eyebrow { margin-bottom: .28rem; }
.editorial-table { margin: 0; }.editorial-table thead th { padding: .78rem 1rem; color: #52525b; background: #fafafa !important; border-bottom: 1px solid #d4d4d8; font-size: .69rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }.editorial-table tbody td { padding: 1rem; border-bottom-color: #ededee; }.editorial-table tbody tr:last-child td { border-bottom: 0; }.editorial-table td strong { display: block; color: #18181b; font-size: .92rem; }.editorial-table td small { display: block; margin-top: .18rem; color: #71717a; }.editorial-table__empty { padding: 2.75rem 1rem !important; color: #71717a; text-align: center; }.editorial-table__empty i { display: block; margin-bottom: .5rem; color: #16a34a; font-size: 1.35rem; }
.status-chip { display: inline-flex; align-items: center; padding: .28rem .5rem; border: 1px solid currentColor; color: #52525b; font-size: .74rem; font-weight: 700; line-height: 1; }.status-chip--warning { color: #a16207; background: #fffbeb; }.status-chip--success { color: #15803d; background: #f0fdf4; }.status-chip--danger { color: #b91c1c; background: #fef2f2; }
.poster-workspace__header { border-left-color: #a21caf; }.poster-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 1.25rem; border: 1px solid #d4d4d8; background: #d4d4d8; }.poster-summary article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .75rem; min-height: 105px; padding: 1rem 1.2rem; background: #fff; }.poster-summary article > i { grid-row: 1 / span 2; display: grid; width: 36px; height: 36px; place-items: center; color: #a21caf; border: 1px solid #f5d0fe; background: #fdf4ff; }.poster-summary article span { color: #71717a; font-size: .75rem; font-weight: 700; text-transform: uppercase; }.poster-summary article strong { color: #18181b; font-size: 1.7rem; line-height: 1; }
.area-overview__header { border-left-color: #2563eb; }.area-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid #d4d4d8; background: #d4d4d8; }.area-quick-card { display: grid; min-height: 210px; align-content: start; gap: .38rem; padding: 1.25rem; color: #18181b; background: #fff; text-decoration: none; transition: background .16s ease; }.area-quick-card:hover { color: #18181b; background: #fafafa; }.area-quick-card > i { margin-bottom: .3rem; font-size: 1.22rem; }.area-quick-card > span { color: #52525b; font-size: .78rem; font-weight: 750; text-transform: uppercase; }.area-quick-card > strong { font-size: 2.05rem; line-height: 1; }.area-quick-card > small { color: #71717a; }.area-quick-card > b { align-self: end; margin-top: .8rem; font-size: .82rem; }.area-quick-card--poster > i { color: #a21caf; }.area-quick-card--filter > i { color: #2563eb; }.area-quick-card--payment > i { color: #a16207; }.area-quick-card--review > i { color: #15803d; }.area-overview__links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }.area-overview__links a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .72rem; border: 1px solid #d4d4d8; color: #3f3f46; font-size: .84rem; font-weight: 650; text-decoration: none; }.area-overview__links a:hover { border-color: #71717a; color: #111; background: #fafafa; }.area-overview__links i { color: #2563eb; }
@media (max-width: 991.98px) { .editorial-stage__header { flex-direction: column; }.editorial-stage__context { width: 100%; border-top: 1px solid #e4e4e7; border-left: 0; }.area-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .editorial-stage, .poster-workspace, .area-overview { padding: 1rem; }.editorial-stage__header { padding: 1.1rem; }.editorial-stage__back { width: 100%; justify-content: center; }.poster-summary, .area-quick-grid { grid-template-columns: 1fr; }.editorial-panel__heading { align-items: start; flex-direction: column; }.editorial-table { min-width: 620px; } }

@media (max-width: 991.98px) { .app-main { padding-top: 1.25rem; } .app-navbar .navbar-nav { padding: .75rem 0; align-items: stretch !important; } .public-landing__hero { grid-template-columns: 1fr; min-height: auto; } .public-landing__aside { min-height: 180px; border-top: 1px solid #27272a; border-left: 0; } .public-landing__services { grid-template-columns: 1fr; } .public-service { min-height: auto; } .public-service__icon { margin-bottom: 1.5rem; } .admin-module, .role-module { height: auto; overflow: visible; } .admin-module .app-navbar, .role-module .app-navbar { flex: initial; } .admin-shell, .role-shell { width: 100%; flex: initial; flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: visible; } .admin-sidebar, .role-sidebar { width: 100%; min-height: 0; padding: .85rem; border-radius: 0; } .admin-sidebar__brand, .role-sidebar__brand { padding: .2rem .3rem .8rem; } .admin-sidebar__label, .admin-sidebar__footer, .role-sidebar__label, .role-sidebar__footer { display: none; } .admin-sidebar__nav, .role-sidebar__nav { display: flex; overflow-x: auto; gap: 0; padding-bottom: 0; } .admin-sidebar__nav a, .role-sidebar__nav a { flex: 0 0 auto; padding: .65rem .75rem; } .admin-workspace, .role-workspace { height: auto; overflow: visible; border-radius: 0; } .admin-module .app-footer, .role-module .app-footer { display: block; } .admin-module .table-responsive, .role-module .table-responsive { overflow-x: auto; } .admin-module .table, .role-module .table { min-width: 720px; table-layout: auto; } }
@media (max-width: 575.98px) { .app-main { padding-bottom: 2rem; } .hero-panel { border-radius: 16px; } .hero-panel--welcome { min-height: 520px; } .welcome-actions .btn { width: 100%; } .card-body { padding: 1.1rem; } }

/*
 * Ajustes de adaptación: estos paneles se usan tanto en pantallas amplias como
 * en teléfonos. La prioridad es conservar toda la información (especialmente
 * en tablas administrativas) sin producir desplazamiento horizontal de toda
 * la página.
 */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body { max-width: 100%; overflow-x: clip; }

img,
svg,
video,
canvas { max-width: 100%; height: auto; }

button,
a,
input,
select,
textarea { touch-action: manipulation; }

.app-main,
.admin-main,
.role-main,
.admin-workspace,
.role-workspace,
.card,
.card-body,
.modal-body,
.table-responsive { min-width: 0; }

.card-title,
.card-header,
.modal-title,
.alert,
.event-selector__event-title,
.area-workspace h2,
.area-section-heading h2 { overflow-wrap: anywhere; }

.app-navbar .container-fluid { gap: .5rem; }
.app-navbar .navbar-brand { min-width: 0; }
.app-navbar .dropdown-menu { max-width: calc(100vw - 1.5rem); }

.admin-sidebar__nav,
.role-sidebar__nav,
.table-responsive,
.nav-tabs { scrollbar-width: thin; scrollbar-color: #a1a1aa transparent; }

.admin-sidebar__nav::-webkit-scrollbar,
.role-sidebar__nav::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.nav-tabs::-webkit-scrollbar { height: .45rem; width: .45rem; }

.admin-sidebar__nav::-webkit-scrollbar-thumb,
.role-sidebar__nav::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.nav-tabs::-webkit-scrollbar-thumb { background: #a1a1aa; border-radius: 999px; }

/* Las vistas internas ya tienen una separación exterior. Evita duplicar la
 * sangría de los container-fluid y perder espacio útil en tablets. */
:is(.admin-main, .role-main) > .container-fluid { padding-right: 0 !important; padding-left: 0 !important; }

.admin-module,
.role-module { min-height: 100vh; min-height: 100dvh; }

@media (max-width: 1199.98px) {
    .admin-main,
    .role-main { padding-right: clamp(1rem, 2.5vw, 1.75rem); padding-left: clamp(1rem, 2.5vw, 1.75rem); }

    /* En un ancho intermedio el menú aún ocupa espacio lateral. Las tablas
     * mantienen columnas legibles y se deslizan dentro de su propio marco. */
    :is(.admin-module, .role-module) .table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        border-bottom: 1px solid #e5e7eb;
    }

    :is(.admin-module, .role-module) .table-responsive > .table,
    :is(.admin-module, .role-module) .table-responsive .dataTable { min-width: 720px; }

    :is(.admin-module, .role-module) .dataTables_wrapper { min-width: 720px; }
}

@media (max-width: 991.98px) {
    .app-navbar .navbar-collapse { padding: .6rem 0 .2rem; }
    .app-navbar .navbar-nav { gap: .15rem; }
    .app-navbar .nav-link { min-height: 42px; display: flex; align-items: center; }
    .app-navbar .dropdown-menu { margin-top: .3rem; }

    .admin-sidebar__nav,
    .role-sidebar__nav {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: .25rem;
    }

    .admin-sidebar__nav a,
    .role-sidebar__nav a { min-height: 44px; white-space: nowrap; }

    .admin-module .table-responsive,
    .role-module .table-responsive { box-shadow: inset -1px 0 0 #e5e7eb; }

    .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
    .nav-tabs .nav-link { flex: 0 0 auto; white-space: nowrap; }

    .area-dashboard__hero { gap: 1.25rem; }
}

@media (max-width: 767.98px) {
    .app-main { padding: 1.15rem 0 2.25rem; }
    .app-main > .container,
    .app-main > main.container { padding-right: 1rem; padding-left: 1rem; }

    .admin-main,
    .role-main { padding: 1rem 1rem 2.25rem; }

    .admin-sidebar,
    .role-sidebar { padding: .75rem .65rem; }

    .admin-sidebar__brand,
    .role-sidebar__brand { font-size: 1rem; }

    /* Las tablas de páginas públicas también conservan columnas legibles. */
    .app-main .table-responsive {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        border-bottom: 1px solid #e5e7eb;
    }

    .app-main .table-responsive > .table,
    .app-main .table-responsive .dataTable { min-width: 640px; }

    .table > :not(caption) > * > * { padding: .72rem .75rem; }

    .admin-module .list-group-item.d-flex { align-items: stretch !important; flex-direction: column; }
    .admin-module .list-group-item.d-flex > .btn { align-self: flex-start; }

    .card-body > .d-flex.justify-content-between,
    .card-header > .d-flex.justify-content-between,
    .role-main > .d-flex.justify-content-between,
    .admin-main > .d-flex.justify-content-between { align-items: flex-start !important; flex-wrap: wrap; }

    .btn-group { flex-wrap: wrap; }
    .btn-group > .btn,
    .btn-group > .btn-group { flex: 1 1 auto; }

    .modal-dialog { margin: .5rem; }
    .modal-dialog-scrollable { max-height: calc(100dvh - 1rem); }
    .modal-footer { align-items: stretch; flex-wrap: wrap; gap: .5rem; }
    .modal-footer .btn { flex: 1 1 auto; }
}

@media (max-width: 575.98px) {
    /* Evita el zoom automático de Safari al enfocar campos de formularios. */
    .form-control,
    .form-select { font-size: 16px; }

    .app-navbar .navbar-brand { font-size: 1.05rem; }
    .brand-mark { width: 32px; height: 32px; }
    .app-navbar .dropdown-menu { width: min(100%, 22rem); }

    .hero-panel,
    .event-selector__hero,
    .admin-dashboard-intro { padding: 1.35rem; }

    .event-selector__event-meta { align-items: flex-start; flex-direction: column; }
    .event-selector__status { align-self: flex-start; }
    .event-selector__progress { gap: .65rem; }

    .action-buttons .btn { flex: 1 1 calc(50% - .35rem); min-height: 40px; }
    .action-buttons .btn:only-child { flex-basis: auto; }

    .input-group { flex-wrap: wrap; }
    .input-group > .form-control,
    .input-group > .form-select { flex: 1 1 100%; width: 100%; border-radius: 2px !important; }
    .input-group > .btn { margin-top: .45rem; border-radius: 2px !important; }

    .area-dashboard__hero h1 { font-size: 1.8rem; }
    .area-metric { min-height: 132px; }
    .area-workspace { grid-template-columns: 1fr; }
    .area-workspace__icon { width: 40px; height: 40px; }

    .public-landing__intro,
    .public-landing__aside { padding: 1.5rem; }
    .public-landing__hero h1 { letter-spacing: -.045em; }

    .app-footer { width: min(100% - 1.5rem, 1140px); }
}

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

/*
 * Navegación de módulos en teléfono.
 *
 * En lugar de comprimir muchos accesos en una fila con desplazamiento lateral,
 * los paneles muestran un único botón y despliegan una lista vertical al
 * tocarlo. Funciona igual para administración y para cada tipo de usuario.
 */
.sidebar-mobile-toggle { display: none; }
.mobile-module-heading,
.mobile-module-nav { display: none; }

@media (min-width: 992px) {
    .admin-sidebar__menu.collapse,
    .role-sidebar__menu.collapse {
        display: flex !important;
        flex: 1;
        min-height: 0;
        flex-direction: column;
    }
}

@media (max-width: 991.98px) {
    /* Los accesos del módulo viven dentro del menú hamburguesa principal. */
    .app-navbar .mobile-module-heading {
        display: block;
        margin: .5rem 0 .2rem;
        padding: .7rem .75rem .4rem;
        border-top: 1px solid #3f3f46;
        color: #a1a1aa;
        font-size: .72rem;
        font-weight: 750;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .app-navbar .mobile-module-nav { display: block; }
    .app-navbar .mobile-module-nav .nav-link {
        padding: .68rem .75rem;
        color: #f4f4f5;
        font-size: .95rem;
    }
    .app-navbar .mobile-module-nav .nav-link:hover,
    .app-navbar .mobile-module-nav .nav-link:focus { background: #27272a; }

    .app-navbar .mobile-module-nav--group { display: block; }
    .app-navbar .mobile-module-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; color: #f4f4f5; background: transparent; text-align: left; }
    .app-navbar .mobile-module-group-toggle > span { display: inline-flex; align-items: center; }
    .app-navbar .mobile-module-group-toggle > .bi { font-size: .75rem; transition: transform .16s ease; }
    .app-navbar .mobile-module-group-toggle:not(.collapsed) > .bi { transform: rotate(180deg); }
    .app-navbar .mobile-module-subnav { display: grid; gap: .1rem; margin: 0 0 .25rem 1.55rem; padding: .25rem 0 .25rem .65rem; border-left: 1px solid #3f3f46; list-style: none; }
    .app-navbar .mobile-module-subnav .nav-link { padding: .5rem .6rem; color: #d4d4d8; font-size: .85rem; }
    .app-navbar .mobile-module-subnav .nav-link.active { color: #fff; background: #27272a; }

    .admin-shell,
    .role-shell {
        display: block;
        min-height: 0;
    }

    .admin-sidebar,
    .role-sidebar {
        display: none;
        flex: 0 0 auto;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding: .55rem .75rem !important;
    }

    .admin-sidebar__brand,
    .role-sidebar__brand {
        min-height: 36px;
        padding: 0 !important;
    }

    .sidebar-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 43px;
        margin-top: .35rem;
        padding: .55rem .7rem;
        border: 1px solid #3f3f46;
        color: #f4f4f5;
        background: #18181b;
        font: inherit;
        font-size: .9rem;
        font-weight: 650;
        text-align: left;
    }

    .sidebar-mobile-toggle span { display: inline-flex; align-items: center; gap: .55rem; }
    .sidebar-mobile-toggle > i { transition: transform .16s ease; }
    .sidebar-mobile-toggle[aria-expanded="true"] > i { transform: rotate(180deg); }
    .sidebar-mobile-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

    .admin-sidebar__menu,
    .role-sidebar__menu { margin-top: .45rem; }

    .admin-sidebar__label,
    .role-sidebar__label {
        display: block;
        margin: .55rem .35rem .45rem;
    }

    .admin-sidebar__nav,
    .role-sidebar__nav {
        display: grid;
        width: 100%;
        min-height: 0;
        max-height: none;
        overflow: visible;
        gap: .22rem;
        padding: 0;
        white-space: normal;
    }

    .admin-sidebar__nav a,
    .role-sidebar__nav a {
        width: 100%;
        min-height: 42px !important;
        padding: .62rem .7rem !important;
        font-size: .92rem;
        line-height: 1.15;
    }

    .role-nav-group__toggle { min-height: 42px; padding: .62rem .7rem; }
    .admin-nav-group__toggle { min-height: 42px; padding: .62rem .7rem; }
    .role-nav-submenu, .admin-nav-submenu { margin-left: 1rem; }

    .admin-sidebar__footer,
    .role-sidebar__footer {
        display: block;
        margin-top: .55rem;
        padding-top: .55rem;
    }

    .admin-workspace,
    .role-workspace {
        height: auto !important;
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .admin-sidebar,
    .role-sidebar { padding: .5rem .65rem !important; }
}

/* Resúmenes operativos reutilizables en los paneles de gestión. */
.role-dashboard-intro {
    padding: clamp(1.35rem, 3vw, 2.25rem);
    border: 1px solid #d4d4d8;
    background: #fff;
}
.role-dashboard-intro h1 { margin: 0 0 .55rem; color: #18181b; font-size: clamp(1.8rem, 3.2vw, 2.45rem); letter-spacing: -.04em; }
.role-dashboard-intro p:last-child { max-width: 760px; margin: 0; color: #52525b; line-height: 1.6; }
.dashboard-kicker { margin: 0 0 .35rem; color: #71717a; font-size: .71rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-workbench { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border: 1px solid #d4d4d8; background: #d4d4d8; gap: 1px; }
.dashboard-workbench__tasks, .dashboard-workbench__chart { min-width: 0; padding: clamp(1.15rem, 2.4vw, 1.65rem); background: #fff; }
.dashboard-workbench__heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-workbench__heading h2 { margin: 0; color: #18181b; font-size: 1.16rem; }
.dashboard-workbench__heading .dashboard-kicker { margin-bottom: .25rem; }
.dashboard-task-list { display: grid; gap: .5rem; }
.dashboard-task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; min-height: 58px; gap: .7rem; padding: .65rem .7rem; border: 1px solid #e4e4e7; color: #27272a; text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.dashboard-task:hover { border-color: #a1a1aa; color: #111; background: #fafafa; }
.dashboard-task > i:first-child { display: grid; width: 28px; height: 28px; place-items: center; color: #2563eb; background: #eff6ff; }
.dashboard-task span { display: grid; gap: .08rem; color: #71717a; font-size: .82rem; line-height: 1.25; }
.dashboard-task strong { color: #18181b; font-size: 1.08rem; }
.dashboard-task__arrow { color: #71717a; font-size: 1.25rem; }
.dashboard-chart { display: grid; gap: .65rem; }
.dashboard-chart__total { color: #52525b; font-size: .8rem; white-space: nowrap; }
.dashboard-chart__item { display: grid; gap: .28rem; }
.dashboard-chart__label { display: flex; justify-content: space-between; gap: 1rem; color: #52525b; font-size: .79rem; }
.dashboard-chart__label strong { color: #18181b; }
.dashboard-chart__track { height: 8px; overflow: hidden; background: #e4e4e7; }
.dashboard-chart__bar { display: block; width: var(--dashboard-bar, 0%); min-width: 2px; height: 100%; background: #52525b; }
.dashboard-chart__bar.is-success { background: #15803d; }.dashboard-chart__bar.is-warning { background: #d97706; }.dashboard-chart__bar.is-info { background: #2563eb; }.dashboard-chart__bar.is-danger { background: #dc2626; }
.dashboard-workbench__note { margin: 1rem 0 0; padding-top: .85rem; border-top: 1px solid #e4e4e7; color: #71717a; font-size: .8rem; }

@media (max-width: 767.98px) {
    .dashboard-workbench { grid-template-columns: 1fr; }
    .dashboard-workbench__heading { align-items: start; flex-direction: column; }
}
