/* =========================================================
   SISTEMA DE DISEÑO BASE: TKD EXAMEN (TEMA OSCURO TATAMI)
   ========================================================= */
:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1a253f;
  --bg-surface: #1e293b;
  --bg-input: #0f172a;

  --border-color: #27354f;
  --border-focus: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #10b981;
  --success-hover: #059669;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;

  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header & TopBar */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 1.5rem;
  background-color: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
}

.brand-logo-img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  display: block;
  padding: 5px;
}

.brand-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #ef4444, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.brand-badge {
  font-size: 0.75rem;
  background-color: rgba(56, 189, 248, 0.12);
  color: var(--text-accent);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-version-badge {
  font-size: 0.72rem;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* User Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
}

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

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-logout:hover {
  color: var(--danger);
  background-color: rgba(239, 68, 68, 0.1);
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Hero & Section Header */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Barra de Filtros Moderna (Fecha, Tipo de Examen, Estado) */
.main-filters-card {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 180px;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-group-date {
  min-width: 260px;
  flex: 1.2;
}

.date-navigator-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.filter-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.btn-date-nav {
  background: #0b1120;
  border: 1px solid #334155;
  color: #38bdf8;
  width: 36px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-date-nav:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-date-nav:active {
  transform: translateY(0);
}

.filter-input-date-display {
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding-right: 2.5rem;
  user-select: none;
  color: #38bdf8;
}

.filter-input-wrap.has-date .filter-input-date-display {
  padding-right: 3.8rem;
}

.filter-input-date-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border: none;
  padding: 0;
  margin: 0;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none !important;
  -webkit-appearance: none;
}

.btn-calendar-trigger {
  position: absolute;
  right: 0.6rem;
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  z-index: 2;
}

.btn-calendar-trigger:hover {
  transform: scale(1.15);
}

.filter-input-wrap.has-date .btn-calendar-trigger {
  right: 2.1rem;
}

.filter-control {
  background: #0b1120;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.filter-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  background-color: #0f172a;
}

.filter-control option {
  background-color: #0f172a;
  color: #f8fafc;
}

.filter-input-date {
  color-scheme: dark;
  cursor: pointer;
  padding-right: 2.3rem;
}

.filter-input-wrap.has-date .filter-input-date {
  padding-right: 3.8rem;
}

.btn-clear-date {
  position: absolute;
  right: 0.55rem;
  background: rgba(148, 163, 184, 0.15);
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.8rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.btn-clear-date:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  align-self: flex-end;
  margin-left: auto;
  flex-wrap: wrap;
}

.btn-reset-filters {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-reset-filters:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.filter-counter-badge {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .main-filters-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}

/* Exam Cards Grid */
.mesas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.mesa-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mesa-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.mesa-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.mesa-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.mesa-role-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.mesa-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.detail-row strong {
  color: var(--text-main);
}

.mesa-card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-tatami {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-tatami:hover {
  filter: brightness(1.1);
  transform: scale(1.01);
}

/* Offline Indicator */
.offline-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.offline-badge.online {
  background-color: rgba(16, 185, 129, 0.9);
  color: white;
}

.offline-badge.offline {
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
}

.offline-badge.syncing {
  background-color: rgba(245, 158, 11, 0.9);
  color: white;
}

/* Toast */
.tatami-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}

.tatami-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* =========================================================
   TOPBAR UNIFICADA ESTANDARIZADA (4 SECCIONES)
   ========================================================= */
.topbar-unificada {
  background: #0b1120 !important;
  border-bottom: 1px solid #1e293b !important;
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.65rem !important;
  flex-shrink: 0 !important;
  z-index: 80 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* 1. Bloque Izquierdo: Volver al Hub de 4 Secciones + Identificador */
.topbar-unificada .topbar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
}

.btn-topbar-volver {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-topbar-volver:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.topbar-title-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-badge-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-section-badge {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  line-height: 1.2;
}

.badge-sec-grilla {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

.badge-sec-equipo {
  background: rgba(192, 132, 252, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #c084fc;
}

.badge-sec-examen {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.badge-sec-cierre {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.topbar-status-badge {
  font-size: 0.64rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.topbar-title-block h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.topbar-subtitle {
  font-size: 0.68rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  line-height: 1.1;
}

/* 2. Bloque Central: Pestañas de Turno */
.topbar-turnos-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 320px;
}

.topbar-turnos-pills::-webkit-scrollbar {
  display: none;
}

.btn-topbar-turno {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-topbar-turno:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
}

.btn-topbar-turno.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

/* 3. Bloque Derecho: Navegación de 4 Secciones + Herramientas Específicas */
/* 3. Bloque Derecho: Herramientas Específicas + Navegación de 4 Secciones al Extremo Derecho */
.topbar-unificada .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Herramientas de Página Específicas */
.topbar-page-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  order: 1;
}

/* Grupo de Navegación de las 4 Secciones - Siempre Alineado a la Derecha */
.nav-cuatro-secciones {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 0.2rem;
  gap: 0.25rem;
  order: 2;
  margin-left: 0.35rem;
}

.nav-sec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.nav-sec-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-sec-btn.active.nav-grilla {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.nav-sec-btn.active.nav-equipo {
  background: rgba(192, 132, 252, 0.22);
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.35);
}

.nav-sec-btn.active.nav-examen {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.nav-sec-btn.active.nav-cierre {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.nav-sec-label {
  display: none !important;
}

.btn-topbar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-topbar-action:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.btn-topbar-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-cerrar-oficial {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #f59e0b;
  color: #0b1120 !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-cerrar-oficial:hover:not(:disabled) {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-topbar-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.btn-topbar-icon:hover {
  background: #334155;
  color: #ffffff;
}

/* Banner Informativo de Modo Lectura */
.banner-modo-lectura {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
  border-bottom: 1.5px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
  z-index: 70;
}

/* Responsive */
@media (max-width: 768px) {
  .topbar-unificada {
    padding: 0 0.5rem !important;
  }

  .topbar-title-block h2,
  .topbar-subtitle {
    max-width: 130px;
  }

  .nav-sec-label {
    display: none;
  }

  .nav-sec-btn {
    padding: 0.3rem 0.5rem;
  }

  .topbar-turnos-pills {
    max-width: 170px;
  }
}

/* ==========================================================================
   MODAL: ALTA RÁPIDA DE ALUMNO (SITUACIÓN ATÍPICA)
   ========================================================================== */
.modal-alumno-rapido-card {
  max-width: 520px !important;
  width: 92% !important;
  background: #0f172a !important;
  border: 1.5px solid #293d66 !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.1) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header .header-icon-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.modal-title-rapido {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
}

.modal-subtitle-rapido {
  font-size: 0.76rem !important;
  color: #94a3b8 !important;
  display: block !important;
  margin-top: 0.15rem;
}

.modal-body-rapido {
  padding: 1.15rem 1.35rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 75vh;
  overflow-y: auto;
}

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

@media (max-width: 520px) {
  .form-row-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group-rapido {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group-rapido label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group-rapido .required-star {
  color: #f43f5e;
}

.form-group-rapido .form-input,
.form-group-rapido .form-select {
  background: #17243c;
  border: 1.5px solid #2b3e66;
  border-radius: 9px;
  color: #f8fafc;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.form-group-rapido .form-input:focus,
.form-group-rapido .form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  background: #1c2b48;
}

.aviso-situacion-atipica {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: #fbbf24;
  line-height: 1.35;
}

.aviso-situacion-atipica span {
  font-size: 1.1rem;
  line-height: 1;
}

.modal-footer-rapido {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.9rem 1.35rem;
  background: #0b1120;
  border-top: 1px solid #1e293b;
}

.btn-guardar-rapido {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  border: 1px solid #38bdf8 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 9px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  cursor: pointer;
}

.btn-guardar-rapido:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
  transform: translateY(-1px);
}

.btn-crear-nuevo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-crear-nuevo-pill:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}