:root {

  --adm-bg: #070c14;
  --adm-bg-2: #0a1120;
  --adm-surface: #0e1726;
  --adm-surface-2: #121f33;
  --adm-border: rgba(80, 130, 200, 0.12);
  --adm-border-2: rgba(80, 130, 200, 0.2);


  --adm-text: #f0f6fc;
  --adm-text-muted: #cbd5e1;
  --adm-text-subtle: #b5cce8;


  --adm-accent: #3fa0e8;
  --adm-accent-dim: rgba(63, 160, 232, 0.15);
  --adm-accent-rgb: 63, 160, 232;


  --adm-success: #22c55e;
  --adm-error: #ef4444;
  --adm-warning: #f59e0b;
  --adm-purple: #a855f7;
  --adm-green: #22c55e;
  --adm-orange: #f97316;


  --adm-sidebar-w: 260px;
  --adm-topbar-h: 64px;
  --adm-radius: 10px;
  --adm-radius-sm: 6px;


  --adm-font: 'Outfit', system-ui, -apple-system, sans-serif;


  --adm-trans: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: var(--adm-font);
  background: var(--adm-bg);
  color: var(--adm-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Skip link para accesibilidad WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--adm-accent);
  color: #070c14 !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--adm-radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
}

/* Indicador de foco visible WCAG 2.4.7 */
:focus-visible {
  outline: 3px solid var(--adm-accent) !important;
  outline-offset: 3px !important;
}

/* Reducción de movimiento para usuarios con preferencias de accesibilidad WCAG 2.3.3 */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: var(--adm-accent);
  text-decoration: none;
}

a:hover {
  color: #60c4ff;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

p {
  color: var(--adm-text-muted);
}

.adm-body {
  display: grid;
  grid-template-columns: auto 1fr;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.adm-body.sidebar-collapsed {
  grid-template-columns: auto 1fr;
}

/* Botón de cierre del sidebar: oculto en escritorio, visible en móvil vía @media */
.adm-sidebar-close {
  display: none;
}

.adm-sidebar {
  width: var(--adm-sidebar-w);
  background: var(--adm-surface);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: width var(--adm-trans);
  z-index: 200;
}

.adm-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.adm-content {
  flex: 1;
  padding: 1.75rem clamp(1rem, 3vw, 2rem);
  width: 100%;
  min-width: 0;
}

.adm-sidebar::-webkit-scrollbar {
  width: 4px;
}

.adm-sidebar::-webkit-scrollbar-thumb {
  background: var(--adm-border-2);
  border-radius: 2px;
}

.adm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-brand-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(63, 160, 232, 0.4));
}

.adm-brand-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(63, 160, 232, 0.3));
}

.adm-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.adm-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--adm-text);
  letter-spacing: 0.06em;
}

.adm-brand-sub {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}


.adm-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  transition: padding var(--adm-trans);
}

.adm-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.875rem;
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--adm-trans);
  position: relative;
  white-space: nowrap;
}

.adm-nav-link:hover {
  background: var(--adm-accent-dim);
  color: var(--adm-text);
}

.adm-nav-link--active {
  background: var(--adm-accent-dim);
  color: var(--adm-accent) !important;
  font-weight: 600;
}

.adm-nav-link--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--adm-accent);
  border-radius: 0 3px 3px 0;
}

.adm-nav-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.adm-nav-link--active .adm-nav-icon,
.adm-nav-link:hover .adm-nav-icon {
  opacity: 1;
}

.adm-nav-badge {
  margin-left: auto;
  background: var(--adm-error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  line-height: 1.4;
}

.adm-sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--adm-border);
  transition: padding var(--adm-trans);
}

.adm-logout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.875rem;
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--adm-trans);
}

.adm-logout-link:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ─── SIDEBAR MINIMIZED / COLLAPSED STATE ────────────────────── */
body.sidebar-collapsed .adm-sidebar {
  width: 72px;
}

body.sidebar-collapsed .adm-brand-text,
body.sidebar-collapsed .adm-nav-link span,
body.sidebar-collapsed .adm-nav-badge,
body.sidebar-collapsed .adm-logout-link span {
  display: none !important;
}

body.sidebar-collapsed .adm-sidebar-brand {
  justify-content: center;
  padding: 1.25rem 0.5rem;
}

body.sidebar-collapsed .adm-nav {
  padding: 1rem 0.5rem;
}

body.sidebar-collapsed .adm-nav-link {
  justify-content: center;
  padding: 0.75rem 0;
  gap: 0;
}

body.sidebar-collapsed .adm-sidebar-footer {
  padding: 1rem 0.5rem;
}

body.sidebar-collapsed .adm-logout-link {
  justify-content: center;
  padding: 0.75rem 0;
  gap: 0;
}


.adm-topbar {
  height: var(--adm-topbar-h);
  background: var(--adm-surface);
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.adm-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adm-sidebar-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-text-muted);
  transition: all var(--adm-trans);
}

.adm-sidebar-toggle:hover {
  background: var(--adm-accent-dim);
  color: var(--adm-accent);
  border-color: var(--adm-border-2);
}

.adm-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--adm-text);
  letter-spacing: -0.01em;
}

.adm-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-topbar-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.875rem;
  border: 1px solid var(--adm-border);
  border-radius: 50px;
  color: var(--adm-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--adm-trans);
}

.adm-topbar-action:hover {
  border-color: var(--adm-border-2);
  color: var(--adm-text);
  background: var(--adm-accent-dim);
}

.adm-session-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.85rem;
  background: rgba(63, 160, 232, 0.08);
  border: 1px solid rgba(63, 160, 232, 0.25);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  transition: all 0.3s ease;
  user-select: none;
}

.adm-session-timer strong {
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.84rem;
}

.adm-session-timer--warning {
  background: rgba(248, 113, 113, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #f87171 !important;
  animation: timerWarningPulse 1s infinite alternate;
}

.adm-session-timer--warning strong {
  color: #f87171 !important;
}

/* ============================================================
   GRID DE SELECCIÓN DE GRUPOS DESTINATARIOS EN ANUNCIOS
   ============================================================ */
.adm-target-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--adm-surface-2) 0%, rgba(14, 23, 38, 0.8) 100%);
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--adm-border-2);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.adm-target-group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--adm-text);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  transition: all var(--adm-trans);
  user-select: none;
}

.adm-target-group-item:hover {
  background: rgba(63, 160, 232, 0.08);
  border-color: var(--adm-border-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.adm-target-group-item:has(input:checked) {
  border-color: var(--adm-accent);
  background: rgba(63, 160, 232, 0.15);
  color: #fff;
  box-shadow: 0 0 14px rgba(63, 160, 232, 0.25);
}

.adm-target-group-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--adm-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.adm-target-group-item--global {
  grid-column: 1 / -1;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(63, 160, 232, 0.08);
  border: 1px dashed rgba(63, 160, 232, 0.35);
  padding: 0.8rem 1.2rem;
  justify-content: flex-start;
}

.adm-target-group-item--global:hover {
  background: rgba(63, 160, 232, 0.16);
  border-color: #38bdf8;
}

.adm-target-group-item--global:has(input:checked) {
  background: linear-gradient(135deg, rgba(63, 160, 232, 0.22) 0%, rgba(29, 111, 168, 0.22) 100%);
  border: 1px solid #38bdf8;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.adm-group-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
  transition: transform var(--adm-trans);
}

.adm-target-group-item:hover .adm-group-dot {
  transform: scale(1.2);
}

@keyframes timerWarningPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(248, 113, 113, 0);
  }

  100% {
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
  }
}


.adm-user-menu {
  position: relative;
}

.adm-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--adm-border);
  border-radius: 50px;
  background: transparent;
  color: var(--adm-text);
  cursor: pointer;
  transition: all var(--adm-trans);
}

.adm-user-btn:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-border-2);
}

.adm-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.adm-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 1px;
}

.adm-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1;
}

.adm-user-role {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  line-height: 1;
}

.adm-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius);
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 300;
}

.adm-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--adm-trans);
}

.adm-dropdown-item:hover {
  background: var(--adm-accent-dim);
  color: var(--adm-text);
}

.adm-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.adm-dropdown-divider {
  height: 1px;
  background: var(--adm-border);
  margin: 4px 0;
}


.adm-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.adm-welcome-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.adm-welcome h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--adm-text);
  margin-bottom: 0;
}

.adm-welcome p {
  font-size: 0.875rem;
  margin-top: 2px;
}

.adm-welcome-date {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  background: var(--adm-surface);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--adm-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.adm-stat-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: all var(--adm-trans);
  position: relative;
}

.adm-stat-card:hover {
  border-color: var(--adm-border-2);
  background: var(--adm-surface-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.adm-stat-card--alert {
  border-color: rgba(249, 115, 22, 0.3);
}

.adm-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--adm-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-stat-icon--blue {
  background: rgba(63, 160, 232, 0.15);
  color: var(--adm-accent);
}

.adm-stat-icon--purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--adm-purple);
}

.adm-stat-icon--green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--adm-green);
}

.adm-stat-icon--orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--adm-orange);
}

.adm-stat-info {
  flex: 1;
}

.adm-stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--adm-text);
  line-height: 1;
  margin-bottom: 2px;
}

.adm-stat-label {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.adm-stat-arrow {
  color: var(--adm-text-subtle);
  margin-left: auto;
}


.adm-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.adm-panels-grid>.adm-panel:last-child {
  grid-column: 1 / -1;
}

.adm-panels-two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.adm-panels-two-cols>.adm-panel:last-child {
  grid-column: auto;
}

/* Eventos mini en Dashboard */
.adm-events-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-event-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  transition: all var(--adm-trans);
}

.adm-event-mini:hover {
  border-color: var(--adm-border-2);
  transform: translateX(4px);
}

.adm-event-mini-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  flex-shrink: 0;
}

.adm-event-mini-date span:first-child {
  font-size: 1.1rem;
  color: var(--adm-accent);
}

.adm-event-mini-date span:last-child {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--adm-text-muted);
}

.adm-event-mini-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.adm-event-mini-info strong {
  font-size: 0.88rem;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-event-mini-info span {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
}

.adm-event-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--adm-accent);
}

.adm-event-mini-dot--competicion {
  background: #f87171;
}

.adm-event-mini-dot--gala {
  background: #c084fc;
}

.adm-event-mini-dot--exhibicion {
  background: #4ade80;
}

.adm-event-mini-dot--inscripcion {
  background: #3fa0e8;
}

.adm-event-mini-dot--entreno {
  background: #facc15;
}

.adm-event-mini-dot--otro {
  background: #94a3b8;
}

/* Accesos Rápidos */
.adm-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.adm-quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--adm-trans);
}

.adm-quick-btn:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-border-2);
  color: var(--adm-accent);
  transform: translateY(-2px);
}

/* Lista Compacta de Mensajes en Dashboard */
.adm-dash-messages-list {
  display: flex;
  flex-direction: column;
}

.adm-dash-msg-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--adm-border);
  text-decoration: none;
  color: inherit;
  transition: background var(--adm-trans);
}

.adm-dash-msg-item:last-child {
  border-bottom: none;
}

.adm-dash-msg-item:hover {
  background: var(--adm-surface-2);
}

.adm-dash-msg-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--adm-accent-dim);
  color: var(--adm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.adm-dash-msg-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-dash-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-dash-msg-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-dash-msg-date {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.adm-dash-msg-email {
  font-size: 0.8rem;
  color: var(--adm-text-subtle);
  word-break: break-all;
  line-height: 1.3;
}

.adm-dash-msg-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--adm-text-muted);
  border: 1px solid var(--adm-border);
}


.adm-panel {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.adm-panel--config {
  margin-bottom: 1.25rem;
}

.adm-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--adm-border);
}

.adm-panel-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--adm-text);
  letter-spacing: -0.01em;
}

.adm-panel-link {
  font-size: 0.78rem;
  color: var(--adm-accent);
  font-weight: 600;
  transition: color var(--adm-trans);
}

.adm-panel-link:hover {
  color: #60c4ff;
}

.adm-panel-body {
  padding: 1rem 1.25rem;
}

.adm-empty {
  color: var(--adm-text-subtle);
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem 0;
}


.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.adm-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--adm-border);
}

.adm-table td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--adm-border);
  color: var(--adm-text-muted);
  vertical-align: middle;
}

.adm-table td strong {
  color: var(--adm-text);
  font-weight: 600;
}

.adm-table tr:last-child td {
  border-bottom: none;
}

.adm-table tr:hover td {
  background: rgba(63, 160, 232, 0.04);
}

.adm-table tr[role="button"]:focus-visible,
.adm-audit-card[role="button"]:focus-visible {
  outline: 2px solid var(--adm-accent);
  outline-offset: -2px;
  background: rgba(63, 160, 232, 0.12) !important;
}

.adm-table--striped tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.1);
}

.adm-table a {
  color: var(--adm-accent);
  font-size: 0.82rem;
}

.adm-row--unread td {
  background: rgba(63, 160, 232, 0.04);
}

.adm-cell-main {
  color: var(--adm-text);
  font-weight: 600;
  font-size: 0.84rem;
}

.adm-cell-sub {
  color: var(--adm-text-subtle);
  font-size: 0.75rem;
  margin-top: 1px;
}

.adm-msg-preview {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-actions-col {
  white-space: nowrap;
}

.adm-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
  transition: all var(--adm-trans);
  text-decoration: none;
}

.adm-action-btn--primary {
  background: rgba(63, 160, 232, 0.15);
  color: var(--adm-accent);
}

.adm-action-btn--primary:hover {
  background: rgba(63, 160, 232, 0.3);
  color: #60c4ff;
}

.adm-action-btn--danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.adm-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.25);
}


.adm-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.adm-badge--new {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.adm-badge--read {
  background: rgba(100, 116, 139, 0.15);
  color: #cbd5e1;
}

.adm-badge--active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.adm-badge--alerta {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.adm-badge--info {
  background: rgba(63, 160, 232, 0.15);
  color: #60c4ff;
}

.adm-badge--exito {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.adm-badge--inactive {
  background: rgba(100, 116, 139, 0.15);
  color: #cbd5e1;
}

.adm-dash-msg-text--empty {
  font-style: italic;
  opacity: 0.8;
}


.adm-events-mini {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adm-event-mini {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.adm-event-mini-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 42px;
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  padding: 0.25rem;
  flex-shrink: 0;
}

.adm-event-mini-date span:first-child {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--adm-text);
  line-height: 1;
}

.adm-event-mini-date span:last-child {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adm-event-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.adm-event-mini-dot--competicion {
  background: #f87171;
}

.adm-event-mini-dot--gala {
  background: #c084fc;
}

.adm-event-mini-dot--exhibicion {
  background: #4ade80;
}

.adm-event-mini-dot--inscripcion {
  background: #3fa0e8;
}

.adm-event-mini-dot--entreno {
  background: #facc15;
}

.adm-event-mini-dot--otro {
  background: #94a3b8;
}

.adm-event-mini-info {
  flex: 1;
}

.adm-event-mini-info strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1.3;
}

.adm-event-mini-info span {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
}


.adm-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.adm-quick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--adm-trans);
  text-decoration: none;
}

.adm-quick-btn:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-border-2);
  color: var(--adm-text);
}


.adm-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.875rem 1.1rem;
  border-radius: var(--adm-radius);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.adm-alert--error,
.adm-alert--alerta {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.adm-alert--success,
.adm-alert--exito {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.adm-alert--info {
  background: rgba(63, 160, 232, 0.12);
  border: 1px solid rgba(63, 160, 232, 0.3);
  color: #60c4ff;
}


.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-family: var(--adm-font);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--adm-trans);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.adm-btn--primary {
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  color: #fff;
  box-shadow: 0 2px 12px rgba(63, 160, 232, 0.3);
}

.adm-btn--primary:hover {
  box-shadow: 0 4px 20px rgba(63, 160, 232, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

.adm-btn--secondary {
  background: rgba(63, 160, 232, 0.12);
  border: 1px solid rgba(63, 160, 232, 0.3);
  color: #3fa0e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.adm-btn--secondary:hover {
  background: rgba(63, 160, 232, 0.22);
  border-color: rgba(63, 160, 232, 0.5);
  color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(63, 160, 232, 0.25);
}

.adm-btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.adm-group-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-btn--outline-sm,
.adm-btn--secondary-sm,
.adm-btn--back-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--adm-font);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  line-height: 1.2;
  cursor: pointer;
}

.adm-btn--outline-sm {
  background: var(--adm-surface-1, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--adm-border, rgba(255, 255, 255, 0.12));
  color: var(--adm-text, #e2e8f0);
}

.adm-btn--outline-sm:hover {
  background: var(--adm-surface-2, rgba(255, 255, 255, 0.1));
  border-color: var(--adm-border-2, rgba(63, 160, 232, 0.4));
  color: var(--adm-accent, #3fa0e8);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.adm-btn--secondary-sm {
  background: rgba(63, 160, 232, 0.1);
  border: 1px solid rgba(63, 160, 232, 0.25);
  color: #3fa0e8;
}

.adm-btn--secondary-sm:hover {
  background: rgba(63, 160, 232, 0.2);
  border-color: rgba(63, 160, 232, 0.45);
  color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(63, 160, 232, 0.25);
}

.adm-btn--back-sm {
  background: var(--adm-surface-2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--adm-border, rgba(255, 255, 255, 0.1));
  color: var(--adm-text-muted, #94a3b8);
}

.adm-btn--back-sm:hover {
  background: var(--adm-surface-3, rgba(255, 255, 255, 0.08));
  color: var(--adm-text, #f8fafc);
  border-color: var(--adm-border-2, rgba(255, 255, 255, 0.2));
  transform: translateY(-1px);
}

.adm-btn-ghost {
  background: transparent;
  border: 1px solid var(--adm-border);
  color: var(--adm-text-muted);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--adm-trans);
}

.adm-btn-ghost:hover {
  border-color: var(--adm-border-2);
  color: var(--adm-text);
}


.adm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.adm-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-text);
  letter-spacing: 0.02em;
}

.adm-form-group input,
.adm-form-group select,
.adm-form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  transition: border-color var(--adm-trans), box-shadow var(--adm-trans);
}

.adm-form-group input:focus,
.adm-form-group select:focus,
.adm-form-group textarea:focus {
  outline: none;
  border-color: rgba(var(--adm-accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--adm-accent-rgb), 0.1);
}

.adm-form-group input::placeholder {
  color: var(--adm-text-subtle);
}

.adm-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.adm-form-group select option {
  background: var(--adm-surface);
}

.adm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.adm-checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.adm-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}


.adm-input-wrap {
  position: relative;
}

.adm-input-wrap input {
  padding-left: 2.5rem;
}

.adm-input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text-subtle);
  pointer-events: none;
}

.adm-pwd-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text-subtle);
  transition: color var(--adm-trans);
}

.adm-pwd-toggle:hover {
  color: var(--adm-accent);
}


.adm-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.adm-form-group--wide {
  grid-column: 1 / -1;
}

.adm-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 2rem;
}


.adm-page-toolbar,
.adm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--adm-border);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.adm-page-header>div:first-child,
.adm-page-toolbar__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-page-toolbar .adm-page-title,
.adm-page-header .adm-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--adm-text);
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-page-toolbar .adm-page-title svg,
.adm-page-header .adm-page-title svg {
  color: var(--adm-accent, #3fa0e8);
  flex-shrink: 0;
}

.adm-page-desc {
  font-size: 0.9rem;
  color: var(--adm-text-muted);
  margin: 0;
  line-height: 1.45;
}

.adm-filter-tabs {
  display: flex;
  gap: 6px;
}

.adm-filter-tab {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-text-muted);
  border: 1px solid var(--adm-border);
  transition: all var(--adm-trans);
  text-decoration: none;
}

.adm-filter-tab.active,
.adm-filter-tab:hover {
  background: var(--adm-accent-dim);
  color: var(--adm-accent);
  border-color: var(--adm-border-2);
}


.adm-coming-soon-banner {
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(63, 160, 232, 0.08), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(63, 160, 232, 0.15);
  border-radius: var(--adm-radius);
  font-size: 0.875rem;
  color: var(--adm-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-coming-soon-banner span {
  color: var(--adm-accent);
  font-size: 1.2rem;
}

.adm-coming-soon {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed !important;
}

.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #0c182b 0%, #060b13 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--adm-font);
  box-sizing: border-box;
}

.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 75%);
}

.login-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: loginGlowPulse 8s ease-in-out infinite alternate;
}

.login-bg-glow--1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #3fa0e8 0%, rgba(63, 160, 232, 0) 70%);
  top: -180px;
  right: -100px;
}

.login-bg-glow--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #1d6fa8 0%, rgba(29, 111, 168, 0) 70%);
  bottom: -120px;
  left: -120px;
  animation-delay: -4s;
}

.login-bg-glow--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #00d2ff 0%, rgba(0, 210, 255, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}

@keyframes loginGlowPulse {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.25;
  }

  100% {
    transform: scale(1.15) translate(20px, -20px);
    opacity: 0.4;
  }
}

.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
}

.login-card {
  position: relative;
  background: rgba(14, 23, 38, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(80, 150, 230, 0.22);
  border-radius: 24px;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  width: 100%;
  max-width: 440px;
  box-shadow:
    0 30px 80px -10px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(63, 160, 232, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: loginCardAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin: auto;
  box-sizing: border-box;
}

@keyframes loginCardAppear {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-card .adm-alert {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  word-break: break-word;
  box-sizing: border-box;
}

.login-card .adm-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(63, 160, 232, 0.1);
  border: 1px solid rgba(63, 160, 232, 0.25);
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.login-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: loginDotPulse 2s infinite;
}

@keyframes loginDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.login-badge-text {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(80, 150, 230, 0.12);
}

.login-brand--centered {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.login-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.login-card:hover .login-logo-wrap {
  transform: scale(1.05);
  border-color: rgba(63, 160, 232, 0.4);
}

.login-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: block;
}

.login-brand-sub {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  display: block;
  margin-top: 2px;
}

.login-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.login-header h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.login-header p {
  font-size: 0.85rem;
  color: var(--adm-text-muted);
  line-height: 1.45;
}

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

.login-form .adm-form-group {
  margin-bottom: 1.1rem;
}

.login-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c9d1d9;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.login-form .adm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-form .adm-input-icon {
  position: absolute;
  left: 14px;
  color: rgba(180, 210, 240, 0.45);
  transition: color 0.2s ease;
  pointer-events: none;
}

.login-form input {
  width: 100%;
  padding: 0.8rem 2.6rem 0.8rem 2.6rem;
  background: rgba(7, 12, 20, 0.65);
  border: 1px solid rgba(80, 150, 230, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.login-form input::placeholder {
  color: rgba(180, 210, 240, 0.35);
}

.login-form input:focus {
  outline: none;
  background: rgba(7, 12, 20, 0.85);
  border-color: #3fa0e8;
  box-shadow: 0 0 0 3px rgba(63, 160, 232, 0.25), 0 0 20px rgba(63, 160, 232, 0.15);
}

.login-form input:focus+.adm-input-icon,
.login-form .adm-input-wrap:focus-within .adm-input-icon {
  color: #3fa0e8;
}

.adm-pwd-toggle {
  position: absolute;
  right: 10px;
  padding: 6px;
  background: none;
  border: none;
  color: rgba(180, 210, 240, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.adm-pwd-toggle:hover {
  color: #3fa0e8;
  background: rgba(63, 160, 232, 0.1);
}

.login-submit-btn {
  margin-top: 0.25rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #3fa0e8 0%, #1d6fa8 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 8px 25px -4px rgba(63, 160, 232, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(63, 160, 232, 0.65);
  background: linear-gradient(135deg, #4fb0f8 0%, #227cb8 100%);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn .btn-arrow-icon {
  transition: transform 0.25s ease;
}

.login-submit-btn:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.login-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(80, 150, 230, 0.12);
  text-align: center;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--adm-text-muted);
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.login-back-link svg {
  transition: transform 0.2s ease;
}

.login-back-link:hover {
  color: #3fa0e8;
  background: rgba(63, 160, 232, 0.08);
}

.login-back-link:hover svg {
  transform: translateX(-4px);
}

/* Adaptabilidad Móvil para la Página de Login */
@media (max-width: 640px) {
  .login-container {
    padding: 1rem 0.75rem;
  }

  .login-card {
    padding: 1.25rem 1rem;
    border-radius: 18px;
    max-width: 100%;
  }

  .login-badge {
    margin-bottom: 0.85rem;
    padding: 4px 10px;
  }

  .login-badge-text {
    font-size: 0.68rem;
  }

  .login-brand {
    gap: 8px;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .login-logo-wrap {
    width: 54px;
    height: 54px;
    padding: 6px;
    border-radius: 14px;
  }

  .login-brand-name {
    font-size: 1rem;
  }

  .login-brand-sub {
    font-size: 0.725rem;
  }

  .login-header {
    margin-bottom: 0.85rem;
  }

  .login-header h1 {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  .login-header p {
    font-size: 0.78rem;
  }

  .login-form .adm-form-group {
    margin-bottom: 0.85rem;
  }

  .login-form label {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .login-form input {
    padding: 0.65rem 2.4rem 0.65rem 2.4rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .login-form .adm-input-icon {
    left: 10px;
  }

  .adm-pwd-toggle {
    right: 6px;
  }

  .login-submit-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    border-radius: 10px;
    margin-top: 0.15rem;
  }

  .login-footer {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
  }

  .login-back-link {
    font-size: 0.775rem;
    padding: 4px 8px;
  }
}

@media (max-width: 380px) {
  .login-container {
    padding: 0.5rem 0.5rem;
  }

  .login-card {
    padding: 1rem 0.85rem;
  }

  .login-logo-wrap {
    width: 48px;
    height: 48px;
  }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet y Móvil (≤ 900px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ─── Layout base ─── */
  .adm-body {
    grid-template-columns: 1fr;
  }

  /* Sidebar: se convierte en drawer deslizante */
  .adm-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 500;
    width: 260px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .adm-sidebar.open {
    transform: translateX(0);
  }

  /* Botón de cierre dentro del sidebar en móvil */
  .adm-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--adm-border);
  }

  .adm-sidebar-close-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--adm-text-muted);
    background: transparent;
    cursor: pointer;
    transition: all var(--adm-trans);
  }

  .adm-sidebar-close-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
  }

  .adm-main {
    margin-left: 0 !important;
    min-width: 0;
  }

  /* ─── Topbar ─── */
  .adm-topbar {
    padding: 0 1rem;
    height: 56px;
  }

  .adm-topbar-action {
    padding: 0.4rem 0.6rem;
  }

  /* ─── Contenido ─── */
  .adm-content {
    padding: 1rem;
  }

  /* ─── Grids ─── */
  .adm-panels-grid {
    grid-template-columns: 1fr;
  }

  .adm-panels-grid>.adm-panel:last-child {
    grid-column: 1;
  }

  .adm-config-grid {
    grid-template-columns: 1fr;
  }

  .adm-form-group--wide {
    grid-column: 1;
  }

  /* ─── Tablas: scroll horizontal ─── */
  .adm-panel-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .adm-table {
    min-width: 580px;
  }

  .adm-table th,
  .adm-table td {
    padding: 0.6rem 0.6rem;
    font-size: 0.8rem;
  }

  /* ─── Toolbar de página ─── */
  .adm-page-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .adm-page-toolbar .adm-btn,
  .adm-page-toolbar .adm-btn--primary,
  .adm-page-toolbar .adm-btn-ghost {
    width: 100%;
    justify-content: center;
  }

  /* ─── Welcome section ─── */
  .adm-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .adm-welcome-date {
    align-self: flex-start;
    text-align: left;
  }

  /* ─── Stats ─── */
  .adm-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ─── Acciones rápidas ─── */
  .adm-quick-actions {
    flex-direction: column;
  }

  .adm-quick-btn {
    width: 100%;
    justify-content: flex-start;
  }

  /* ─── Botones de acción en formularios ─── */
  .adm-form-actions {
    justify-content: stretch;
  }

  .adm-form-actions .adm-btn {
    width: 100%;
    justify-content: center;
  }

  /* ─── Filtros de mensajes ─── */
  .adm-filter-tabs {
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Solo Móvil (≤ 600px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ─── Stats a columna compacta ─── */
  .adm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ─── Topbar compacto ─── */
  .adm-topbar-action span {
    display: none;
  }

  .adm-topbar-action {
    padding: 0.35rem 0.5rem;
  }

  .adm-user-info {
    display: none;
  }

  .adm-page-title {
    font-size: 0.88rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ─── Panel encabezado ─── */
  .adm-panel-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.75rem 1rem;
  }

  /* ─── Eventos mini ─── */
  .adm-event-mini {
    gap: 0.6rem;
  }

  .adm-event-mini-info strong {
    font-size: 0.8rem;
  }

  /* ─── Alertas ─── */
  .adm-alert {
    font-size: 0.82rem;
    padding: 0.75rem 0.9rem;
  }

  /* ─── Filtros de usuarios: ya cubiertos por sus propios media queries ─── */

  /* ─── Paginación ─── */
  .adm-pagination,
  [style*="justify-content:center"][style*="gap:8px"] {
    flex-wrap: wrap;
  }
}


::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--adm-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--adm-border-2);
  border-radius: 3px;
}

.db-error-message {
  font-family: sans-serif;
  color: #f87171;
  padding: 2rem;
}


@media (min-width: 901px) {
  .adm-body.sidebar-collapsed .adm-sidebar {
    width: 60px;
  }

  .adm-body.sidebar-collapsed .adm-brand-text,
  .adm-body.sidebar-collapsed .adm-nav-link span,
  .adm-body.sidebar-collapsed .adm-logout-link span,
  .adm-body.sidebar-collapsed .adm-nav-badge {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
  }

  .adm-body.sidebar-collapsed .adm-sidebar-brand {
    gap: 0;
    justify-content: center;
    padding: 1.5rem 0 1rem;
  }

  .adm-body.sidebar-collapsed .adm-nav-link,
  .adm-body.sidebar-collapsed .adm-logout-link {
    gap: 0;
    justify-content: center;
    padding: 0.65rem 0;
  }

  .adm-body.sidebar-collapsed .adm-nav {
    padding: 1rem 0.35rem;
  }

  .adm-body.sidebar-collapsed .adm-sidebar-footer {
    padding: 1rem 0.35rem;
  }
}

.adm-panels-grid.adm-panels-two-cols>.adm-panel:last-child {
  grid-column: auto;
}

/* ── Avatar img en topbar ── */
.adm-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

/* ── Form actions con margen extra ── */
.adm-form-actions--mt {
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════
   PERFIL — sección de foto de perfil
═══════════════════════════════════════ */

.adm-profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Recuadro cuadrado que adapta cualquier tamaño de imagen */
.adm-profile-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--adm-surface-2);
  border: 2px solid var(--adm-border-2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: border-color var(--adm-trans), box-shadow var(--adm-trans);
}

.adm-profile-avatar-wrap:hover {
  border-color: var(--adm-accent);
  box-shadow: 0 4px 24px rgba(63, 160, 232, 0.25);
}

/* Imagen: siempre llena el cuadrado, se recorta por el centro */
.adm-profile-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Placeholder con inicial cuando no hay foto */
.adm-profile-avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  letter-spacing: -0.02em;
  user-select: none;
}

/* Overlay al hacer hover con icono de cámara */
.adm-profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(7, 12, 20, 0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--adm-trans);
  backdrop-filter: blur(2px);
}

.adm-profile-avatar-wrap:hover .adm-profile-avatar-overlay {
  opacity: 1;
}

/* Input oculto (se activa desde el label/overlay) */
.adm-profile-file-input {
  display: none;
}

/* Meta-info al lado del avatar */
.adm-profile-avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-profile-avatar-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--adm-text) !important;
  line-height: 1.2;
  margin: 0;
}

.adm-profile-avatar-email {
  font-size: 0.84rem;
  color: var(--adm-text-muted) !important;
  margin: 0 0 6px;
}

.adm-profile-avatar-btn {
  align-self: flex-start;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--adm-accent-dim);
  color: var(--adm-accent);
  border: 1px solid rgba(63, 160, 232, 0.25);
  border-radius: 50px;
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--adm-trans);
  text-decoration: none;
}

.adm-profile-avatar-btn:hover {
  background: rgba(63, 160, 232, 0.25);
  border-color: rgba(63, 160, 232, 0.4);
  color: #60c4ff;
}

.adm-profile-avatar-hint {
  font-size: 0.73rem;
  color: var(--adm-text-subtle);
}

@media (max-width: 480px) {
  .adm-profile-avatar-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   GRUPOS DE ENTRENAMIENTO
═══════════════════════════════════════════════════════════ */

/* Punto de color junto al nombre del grupo */
.adm-grupo-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Grid de tarjetas (vista entrenador / patinador) ── */
.adm-grupos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* Tarjeta de grupo */
.adm-grupo-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--adm-trans), box-shadow var(--adm-trans);
}

.adm-grupo-card:hover {
  border-color: var(--adm-border-2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.adm-grupo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-left: 4px solid var(--adm-accent);
  gap: 1rem;
}

.adm-grupo-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--adm-text);
}

.adm-grupo-card-desc {
  padding: 0 1.25rem;
  font-size: 0.82rem;
  color: var(--adm-text-muted);
  line-height: 1.5;
  margin: 0;
}

.adm-grupo-card-section {
  padding: 0.75rem 1.25rem 0.25rem;
}

.adm-grupo-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lista de miembros dentro de la tarjeta */
.adm-grupo-members {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0 0.5rem;
  border-top: 1px solid var(--adm-border);
  margin-top: 0.75rem;
}

.adm-grupo-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1.25rem;
  transition: background var(--adm-trans);
}

.adm-grupo-member:hover {
  background: rgba(63, 160, 232, 0.04);
}

.adm-grupo-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.adm-grupo-member-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.adm-grupo-member-info {
  display: flex;
  flex-direction: column;
}

.adm-grupo-member-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1.2;
}

.adm-grupo-member-email {
  font-size: 0.72rem;
  color: var(--adm-text-muted);
}

.adm-usuario-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Estilos de Galería de Fotos y Álbumes ── */
.adm-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.adm-album-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.adm-album-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.adm-album-cover-wrap {
  position: relative;
  height: 180px;
  background: #0f172a;
  overflow: hidden;
}

.adm-album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.adm-album-card:hover .adm-album-cover-img {
  transform: scale(1.05);
}

.adm-album-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  opacity: 0.7;
}

.adm-album-badges-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.adm-album-card-body {
  padding: 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.adm-album-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--adm-text);
  margin: 0;
  line-height: 1.35;
}

.adm-album-card-desc {
  font-size: 0.84rem;
  color: var(--adm-text-muted);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adm-album-card-footer {
  padding: 0.85rem 1.15rem;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.adm-album-card-footer .adm-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
}

.adm-album-card-footer .adm-btn-action--view {
  flex: 1;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(29, 78, 216, 0.25) 100%);
  border-color: rgba(2, 132, 199, 0.4);
  color: #38bdf8;
}

.adm-album-card-footer .adm-btn-action--view:hover {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.adm-album-card-footer .adm-btn-action--edit {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.adm-album-card-footer .adm-btn-action--edit:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.adm-album-card-footer .adm-btn-action--delete {
  padding: 0.5rem 0.65rem;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.adm-album-card-footer .adm-btn-action--delete:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

/* ── Detalle de grupo ── */
.adm-grupo-detail-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  margin-bottom: 1rem;
}

.adm-grupo-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--adm-text);
  margin: 0 0 4px;
}

.adm-grupo-detail-desc {
  font-size: 0.875rem;
  color: var(--adm-text-muted);
  margin: 0;
}

/* Lista de miembros en vista de detalle */
.adm-detail-member-list {
  display: flex;
  flex-direction: column;
}

.adm-detail-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--adm-border);
  transition: background var(--adm-trans);
}

.adm-detail-member:last-child {
  border-bottom: none;
}

.adm-detail-member:hover {
  background: rgba(63, 160, 232, 0.04);
}

.adm-detail-member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.adm-detail-member-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.adm-detail-member-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--adm-text);
}

.adm-detail-member-email {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  margin-top: 1px;
}

/* ── Selector de miembros en el formulario ── */
.adm-member-selector {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  overflow: hidden;
}

/* Buscador */
.adm-member-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0.875rem;
  background: var(--adm-bg);
  border-bottom: 1px solid var(--adm-border);
  color: var(--adm-text-subtle);
}

.adm-member-search {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.84rem;
}

.adm-member-search::placeholder {
  color: var(--adm-text-subtle);
}

/* Lista scrollable */
.adm-member-list {
  max-height: 280px;
  overflow-y: auto;
}

.adm-member-list::-webkit-scrollbar {
  width: 4px;
}

.adm-member-list::-webkit-scrollbar-thumb {
  background: var(--adm-border-2);
  border-radius: 2px;
}

/* Cada opción de miembro */
.adm-member-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid var(--adm-border);
  transition: background var(--adm-trans);
  user-select: none;
}

.adm-member-option:last-child {
  border-bottom: none;
}

.adm-member-option input[type="checkbox"] {
  display: none;
}

.adm-member-option:hover {
  background: rgba(63, 160, 232, 0.05);
}

.adm-member-option--selected {
  background: rgba(63, 160, 232, 0.08);
}

.adm-member-option-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.adm-member-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.adm-member-option-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1.2;
}

.adm-member-option-email {
  font-size: 0.72rem;
  color: var(--adm-text-muted);
}

.adm-member-option-check {
  color: var(--adm-accent);
  opacity: 0;
  transition: opacity var(--adm-trans);
  flex-shrink: 0;
}

.adm-member-option--selected .adm-member-option-check {
  opacity: 1;
}

/* ── Color picker ── */
.adm-color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-color-input {
  width: 48px !important;
  height: 38px !important;
  padding: 2px !important;
  border-radius: var(--adm-radius-sm) !important;
  cursor: pointer;
  border: 1px solid var(--adm-border) !important;
  background: none !important;
}

.adm-color-preview {
  font-size: 0.82rem;
  color: var(--adm-text-muted);
  font-family: monospace;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .adm-grupos-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   GESTIÓN DE USUARIOS — Barra de Filtros
   ═══════════════════════════════════════════════════════════ */

/* Contenedor completo del toolbar con filtros */
.adm-user-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

/* Campo de búsqueda dentro de los filtros */
.adm-user-filters__search {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-user-filters__search-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
}

.adm-user-filters__search-input {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  transition: border-color var(--adm-trans), box-shadow var(--adm-trans);
  overflow: hidden;
}

.adm-user-filters__search-input:focus-within {
  border-color: rgba(var(--adm-accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--adm-accent-rgb), 0.1);
}

.adm-user-filters__search-icon {
  flex-shrink: 0;
  color: var(--adm-text-subtle);
  padding: 0 10px;
  display: flex;
  align-items: center;
}

.adm-user-filters__search-input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.65rem 0.75rem 0.65rem 0;
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  width: 100%;
}

.adm-user-filters__search-input input::placeholder {
  color: var(--adm-text-subtle);
}

/* Grupo de selects de filtro */
.adm-user-filters__select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 145px;
}

.adm-user-filters__select-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
}

.adm-user-filters__select {
  padding: 0.65rem 0.9rem;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  transition: border-color var(--adm-trans), box-shadow var(--adm-trans);
  cursor: pointer;
}

.adm-user-filters__select:focus {
  outline: none;
  border-color: rgba(var(--adm-accent-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--adm-accent-rgb), 0.1);
}

.adm-user-filters__select option {
  background: var(--adm-surface);
}

/* Botones del filtro */
.adm-user-filters__actions {
  display: flex;
  gap: 8px;
  align-self: flex-end;
}

.adm-btn--filter {
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  color: #fff;
  box-shadow: 0 2px 12px rgba(63, 160, 232, 0.25);
  border-radius: 50px;
  padding: 0.63rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  font-family: var(--adm-font);
  transition: all var(--adm-trans);
  text-decoration: none;
  white-space: nowrap;
}

.adm-btn--filter:hover {
  box-shadow: 0 4px 20px rgba(63, 160, 232, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.adm-btn--ghost-sm {
  background: transparent;
  border: 1px solid var(--adm-border);
  color: var(--adm-text-muted);
  border-radius: 50px;
  padding: 0.63rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--adm-font);
  transition: all var(--adm-trans);
  text-decoration: none;
  white-space: nowrap;
}

.adm-btn--ghost-sm:hover {
  border-color: var(--adm-border-2);
  color: var(--adm-text);
  background: rgba(255, 255, 255, 0.04);
}

/* Indicador de filtros activos */
.adm-user-filters__active-hint {
  width: 100%;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--adm-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════
   GESTIÓN DE USUARIOS — Selector de Grupos
   ═══════════════════════════════════════════════════════════ */

/* Sección completa del selector de grupos */
.adm-group-selector {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.adm-group-selector__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.adm-group-selector__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-text);
  letter-spacing: 0.02em;
}

.adm-group-selector__hint {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  margin-top: 2px;
}

.adm-group-selector__count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border);
  padding: 2px 9px;
  border-radius: 50px;
  transition: all var(--adm-trans);
}

.adm-group-selector__count--has-selected {
  background: rgba(var(--adm-accent-rgb), 0.12);
  border-color: rgba(var(--adm-accent-rgb), 0.3);
  color: var(--adm-accent);
}

/* Cuadrícula de tarjetas de grupo */
.adm-group-selector__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

/* Tarjeta individual de grupo */
.adm-group-card {
  position: relative;
  cursor: pointer;
}

.adm-group-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.adm-group-card__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  transition: all var(--adm-trans);
  user-select: none;
}

.adm-group-card:hover .adm-group-card__inner {
  border-color: var(--adm-border-2);
  background: rgba(63, 160, 232, 0.04);
}

.adm-group-card input:checked+.adm-group-card__inner {
  border-color: rgba(var(--adm-accent-rgb), 0.45);
  background: rgba(var(--adm-accent-rgb), 0.08);
  box-shadow: 0 0 0 1px rgba(var(--adm-accent-rgb), 0.2) inset;
}

.adm-group-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.adm-group-card__name {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--adm-text-muted);
  line-height: 1.3;
  transition: color var(--adm-trans);
}

.adm-group-card input:checked+.adm-group-card__inner .adm-group-card__name {
  color: var(--adm-text);
  font-weight: 600;
}

.adm-group-card__check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--adm-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--adm-trans);
  background: var(--adm-surface);
}

.adm-group-card__check svg {
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--adm-trans);
}

.adm-group-card input:checked+.adm-group-card__inner .adm-group-card__check {
  background: var(--adm-accent);
  border-color: var(--adm-accent);
  box-shadow: 0 0 8px rgba(var(--adm-accent-rgb), 0.4);
}

.adm-group-card input:checked+.adm-group-card__inner .adm-group-card__check svg {
  opacity: 1;
  transform: scale(1);
}

/* Empty state */
.adm-group-selector__empty {
  font-size: 0.84rem;
  color: var(--adm-text-subtle);
  text-align: center;
  padding: 1.5rem;
  background: var(--adm-bg);
  border: 1px dashed var(--adm-border);
  border-radius: var(--adm-radius-sm);
}

@media (max-width: 768px) {
  .adm-user-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .adm-user-filters__search,
  .adm-user-filters__select-group {
    min-width: unset;
    width: 100%;
  }

  .adm-user-filters__actions {
    justify-content: flex-end;
  }

  .adm-group-selector__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .adm-group-selector__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── CUSTOM TOGGLE SWITCH CARD ──────────────────────────────── */
.adm-checkbox-card {
  margin-top: 0.5rem;
  grid-column: 1 / -1;
}

.adm-toggle-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(14, 23, 38, 0.6);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  cursor: pointer;
  user-select: none;
  transition: all var(--adm-trans);
}

.adm-toggle-label:hover {
  border-color: var(--adm-border-2);
  background: rgba(63, 160, 232, 0.05);
}

.adm-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.adm-toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border-2);
  border-radius: 50px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--adm-text-muted);
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-toggle-input:checked+.adm-toggle-switch {
  background: var(--adm-accent);
  border-color: var(--adm-accent);
  box-shadow: 0 0 12px rgba(var(--adm-accent-rgb), 0.4);
}

.adm-toggle-input:checked+.adm-toggle-switch::after {
  transform: translateX(22px);
  background: #ffffff;
}

.adm-toggle-text {
  display: flex;
  flex-direction: column;
}

.adm-toggle-text strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1.2;
}

.adm-toggle-text span {
  font-size: 0.76rem;
  color: var(--adm-text-muted);
  margin-top: 2px;
}

/* ─── TARJETAS DE CONMUTADOR TEMÁTICAS (RGPD / TUTOR) ────────── */
.adm-toggle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.adm-toggle-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 1. Tarjeta de Consentimiento RGPD (Dorado / Advertencia Legal) */
.adm-toggle-card--rgpd {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.adm-toggle-card--rgpd:hover {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.15);
  transform: translateY(-1px);
}

.adm-toggle-card--rgpd .adm-toggle-text strong {
  color: #fef08a;
  font-weight: 700;
}

.adm-toggle-card--rgpd .adm-toggle-text span {
  color: rgba(254, 240, 138, 0.85);
}

.adm-toggle-card--rgpd input[type="checkbox"]:checked + .adm-toggle-switch {
  background: #eab308;
  border-color: #eab308;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.5);
}

.adm-toggle-card--rgpd input[type="checkbox"]:checked + .adm-toggle-switch::after {
  transform: translateX(22px);
  background: #0f172a;
}

/* 2. Tarjeta de Creación de Cuenta de Tutor (Azul Cian / Cuenta) */
.adm-toggle-card--tutor-account {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.adm-toggle-card--tutor-account:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.adm-toggle-card--tutor-account .adm-toggle-text strong {
  color: #38bdf8;
  font-weight: 700;
}

.adm-toggle-card--tutor-account .adm-toggle-text span {
  color: rgba(186, 230, 253, 0.85);
}

.adm-toggle-card--tutor-account input[type="checkbox"]:checked + .adm-toggle-switch {
  background: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.adm-toggle-card--tutor-account input[type="checkbox"]:checked + .adm-toggle-switch::after {
  transform: translateX(22px);
  background: #0f172a;
}

@media (max-width: 768px) {
  .adm-toggle-card {
    padding: 12px 14px;
    gap: 12px;
  }
}

/* ─── STYLED FILE INPUT COMPONENT ────────────────────────────── */
.adm-file-picker {
  position: relative;
  width: 100%;
}

.adm-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.adm-file-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(7, 12, 20, 0.65);
  border: 1px dashed rgba(80, 150, 230, 0.3);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.adm-file-input:focus+.adm-file-label,
.adm-file-label:hover {
  border-color: var(--adm-accent);
  background: rgba(63, 160, 232, 0.08);
  box-shadow: 0 0 15px rgba(63, 160, 232, 0.15);
}

.adm-file-preview-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--adm-border-2);
  background: var(--adm-bg-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-file-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.adm-file-preview-img--default {
  opacity: 0.6;
  filter: grayscale(40%);
}

.adm-file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(63, 160, 232, 0.3);
  transition: all 0.2s ease;
  width: fit-content;
}

.adm-file-label:hover .adm-file-btn {
  background: linear-gradient(135deg, #4fb0f8, #227cb8);
  box-shadow: 0 4px 14px rgba(63, 160, 232, 0.5);
}

.adm-file-name {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* ─── INTERACTIVE EVENT CALENDAR COMPONENT ────────────────────── */
.adm-cal-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.adm-cal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
}

.adm-cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-cal-month-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--adm-text);
  min-width: 160px;
  text-align: center;
}

.adm-cal-nav-btn {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  color: var(--adm-text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-cal-nav-btn:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-accent);
  color: var(--adm-accent);
}

.adm-cal-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
}

.adm-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--adm-text-muted);
}

.adm-cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.adm-cal-grid-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden;
}

.adm-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--adm-border);
  text-align: center;
  align-items: center;
}

.adm-cal-weekday {
  padding: 12px 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--adm-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.adm-cal-weekday--weekend {
  color: #c084fc;
}

.adm-cal-weekday .wk-full {
  display: inline;
}

.adm-cal-weekday .wk-short {
  display: none;
}

.adm-cal-weekday .wk-mini {
  display: none;
}

@media (max-width: 1024px) {
  .adm-cal-weekday .wk-full {
    display: none;
  }

  .adm-cal-weekday .wk-short {
    display: inline;
  }

  .adm-cal-weekday .wk-mini {
    display: none;
  }
}

.adm-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--adm-border);
}

.adm-cal-day {
  background: var(--adm-surface);
  min-height: 105px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s ease;
}

.adm-cal-day--empty {
  background: rgba(7, 12, 20, 0.4);
  min-height: 80px;
}

.adm-cal-day--today {
  background: rgba(63, 160, 232, 0.06);
}

.adm-cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adm-cal-day-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--adm-text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-cal-day--today .adm-cal-day-num {
  background: var(--adm-accent);
  color: #ffffff;
  font-weight: 700;
}

.adm-cal-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--adm-text);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-cal-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.adm-cal-chip--competicion {
  border-left-color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.adm-cal-chip--gala {
  border-left-color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
}

.adm-cal-chip--exhibicion {
  border-left-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.adm-cal-chip--inscripcion {
  border-left-color: #3fa0e8;
  background: rgba(63, 160, 232, 0.12);
}

.adm-cal-chip--entreno {
  border-left-color: #facc15;
  background: rgba(250, 204, 21, 0.12);
}

.adm-cal-chip--otro {
  border-left-color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
}

/* Modal de Evento */
.adm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.adm-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.adm-event-modal-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-2);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-modal-backdrop.open .adm-event-modal-card {
  transform: translateY(0) scale(1);
}

.adm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--adm-border);
}

.adm-modal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adm-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE MASTER SUITE
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tablet & Mobile (< 900px) ──────────────────────────────── */
@media (max-width: 900px) {

  html,
  body,
  .adm-body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch !important;
  }

  .adm-main {
    min-height: auto !important;
    overflow: visible !important;
  }

  .adm-content {
    overflow-y: visible !important;
    height: auto !important;
  }

  .adm-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px !important;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .adm-sidebar.open {
    transform: translateX(0) !important;
  }

  .adm-sidebar-close {
    display: flex !important;
    justify-content: flex-end;
    padding: 0.75rem 1rem 0;
  }

  .adm-sidebar-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--adm-surface-2);
    border: 1px solid var(--adm-border);
    color: var(--adm-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .adm-sidebar-brand {
    padding-top: 0.5rem;
  }

  .adm-brand-text,
  .adm-nav-link span,
  .adm-nav-badge,
  .adm-logout-link span {
    display: inline-block !important;
  }

  .adm-nav-link {
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 0.75rem 1rem !important;
  }

  .adm-logout-link {
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0.75rem 1rem !important;
  }

  /* Overlay backdrop */
  #sidebarOverlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 15, 0.75);
    backdrop-filter: blur(4px);
    z-index: 990;
    animation: fadeIn 0.25s ease;
  }

  .adm-topbar {
    padding: 0 1rem;
  }

  .adm-page-title {
    font-size: 0.95rem;
  }

  .adm-user-name,
  .adm-user-role {
    display: none;
  }

  .adm-user-btn {
    padding: 4px;
    border: none;
  }
}

/* ─── Mobile Devices & Compact At-a-Glance Dashboard (< 768px) ───── */
@media (max-width: 768px) {
  .adm-content {
    padding: 0.875rem 0.75rem !important;
  }

  /* Header de bienvenida compacto */
  .adm-welcome {
    padding: 0.65rem 0.875rem !important;
    margin-bottom: 0.75rem !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: linear-gradient(135deg, rgba(63, 160, 232, 0.12), rgba(10, 17, 32, 0.7)) !important;
    border-radius: 10px !important;
  }

  .adm-welcome h2 {
    font-size: 1rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .adm-welcome p {
    display: none !important;
  }

  .adm-welcome-date {
    font-size: 0.7rem !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    white-space: nowrap !important;
  }

  /* Anuncios compactos */
  .adm-announcements {
    margin-bottom: 0.75rem !important;
  }

  .adm-alert {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
  }

  /* Tarjetas de estadísticas adaptativas para móvil */
  .adm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .adm-stat-card {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    gap: 10px;
    align-items: center;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
  }

  .adm-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .adm-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .adm-stat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
  }

  .adm-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--adm-text);
    margin-bottom: 2px;
  }

  .adm-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--adm-text-muted);
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
  }

  .adm-stat-arrow {
    display: none;
  }

  /* Paneles del Dashboard en vista móvil */
  .adm-panels-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .adm-panel {
    border-radius: 10px !important;
  }

  .adm-panel-header {
    padding: 0.55rem 0.75rem !important;
  }

  .adm-panel-header h3 {
    font-size: 0.85rem !important;
  }

  .adm-panel-body {
    padding: 0.65rem 0.75rem !important;
  }

  .adm-events-mini {
    gap: 5px !important;
  }

  .adm-event-mini {
    padding: 5px 8px !important;
    border-radius: 6px !important;
    gap: 8px !important;
  }

  .adm-event-mini-date {
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    font-size: 0.62rem !important;
  }

  .adm-event-mini-info strong {
    font-size: 0.78rem !important;
  }

  .adm-event-mini-info span {
    font-size: 0.65rem !important;
  }

  /* Accesos rápidos en cuadrícula 2x2 */
  .adm-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .adm-quick-btn {
    padding: 8px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
    justify-content: center !important;
  }

  /* Panels grid on mobile */
  .adm-panels-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Form grids on mobile */
  .adm-config-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .adm-form-group--wide {
    grid-column: 1 / -1;
  }

  /* Table horizontal scroll container */
  .adm-panel-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .adm-table {
    min-width: 600px;
  }

  /* Filter bar on mobile */
  .adm-user-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 1rem;
  }

  .adm-user-filters__search,
  .adm-user-filters__select-group {
    width: 100%;
    min-width: unset;
  }

  .adm-user-filters__actions {
    width: 100%;
    justify-content: stretch;
  }

  .adm-btn--filter,
  .adm-btn--ghost-sm {
    flex: 1;
    justify-content: center;
  }

  /* Member selectors */
  .adm-member-selector,
  .adm-group-selector__grid {
    grid-template-columns: 1fr !important;
  }

  /* Calendar mobile master layout */
  .adm-cal-header-bar {
    flex-direction: column;
    gap: 0.875rem;
    align-items: center;
    text-align: center;
    padding: 0.875rem 1rem;
  }

  .adm-cal-nav {
    width: 100%;
    justify-content: space-between;
  }

  .adm-cal-month-title {
    font-size: 1rem;
    min-width: unset;
  }

  .adm-cal-nav-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .adm-cal-legend {
    width: 100%;
    justify-content: center;
    gap: 8px 12px;
    font-size: 0.72rem;
    padding-top: 6px;
    border-top: 1px dashed var(--adm-border);
  }

  /* Rediseño móvil del calendario estilo web pública */
  @media (max-width: 768px) {
    .adm-cal-weekday .wk-full {
      display: none !important;
    }

    .adm-cal-weekday .wk-short {
      display: none !important;
    }

    .adm-cal-weekday .wk-mini {
      display: inline !important;
    }

    .adm-cal-header-bar {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 0.85rem !important;
    }

    .adm-cal-nav {
      justify-content: space-between !important;
      width: 100% !important;
    }

    .adm-cal-nav-btn {
      padding: 6px 12px !important;
      font-size: 0.82rem !important;
      border-radius: 10px !important;
    }

    .adm-cal-month-title {
      font-size: 1.1rem !important;
      font-weight: 800 !important;
    }

    .adm-cal-legend {
      justify-content: center !important;
      padding: 8px 10px !important;
      background: rgba(15, 26, 48, 0.5) !important;
      border-radius: 12px !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .adm-cal-weekdays {
      display: grid !important;
      grid-template-columns: repeat(7, 1fr) !important;
      gap: 4px !important;
      padding: 8px 4px !important;
      background: rgba(15, 26, 48, 0.6) !important;
      border-radius: 14px 14px 0 0 !important;
    }

    .adm-cal-weekday {
      padding: 4px 0 !important;
      font-size: 0.75rem !important;
      font-weight: 700 !important;
      text-align: center !important;
      color: var(--adm-text-subtle) !important;
    }

    .adm-cal-days {
      display: grid !important;
      grid-template-columns: repeat(7, 1fr) !important;
      gap: 4px !important;
      padding: 6px 4px !important;
      background: rgba(10, 18, 35, 0.5) !important;
      border-radius: 0 0 16px 16px !important;
    }

    .adm-cal-day {
      min-height: 46px !important;
      height: 46px !important;
      padding: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 12px !important;
      background: rgba(15, 26, 48, 0.4) !important;
      border: 1px solid rgba(255, 255, 255, 0.06) !important;
      position: relative !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .adm-cal-day--empty {
      background: transparent !important;
      border-color: transparent !important;
      cursor: default !important;
      min-height: 46px !important;
    }

    .adm-cal-day-header {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 100% !important;
      height: 100% !important;
    }

    .adm-cal-day-num {
      font-size: 0.85rem !important;
      font-weight: 600 !important;
      color: #cbd5e1 !important;
      width: 28px !important;
      height: 28px !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    /* Ocultar los chips de texto densos en celdas móviles */
    .adm-cal-day .adm-cal-chip {
      display: none !important;
    }

    /* Punto brillante de evento como en la web pública */
    .adm-cal-day--has-event::after {
      content: '' !important;
      position: absolute !important;
      bottom: 4px !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: 5px !important;
      height: 5px !important;
      background: #38bdf8 !important;
      border-radius: 50% !important;
      box-shadow: 0 0 6px rgba(56, 189, 248, 0.8) !important;
    }

    .adm-cal-day--today {
      background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
      border-color: #38bdf8 !important;
      box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4) !important;
    }

    .adm-cal-day--today .adm-cal-day-num {
      color: #ffffff !important;
      font-weight: 800 !important;
      background: transparent !important;
    }

    .adm-cal-day.is-selected {
      background: rgba(56, 189, 248, 0.2) !important;
      border: 1px solid #38bdf8 !important;
      box-shadow: 0 0 14px rgba(56, 189, 248, 0.4) !important;
    }

    .adm-cal-day.is-selected .adm-cal-day-num {
      color: #38bdf8 !important;
      font-weight: 800 !important;
    }

    /* Rediseño de la Agenda Móvil estilo Web Pública */
    .adm-mobile-agenda {
      display: block !important;
      margin-top: 1.5rem !important;
      padding: 1.25rem 1rem !important;
      background: rgba(11, 19, 38, 0.75) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-radius: 20px !important;
      backdrop-filter: blur(16px) !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }

    .adm-mobile-agenda-title {
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
      font-size: 0.95rem !important;
      font-weight: 800 !important;
      color: #ffffff !important;
      margin-bottom: 1rem !important;
      padding-bottom: 0.75rem !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .adm-mobile-event-card {
      background: rgba(15, 26, 48, 0.8) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-left: 4px solid var(--adm-accent) !important;
      border-radius: 14px !important;
      padding: 1rem !important;
      margin-bottom: 0.85rem !important;
      transition: all 0.25s ease !important;
    }

    .adm-mobile-event-card:active,
    .adm-mobile-event-card:hover {
      transform: translateY(-2px) !important;
      border-color: rgba(56, 189, 248, 0.4) !important;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    }
  }

  .adm-mobile-agenda-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--adm-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .adm-mobile-event-card {
    background: var(--adm-surface-2);
    border: 1px solid var(--adm-border);
    border-left: 4px solid var(--adm-accent);
    border-radius: 8px;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }
}

@media (max-width: 540px) {
  .adm-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
    gap: 0.4rem !important;
  }

  .adm-stat-card {
    padding: 0.5rem 0.45rem !important;
    gap: 0.4rem !important;
    border-radius: 10px !important;
    min-width: 0 !important;
  }

  .adm-stat-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
  }

  .adm-stat-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .adm-stat-value {
    font-size: 1.1rem !important;
  }

  .adm-stat-label {
    font-size: 0.62rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .adm-stat-arrow {
    display: none !important;
  }

  .adm-modal-backdrop {
    padding: 0.75rem;
  }

  .adm-event-modal-card {
    border-radius: 12px;
  }
}

/* ─── RESPONSIVE ANNOUNCEMENTS MOBILE CARDS ─────────────────── */
.adm-announcements-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.875rem;
}

.adm-announcement-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adm-announcement-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-announcement-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.3;
}

.adm-announcement-card__msg {
  font-size: 0.82rem;
  color: var(--adm-text-muted);
  line-height: 1.5;
  background: var(--adm-bg-2);
  padding: 8px 12px;
  border-radius: 6px;
  white-space: pre-wrap;
}

.adm-announcement-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--adm-border);
  font-size: 0.75rem;
  color: var(--adm-text-subtle);
}

.adm-announcement-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .adm-announcements-desktop-table {
    display: none !important;
  }

  .adm-announcements-mobile-cards {
    display: flex !important;
  }
}

/* ─── RESPONSIVE TECHNICAL TEAM MOBILE CARDS ─────────────────── */
.adm-equipo-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.875rem;
}

.adm-coach-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.adm-coach-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-coach-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--adm-accent-dim);
  flex-shrink: 0;
}

.adm-coach-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.adm-coach-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.2;
}

.adm-coach-card__role {
  font-size: 0.78rem;
  color: var(--adm-accent);
  font-weight: 600;
}

.adm-coach-card__certs {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  background: var(--adm-bg-2);
  padding: 6px 10px;
  border-radius: 6px;
}

.adm-coach-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--adm-border);
}

@media (max-width: 768px) {
  .adm-equipo-desktop-table {
    display: none !important;
  }

  .adm-equipo-mobile-cards {
    display: flex !important;
  }
}

/* ─── RESPONSIVE AUDIT LOG MOBILE CARDS ──────────────────────── */
.adm-audit-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.875rem;
}

.adm-audit-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-audit-card:hover {
  border-color: var(--adm-accent-dim);
  background: var(--adm-surface);
}

.adm-audit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-audit-card__user {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--adm-text);
}

.adm-audit-card__details {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  background: var(--adm-bg-2);
  padding: 8px 10px;
  border-radius: 6px;
  word-break: break-word;
}

.adm-audit-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--adm-text-subtle);
  padding-top: 4px;
  border-top: 1px solid var(--adm-border);
}

@media (max-width: 768px) {
  .adm-audit-desktop-table {
    display: none !important;
  }

  .adm-audit-mobile-cards {
    display: flex !important;
  }
}

/* ─── MESSAGES MODULE OVERHAUL ───────────────────────────────── */
.adm-row--unread {
  background: rgba(63, 160, 232, 0.08) !important;
  font-weight: 600;
}

.adm-msg-desktop-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.adm-msg-preview-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  max-width: 300px;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.adm-msg-preview-box:hover {
  border-color: var(--adm-accent);
  background: var(--adm-accent-dim);
  color: var(--adm-accent);
}

.adm-msg-preview-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.adm-msg-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.875rem;
}

.adm-msg-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: all 0.2s ease;
}

.adm-msg-card--unread {
  border-left: 4px solid var(--adm-accent);
  background: rgba(63, 160, 232, 0.06);
}

.adm-msg-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-msg-card__sender {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
}

.adm-msg-card__contact {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adm-msg-card__text {
  font-size: 0.84rem;
  color: var(--adm-text);
  line-height: 1.5;
  background: var(--adm-bg);
  padding: 10px 12px;
  border-radius: 8px;
  white-space: pre-wrap;
}

.adm-msg-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--adm-border);
  font-size: 0.75rem;
}

.adm-msg-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  color: var(--adm-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.adm-msg-contact-btn:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-accent);
  color: var(--adm-accent);
}

@media (max-width: 768px) {
  .adm-msg-desktop-table {
    display: none !important;
  }

  .adm-msg-mobile-cards {
    display: flex !important;
  }
}

/* ─── RESPONSIVE BLOG MOBILE CARDS ──────────────────────────── */
.blog-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.875rem;
}

.blog-mobile-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-mobile-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.blog-mobile-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-mobile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.blog-mobile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  margin: 0;
  line-height: 1.3;
}

.blog-mobile-subinfo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--adm-text-muted);
}

.blog-mobile-card-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-mobile-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--adm-border);
}

@media (max-width: 768px) {
  .blog-desktop-table {
    display: none !important;
  }

  .blog-mobile-cards {
    display: flex !important;
  }
}

/* ─── BLOG ARTICLE EDITOR PRO ────────────────────────────────── */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

.editor-main,
.editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.editor-card--sticky {
  position: sticky;
  top: calc(var(--adm-topbar-h) + 16px);
  z-index: 10;
}

.editor-card-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.editor-field-group:last-child {
  margin-bottom: 0;
}

.editor-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--adm-text);
  letter-spacing: 0.01em;
}

.editor-title-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: inherit;
  transition: all var(--adm-trans);
}

.editor-title-input:focus {
  outline: none;
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px var(--adm-accent-dim);
}

.editor-input,
.editor-select,
.editor-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: all var(--adm-trans);
}

.editor-input:focus,
.editor-select:focus,
.editor-textarea:focus {
  outline: none;
  border-color: var(--adm-accent);
  background: var(--adm-surface-2);
  box-shadow: 0 0 0 3px var(--adm-accent-dim);
}

.editor-code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.editor-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.editor-hint {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border);
  border-bottom: none;
  border-radius: var(--adm-radius-sm) var(--adm-radius-sm) 0 0;
}

.editor-toolbar+.editor-textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.tb-btn {
  padding: 4px 10px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 4px;
  color: var(--adm-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tb-btn:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-accent);
  color: var(--adm-accent);
}

.editor-switch-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.editor-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--adm-text);
  font-weight: 500;
}

.editor-switch-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--adm-accent);
  cursor: pointer;
}

.editor-actions-primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-save {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.95rem;
}

.image-preview-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--adm-radius-sm);
  overflow: hidden;
  border: 1px solid var(--adm-border);
  background: var(--adm-bg);
}

.image-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--adm-bg-2);
  border: 1px dashed var(--adm-border-2);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.editor-file-label:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-accent);
}

.editor-file-input {
  display: none;
}

.preset-imgs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.preset-img-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--adm-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-img-thumb:hover {
  border-color: var(--adm-accent);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(63, 160, 232, 0.3);
}

.tb-btn--preset {
  background: var(--adm-accent-dim);
  border-color: rgba(var(--adm-accent-rgb), 0.3);
  color: var(--adm-accent);
}

.tb-btn--preset:hover {
  background: var(--adm-accent);
  color: #fff;
}

/* ─── INTRANET BLOG ACTION BUTTONS PRO ────────────────────────── */
.table-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-act--edit {
  background: var(--adm-surface-2);
  border-color: var(--adm-border-2);
  color: var(--adm-text);
}

.btn-act--edit:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-accent);
  color: var(--adm-accent);
  transform: translateY(-1px);
}

.btn-act--view {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--adm-green);
}

.btn-act--view:hover {
  background: var(--adm-green);
  border-color: var(--adm-green);
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-act--delete {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--adm-error);
}

.btn-act--delete:hover {
  background: var(--adm-error);
  border-color: var(--adm-error);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-act--confirm {
  background: var(--adm-error);
  border-color: var(--adm-error);
  color: #fff !important;
}

/* ─── BLOG DASHBOARD KPI & FILTER BAR ────────────────────────── */
.blog-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .blog-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

.blog-stat-card:hover {
  border-color: var(--adm-border-2);
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
}

.stat-icon--total {
  background: rgba(63, 160, 232, 0.1);
  border-color: rgba(63, 160, 232, 0.25);
}

.stat-icon--active {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.stat-icon--draft {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.stat-icon--star {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.25);
}

.stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--adm-text);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Filter Bar */
.blog-filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.blog-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-size: 0.86rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px var(--adm-accent-dim);
}

.blog-filter-selects {
  display: flex;
  gap: 10px;
}

.blog-filter-select {
  padding: 9px 14px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-select:focus {
  outline: none;
  border-color: var(--adm-accent);
}

/* Status & Star Pills */
.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.toggle-pill--active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.toggle-pill--active:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
}

.toggle-pill--draft {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.toggle-pill--draft:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pill-dot--active {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.pill-dot--draft {
  background: #f59e0b;
}

.star-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.star-pill--active {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #facc15;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

.star-pill--active:hover {
  background: rgba(234, 179, 8, 0.3);
}

.star-pill--inactive {
  background: var(--adm-surface-2);
  border-color: var(--adm-border);
  color: var(--adm-text-muted);
}

.star-pill--inactive:hover {
  background: var(--adm-accent-dim);
  border-color: var(--adm-accent);
  color: var(--adm-accent);
}

/* ─── INTRANET UTILITY CLASSES ────────────────────────────────── */
.adm-required {
  color: var(--adm-error);
}

.adm-badge--sm {
  font-size: 0.72rem;
}

.adm-badge--cat {
  background: rgba(63, 160, 232, 0.15);
  color: var(--adm-accent);
}

.adm-btn--block {
  width: 100%;
  justify-content: center;
}

.text-muted-sm {
  font-size: 0.85rem;
  color: var(--adm-text-muted);
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 4px;
}

.mt-2 {
  margin-top: 10px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 20px;
}

.mb-1 {
  margin-bottom: 6px;
}

.d-block {
  display: block;
}

.p-4 {
  padding: 30px;
}

.blog-thumb-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--adm-radius-sm);
  border: 1px solid var(--adm-border);
}

/* ─── MENSAJES FILTERS & PURGE BUTTON ────────────────────────── */
.adm-user-filters__search {
  flex: 1;
  max-width: 320px;
}

.adm-user-filters__search input[type="text"] {
  width: 100%;
  padding: 8px 14px;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-size: 0.84rem;
  font-family: inherit;
  transition: border-color var(--adm-trans);
}

.adm-user-filters__search input[type="text"]:focus {
  outline: none;
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px var(--adm-accent-dim);
}

.adm-purge-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-purge-select {
  padding: 6px 10px;
  font-size: 0.78rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  color: var(--adm-text);
  border-radius: var(--adm-radius-sm);
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--adm-trans);
}

.adm-purge-select:focus {
  outline: none;
  border-color: var(--adm-accent);
}

.adm-btn--danger {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.adm-btn--danger:hover {
  background: #b91c1c !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

/* ─── TARJETAS Y TOGGLES PERSONALIZADOS DE OPCIONES DE EVENTOS ────── */
.adm-event-options-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--adm-text);
  margin-block: 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  grid-column: 1 / -1;
}

.adm-event-options-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.adm-event-card {
  position: relative;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius);
  padding: 1.25rem;
  transition: all var(--adm-trans);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.adm-event-card:hover {
  border-color: rgba(var(--adm-accent-rgb), 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.adm-event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.adm-event-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.adm-event-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.adm-event-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-event-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.3;
}

.adm-event-card-desc {
  font-size: 0.8rem;
  color: var(--adm-text-muted);
  line-height: 1.4;
}

/* Conmutador Toggle Switch de Estilo Moderno */
.adm-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.adm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.adm-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  transition: var(--adm-trans);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.adm-switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: var(--adm-trans);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.adm-switch input:checked+.adm-switch-slider {
  background-color: var(--adm-accent);
}

.adm-switch input:checked+.adm-switch-slider::before {
  transform: translateX(22px);
}

/* Temas específicos por tipo de tarjeta */
.adm-event-card--recurring {
  border-left: 4px solid var(--adm-purple);
}

.adm-event-card--recurring .adm-event-card-icon {
  background: rgba(168, 85, 247, 0.15);
  color: var(--adm-purple);
}

.adm-event-card--recurring .adm-switch input:checked+.adm-switch-slider {
  background-color: var(--adm-purple);
}

.adm-event-card--global {
  border-left: 4px solid var(--adm-accent);
}

.adm-event-card--global .adm-event-card-icon {
  background: rgba(63, 160, 232, 0.15);
  color: var(--adm-accent);
}

.adm-event-card--public {
  border-left: 4px solid var(--adm-error);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--adm-surface-2) 100%);
}

.adm-event-card--public .adm-event-card-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.adm-event-card--public .adm-switch input:checked+.adm-switch-slider {
  background-color: var(--adm-error);
}

.adm-event-card--featured {
  border-left: 4px solid var(--adm-warning);
}

.adm-event-card--featured .adm-event-card-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--adm-warning);
}

.adm-event-card--featured .adm-switch input:checked+.adm-switch-slider {
  background-color: var(--adm-warning);
}

.adm-event-card--active {
  border-left: 4px solid var(--adm-success);
}

.adm-event-card--active .adm-event-card-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--adm-success);
}

.adm-event-card--active .adm-switch input:checked+.adm-switch-slider {
  background-color: var(--adm-success);
}

.adm-recurrence-box {
  background: rgba(168, 85, 247, 0.06);
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: var(--adm-radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  grid-column: 1 / -1;
}

/* ============================================================
   MODAL DE LECTURA DE MENSAJES EN INTRANET
   ============================================================ */
.adm-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.adm-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.adm-msg-modal-card,
.adm-event-modal-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-2);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(63, 160, 232, 0.15);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.adm-modal-backdrop.open .adm-msg-modal-card,
.adm-modal-backdrop.open .adm-event-modal-card {
  transform: scale(1) translateY(0);
}

.adm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--adm-border);
  background: var(--adm-bg-2);
}

.adm-msg-sender-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--adm-text);
  margin-top: 4px;
  line-height: 1.2;
}

.adm-modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--adm-border);
  color: var(--adm-text-muted);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all var(--adm-trans);
  flex-shrink: 0;
}

.adm-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.adm-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Metadata box */
.adm-msg-meta-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
}

.adm-msg-meta-item {
  color: var(--adm-text-muted);
}

.adm-msg-meta-item strong {
  color: var(--adm-text-subtle);
  font-weight: 600;
  margin-right: 4px;
}

.adm-msg-meta-item--full {
  grid-column: 1 / -1;
}

/* Full text body */
.adm-msg-full-text {
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 1.25rem;
  color: var(--adm-text);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
  max-height: 280px;
  overflow-y: auto;
}

/* Modal Footer & Buttons */
.adm-msg-modal-footer,
.adm-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--adm-border);
  background: var(--adm-bg-2);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.msg-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--adm-trans);
  cursor: pointer;
}

/* Fix inline style display override from JS when element is hidden */
.msg-cta-btn[style*="display: none"],
.msg-cta-btn[style*="display:none"] {
  display: none !important;
}

.msg-cta-btn--wsp {
  background: rgba(37, 211, 102, 0.15) !important;
  border: 1px solid rgba(37, 211, 102, 0.4) !important;
  color: #25d366 !important;
}

.msg-cta-btn--wsp:hover {
  background: #25d366 !important;
  color: #000 !important;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.4);
}

.msg-cta-btn--read {
  background: rgba(63, 160, 232, 0.15) !important;
  border: 1px solid rgba(63, 160, 232, 0.4) !important;
  color: #3fa0e8 !important;
}

.msg-cta-btn--read:hover {
  background: #3fa0e8 !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(63, 160, 232, 0.4);
}

.msg-cta-btn--close {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--adm-border) !important;
  color: var(--adm-text-muted) !important;
}

.msg-cta-btn--close:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--adm-text) !important;
}

/* ─── VISTA Y TARJETAS DE MENSAJES MÓVIL / ESCRITORIO ────────── */
.adm-msg-desktop-table {
  display: block;
  overflow-x: auto;
}

.adm-msg-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
}

.adm-msg-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all var(--adm-trans);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.adm-msg-card:hover {
  border-color: var(--adm-border-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.adm-msg-card--unread {
  border-left: 4px solid var(--adm-accent);
  background: linear-gradient(135deg, rgba(63, 160, 232, 0.08) 0%, var(--adm-surface-2) 100%);
}

.adm-msg-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-msg-card__sender {
  font-weight: 700;
  font-size: 1rem;
  color: var(--adm-text);
}

.adm-msg-card__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.82rem;
  color: var(--adm-text-muted);
}

.adm-msg-card__text {
  font-size: 0.88rem;
  color: var(--adm-text-subtle);
  line-height: 1.45;
  background: var(--adm-bg);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.adm-msg-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  margin-top: 2px;
}

.adm-msg-contact-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--adm-accent-dim);
  color: var(--adm-accent);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--adm-trans);
}

.adm-msg-contact-btn:hover {
  background: var(--adm-accent);
  color: #fff;
}

.adm-msg-preview-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--adm-trans);
}

.adm-msg-preview-box:hover {
  background: var(--adm-accent-dim);
}

.adm-msg-preview-text {
  font-size: 0.85rem;
  color: var(--adm-text-muted);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Media Queries para Móviles */
@media (max-width: 768px) {
  .adm-msg-desktop-table {
    display: none;
  }

  .adm-msg-mobile-cards {
    display: flex;
  }
}

@media (max-width: 640px) {

  .adm-msg-modal-card,
  .adm-event-modal-card {
    max-width: 100%;
    margin: 0.5rem;
    max-height: 94vh;
    border-radius: 12px;
  }

  .adm-msg-meta-box {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
  }

  .adm-modal-header {
    padding: 1rem;
  }

  .adm-modal-body {
    padding: 1rem;
    gap: 0.85rem;
  }

  .adm-msg-modal-footer,
  .adm-modal-footer {
    padding: 0.85rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .msg-cta-btn {
    width: 100% !important;
    padding: 0.65rem 0.4rem !important;
    font-size: 0.82rem !important;
    text-align: center;
    box-sizing: border-box;
  }

  .msg-cta-btn--close {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   REGISTRO DE ACTIVIDAD Y AUDITORÍA LOPD/RGPD
   ============================================================ */
.adm-audit-banner {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border-2);
  border-left: 4px solid var(--adm-accent);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.adm-audit-banner__info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--adm-text);
  flex: 1;
  min-width: 280px;
}

.adm-audit-banner__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.adm-audit-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adm-audit-purge-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabla Desktop vs Tarjetas Móvil Auditoría */
.adm-audit-desktop-table {
  display: block;
  overflow-x: auto;
}

.adm-audit-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
}

.adm-audit-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all var(--adm-trans);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  user-select: none;
}

.adm-audit-card:hover,
.adm-audit-card:focus-visible {
  border-color: var(--adm-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  outline: none;
}

.adm-audit-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.adm-audit-card__user {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--adm-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-audit-card__details {
  font-size: 0.82rem;
  color: var(--adm-text-subtle);
  background: var(--adm-bg);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  word-break: break-word;
  max-height: 80px;
  overflow: hidden;
}

.adm-audit-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
  margin-top: 2px;
}

/* Modal inspector de auditoría */
.adm-audit-modal-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--adm-text-muted);
}

.adm-audit-modal-info strong {
  color: var(--adm-text-subtle);
}

.adm-audit-modal-json {
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--adm-accent);
  max-height: 320px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Responsividad Móvil Auditoría */
@media (max-width: 768px) {
  .adm-audit-desktop-table {
    display: none;
  }

  .adm-audit-mobile-cards {
    display: flex;
  }

  .adm-audit-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }

  .adm-audit-banner__info {
    min-width: 0;
    width: 100%;
    gap: 10px;
    align-items: flex-start;
  }

  .adm-audit-banner__info strong {
    font-size: 0.85rem;
    display: block;
    line-height: 1.35;
  }

  .adm-audit-banner__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .adm-audit-purge-form {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .adm-audit-purge-form select {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    height: 38px;
  }

  .adm-audit-purge-form button {
    white-space: nowrap;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .adm-audit-banner__actions .adm-btn {
    text-align: center;
    justify-content: center;
    width: 100%;
    height: 38px;
  }
}

@media (max-width: 540px) {
  .adm-audit-purge-form {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .adm-audit-purge-form select,
  .adm-audit-purge-form button {
    width: 100%;
  }
}

@media (max-width: 900px) {

  .adm-panels-grid,
  .adm-panels-two-cols {
    grid-template-columns: 1fr;
  }

  .adm-panels-grid>.adm-panel:last-child {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .adm-audit-modal-info {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.85rem;
  }

  .adm-audit-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .adm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .adm-stat-card {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .adm-stat-icon {
    width: 38px;
    height: 38px;
  }

  .adm-stat-value {
    font-size: 1.4rem;
  }

  .adm-stat-label {
    font-size: 0.7rem;
    white-space: normal;
    line-height: 1.2;
  }

  .adm-stat-arrow {
    display: none;
  }

  .adm-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .adm-welcome-date {
    text-align: left;
    align-self: flex-start;
  }

  .adm-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECCIÓN DE GRUPOS DE ENTRENAMIENTO (INTRANET)
   ============================================================ */
.adm-grupos-desktop-table {
  display: block;
  overflow-x: auto;
}

.adm-grupos-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.adm-grupos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.adm-grupo-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--adm-trans);
}

.adm-grupo-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--adm-border);
  flex-wrap: wrap;
}

.adm-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--adm-trans);
  cursor: pointer;
  border: 1px solid transparent;
}

.adm-btn-action--view {
  background: rgba(63, 160, 232, 0.12);
  border-color: rgba(63, 160, 232, 0.35);
  color: #3fa0e8;
}

.adm-btn-action--view:hover {
  background: #3fa0e8;
  color: #fff;
  box-shadow: 0 0 14px rgba(63, 160, 232, 0.35);
  transform: translateY(-1px);
}

.adm-btn-action--edit {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #a855f7;
}

.adm-btn-action--edit:hover {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.adm-btn-action--delete {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  margin-left: auto;
}

.adm-btn-action--delete:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

/* Paginación Intranet */
.adm-pagination,
.pub-pagination,
.adm-cal-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 1.75rem !important;
  margin-bottom: 1.25rem !important;
  flex-wrap: wrap !important;
}

.adm-pagination-btn,
.adm-cal-nav-btn,
.pub-page-btn,
.pub-page-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  user-select: none !important;
  cursor: pointer !important;
}

.adm-pagination-btn:hover:not(.active):not(.disabled),
.adm-cal-nav-btn:hover:not(.adm-cal-nav-btn--active):not(.disabled),
.pub-page-btn:hover:not(.active):not(.disabled),
.pub-page-num:hover:not(.pub-page-num--active):not(.disabled) {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0.2) 100%) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  color: #38bdf8 !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3), 0 0 12px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.adm-pagination-btn.active,
.adm-pagination-btn--active,
.adm-cal-nav-btn--active,
.pub-page-num--active {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.55), 0 0 14px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05) !important;
}

.adm-pagination-btn:active:not(.disabled),
.adm-cal-nav-btn:active:not(.disabled),
.pub-page-btn:active:not(.disabled),
.pub-page-num:active:not(.disabled) {
  transform: translateY(0) scale(0.97) !important;
}

.adm-pagination-btn.disabled,
.adm-pagination-btn:disabled,
.adm-cal-nav-btn.disabled,
.adm-cal-nav-btn:disabled,
.pub-page-btn.disabled,
.pub-page-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  background: rgba(15, 23, 42, 0.4) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.adm-grupo-card:hover {
  border-color: var(--adm-border-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.adm-grupo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 4px solid var(--adm-accent);
  padding-left: 10px;
}

.adm-grupo-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--adm-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-grupo-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.adm-grupo-card-desc {
  font-size: 0.85rem;
  color: var(--adm-text-muted);
  line-height: 1.45;
}

.adm-grupo-card-section {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--adm-border);
  padding-top: 0.75rem;
}

.adm-grupo-members {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.adm-grupo-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--adm-surface-2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.adm-grupo-member-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.adm-grupo-member-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-grupo-member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.adm-grupo-member-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-grupo-member-email {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Detalle de grupo */
.adm-grupo-detail-hero {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.adm-grupo-detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--adm-text);
}

.adm-grupo-detail-desc {
  font-size: 0.88rem;
  color: var(--adm-text-muted);
  margin-top: 4px;
}

.adm-detail-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 1rem;
}

.adm-detail-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.85rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
}

.adm-detail-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.adm-detail-member-avatar--initial {
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-detail-member-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--adm-text);
}

.adm-detail-member-email {
  font-size: 0.76rem;
  color: var(--adm-text-muted);
  word-break: break-all;
}

/* Selector de miembros en Formulario */
.adm-member-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-member-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
}

.adm-member-search {
  background: transparent;
  border: none;
  color: var(--adm-text);
  font-size: 0.86rem;
  width: 100%;
  outline: none;
}

.adm-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.adm-member-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.85rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--adm-trans);
  position: relative;
  user-select: none;
}

.adm-member-option:hover {
  border-color: var(--adm-border-2);
  background: rgba(63, 160, 232, 0.08);
}

.adm-member-option--selected {
  border-color: var(--adm-accent);
  background: rgba(63, 160, 232, 0.15);
}

.adm-member-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.adm-member-option-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-member-option-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.adm-member-option-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-member-option-email {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-member-option-check {
  color: var(--adm-accent);
  opacity: 0;
  transition: opacity var(--adm-trans);
}

.adm-member-option--selected .adm-member-option-check {
  opacity: 1;
}

.adm-color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-color-input {
  width: 44px;
  height: 38px;
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

.adm-color-preview {
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--adm-text-muted);
}

/* Responsividad Móvil Grupos */
@media (max-width: 768px) {
  .adm-grupos-desktop-table {
    display: none;
  }

  .adm-grupos-mobile-cards {
    display: flex;
  }

  .adm-grupos-grid {
    grid-template-columns: 1fr;
  }

  .adm-detail-member-list,
  .adm-member-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECCIÓN DE GESTIÓN DE BLOG / NOTICIAS (INTRANET)
   ============================================================ */
.blog-desktop-table {
  display: block;
  overflow-x: auto;
}

.blog-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.blog-mobile-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--adm-trans);
}

.blog-mobile-card:hover {
  border-color: var(--adm-border-2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.blog-mobile-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.blog-mobile-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--adm-border);
}

.blog-mobile-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.blog-mobile-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.35;
  margin-top: 2px;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-mobile-subinfo {
  font-size: 0.76rem;
  color: var(--adm-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-mobile-card-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--adm-border);
}

.blog-mobile-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0.75rem;
  border-top: 1px solid var(--adm-border);
  flex-wrap: wrap;
}

.blog-mobile-card-actions .adm-btn-action {
  flex: 1;
}

.blog-mobile-card-actions .adm-btn-action--delete {
  flex: 0 0 auto;
}

/* Responsividad Móvil Blog */
@media (max-width: 768px) {
  .blog-desktop-table {
    display: none;
  }

  .blog-mobile-cards {
    display: flex;
  }

  .blog-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .blog-search-box {
    width: 100%;
  }

  .blog-filter-selects {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .blog-filter-select {
    width: 100%;
  }

  /* Formulario Editor de Artículos */
  .editor-layout {
    flex-direction: column;
    gap: 1.25rem;
  }

  .editor-main,
  .editor-sidebar {
    width: 100%;
  }

  .editor-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .editor-toolbar .tb-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .blog-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* ============================================================
   SLIDER GIRATORIO DE MENSAJES EN EL DASHBOARD
   ============================================================ */
.adm-dash-msg-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-dash-msg-badge-count {
  background: var(--adm-accent-dim);
  color: var(--adm-accent);
  border: 1px solid var(--adm-border-2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.adm-dash-msg-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-dash-msg-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.adm-dash-msg-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  color: var(--adm-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--adm-trans);
}

.adm-dash-msg-btn:hover {
  background: var(--adm-accent);
  border-color: var(--adm-accent);
  color: #fff;
  transform: translateY(-1px);
}

.adm-dash-msg-slider {
  position: relative;
  min-height: 140px;
}

.adm-dash-msg-slide {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.adm-dash-msg-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.adm-dash-msg-card {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--adm-trans);
}

.adm-dash-msg-card:hover {
  border-color: var(--adm-border-2);
}

.adm-dash-msg-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-dash-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fa0e8, #1d6fa8);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(63, 160, 232, 0.3);
}

.adm-dash-msg-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.adm-dash-msg-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-dash-msg-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-dash-msg-sub {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-dash-msg-dot {
  opacity: 0.5;
}

.adm-dash-msg-text {
  font-size: 0.85rem;
  color: var(--adm-text);
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--adm-accent);
}

.adm-dash-msg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 0.25rem;
}

.adm-dash-msg-action-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-accent);
  text-decoration: none;
  transition: color var(--adm-trans);
}

.adm-dash-msg-action-link:hover {
  text-decoration: underline;
  color: #60a5fa;
}

.adm-dash-msg-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.85rem;
}

.adm-dash-msg-dot-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--adm-border-2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--adm-trans);
}

.adm-dash-msg-dot-btn.active,
.adm-dash-msg-dot-btn:hover {
  background: var(--adm-accent);
  width: 20px;
  border-radius: 10px;
}

/* ============================================================
   SECCIÓN DE GALERÍA DE FOTOS (INTRANET)
   ============================================================ */
.adm-galeria-desktop-table {
  display: block;
  overflow-x: auto;
}

.adm-galeria-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.adm-galeria-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--adm-trans);
}

.adm-galeria-card:hover {
  border-color: var(--adm-border-2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.adm-galeria-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.adm-galeria-card-cover {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-galeria-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-galeria-card-cover-icon {
  font-size: 1.8rem;
  opacity: 0.6;
}

.adm-galeria-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.adm-galeria-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.adm-galeria-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.3;
  margin: 0;
}

.adm-galeria-card-date {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  margin-top: 2px;
}

.adm-galeria-card-desc {
  font-size: 0.84rem;
  color: var(--adm-text-muted);
  line-height: 1.4;
  margin: 0;
}

.adm-galeria-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0.75rem;
  border-top: 1px solid var(--adm-border);
  flex-wrap: wrap;
}

.adm-galeria-card-actions .adm-btn-action {
  flex: 1;
}

.adm-galeria-card-actions .adm-btn-action--delete {
  flex: 0 0 auto;
}

/* Responsividad Móvil Galería */
@media (max-width: 768px) {
  .adm-galeria-desktop-table {
    display: none;
  }

  .adm-galeria-mobile-cards {
    display: flex;
  }
}

/* ============================================================
   SECCIÓN DE GESTIÓN DE USUARIOS (INTRANET)
   ============================================================ */
.adm-usuarios-desktop-table {
  display: block;
  overflow-x: auto;
}

.adm-usuarios-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.adm-usuario-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--adm-trans);
}

.adm-usuario-card:hover {
  border-color: var(--adm-border-2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.adm-usuario-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-usuario-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.adm-usuario-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.adm-usuario-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.3;
}

.adm-usuario-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.adm-usuario-username {
  background: var(--adm-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: var(--adm-accent);
}

.adm-usuario-email {
  font-size: 0.78rem;
  color: var(--adm-text-muted);
  word-break: break-all;
}

.adm-usuario-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--adm-border);
}

.adm-usuario-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-usuario-teams-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--adm-text-subtle);
}

.adm-usuario-no-team {
  font-size: 0.78rem;
  color: var(--adm-text-subtle);
  font-style: italic;
}

.adm-usuario-teams-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adm-usuario-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 0.85rem;
  margin-top: auto;
  border-top: 1px solid var(--adm-border);
}

.adm-usuario-card-actions .adm-btn-action {
  flex: 1 1 calc(50% - 4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--adm-trans);
  cursor: pointer;
  border: 1px solid transparent;
}

.adm-usuario-card-actions .adm-btn-action--edit {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.adm-usuario-card-actions .adm-btn-action--edit:hover {
  background: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.adm-usuario-card-actions .adm-btn-action--delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  margin-left: 0;
}

.adm-usuario-card-actions .adm-btn-action--delete:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.adm-usuario-card-actions .adm-btn-action--reset-pass {
  flex: 1 1 100%;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.adm-usuario-card-actions .adm-btn-action--reset-pass:hover {
  background: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

.adm-usuario-protected {
  font-size: 0.78rem;
  color: var(--adm-text-subtle);
  font-weight: 600;
}

/* Adaptaciones de la barra de filtros y formularios */
@media (max-width: 768px) {
  .adm-usuarios-desktop-table {
    display: none;
  }

  .adm-usuarios-mobile-cards {
    display: flex;
  }

  .adm-user-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .adm-user-filters__search,
  .adm-user-filters__select-group {
    width: 100%;
  }

  .adm-user-filters__actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .adm-user-filters__actions button,
  .adm-user-filters__actions a {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .adm-group-selector__grid {
    grid-template-columns: 1fr;
  }
}

/* Barra de Filtros Compacta de Usuarios */
.adm-compact-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.adm-compact-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  padding: 0.45rem 0.85rem;
  flex: 1;
  min-width: 220px;
}

.adm-compact-search-box .search-icon {
  position: static;
  transform: none;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  pointer-events: none;
}

.adm-compact-search-input {
  background: transparent;
  border: none;
  color: var(--adm-text);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.adm-compact-filter-selects {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-compact-select {
  padding: 0.45rem 0.75rem;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  color: var(--adm-text);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.adm-compact-select:focus {
  border-color: var(--adm-accent);
}

/* Grid de Usuarios (3 Columnas en Escritorio, 2 en Tablet, 1 en Móvil) */
.adm-usuarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .adm-usuarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .adm-compact-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 8px;
  }

  .adm-compact-search-box {
    width: 100%;
    min-height: 42px;
  }

  .adm-compact-search-input {
    font-size: 16px !important;
    /* Previene auto-zoom molesto de Safari en iOS */
  }

  .adm-compact-filter-selects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }

  .adm-compact-select {
    width: 100%;
    min-height: 40px;
    font-size: 0.82rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
  }

  .adm-compact-filter-selects .adm-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    justify-content: center;
  }

  .adm-usuarios-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .adm-usuario-card {
    padding: 0.875rem;
    gap: 0.75rem;
    border-radius: 14px;
  }

  .adm-usuario-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .adm-usuario-name {
    font-size: 0.95rem;
  }

  .adm-usuario-username {
    font-size: 0.74rem;
  }

  .adm-usuario-email {
    font-size: 0.76rem;
    word-break: break-all;
  }

  .adm-usuario-badges-row {
    gap: 6px;
    padding-top: 0.5rem;
  }

  .adm-usuario-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 0.75rem;
  }

  .adm-usuario-card-actions .adm-btn-action {
    flex: unset;
    min-height: 40px;
    font-size: 0.8rem;
    justify-content: center;
    border-radius: 10px;
  }

  .adm-usuario-card-actions .adm-btn-action--reset-pass,
  .adm-usuario-card-actions a[title*="Ver la intranet"] {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .adm-usuario-protected {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6px 0;
  }
}

@media (max-width: 480px) {
  .adm-compact-filter-selects {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .adm-compact-select {
    font-size: 0.78rem;
    padding: 0.4rem 0.35rem;
  }
}

/* ─── OPTIMIZACIÓN RESPONSIVE DE FORMULARIOS DE USUARIO ─────── */
.adm-avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  padding: 12px 16px;
  border-radius: var(--adm-radius-sm);
}

.adm-avatar-preview-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--adm-accent);
  box-shadow: 0 0 12px rgba(var(--adm-accent-rgb), 0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--adm-bg);
}

.adm-avatar-preview-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-avatar-placeholder-icon {
  font-size: 1.5rem;
  opacity: 0.6;
}

.adm-avatar-upload-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.adm-avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--adm-accent-dim);
  border: 1px solid rgba(var(--adm-accent-rgb), 0.35);
  color: var(--adm-accent);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--adm-trans);
  width: fit-content;
}

.adm-avatar-upload-btn:hover {
  background: var(--adm-accent);
  color: #ffffff;
}

.adm-avatar-upload-hint {
  font-size: 0.74rem;
  color: var(--adm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-avatar-file-input {
  display: none !important;
}

/* Acordeón de Entrenadores en el formulario */
.adm-accordion-panel {
  overflow: hidden;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  background: var(--adm-surface);
}

.adm-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--adm-bg-2);
  border: none;
  border-bottom: 1px solid var(--adm-border);
  cursor: pointer;
  color: var(--adm-text);
  text-align: left;
  transition: background var(--adm-trans);
}

.adm-accordion-toggle:hover {
  background: var(--adm-surface-2);
}

.adm-accordion-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-accordion-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.adm-accordion-subtitle {
  font-size: 0.76rem;
  color: var(--adm-text-muted);
  display: block;
  margin-top: 2px;
}

.adm-accordion-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-accordion-body {
  padding: 18px;
}

/* Adaptación del formulario a dispositivos móviles (≤ 768px) */
@media (max-width: 768px) {
  .adm-config-grid {
    grid-template-columns: 1fr !important;
    gap: 0.875rem !important;
  }

  .adm-form-group {
    grid-column: 1 / -1 !important;
  }

  .adm-form-group label {
    font-size: 0.84rem;
    font-weight: 600;
  }

  .adm-form-group input[type="text"],
  .adm-form-group input[type="email"],
  .adm-form-group input[type="password"],
  .adm-form-group input[type="date"],
  .adm-form-group input[type="tel"],
  .adm-form-group input[type="number"],
  .adm-form-group select,
  .adm-form-group textarea {
    font-size: 16px !important;
    /* Previene auto-zoom molesto en iOS Safari */
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
  }

  .adm-avatar-upload-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    gap: 12px;
  }

  .adm-avatar-preview-ring {
    width: 68px;
    height: 68px;
  }

  .adm-avatar-upload-info {
    align-items: center;
    width: 100%;
  }

  .adm-avatar-upload-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .adm-tutor-container .adm-panel {
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }

  .adm-accordion-toggle {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .adm-accordion-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .adm-accordion-body {
    padding: 12px;
  }

  .adm-group-selector__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .adm-group-card__inner {
    padding: 0.6rem 0.75rem;
    gap: 8px;
  }

  .adm-group-card__name {
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .adm-form-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .adm-form-actions .adm-btn {
    width: 100% !important;
    min-height: 46px !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 420px) {
  .adm-group-selector__grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   SLIDER GIRATORIO DE ANUNCIOS DEL SISTEMA (DASHBOARD)
   ============================================================ */
.adm-announcements-slider-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.adm-announcements-slider {
  position: relative;
  min-height: 54px;
}

/* Barra de progreso de transición de anuncios integrada en la tarjeta */
.adm-announcement-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0 !important;
  overflow: hidden;
  padding-bottom: 1.15rem !important;
}

.adm-announcement-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.adm-announcement-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  will-change: width;
}

.adm-alert--alerta .adm-announcement-progress-fill {
  background: linear-gradient(90deg, #f87171 0%, #fb923c 100%);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.7);
}

.adm-alert--exito .adm-announcement-progress-fill {
  background: linear-gradient(90deg, #4ade80 0%, #34d399 100%);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.adm-alert--info .adm-announcement-progress-fill {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

@keyframes annSlideProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.adm-announcement-slide.active .adm-announcement-progress-fill {
  animation: annSlideProgress 5s linear forwards;
}

.adm-announcements-slider-wrap:hover .adm-announcement-progress-fill {
  animation-play-state: paused;
}

.adm-announcement-slide {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.adm-announcement-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.adm-announcement-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.adm-announcement-body {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.adm-announcement-counter {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.adm-announcements-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.adm-announcement-nav {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  color: var(--adm-text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--adm-trans);
}

.adm-announcement-nav:hover {
  background: var(--adm-accent);
  color: #fff;
  border-color: var(--adm-accent);
}

.adm-announcements-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-announcement-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--adm-border-2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--adm-trans);
}

.adm-announcement-dot.active,
.adm-announcement-dot:hover {
  background: var(--adm-accent);
  width: 16px;
  border-radius: 8px;
}

/* ═══════════════════════════════════════
   ESTADÍSTICAS Y ANALÍTICA DEL DASHBOARD
═══════════════════════════════════════ */
.adm-mt-2rem {
  margin-top: 2rem !important;
}

.adm-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.adm-analytics-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.adm-analytics-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--adm-text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adm-analytics-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.adm-analytics-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.adm-analytics-bar-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--adm-text);
  font-weight: 600;
}

.adm-analytics-bar-val {
  color: var(--adm-text-muted);
  font-size: 0.8rem;
}

.adm-analytics-bar-val strong {
  color: var(--adm-text);
}

.adm-analytics-bar-track {
  width: 100%;
  height: 8px;
  background: var(--adm-surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.adm-analytics-panel .adm-panel-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-panel-body-padded {
  padding: 1.25rem;
}

.adm-grupo-dot {
  background-color: var(--grp-color, #38bdf8);
}

.adm-analytics-bar-fill {
  height: 100%;
  border-radius: 999px;
  width: var(--bar-width, 0%);
  background-color: var(--bar-color, #38bdf8);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.adm-analytics-role-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--role-color, #38bdf8);
}


.adm-analytics-roles-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.adm-analytics-role-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-2);
  border-radius: 10px;
  transition: transform var(--adm-trans), border-color var(--adm-trans);
}

.adm-analytics-role-card:hover {
  border-color: var(--adm-accent);
  transform: translateY(-2px);
}

.adm-analytics-role-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.adm-analytics-role-content {
  flex: 1;
}

.adm-analytics-role-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.adm-analytics-role-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--adm-text);
}

.adm-analytics-role-pct {
  font-size: 0.75rem;
  color: var(--adm-text-muted);
  margin-top: 2px;
}

.adm-analytics-total-badge {
  text-align: center;
  padding: 0.75rem;
  background: var(--adm-surface-2);
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--adm-text-muted);
}

.adm-analytics-total-badge strong {
  color: var(--adm-accent);
}

/* ═══════════════════════════════════════
   INDICADOR DE SEGURIDAD DE CONTRASEÑA
═══════════════════════════════════════ */
.adm-password-strength-container {
  margin-top: 0.75rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--adm-border-2);
  border-radius: 10px;
  padding: 0.9rem;
}

.adm-password-strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.adm-password-strength-label {
  color: var(--adm-text-muted);
}

.adm-password-strength-val {
  font-weight: 700;
  color: var(--adm-text);
}

.adm-password-strength-track {
  width: 100%;
  height: 6px;
  background: var(--adm-surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.adm-password-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.adm-password-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--adm-text-muted);
}

.adm-password-checkitem {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.adm-password-checkitem.valid {
  color: #4ade80;
  font-weight: 600;
}

.adm-password-match-msg {
  font-size: 0.78rem;
  margin-top: 0.35rem;
  font-weight: 600;
  display: block;
}

.adm-password-match-msg.match {
  color: #4ade80;
}

.adm-password-match-msg.mismatch {
  color: #f87171;
}

/* ═══════════════════════════════════════
   PÁGINA DE TÉRMINOS DE USO Y RGPD
═══════════════════════════════════════ */
.adm-terms-container {
  max-width: 820px;
  margin: 2rem auto;
}

.adm-terms-scroll-box {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 1.5rem;
  max-height: 340px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--adm-text-muted);
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.adm-terms-scroll-box h4 {
  color: var(--adm-text);
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.adm-terms-scroll-box h4:first-child {
  margin-top: 0;
}

.adm-terms-checkbox-card {
  background: rgba(63, 160, 232, 0.06);
  border: 1px solid rgba(63, 160, 232, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.adm-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--adm-text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.adm-terms-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--adm-accent);
  cursor: pointer;
}

.adm-btn-terms-submit {
  width: 100%;
  justify-content: center;
  opacity: 0.5;
  cursor: not-allowed;
  transition: all 0.25s ease;
}

.adm-btn-terms-submit.enabled {
  opacity: 1 !important;
  cursor: pointer !important;
}

/* ═══════════════════════════════════════
   ACORDEÓN DESPLEGABLE — FICHA TÉCNICA
═══════════════════════════════════════ */
.adm-accordion-panel {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--adm-border-2);
  border-radius: 12px;
  overflow: hidden;
}

.adm-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--adm-surface-2);
  border: none;
  color: var(--adm-text);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.adm-accordion-toggle:hover {
  background: var(--adm-surface);
}

.adm-accordion-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-accordion-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
}

.adm-accordion-subtitle {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--adm-text-muted);
}

.adm-accordion-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-accordion-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.adm-label-hint {
  color: var(--adm-text-muted);
  font-weight: 400;
}

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

/* ═══════════════════════════════════════════════════════════════
   MEJORAS DE ADAPTABILIDAD Y SIMPLIFICACIÓN MÓVIL (EXCLUSIVO MÓVIL)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Layout principal y contenedor de contenido */
  .adm-content {
    padding: 0.75rem 0.65rem !important;
  }

  .adm-topbar {
    padding: 0.5rem 0.75rem !important;
  }

  .adm-page-title {
    font-size: 1.05rem !important;
    max-width: 170px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Ocultar texto en botones secundarios de barra superior en móvil estrecho */
  @media (max-width: 560px) {
    .adm-topbar-action span {
      display: none !important;
    }

    .adm-topbar-action {
      padding: 6px 10px !important;
    }

    .adm-user-role {
      display: none !important;
    }
  }

  /* Cabeceras de página y barras de herramientas */
  .adm-page-toolbar,
  .adm-page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .adm-page-toolbar .adm-btn,
  .adm-page-header .adm-btn,
  #btnCreateUser,
  #backBtn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.875rem !important;
  }

  /* Filtros y barras de búsqueda compactas */
  .adm-compact-filter-bar,
  .adm-user-filters {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
    padding: 0.75rem !important;
  }

  .adm-compact-search-box,
  .adm-compact-filter-selects,
  .adm-compact-select {
    width: 100% !important;
  }

  /* Evitar zoom automático de iOS en inputs */
  .adm-compact-search-input,
  .adm-compact-select,
  .adm-form-group input,
  .adm-form-group select,
  .adm-form-group textarea {
    font-size: 16px !important;
    min-height: 42px !important;
  }

  /* Formularios en 1 sola columna */
  .adm-form-row,
  .adm-config-grid,
  .adm-form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .adm-form-actions,
  .adm-modal-footer {
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .adm-form-actions .adm-btn,
  .adm-modal-footer .adm-btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Tarjetas y Rejillas de Usuarios/Equipos/Eventos */
  .adm-usuarios-grid,
  .adm-equipo-grid,
  .adm-eventos-grid,
  .adm-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .adm-usuario-card-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .adm-usuario-card-actions .adm-btn-action {
    flex: 1 1 calc(50% - 3px) !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px !important;
  }

  .adm-usuario-card-actions .adm-btn-action--reset-pass {
    flex: 1 1 100% !important;
  }

  /* Tablas con desplazamiento suave en móvil */
  .adm-panel-body {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Modales simplificados para pantalla táctil */
  .adm-modal-dialog,
  .adm-modal-content {
    width: 94vw !important;
    max-width: 94vw !important;
    max-height: 88vh !important;
    margin: 1rem auto !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    overflow-y: auto !important;
  }

  /* Mejoras de zona táctil en el menú lateral */
  .adm-nav-link {
    padding: 0.75rem 0.85rem !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* ============================================================
   CONTROL DE ASISTENCIA DE GRUPOS — ESTILOS Y ADAPTABILIDAD MÓVIL
   ============================================================ */

.adm-asistencia-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.adm-asistencia-filter-card {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.adm-asistencia-filter-grid {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 1rem;
  align-items: flex-end;
}

.adm-asistencia-hero-banner {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.adm-asistencia-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.adm-asistencia-card {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.22s ease;
}

.adm-asistencia-card:hover {
  border-color: rgba(63, 160, 232, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.adm-asistencia-skater-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 220px;
  flex: 1;
}

.adm-asistencia-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--adm-border, rgba(80, 130, 200, 0.2));
  flex-shrink: 0;
}

.adm-asistencia-avatar--initial {
  background: linear-gradient(135deg, var(--adm-accent, #3fa0e8), #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.adm-asistencia-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.2));
  background: var(--adm-surface-2, #121f33);
  color: var(--adm-text-muted, #cbd5e1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  touch-action: manipulation;
  min-height: 40px;
}

.adm-status-btn:hover {
  transform: translateY(-1px);
  color: var(--adm-text, #ffffff);
  border-color: rgba(255, 255, 255, 0.25);
}

.adm-status-btn--presente.is-selected {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4) !important;
}

.adm-status-btn--ausente.is-selected {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

.adm-status-btn--justificado.is-selected {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

.adm-status-btn--retraso.is-selected {
  background: #06b6d4 !important;
  color: #ffffff !important;
  border-color: #0891b2 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4) !important;
}

.adm-asistencia-note-wrap {
  min-width: 180px;
  max-width: 280px;
  flex: 1;
}

.adm-asistencia-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.adm-asistencia-stat-card {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.adm-asistencia-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--stat-accent, var(--adm-accent));
}

.adm-asistencia-save-actions {
  display: flex;
  justify-content: flex-end;
}

.adm-asistencia-btn-save {
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

/* Historial y Mi Asistencia — Adaptabilidad Móvil */
.adm-asistencia-history-mobile-cards,
.adm-my-attendance-mobile-cards {
  display: none;
}

.adm-history-session-card,
.adm-my-attendance-card {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.adm-history-card-header,
.adm-my-attendance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.adm-history-date,
.adm-my-attendance-date {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--adm-text, #ffffff);
}

.adm-history-meta {
  font-size: 0.84rem;
  color: var(--adm-text-muted, #94a3b8);
}

.adm-history-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.adm-history-notes,
.adm-my-attendance-note {
  font-size: 0.84rem;
  color: var(--adm-text-muted, #cbd5e1);
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--adm-accent, #3fa0e8);
}

.adm-my-attendance-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* Adaptabilidad a dispositivos móviles (< 768px) */
@media (max-width: 768px) {
  .adm-asistencia-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .adm-asistencia-filter-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .adm-asistencia-filter-grid button {
    width: 100%;
  }

  .adm-asistencia-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .adm-asistencia-hero-banner>div {
    width: 100%;
  }

  .adm-asistencia-quick-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .adm-asistencia-quick-actions button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .adm-asistencia-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1.1rem;
  }

  .adm-asistencia-skater-info {
    min-width: 100%;
  }

  .adm-asistencia-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
  }

  .adm-status-btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.88rem;
    padding: 10px 8px;
  }

  .adm-asistencia-note-wrap {
    min-width: 100%;
    max-width: 100%;
  }

  .adm-asistencia-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .adm-asistencia-save-actions {
    justify-content: stretch;
  }

  .adm-asistencia-btn-save {
    max-width: 100%;
    width: 100%;
  }

  .adm-asistencia-history-desktop,
  .adm-my-attendance-desktop {
    display: none !important;
  }

  .adm-asistencia-history-mobile-cards,
  .adm-my-attendance-mobile-cards {
    display: block !important;
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .adm-asistencia-stats-grid {
    grid-template-columns: 1fr !important;
  }

  .adm-status-btn {
    font-size: 0.82rem;
    padding: 8px 4px;
  }
}

/* ============================================================
   EFECTOS VISUALES Y MICRO-INTERACCIONES AVANZADAS EN ASISTENCIA
   ============================================================ */

.adm-asistencia-filter-card {
  background: linear-gradient(135deg, rgba(14, 23, 38, 0.95), rgba(18, 31, 51, 0.98)) !important;
  border: 1px solid rgba(63, 160, 232, 0.22) !important;
  border-radius: 16px !important;
  padding: 1.35rem 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
}

/* Efectos en el Desplegable de Grupos */
.adm-asistencia-filter-card select.adm-select,
#grupo_id {
  background-color: var(--adm-surface-2, #121f33) !important;
  color: var(--adm-text, #f0f6fc) !important;
  border: 1px solid rgba(80, 130, 200, 0.25) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  font-size: 0.93rem !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.adm-asistencia-filter-card select.adm-select:hover,
#grupo_id:hover {
  border-color: rgba(63, 160, 232, 0.6) !important;
  box-shadow: 0 4px 14px rgba(63, 160, 232, 0.2) !important;
  transform: translateY(-1px);
}

.adm-asistencia-filter-card select.adm-select:focus,
#grupo_id:focus {
  border-color: var(--adm-accent, #3fa0e8) !important;
  box-shadow: 0 0 0 3px rgba(63, 160, 232, 0.3), 0 0 20px rgba(63, 160, 232, 0.25) !important;
  outline: none !important;
}

#grupo_id option {
  background-color: #0e1726 !important;
  color: #f0f6fc !important;
  padding: 10px !important;
}

/* Efectos en el Selector de Fecha */
.adm-asistencia-filter-card input[type="date"],
#fecha {
  color-scheme: dark !important;
  background-color: var(--adm-surface-2, #121f33) !important;
  color: var(--adm-text, #f0f6fc) !important;
  border: 1px solid rgba(80, 130, 200, 0.25) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  font-size: 0.93rem !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.adm-asistencia-filter-card input[type="date"]:hover,
#fecha:hover {
  border-color: rgba(63, 160, 232, 0.6) !important;
  box-shadow: 0 4px 14px rgba(63, 160, 232, 0.2) !important;
  transform: translateY(-1px);
}

.adm-asistencia-filter-card input[type="date"]:focus,
#fecha:focus {
  border-color: var(--adm-accent, #3fa0e8) !important;
  box-shadow: 0 0 0 3px rgba(63, 160, 232, 0.3), 0 0 20px rgba(63, 160, 232, 0.25) !important;
  outline: none !important;
}

/* Efectos en el Buscador de Patinadores */
#searchAsistenciaSkater {
  background-color: var(--adm-surface-1, #0e1726) !important;
  color: var(--adm-text, #f0f6fc) !important;
  border: 1px solid rgba(80, 130, 200, 0.25) !important;
  border-radius: 12px !important;
  padding: 12px 14px 12px 42px !important;
  font-size: 0.92rem !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

#searchAsistenciaSkater:hover {
  border-color: rgba(63, 160, 232, 0.5) !important;
  box-shadow: 0 4px 16px rgba(63, 160, 232, 0.15) !important;
}

#searchAsistenciaSkater:focus {
  border-color: var(--adm-accent, #3fa0e8) !important;
  box-shadow: 0 0 0 3.5px rgba(63, 160, 232, 0.28), 0 0 22px rgba(63, 160, 232, 0.2) !important;
  outline: none !important;
  background-color: var(--adm-surface-2, #121f33) !important;
}

/* Animación de entrada fluida en las tarjetas */
.adm-asistencia-card {
  animation: fadeInAsistencia 0.35s ease-out backwards;
}

@keyframes fadeInAsistencia {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   GESTIÓN DE BLOG Y NOTICIAS — MEJORAS VISUALES Y DE USABILIDAD
   ============================================================ */

/* KPI Metrics Grid */
.blog-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .blog-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .blog-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }

  .blog-stat-card {
    padding: 0.65rem 0.8rem !important;
    gap: 0.6rem !important;
    border-radius: 10px !important;
  }

  .blog-stat-card .stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
  }

  .blog-stat-card .stat-number {
    font-size: 1.2rem !important;
  }

  .blog-stat-card .stat-label {
    font-size: 0.72rem !important;
  }
}

.blog-stat-card {
  background: linear-gradient(135deg, rgba(14, 23, 38, 0.95), rgba(18, 31, 51, 0.98));
  border: 1px solid rgba(80, 130, 200, 0.15);
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 160, 232, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon--total {
  background: rgba(63, 160, 232, 0.15);
  color: #3fa0e8;
  border: 1px solid rgba(63, 160, 232, 0.3);
}

.stat-icon--active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-icon--draft {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stat-icon--star {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--adm-text, #f0f6fc);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--adm-text-muted, #cbd5e1);
  margin-top: 2px;
}

/* Filter Bar & View Toggle */
.blog-filter-bar {
  background: linear-gradient(135deg, rgba(14, 23, 38, 0.95), rgba(18, 31, 51, 0.98));
  border: 1px solid rgba(63, 160, 232, 0.2);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.blog-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.blog-search-input {
  width: 100%;
  background: var(--adm-surface-2, #121f33) !important;
  border: 1px solid rgba(80, 130, 200, 0.25) !important;
  color: var(--adm-text, #f0f6fc) !important;
  border-radius: 10px !important;
  padding: 10px 14px 10px 42px !important;
  font-size: 0.92rem !important;
  transition: all 0.22s ease !important;
}

.blog-search-input:focus {
  border-color: var(--adm-accent, #3fa0e8) !important;
  box-shadow: 0 0 0 3px rgba(63, 160, 232, 0.3), 0 0 15px rgba(63, 160, 232, 0.2) !important;
  outline: none !important;
}

.blog-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.blog-filter-selects {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-filter-select {
  background: var(--adm-surface-2, #121f33) !important;
  border: 1px solid rgba(80, 130, 200, 0.25) !important;
  color: var(--adm-text, #f0f6fc) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.blog-filter-select:focus {
  border-color: var(--adm-accent, #3fa0e8) !important;
  outline: none !important;
}

/* Toggle Switcher de Vista (Grid vs Tabla) */
.blog-view-toggle {
  display: inline-flex;
  background: var(--adm-surface-2, #121f33);
  border: 1px solid rgba(80, 130, 200, 0.25);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.blog-view-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--adm-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-view-btn.is-active {
  background: var(--adm-accent, #3fa0e8);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(63, 160, 232, 0.4);
}

/* Vista de Cuadrícula / Tarjetas (Grid View) */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.blog-card-item {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-card-item:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 160, 232, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.blog-card-cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #070c14;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card-item:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.blog-card-badges>* {
  pointer-events: auto;
}

.blog-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--adm-text, #f0f6fc);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.86rem;
  color: var(--adm-text-muted, #cbd5e1);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--adm-text-subtle, #b5cce8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
}

.blog-card-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 1.25rem 1.25rem;
}

.blog-card-footer-actions .adm-btn-action {
  flex: 1;
  justify-content: center;
}

/* Badges por Categoría */
.adm-badge--cat {
  background: rgba(63, 160, 232, 0.15) !important;
  color: #3fa0e8 !important;
  border: 1px solid rgba(63, 160, 232, 0.3) !important;
  font-weight: 700 !important;
}

.adm-badge--cat-competicion {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

.adm-badge--cat-inscripciones {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.adm-badge--cat-eventos {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
  border: 1px solid rgba(249, 115, 22, 0.3) !important;
}

.adm-badge--cat-consejos {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #22d3ee !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

/* Editor Form Styling Improvements */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.editor-card {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.editor-card--sticky {
  position: sticky;
  top: calc(var(--adm-topbar-h, 64px) + 1rem);
  z-index: 10;
}

.editor-title-input {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  padding: 14px 16px !important;
  background: var(--adm-surface-2, #121f33) !important;
  border: 1px solid rgba(80, 130, 200, 0.25) !important;
  color: var(--adm-text, #f0f6fc) !important;
  border-radius: 10px !important;
}

.editor-title-input:focus {
  border-color: var(--adm-accent, #3fa0e8) !important;
  box-shadow: 0 0 0 3px rgba(63, 160, 232, 0.3) !important;
  outline: none !important;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--adm-surface-2, #121f33);
  border: 1px solid rgba(80, 130, 200, 0.2);
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.tb-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.15));
  color: var(--adm-text-muted, #cbd5e1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tb-btn:hover {
  background: var(--adm-accent, #3fa0e8);
  color: #ffffff;
  border-color: var(--adm-accent, #3fa0e8);
}

.tb-btn--preset {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.tb-btn--preset:hover {
  background: #a855f7;
  color: #ffffff;
}

.editor-code {
  border-radius: 0 0 10px 10px !important;
  font-family: monospace, 'Courier New', sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

@media (max-width: 992px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-card--sticky {
    position: static;
  }
}

/* ============================================================
   GALERÍA DE FOTOS INTERACTIVA — TARJETAS, MASONRY Y DROPZONE
   ============================================================ */

/* Rejilla de Álbumes en Tarjetas */
.adm-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.adm-album-card {
  background: var(--adm-surface-1, #0e1726);
  border: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.adm-album-card:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 160, 232, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.adm-album-cover-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #070c14;
  overflow: hidden;
}

.adm-album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.adm-album-card:hover .adm-album-cover-img {
  transform: scale(1.06);
}

.adm-album-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--adm-surface-2, #121f33), #0a1120);
  opacity: 0.8;
}

.adm-album-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.adm-album-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.adm-album-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--adm-text, #f0f6fc);
  margin-bottom: 6px;
  line-height: 1.35;
}

.adm-album-card-desc {
  font-size: 0.86rem;
  color: var(--adm-text-muted, #cbd5e1);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adm-album-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 1.25rem 1.25rem;
  border-top: 1px solid var(--adm-border, rgba(80, 130, 200, 0.12));
}

.adm-album-card-footer .adm-btn-action {
  flex: 1;
  justify-content: center;
}

/* Zona de Arrastre Dropzone para Subida Masiva */
.adm-dropzone {
  border: 2px dashed rgba(63, 160, 232, 0.4);
  background: linear-gradient(135deg, rgba(14, 23, 38, 0.8), rgba(18, 31, 51, 0.9));
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.adm-dropzone:hover,
.adm-dropzone.is-dragover {
  border-color: var(--adm-accent, #3fa0e8);
  background: rgba(63, 160, 232, 0.08);
  box-shadow: 0 0 25px rgba(63, 160, 232, 0.2);
}

.adm-dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--adm-accent, #3fa0e8);
}

.adm-dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--adm-text, #f0f6fc);
  margin-bottom: 4px;
}

.adm-dropzone-subtitle {
  font-size: 0.84rem;
  color: var(--adm-text-muted, #cbd5e1);
}

/* Previsualización en Tiempo Real de Archivos Elegidos */
.adm-upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 1.25rem;
}

.adm-upload-preview-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--adm-border);
  background: #000;
}

.adm-upload-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilos Avanzados para el Buscador de Álbumes en Galería */
#searchAlbumInput {
  background-color: var(--adm-surface-1, #0e1726) !important;
  color: var(--adm-text, #f0f6fc) !important;
  border: 1px solid rgba(80, 130, 200, 0.25) !important;
  border-radius: 12px !important;
  padding: 12px 14px 12px 42px !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

#searchAlbumInput:hover {
  border-color: rgba(63, 160, 232, 0.5) !important;
  box-shadow: 0 4px 16px rgba(63, 160, 232, 0.15) !important;
}

#searchAlbumInput:focus {
  border-color: var(--adm-accent, #3fa0e8) !important;
  box-shadow: 0 0 0 3.5px rgba(63, 160, 232, 0.28), 0 0 22px rgba(63, 160, 232, 0.2) !important;
  outline: none !important;
  background-color: var(--adm-surface-2, #121f33) !important;
}

/* Panel de Subida Glassmorphic & Dropzone */
.adm-upload-panel {
  background: linear-gradient(135deg, rgba(14, 23, 38, 0.95), rgba(18, 31, 51, 0.98)) !important;
  border: 1px solid rgba(63, 160, 232, 0.22) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  margin-bottom: 1.5rem !important;
  overflow: hidden;
}

.adm-upload-panel .adm-panel-header {
  background: rgba(18, 31, 51, 0.6);
  border-bottom: 1px solid rgba(80, 130, 200, 0.15);
  padding: 1.1rem 1.4rem;
}

.adm-upload-panel .adm-panel-body {
  padding: 1.35rem 1.4rem;
}

.adm-dropzone {
  border: 2px dashed rgba(63, 160, 232, 0.45) !important;
  background: radial-gradient(circle at center, rgba(63, 160, 232, 0.08) 0%, rgba(14, 23, 38, 0.95) 100%) !important;
  border-radius: 14px !important;
  padding: 2.2rem 1.5rem !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

.adm-dropzone:hover,
.adm-dropzone.is-dragover {
  border-color: var(--adm-accent, #3fa0e8) !important;
  background: radial-gradient(circle at center, rgba(63, 160, 232, 0.18) 0%, rgba(18, 31, 51, 0.98) 100%) !important;
  box-shadow: 0 0 30px rgba(63, 160, 232, 0.3), inset 0 0 15px rgba(63, 160, 232, 0.1) !important;
  transform: translateY(-2px);
}

.adm-dropzone-icon {
  font-size: 2.8rem !important;
  margin-bottom: 0.6rem !important;
  color: var(--adm-accent, #3fa0e8) !important;
  filter: drop-shadow(0 4px 12px rgba(63, 160, 232, 0.4)) !important;
  transition: transform 0.3s ease !important;
}

.adm-dropzone:hover .adm-dropzone-icon {
  transform: scale(1.15) translateY(-2px);
}

.adm-dropzone-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--adm-text, #f0f6fc) !important;
  margin-bottom: 6px !important;
}

.adm-dropzone-subtitle {
  font-size: 0.86rem !important;
  color: var(--adm-text-muted, #cbd5e1) !important;
}

.adm-btn-upload-submit {
  background: linear-gradient(135deg, #3fa0e8 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(63, 160, 232, 0.4) !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.adm-btn-upload-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(63, 160, 232, 0.55) !important;
  background: linear-gradient(135deg, #60c4ff 0%, #2563eb 100%) !important;
}

/* ─── COMPACT RGPD TOGGLE SWITCH ────────────────────────────── */
.adm-rgpd-toggle-card {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
}

.adm-toggle-label--compact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-toggle-label--compact:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.adm-toggle-label--compact .adm-toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--adm-border);
  border-radius: 50px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-toggle-label--compact .adm-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--adm-text-muted);
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-toggle-label--compact .adm-toggle-input:checked+.adm-toggle-switch {
  background: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.adm-toggle-label--compact .adm-toggle-input:checked+.adm-toggle-switch::after {
  transform: translateX(16px);
  background: #0f172a;
}

.adm-toggle-label--compact .adm-toggle-text-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--adm-text-muted);
  transition: color 0.2s ease;
}

.adm-toggle-label--compact .adm-toggle-input:checked~.adm-toggle-text-inline {
  color: #38bdf8;
}

/* ─── AUDIENCE SELECTOR (ANUNCIOS) ───────────────────────────── */
.adm-audience-selector {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.adm-audience-option {
  position: relative;
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  overflow: hidden;
}

.adm-audience-option:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.adm-audience-option.active,
.adm-audience-option:has(input:checked) {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.04) 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 0 1px rgba(56, 189, 248, 0.4);
}

.adm-audience-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.adm-audience-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--adm-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-audience-icon--global {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}

.adm-audience-icon--groups {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.25);
}

.adm-audience-icon--coaches {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}

.adm-audience-option:hover .adm-audience-icon {
  transform: scale(1.08);
}

.adm-audience-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.adm-audience-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--adm-text);
  line-height: 1.25;
  transition: color 0.2s ease;
}

.adm-audience-option.active .adm-audience-text strong,
.adm-audience-option:has(input:checked) .adm-audience-text strong {
  color: #ffffff;
}

.adm-audience-text small {
  font-size: 0.76rem;
  color: var(--adm-text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.adm-audience-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--adm-border-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-audience-check::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-audience-option.active .adm-audience-check,
.adm-audience-option:has(input:checked) .adm-audience-check {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.adm-audience-option.active .adm-audience-check::after,
.adm-audience-option:has(input:checked) .adm-audience-check::after {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .adm-audience-selector {
    flex-direction: column;
    gap: 10px;
  }

  .adm-audience-option {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
  }
}

/* ─── AVATAR UPLOADER (USUARIOS) ────────────────────────────────── */
.adm-avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--adm-surface-2, rgba(15, 26, 48, 0.6));
  border: 1px dashed var(--adm-border, rgba(255, 255, 255, 0.15));
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

.adm-avatar-upload-box:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.adm-avatar-preview-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1a30;
  flex-shrink: 0;
  position: relative;
}

.adm-avatar-preview-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.adm-avatar-upload-box:hover .adm-avatar-preview-ring img {
  transform: scale(1.08);
}

.adm-avatar-placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.adm-avatar-upload-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  color: #38bdf8;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.adm-avatar-upload-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.adm-avatar-upload-hint {
  font-size: 0.78rem;
  color: var(--adm-text-muted, #94a3b8);
  font-weight: 500;
}

.adm-avatar-file-input {
  display: none !important;
}

/* Estilos Globales de Campos de Fecha y Hora Desplegables (Escritura Manual + Selector) */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  color-scheme: dark !important;
  cursor: text !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  filter: invert(0.85) sepia(1) saturate(5) hue-rotate(185deg) !important;
  opacity: 0.9 !important;
  padding: 4px !important;
  border-radius: 4px !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.18) !important;
  opacity: 1 !important;
}

/* Gallery & Album Styles */
.adm-permisos-wrapper {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--adm-border);
}

.adm-permisos-title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--adm-text-main);
}

.adm-vis-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.adm-access-container {
  background: var(--adm-surface-1);
  border: 1px solid var(--adm-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.adm-access-header {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--adm-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.adm-access-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--adm-border);
  background: var(--adm-surface-2);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.adm-access-card:hover {
  border-color: rgba(63, 160, 232, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.adm-access-card.is-active,
.adm-access-card:has(:checked) {
  border-color: var(--adm-accent, #3fa0e8);
  background: rgba(63, 160, 232, 0.08);
  box-shadow: 0 4px 20px rgba(63, 160, 232, 0.15);
}

.adm-access-card input[type="radio"] {
  accent-color: var(--adm-accent, #3fa0e8);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.adm-access-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.adm-access-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--adm-text-main);
  margin-bottom: 3px;
}

.adm-access-info span {
  display: block;
  font-size: 0.82rem;
  color: var(--adm-text-muted);
  line-height: 1.4;
}

.adm-groups-panel {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  animation: fadeInDown 0.3s ease;
}

.adm-groups-panel-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--adm-text-main);
}

.adm-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.65rem;
}

.adm-group-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--adm-border);
  background: var(--adm-surface-1);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.adm-group-pill:hover {
  border-color: var(--group-color, var(--adm-accent));
  transform: translateY(-1px);
}

.adm-group-pill:has(:checked) {
  border-color: var(--group-color, var(--adm-accent));
  background: rgba(63, 160, 232, 0.1);
  box-shadow: 0 0 12px rgba(63, 160, 232, 0.2);
}

.adm-group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.adm-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}

.adm-photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--adm-border);
  background: var(--adm-surface-2);
  aspect-ratio: 1.33;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.adm-photo-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--adm-accent);
  box-shadow: 0 8px 25px rgba(63, 160, 232, 0.25);
}

.adm-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.adm-photo-card:hover .adm-photo-img {
  transform: scale(1.05);
}

.adm-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.adm-photo-card:hover .adm-photo-overlay {
  opacity: 1;
}

.adm-photo-zoom-icon {
  font-size: 1.5rem;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.adm-photo-card:hover .adm-photo-zoom-icon {
  transform: scale(1.2);
}

.adm-photo-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
  z-index: 10;
}

.adm-photo-delete-btn:hover {
  transform: scale(1.15);
  background: #dc2626;
}

/* LIGHTBOX VISOR FULLSCREEN */
.adm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.94);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.adm-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.adm-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(14, 23, 38, 0.85);
  border-bottom: 1px solid var(--adm-border);
}

.adm-lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--adm-text);
}

.adm-lightbox-counter {
  font-size: 0.78rem;
  color: var(--adm-accent);
  font-weight: 600;
}

.adm-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adm-lightbox-close {
  background: transparent;
  border: none;
  color: var(--adm-text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0 8px;
}

.adm-lightbox-close:hover {
  color: #ffffff;
}

.adm-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
}

.adm-lightbox-img-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 80vh;
}

.adm-lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease;
}

.adm-lightbox-caption {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--adm-text-muted);
  text-align: center;
}

.adm-lightbox-arrow {
  background: rgba(18, 31, 51, 0.7);
  border: 1px solid var(--adm-border-2);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.adm-lightbox-arrow:hover {
  background: var(--adm-accent);
  border-color: var(--adm-accent);
  box-shadow: 0 0 15px rgba(63, 160, 232, 0.5);
  transform: scale(1.1);
}

/* ==========================================================================
   CPAM INTRANET — ADAPTACIÓN RESPONSIVA MÓVIL Y TABLET (SISTEMA DE DISEÑO)
   ========================================================================== */

/* 1. TABLET Y DRAWER MÓVIL (Pantallas <= 900px) */
@media screen and (max-width: 900px) {

  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: 100% !important;
  }

  .adm-body {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
  }

  /* Sidebar Off-Canvas desplegable en móvil */
  .adm-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7) !important;
    background: var(--adm-surface) !important;
  }

  .adm-sidebar.open {
    transform: translateX(0) !important;
  }

  .adm-sidebar-close {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.25rem 0.5rem;
  }

  .adm-sidebar-close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--adm-text-muted);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--adm-border);
    cursor: pointer;
  }

  .adm-main {
    width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  /* Topbar adaptativa */
  .adm-topbar {
    padding: 0.75rem 1rem !important;
    height: auto !important;
    min-height: 60px !important;
    gap: 10px !important;
  }

  .adm-page-title {
    font-size: 1.05rem !important;
  }

  .adm-topbar-action span {
    display: none !important;
  }

  .adm-topbar-action {
    padding: 8px !important;
  }

  .adm-user-name,
  .adm-user-role {
    display: none !important;
  }

  .adm-user-btn {
    padding: 4px !important;
    gap: 4px !important;
  }

  /* Padding interno de páginas */
  .adm-content {
    padding: 1rem 0.875rem 3rem !important;
  }
}

/* 2. GRIDS, FORMULARIOS Y TABLAS MÓVILES (Pantallas <= 768px) */
@media screen and (max-width: 768px) {

  /* Cabeceras de página y toolbars */
  .adm-page-toolbar,
  .adm-toolbar,
  .adm-asistencia-hero-banner,
  .adm-asistencia-filter-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .adm-group-toolbar-actions,
  .adm-asistencia-quick-actions,
  .adm-toolbar-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .adm-group-toolbar-actions .adm-btn,
  .adm-group-toolbar-actions .adm-btn--outline-sm,
  .adm-asistencia-quick-actions button,
  .adm-btn--primary,
  .adm-btn--secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Grids a 1 sola columna en móvil (adm-stats-grid se ajusta horizontalmente) */
  .adm-grid,
  .adm-form-grid,
  .adm-dashboard-grid,
  .adm-asistencia-filter-grid,
  .adm-cards-grid,
  .adm-users-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Adaptación ultracompacta de stats en móvil (max 768px) */
  .adm-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
    gap: 0.45rem !important;
    margin-bottom: 0.85rem !important;
  }

  .adm-stat-card {
    padding: 0.5rem 0.45rem !important;
    gap: 0.4rem !important;
    border-radius: 10px !important;
    min-width: 0 !important;
    align-items: center !important;
  }

  .adm-stat-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .adm-stat-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .adm-stat-info {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .adm-stat-value {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-bottom: 1px !important;
  }

  .adm-stat-label {
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.01em !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  /* Tablas de Datos con Scroll Horizontal Suave */
  .adm-table-wrap,
  .adm-table-container,
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 1rem !important;
    border-radius: var(--adm-radius) !important;
  }

  .adm-table,
  table.adm-table {
    min-width: 620px !important;
  }

  .adm-table th,
  .adm-table td {
    padding: 0.75rem 0.65rem !important;
    font-size: 0.85rem !important;
  }

  /* Tarjetas de Lista de Asistencia */
  .adm-asistencia-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 1rem !important;
  }

  .adm-asistencia-options {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .adm-status-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 8px !important;
    font-size: 0.85rem !important;
  }

  .adm-asistencia-save-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
  }

  .adm-asistencia-btn-save {
    width: 100% !important;
  }

  /* Modales y Cuadros Diálogo en móvil */
  .adm-modal-content,
  .adm-dialog {
    width: 94vw !important;
    max-width: 94vw !important;
    margin: 1rem auto !important;
    padding: 1.25rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* 3. PANTALLAS MÓVILES PEQUEÑAS (Pantallas <= 480px) */
@media screen and (max-width: 480px) {
  .adm-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
  }

  .adm-stat-card {
    padding: 0.45rem 0.25rem !important;
    gap: 0.3rem !important;
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .adm-stat-icon {
    width: 26px !important;
    height: 26px !important;
    border-radius: 6px !important;
  }

  .adm-stat-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .adm-stat-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .adm-stat-value {
    font-size: 1.05rem !important;
  }

  .adm-stat-label {
    font-size: 0.58rem !important;
    letter-spacing: 0 !important;
  }

  .adm-status-btn {
    font-size: 0.8rem !important;
    padding: 8px 4px !important;
  }

  .adm-asistencia-skater-info {
    gap: 8px !important;
  }

  .adm-asistencia-avatar {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }

  .adm-notif-dropdown {
    width: 290px !important;
    right: -40px !important;
  }
}