/* ============================================================
   RuniverseHub Components — clases reutilizables (rh-*)
   Pensadas para trasladar a templates PHP.
   Requiere runiverse-theme.css cargado antes.
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */
.rh-page { min-height: 100vh; background: hsl(var(--rh-bg)); color: hsl(var(--rh-text)); }
.rh-shell { max-width: var(--rh-container); margin: 0 auto; padding: 0 16px; }
.rh-section { padding: 64px 0; }
.rh-section--lg { padding: 96px 0; }

.rh-grid { display: grid; gap: 16px; }
.rh-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.rh-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.rh-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) {
  .rh-grid--3, .rh-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .rh-grid--2, .rh-grid--3, .rh-grid--4 { grid-template-columns: 1fr; }
  .rh-mobile-stack { display: flex; flex-direction: column; gap: 12px; }
}

/* ── Navbars ────────────────────────────────────────────── */
.rh-public-navbar,
.rh-internal-navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--rh-navbar-h);
  background: hsl(var(--rh-bg) / .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid hsl(var(--rh-border) / .6);
}
.rh-internal-navbar { background: hsl(var(--rh-bg-elev) / .9); }
.rh-navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.rh-navbar__brand { display: flex; align-items: center; gap: 8px; font-family: var(--rh-font-display); font-weight: 700; }
.rh-navbar__brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--rh-grad-primary);
  display: grid; place-items: center;
  color: hsl(var(--rh-primary-fg)); font-weight: 800; font-size: 13px;
}
.rh-navbar__links { display: flex; gap: 4px; }
.rh-navbar__link {
  padding: 8px 12px; border-radius: var(--rh-r-md);
  font-size: 14px; color: hsl(var(--rh-text-muted));
  transition: color .15s, background .15s;
}
.rh-navbar__link:hover { color: hsl(var(--rh-text)); background: hsl(var(--rh-surface)); }
.rh-navbar__link.is-active { color: hsl(var(--rh-primary)); background: hsl(var(--rh-primary) / .1); }

/* ── Sidebar interno ────────────────────────────────────── */
.rh-sidebar {
  background: hsl(var(--rh-bg-elev));
  border-right: 1px solid hsl(var(--rh-border));
  padding: 16px; min-height: calc(100vh - var(--rh-navbar-h));
}
.rh-sidebar__title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: hsl(var(--rh-text-subtle)); margin: 16px 8px 8px; }
.rh-sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--rh-r-md);
  font-size: 14px; color: hsl(var(--rh-text-muted));
}
.rh-sidebar__link:hover { background: hsl(var(--rh-surface)); color: hsl(var(--rh-text)); }
.rh-sidebar__link.is-active { background: hsl(var(--rh-primary) / .12); color: hsl(var(--rh-primary)); }

/* ── Cards ──────────────────────────────────────────────── */
.rh-card {
  background: hsl(var(--rh-bg-elev));
  border: 1px solid hsl(var(--rh-border));
  border-radius: var(--rh-r-lg);
  box-shadow: var(--rh-shadow-md);
}
.rh-glass-card {
  background: hsl(var(--rh-bg-elev) / .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid hsl(var(--rh-border) / .6);
  border-radius: var(--rh-r-lg);
  box-shadow: var(--rh-shadow-md);
}
.rh-card__header {
  padding: 14px 18px;
  border-bottom: 1px solid hsl(var(--rh-border) / .6);
  display: flex; align-items: center; justify-content: space-between;
}
.rh-card__body { padding: 18px; }
.rh-card__title { font-family: var(--rh-font-display); font-weight: 600; font-size: 15px; }

.rh-metric-card {
  background: hsl(var(--rh-bg-elev));
  border: 1px solid hsl(var(--rh-border));
  border-radius: var(--rh-r-lg);
  padding: 18px;
}
.rh-metric-card__label { font-size: 12px; color: hsl(var(--rh-text-muted)); margin-bottom: 6px; }
.rh-metric-card__value { font-family: var(--rh-font-display); font-weight: 700; font-size: 28px; color: hsl(var(--rh-text)); line-height: 1; }
.rh-metric-card__hint { font-size: 11px; color: hsl(var(--rh-text-subtle)); margin-top: 6px; }

.rh-event-card {
  background: hsl(var(--rh-bg-elev));
  border: 1px solid hsl(var(--rh-border));
  border-radius: var(--rh-r-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.rh-event-card:hover { border-color: hsl(var(--rh-primary) / .4); transform: translateY(-2px); }
.rh-event-card__top { height: 4px; background: var(--rh-grad-primary); }

.rh-operation-card {
  display: block;
  background: hsl(var(--rh-bg-elev));
  border: 1px solid hsl(var(--rh-border));
  border-radius: var(--rh-r-lg);
  padding: 18px; transition: all .15s;
}
.rh-operation-card:hover { border-color: hsl(var(--rh-primary) / .5); background: hsl(var(--rh-surface)); }
.rh-operation-card__icon {
  width: 38px; height: 38px; border-radius: var(--rh-r-md);
  background: hsl(var(--rh-primary) / .1);
  color: hsl(var(--rh-primary));
  display: grid; place-items: center; margin-bottom: 12px;
}

/* ── Botones ────────────────────────────────────────────── */
.rh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--rh-r-md);
  font-family: var(--rh-font-body); font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.rh-btn:disabled { opacity: .5; cursor: not-allowed; }
.rh-btn--lg { padding: 14px 22px; font-size: 15px; }
.rh-btn--sm { padding: 7px 12px; font-size: 13px; }

.rh-btn-primary {
  background: var(--rh-grad-primary);
  color: hsl(var(--rh-primary-fg));
  box-shadow: var(--rh-shadow-glow);
}
.rh-btn-primary:hover { filter: brightness(1.08); }

.rh-btn-secondary {
  background: hsl(var(--rh-surface));
  color: hsl(var(--rh-text));
  border-color: hsl(var(--rh-border));
}
.rh-btn-secondary:hover { background: hsl(var(--rh-surface-2)); border-color: hsl(var(--rh-border-strong)); }

.rh-btn-danger {
  background: hsl(var(--rh-danger) / .12);
  color: hsl(var(--rh-danger));
  border-color: hsl(var(--rh-danger) / .3);
}
.rh-btn-danger:hover { background: hsl(var(--rh-danger) / .2); }

.rh-btn-ghost { background: transparent; color: hsl(var(--rh-text-muted)); }
.rh-btn-ghost:hover { color: hsl(var(--rh-text)); background: hsl(var(--rh-surface)); }

/* ── Badges / chips ─────────────────────────────────────── */
.rh-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--rh-r-pill);
  font-size: 11px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent;
}
.rh-badge-success { background: hsl(var(--rh-success) / .12); color: hsl(var(--rh-success)); border-color: hsl(var(--rh-success) / .25); }
.rh-badge-warning { background: hsl(var(--rh-warning) / .12); color: hsl(var(--rh-warning)); border-color: hsl(var(--rh-warning) / .25); }
.rh-badge-danger  { background: hsl(var(--rh-danger)  / .12); color: hsl(var(--rh-danger));  border-color: hsl(var(--rh-danger)  / .25); }
.rh-badge-info    { background: hsl(var(--rh-info)    / .12); color: hsl(var(--rh-info));    border-color: hsl(var(--rh-info)    / .25); }
.rh-badge-offline { background: hsl(var(--rh-surface)); color: hsl(var(--rh-text-muted));   border-color: hsl(var(--rh-border)); }
.rh-badge-primary { background: hsl(var(--rh-primary) / .12); color: hsl(var(--rh-primary)); border-color: hsl(var(--rh-primary) / .25); }

/* ── Tablas ─────────────────────────────────────────────── */
.rh-table-wrap {
  background: hsl(var(--rh-bg-elev));
  border: 1px solid hsl(var(--rh-border));
  border-radius: var(--rh-r-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rh-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.rh-table thead th {
  text-align: left; padding: 12px 14px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: hsl(var(--rh-text-subtle));
  background: hsl(var(--rh-surface) / .4);
  border-bottom: 1px solid hsl(var(--rh-border));
}
.rh-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid hsl(var(--rh-border) / .5);
  color: hsl(var(--rh-text));
}
.rh-table tbody tr:hover td { background: hsl(var(--rh-surface) / .35); }
.rh-table__pos { font-family: var(--rh-font-display); font-weight: 700; color: hsl(var(--rh-primary)); }
.rh-table__time { font-family: var(--rh-font-display); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Forms ──────────────────────────────────────────────── */
.rh-form-section { display: flex; flex-direction: column; gap: 14px; }
.rh-form-section__title { font-family: var(--rh-font-display); font-weight: 600; font-size: 14px; color: hsl(var(--rh-text)); margin-bottom: 4px; }
.rh-form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 600px) { .rh-form-row { grid-template-columns: 1fr; } }
.rh-label { font-size: 12px; color: hsl(var(--rh-text-muted)); display: block; margin-bottom: 4px; }
.rh-input, .rh-select, .rh-textarea {
  width: 100%; padding: 10px 12px;
  background: hsl(var(--rh-surface));
  border: 1px solid hsl(var(--rh-border));
  border-radius: var(--rh-r-md);
  color: hsl(var(--rh-text)); font-size: 14px; font-family: inherit;
  transition: border-color .15s;
}
.rh-input:focus, .rh-select:focus, .rh-textarea:focus { outline: none; border-color: hsl(var(--rh-primary) / .6); }
.rh-input::placeholder { color: hsl(var(--rh-text-subtle)); }

/* ── Tabs ───────────────────────────────────────────────── */
.rh-tabs { display: flex; gap: 2px; padding: 4px; background: hsl(var(--rh-surface)); border: 1px solid hsl(var(--rh-border)); border-radius: var(--rh-r-md); overflow-x: auto; }
.rh-tab {
  padding: 7px 14px; border-radius: 6px; font-size: 13px;
  color: hsl(var(--rh-text-muted)); cursor: pointer; white-space: nowrap;
  background: transparent; border: 0; font-family: inherit;
}
.rh-tab.is-active { background: hsl(var(--rh-primary) / .15); color: hsl(var(--rh-primary)); }

/* ── Stepper ────────────────────────────────────────────── */
.rh-stepper { display: flex; align-items: center; gap: 8px; }
.rh-stepper__item { display: flex; align-items: center; gap: 8px; flex: 1; }
.rh-stepper__dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  border: 1px solid hsl(var(--rh-border)); color: hsl(var(--rh-text-muted));
}
.rh-stepper__item.is-current .rh-stepper__dot { border-color: hsl(var(--rh-primary)); color: hsl(var(--rh-primary)); }
.rh-stepper__item.is-done .rh-stepper__dot { background: hsl(var(--rh-primary)); color: hsl(var(--rh-primary-fg)); border-color: hsl(var(--rh-primary)); }
.rh-stepper__bar { flex: 1; height: 2px; background: hsl(var(--rh-border)); border-radius: 2px; }
.rh-stepper__bar.is-done { background: hsl(var(--rh-primary)); }

/* ── Alerts ─────────────────────────────────────────────── */
.rh-alert {
  display: flex; gap: 10px; padding: 12px 14px;
  border-radius: var(--rh-r-md);
  border: 1px solid hsl(var(--rh-border));
  background: hsl(var(--rh-bg-elev));
  font-size: 13px; color: hsl(var(--rh-text));
}
.rh-alert--warning { background: hsl(var(--rh-warning) / .08); border-color: hsl(var(--rh-warning) / .3); color: hsl(var(--rh-warning)); }
.rh-alert--danger  { background: hsl(var(--rh-danger)  / .08); border-color: hsl(var(--rh-danger)  / .3); color: hsl(var(--rh-danger)); }
.rh-alert--info    { background: hsl(var(--rh-info)    / .08); border-color: hsl(var(--rh-info)    / .3); color: hsl(var(--rh-info)); }
.rh-alert--success { background: hsl(var(--rh-success) / .08); border-color: hsl(var(--rh-success) / .3); color: hsl(var(--rh-success)); }

/* ── Empty state ────────────────────────────────────────── */
.rh-empty-state {
  text-align: center; padding: 48px 20px;
  border: 1px dashed hsl(var(--rh-border));
  border-radius: var(--rh-r-lg);
  color: hsl(var(--rh-text-muted));
}

/* ── Panel ──────────────────────────────────────────────── */
.rh-panel {
  background: hsl(var(--rh-bg-elev));
  border: 1px solid hsl(var(--rh-border));
  border-radius: var(--rh-r-lg);
  padding: 20px;
}

/* ── Utilidades ─────────────────────────────────────────── */
.rh-text-gradient {
  background: var(--rh-grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.rh-divider { height: 1px; background: hsl(var(--rh-border)); margin: 16px 0; }
.rh-muted { color: hsl(var(--rh-text-muted)); }
.rh-tabular { font-variant-numeric: tabular-nums; }

/* ============================================================
   RuniverseHub Organizer Shell v12.54
   Topbar + sidebar Lovable-first.
   Objetivo: restaurar el layout tipo referencia Lovable sin afectar
   el contenido interno de Builder/Paso 1/Paso 2/Paso 3.
   ============================================================ */

.rh-topbar,
.rh-topbar *,
.rh-topbar-mobile-panel,
.rh-topbar-mobile-panel *,
.rh-ec-organizer-sidebar,
.rh-ec-organizer-sidebar * {
  box-sizing: border-box;
}

.rh-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  min-height: 64px;
  background: linear-gradient(180deg, hsl(var(--rh-bg) / .96), hsl(var(--rh-bg-elev) / .90));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid hsl(var(--rh-border) / .72);
  box-shadow: 0 14px 34px hsl(228 24% 4% / .24);
}

.rh-topbar-inner {
  width: min(100% - 32px, 1480px);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rh-topbar a,
.rh-ec-organizer-sidebar a {
  text-decoration: none;
}

.rh-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: hsl(var(--rh-text));
  font-family: var(--rh-font-display), system-ui, sans-serif;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.rh-topbar-brand > span:last-child {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rh-topbar-brand > span:last-child span {
  color: hsl(var(--rh-primary));
}

.rh-topbar-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  background: var(--rh-grad-primary);
  color: hsl(var(--rh-primary-fg));
  font-weight: 950;
  box-shadow: 0 0 26px hsl(var(--rh-primary) / .20);
}

.rh-topbar-desktop-nav,
.rh-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.rh-topbar-desktop-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.rh-topbar-link,
.rh-topbar-action-link,
.rh-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  color: hsl(var(--rh-text-muted));
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.rh-topbar-link:hover,
.rh-topbar-action-link:hover,
.rh-topbar-link.is-active {
  color: hsl(var(--rh-text));
  background: hsl(var(--rh-surface) / .72);
  border-color: hsl(var(--rh-border) / .82);
}

.rh-topbar-btn-primary {
  color: hsl(var(--rh-primary-fg));
  background: var(--rh-grad-primary);
  border-color: transparent;
  box-shadow: 0 0 22px hsl(var(--rh-primary) / .16);
}

.rh-topbar-menu-btn,
.rh-topbar-menu-close {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid hsl(var(--rh-border) / .82);
  background: hsl(var(--rh-surface) / .76);
  color: hsl(var(--rh-text));
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.rh-topbar svg,
.rh-topbar-mobile-panel svg,
.rh-ec-organizer-sidebar svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rh-topbar-menu-btn svg,
.rh-topbar-menu-close svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  flex-basis: 22px;
}

.rh-topbar-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  background:
    radial-gradient(circle at 8% 6%, hsl(var(--rh-primary) / .18), transparent 34%),
    linear-gradient(180deg, hsl(var(--rh-bg) / .985), hsl(var(--rh-bg-elev) / .985));
  color: hsl(var(--rh-text));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 28px 34px;
}

.rh-topbar-mobile-panel.is-open,
.rh-topbar-mobile-panel[aria-hidden="false"] {
  display: block;
}

.rh-topbar-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.rh-topbar-mobile-head .rh-topbar-brand {
  font-size: 28px;
  gap: 14px;
}

.rh-topbar-mobile-head .rh-topbar-brand-mark {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  border-radius: 20px;
  font-size: 27px;
}

.rh-topbar-mobile-head .rh-topbar-menu-close {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: hsl(var(--rh-surface) / .82);
}

.rh-topbar-mobile-body,
.rh-topbar-mobile-section {
  display: grid;
  gap: 8px;
}

.rh-topbar-mobile-section {
  padding: 16px 0;
  border-top: 1px solid hsl(var(--rh-border) / .32);
}

.rh-topbar-mobile-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.rh-topbar-mobile-kicker {
  margin: 6px 0 10px;
  padding-left: 2px;
  color: hsl(var(--rh-text-subtle));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rh-topbar-mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 18px;
  color: hsl(var(--rh-text-muted));
  font-size: 24px;
  font-weight: 850;
  line-height: 1.15;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.rh-topbar-mobile-link:hover,
.rh-topbar-mobile-link.is-active {
  color: hsl(var(--rh-primary));
  background: hsl(var(--rh-primary) / .12);
  border-color: hsl(var(--rh-primary) / .16);
  box-shadow: 0 0 34px hsl(var(--rh-primary) / .08);
}

.rh-topbar-mobile-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.rh-topbar-mobile-icon svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px;
  max-height: 24px;
  flex-basis: 24px;
}

.rh-topbar-mobile-actions {
  display: grid;
  gap: 12px;
  padding: 22px 0 0;
  border-top: 1px solid hsl(var(--rh-border) / .32);
  text-align: center;
}

.rh-topbar-mobile-primary,
.rh-topbar-mobile-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 900;
  border: 1px solid hsl(var(--rh-border) / .82);
}

.rh-topbar-mobile-primary {
  color: hsl(var(--rh-primary-fg));
  background: var(--rh-grad-primary);
  border-color: transparent;
  box-shadow: 0 0 30px hsl(var(--rh-primary) / .18);
}

.rh-topbar-mobile-secondary {
  color: hsl(var(--rh-text-muted));
  background: transparent;
  border-color: transparent;
}

body.rh-topbar-mobile-open {
  overflow: hidden;
}

.rh-ec-organizer-layout {
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.rh-ec-main,
.rh-ec-page,
.rh-org-dashboard-main,
.rh-org-events-main,
.rh-org-reg-main,
.rh-fin-main,
.rh-bibs-main,
.rh-timer-main,
.rh-staff-main,
.rh-result-review-main {
  min-width: 0;
}

.rh-ec-organizer-sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  min-height: calc(100vh - 100px);
  padding: 18px 0 28px;
  display: grid;
  align-content: start;
  gap: 22px;
  background:
    radial-gradient(circle at 20% 0%, hsl(var(--rh-primary) / .06), transparent 36%),
    linear-gradient(180deg, hsl(var(--rh-bg-elev) / .62), hsl(var(--rh-bg) / .42));
  border-right: 1px solid hsl(var(--rh-border) / .42);
}

.rh-ec-sidebar-section {
  padding: 0 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.rh-ec-sidebar-kicker {
  margin: 8px 8px 12px;
  color: hsl(var(--rh-text-subtle));
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rh-ec-sidebar-nav {
  display: grid;
  gap: 6px;
}

.rh-ec-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 13px;
  color: hsl(var(--rh-text-muted));
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.rh-ec-sidebar-link:hover,
.rh-ec-sidebar-link.is-active {
  color: hsl(var(--rh-text));
  background: hsl(var(--rh-surface) / .62);
  border-color: hsl(var(--rh-border) / .62);
}

.rh-ec-sidebar-link.is-active {
  color: hsl(var(--rh-primary));
  background: hsl(var(--rh-primary) / .12);
  border-color: hsl(var(--rh-primary) / .16);
  box-shadow: 0 0 28px hsl(var(--rh-primary) / .09);
}

.rh-ec-sidebar-link.is-disabled {
  opacity: .48;
  cursor: not-allowed;
}

.rh-ec-sidebar-link > span:not(.rh-ec-sidebar-icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rh-ec-sidebar-link em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: hsl(var(--rh-text-subtle));
}

.rh-ec-sidebar-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: currentColor;
  background: transparent;
  border: 0;
}

.rh-ec-sidebar-icon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  flex-basis: 16px;
}

@media (max-width: 1199px) {
  .rh-topbar-inner {
    width: min(100% - 24px, 1180px);
  }

  .rh-topbar-desktop-nav,
  .rh-topbar-actions {
    display: none;
  }

  .rh-topbar-menu-btn,
  .rh-topbar-menu-close {
    display: inline-flex;
  }

  .rh-ec-organizer-layout {
    width: min(100% - 18px, 1180px);
    display: block;
  }

  .rh-ec-organizer-sidebar {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .rh-topbar {
    min-height: 62px;
  }

  .rh-topbar-inner {
    width: min(100% - 18px, 1180px);
    min-height: 62px;
  }

  .rh-topbar-brand {
    font-size: 15px;
  }

  .rh-topbar-brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
  }

  .rh-topbar-mobile-panel {
    padding: 28px 28px 36px;
  }

  .rh-topbar-mobile-head .rh-topbar-brand {
    font-size: 26px;
  }

  .rh-topbar-mobile-head .rh-topbar-brand-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .rh-topbar-mobile-link {
    font-size: 22px;
    min-height: 50px;
    padding: 9px 12px;
  }
}

@media (max-width: 380px) {
  .rh-topbar-mobile-head .rh-topbar-brand {
    font-size: 22px;
  }

  .rh-topbar-mobile-head .rh-topbar-brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .rh-topbar-mobile-link {
    font-size: 20px;
  }
}



/* ============================================================
   RuniverseHub Organizer Shell v12.55
   Mobile hamburger compact density fix.
   Scope: solo menú hamburguesa móvil. No altera sidebar desktop.
   ============================================================ */
@media (max-width: 1199px) {
  .rh-topbar-mobile-panel {
    padding: 14px 18px 18px !important;
    max-height: 100dvh;
    overflow-y: auto;
  }

  .rh-topbar-mobile-head {
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .rh-topbar-mobile-head .rh-topbar-brand {
    gap: 10px !important;
    font-size: 21px !important;
    letter-spacing: -0.04em;
  }

  .rh-topbar-mobile-head .rh-topbar-brand-mark {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
    border-radius: 15px !important;
    font-size: 21px !important;
  }

  .rh-topbar-mobile-head .rh-topbar-menu-close {
    width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
  }

  .rh-topbar-mobile-head .rh-topbar-menu-close svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-basis: 20px !important;
  }

  .rh-topbar-mobile-body,
  .rh-topbar-mobile-section {
    gap: 4px !important;
  }

  .rh-topbar-mobile-section {
    padding: 8px 0 !important;
  }

  .rh-topbar-mobile-kicker {
    margin: 3px 0 5px !important;
    font-size: 9px !important;
    letter-spacing: .15em !important;
  }

  .rh-topbar-mobile-link {
    min-height: 36px !important;
    padding: 7px 10px !important;
    border-radius: 14px !important;
    gap: 10px !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
    font-weight: 850 !important;
  }

  .rh-topbar-mobile-icon {
    width: 19px !important;
    height: 19px !important;
    flex-basis: 19px !important;
  }

  .rh-topbar-mobile-icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-basis: 18px !important;
  }

  .rh-topbar-mobile-actions {
    gap: 8px !important;
    padding: 10px 0 0 !important;
  }

  .rh-topbar-mobile-primary,
  .rh-topbar-mobile-secondary {
    min-height: 40px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 640px) {
  .rh-topbar-mobile-panel {
    padding: 14px 16px 18px !important;
  }

  .rh-topbar-mobile-head .rh-topbar-brand {
    font-size: 20px !important;
  }

  .rh-topbar-mobile-head .rh-topbar-brand-mark {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
    font-size: 20px !important;
  }

  .rh-topbar-mobile-head .rh-topbar-menu-close {
    width: 42px !important;
    height: 42px !important;
  }

  .rh-topbar-mobile-link {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 15px !important;
  }

  .rh-topbar-mobile-icon,
  .rh-topbar-mobile-icon svg {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex-basis: 17px !important;
  }
}

@media (max-width: 380px) {
  .rh-topbar-mobile-head .rh-topbar-brand {
    font-size: 18px !important;
  }

  .rh-topbar-mobile-head .rh-topbar-brand-mark {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
    font-size: 18px !important;
  }

  .rh-topbar-mobile-link {
    min-height: 32px !important;
    font-size: 14px !important;
  }
}
