/* ======================
   BASE
====================== */
* { box-sizing: border-box; }

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background-color: #f0f2f7;
}

.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ======================
   SIDEBAR
====================== */
.sidebar {
  width: 238px;
  min-width: 238px;
  background: #1C4169;
  color: white;
  padding: 28px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  overflow-y: auto;
  border-right: 1px solid rgba(28,65,105,0.28);
  box-shadow: none;
}

/* ======================
   LOGO DEL COLEGIO
====================== */
.sidebar-logo-img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

/* IMAGEN */
.sidebar-logo-img img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 24px;
  background: #ffffff;
  padding: 8px;
  border: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

/* ======================
   ENCABEZADO HOJA
====================== */
.sidebar-header-card {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

.sidebar-header-card::before {
  display: none;
}

.sidebar-header-body {
  padding: 0 4px 8px;
  text-align: center;
}

.logo-titulo {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #F08C28;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 6px;
  text-align: center;
}

.logo-sub {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  line-height: 1.28;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* ======================
   GRID DE MESES (hojitas)
====================== */
.sidebar-section {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-top: 14px;
}

.sidebar-section-label {
  display: block;
  margin: 0 0 8px 2px;
  color: rgba(255,255,255,0.72);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.grid-meses-wrapper { width: 100%; }

.grid-meses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.mes-item {
  min-height: 48px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.14);
}

.mes-item:hover {
  transform: translateY(-1px);
  border-color: #ffffff;
  box-shadow: 0 7px 14px rgba(0,0,0,0.18);
}

.mes-item.activo {
  border-color: #F08C28;
  box-shadow: 0 0 0 2px rgba(240,140,40,0.42), 0 7px 14px rgba(0,0,0,0.18);
}

.mes-calendar-top {
  width: 100%;
  height: 14px;
  background: #ef4444;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 8px;
  flex-shrink: 0;
}

.mes-calendar-ring {
  width: 7px;
  height: 13px;
  margin-top: -5px;
  border-radius: 8px;
  background: #cbd5df;
  box-shadow: 0 5px 0 rgba(110,36,31,0.22);
}

.mes-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #7d8b94;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mes-item.activo .mes-label {
  color: #1C4169;
}

/* ======================
   MINI CALENDARIO DÍAS
====================== */
.mini-calendar-card {
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.mini-calendar-top {
  height: 30px;
  background: #ef4444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  position: relative;
}

.mini-calendar-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.28);
}

.calendar-ring {
  width: 12px;
  height: 24px;
  margin-top: -8px;
  border-radius: 12px;
  background: #cbd5df;
  box-shadow: 0 8px 0 rgba(110,36,31,0.24);
}

.mini-month-menu {
  position: relative;
  z-index: 5;
}

.mini-month-button {
  height: 23px;
  min-width: 72px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 7px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  outline: none;
  padding: 0 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-month-button:hover,
.mini-month-menu.open .mini-month-button {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.62);
}

.mini-month-arrow {
  font-size: 10px;
  line-height: 1;
}

.mini-month-options {
  position: absolute;
  top: calc(100% + 7px);
  left: -6px;
  transform: none;
  width: 180px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid rgba(28,65,105,0.16);
  box-shadow: 0 16px 34px rgba(0,0,0,0.32), 0 0 0 4px rgba(255,255,255,0.72);
}

.mini-month-menu.open .mini-month-options {
  display: grid;
}

.mini-month-option {
  min-height: 30px;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #f4f7fb;
  color: #1C4169;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.mini-month-option:hover {
  transform: translateY(-1px);
  background: #fff4e8;
  border-color: #F08C28;
}

.mini-month-option.active {
  background: #1C4169;
  border-color: #1C4169;
  color: #ffffff;
  box-shadow: inset 0 -3px 0 #F08C28;
}

.mini-calendar-year {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

#miniCalendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  background: #d9e2ec;
  padding: 6px;
  border-radius: 0 0 8px 8px;
  width: 100%;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.mini-weekday {
  background: #ffffff;
  border-right: 1px solid #d9e2ec;
  border-bottom: 1px solid #d9e2ec;
  color: #8b9aa5;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 5px 0;
}

.mini-weekday:nth-child(7n) {
  border-right: 0;
}

.day-mini {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #ffffff;
  border-radius: 0;
  color: #64717b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 0;
  border-right: 1px solid #d9e2ec;
  border-bottom: 1px solid #d9e2ec;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.day-mini-empty {
  min-height: 24px;
  background: #ffffff;
  border-right: 1px solid #d9e2ec;
  border-bottom: 1px solid #d9e2ec;
}

#miniCalendar > :nth-child(7n) {
  border-right: 0;
}

.day-mini:hover {
  background-color: #e9eff6;
}

.day-mini.today {
  color: #ef4444;
  font-weight: 800;
  border-color: rgba(239,68,68,0.28);
  background: #fff1f1;
}

.day-mini.selected {
  background: #1C4169;
  border-color: #1C4169;
  color: #ffffff;
  box-shadow: none;
  font-weight: 800;
}

.day-mini.today.selected {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* ======================
   PANEL ADMIN
====================== */
.sidebar-session {
  width: 100%;
  margin-top: auto;
}

.admin-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.session-user-badge {
  width: 100%;
  margin-top: 0;
  padding: 0 10px 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  box-shadow: none;
}

#btnSoporte, #btnAdmin, #btnPanelAdmin, #btnSolicitudesRecientes, #btnLogout {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 12px;
  border-radius: 18px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s;
  width: 100%;
  text-align: center;
}

.admin-menu-toggle {
  display: none;
}

#btnSoporte:hover,
#btnAdmin:hover,
#btnPanelAdmin:hover,
#btnSolicitudesRecientes:hover,
#btnLogout:hover,
.admin-menu-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

/* ======================
   MAIN
====================== */
.main {
  flex: 1;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* ======================
   HEADER
====================== */
.header {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  flex-shrink: 0;
}

.titulo-principal {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  color: #F08C28;
  letter-spacing: 1px;
}

#semanaActual {
  margin: 6px 0 0;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  text-align: center;
}

/* ======================
   CALENDARIO SEMANA
====================== */
#calendar {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: flex-start;
}

.cargando {
  color: #888;
  font-size: 14px;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.day-column {
  flex: 1;
  min-width: 130px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dde3ed;
  display: flex;
  flex-direction: column;
}

.day-column h4 {
  background: #1C4169;
  color: white;
  margin: 0;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

.day-column-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 34px;
  padding-right: 36px;
  padding-left: 36px;
}

.day-column-header.admin-day-header {
  justify-content: space-between;
  gap: 8px;
  padding-left: 8px;
  padding-right: 8px;
}

.day-column-header.admin-day-header > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.day-admin-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.btn-block-day,
.btn-day-limit,
.btn-day-devices {
  position: static;
  transform: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.12);
  color: white;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.btn-day-limit {
  width: 26px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
}
.btn-day-devices {
  width: 28px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.btn-block-day:hover,
.btn-day-limit:hover,
.btn-day-devices:hover {
  background: #F08C28;
  border-color: #F08C28;
}

.btn-block-day.active {
  background: #F08C28;
  border-color: #F08C28;
}

.btn-block-day.active:hover {
  background: #c86412;
  border-color: #c86412;
}

.day-column.outside-month {
  background: #f5f7fb;
  border-color: #e4e9f2;
  opacity: 0.82;
}

.day-column.outside-month h4 {
  background: #7a8798;
  color: #ffffff;
}

.day-column.out-of-time-day {
  background: #f5f7fb;
  border-color: #e4e9f2;
  opacity: 0.82;
}

.day-column.out-of-time-day h4 {
  background: #7a8798;
  color: #ffffff;
}

.day-column.holiday-day {
  background: #f5f7fb;
  border-color: #e4e9f2;
  opacity: 0.92;
}

.day-column.holiday-day h4 {
  background: #7a8798;
  color: #ffffff;
  box-shadow: inset 0 -3px 0 #F08C28;
}

/* ======================
   CELDAS
====================== */
.cell {
  border-top: 1px solid #eee;
  padding: 6px 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 48px;
}

.cell-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.cell-row-info {
  align-items: flex-start;
}

.cell-hora    { font-size: 10px; color: #888; font-weight: 600; }
.cell-libre   { font-size: 10px; color: #9aa3ad; font-weight: 700; white-space: nowrap; }
.cell-estado  { font-size: 11px; font-weight: 600; }
.cell-usuario { font-weight: 700; color: #333; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-detalle { flex: 0 0 auto; font-size: 10px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-reservas {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.cell-reserva-persona {
  color: #25364a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disponible       { background: #f8fff8; }
.disponible:hover { background: #e8f5e8; }
.disponible.con-solicitud {
  background: #eef1f5;
  border-left: 4px solid #c7d0dc;
}
.disponible.con-solicitud:hover {
  background: #e5eaf0;
}
.disponible.con-solicitud .cell-libre {
  color: #667085;
}
.fuera-mes {
  background: #f5f7fb;
  color: #98a2b3;
  cursor: not-allowed;
}
.fuera-mes .cell-hora,
.fuera-mes .cell-libre {
  color: #98a2b3;
}
.out-of-time {
  background: #f3f4f6;
  color: #9aa3b2;
  cursor: not-allowed;
}
.out-of-time .cell-hora,
.out-of-time .cell-libre {
  color: #9aa3b2;
}
.holiday {
  background: #eef1f5;
  color: #667085;
  border-left: 4px solid #F08C28;
  cursor: not-allowed;
}
.holiday .cell-hora,
.holiday .cell-libre,
.holiday .cell-reserva-persona,
.holiday .cell-reserva-ipads {
  color: #667085;
}
.holiday .cell-libre {
  font-weight: 800;
}
.no-disponible {
  background: #3f4650;
  color: #f4f6f8;
  border-top-color: #59616d;
  border-left: 4px solid #242a32;
  cursor: not-allowed;
}
.no-disponible.con-solicitud {
  background: #3f4650;
  border-left-color: #242a32;
  color: #f4f6f8;
}
.no-disponible .cell-hora,
.no-disponible .cell-libre,
.no-disponible .cell-reserva-persona,
.no-disponible .cell-reserva-ipads {
  color: #f4f6f8;
}
.no-disponible .cell-detalle {
  color: #242a32;
  background: #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 800;
}
.pendiente        { background: #fffbea; cursor: default; }
.aprobado         { background: #edfaed; cursor: default; }
.rechazado        { background: #ffeaea; cursor: default; }
.cell-reserva-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cell-reserva-item.solicitud-usuario-interno {
  background: #dcfce7;
  border: 1px solid #86d39b;
  border-radius: 6px;
  padding: 3px 5px;
}

.cell-reserva-item.solicitud-usuario-interno .cell-reserva-persona {
  color: #166534;
}

.cell-reserva-item.solicitud-usuario-interno .cell-reserva-ipads,
.cell-reserva-item.solicitud-usuario-interno .cell-reserva-admin-meta {
  color: #397a4c;
}

.cell-reserva-item[class*="etiqueta-color-"] {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 3px 5px;
}
.cell-reserva-item.etiqueta-color-azul { background: #dbeafe; border-color: #8cb8ef; }
.cell-reserva-item.etiqueta-color-amarillo { background: #fef9c3; border-color: #e8d96e; }
.cell-reserva-item.etiqueta-color-naranja { background: #ffedd5; border-color: #f1b976; }
.cell-reserva-item.etiqueta-color-morado { background: #f3e8ff; border-color: #c9a1ed; }
.cell-reserva-item.etiqueta-color-rojo { background: #fee2e2; border-color: #eea0a0; }
.cell-reserva-item[class*="etiqueta-color-"] .cell-reserva-persona { color: #27364a; }
.cell-reserva-item[class*="etiqueta-color-"] .cell-reserva-ipads,
.cell-reserva-item[class*="etiqueta-color-"] .cell-reserva-admin-meta { color: #526174; }

.cell-reserva-ipads {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
}

.cell-reserva-admin-meta {
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sin-cupo {
  background: #3f4650 !important;
  border-top-color: #59616d;
  border-left: 4px solid #242a32;
  cursor: default;
}
.sin-cupo .cell-hora,
.sin-cupo .cell-libre,
.sin-cupo .cell-reserva-persona,
.sin-cupo .cell-reserva-ipads {
  color: #f4f6f8;
}
.sin-cupo .cell-detalle {
  color: #242a32;
  background: #ffffff;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 800;
}

.bloqueado {
  background: #3f4650 !important;
  color: #f4f6f8;
  cursor: not-allowed;
  border-top-color: #59616d;
  border-left: 4px solid #242a32;
}
.bloqueado .cell-hora { color: #f4f6f8; }
.bloqueado .cell-reserva-persona,
.bloqueado .cell-reserva-ipads { color: #f4f6f8; }
.bloqueado .cell-estado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-weight: 800;
}
.lock-vector {
  position: relative;
  width: 10px;
  height: 8px;
  display: inline-block;
  border-radius: 2px;
  background: #ff6b6b;
  flex: 0 0 auto;
}
.lock-vector::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -6px;
  width: 6px;
  height: 7px;
  border: 2px solid #ff6b6b;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.bloqueado.desbloqueable {
  cursor: pointer;
}

.bloqueado.desbloqueable:hover {
  background: #343b45 !important;
}

/* ======================
   MODAL
====================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  animation: modalEntrada 0.2s ease;
}

.modal-responsabilidad {
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-confirmacion {
  max-width: 420px;
}

.modal-limite {
  max-width: 380px;
}

.modal-solicitud {
  padding-bottom: 42px;
}

.modal-scroll-hint {
  position: sticky;
  left: 0;
  right: 0;
  bottom: -30px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px -30px -42px;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 36%, #ffffff);
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  pointer-events: none;
}

.modal-scroll-hint.visible {
  display: flex;
}

.modal-scroll-hint strong {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1C4169;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.modal-reserva-admin {
  max-width: 500px;
}

@keyframes modalEntrada {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: #888; padding: 4px;
  border-radius: 50%; transition: 0.15s;
}
.modal-close:hover { background: #f0f0f0; color: #333; }

.modal-titulo { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800; color: #1C4169; margin: 0 0 4px; }
.modal-kicker {
  display: block;
  margin: 0 0 6px;
  color: #F08C28;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.modal-fecha  { font-size: 13px; color: #F08C28; font-weight: 600; margin: 0 0 20px; }
.modal-subtitulo { margin: 0 0 16px; color: #F08C28; font-size: 13px; font-weight: 700; }

.modal-confirmacion-texto {
  color: #475467;
  font-size: 14px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.limit-stepper {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 20px auto 10px;
}

.limit-stepper-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #dde3ed;
  border-radius: 10px;
  background: #f6f8fb;
  color: #1C4169;
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.limit-stepper-btn:hover {
  background: #eaf1f8;
  border-color: #cdd8e7;
}

.limit-stepper-input {
  width: 96px;
  height: 42px;
  flex: 0 0 96px;
  border: 2px solid #1C4169;
  border-radius: 10px;
  color: #1C4169;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.reserva-admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 4px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  padding-right: 3px;
}

.reserva-admin-item {
  padding: 12px;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  background: #f7f9fc;
}

.reserva-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.reserva-admin-item strong,
.reserva-admin-item p {
  display: block;
  margin: 0;
}

.reserva-admin-item strong {
  color: #1C4169;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.reserva-admin-label {
  display: block;
  margin: 0 0 3px;
  color: #F08C28;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.reserva-admin-details {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 10px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e4e9f1;
}

.reserva-admin-details p {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.reserva-admin-note {
  grid-column: 1 / -1;
}

.reserva-color-control {
  padding-top: 2px;
}

.reserva-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reserva-color-option {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
}
.reserva-color-option:hover { transform: scale(1.08); }
.reserva-color-option.selected { box-shadow: 0 0 0 3px #1c4169; }
.reserva-color-option.color-ninguno { background: linear-gradient(135deg, #fff 44%, #d64545 45%, #d64545 55%, #fff 56%); }
.reserva-color-option.color-verde { background: #86d39b; }
.reserva-color-option.color-azul { background: #8cb8ef; }
.reserva-color-option.color-amarillo { background: #e8d96e; }
.reserva-color-option.color-naranja { background: #f1b976; }
.reserva-color-option.color-morado { background: #c9a1ed; }
.reserva-color-option.color-rojo { background: #eea0a0; }

.btn-reserva-rechazar {
  flex: 0 0 auto;
  border: 1px solid #f4b2b2;
  border-radius: 999px;
  background: #fff5f5;
  color: #b42318;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 12px;
}

.btn-reserva-rechazar:hover {
  background: #ffe7e7;
  border-color: #ee8d8d;
}

.responsabilidad-texto {
  overflow-y: auto;
  padding-right: 6px;
  color: #333;
  font-size: 13px;
  line-height: 1.55;
}

.responsabilidad-texto h4 {
  margin: 18px 0 8px;
  color: #1C4169;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

.responsabilidad-texto ul {
  margin: 0;
  padding-left: 20px;
}

.responsabilidad-texto li {
  margin-bottom: 8px;
}

.form-group          { margin-bottom: 14px; }
.form-group label    { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.req                 { color: #e53935; }
.opcional            { color: #999; font-weight: 400; font-size: 12px; }
.field-help          { display: block; color: #778195; font-size: 11px; margin-top: 5px; }

.form-status {
  min-height: 18px;
  margin: 2px 0 0;
  color: #b54708;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid #dde3ed;
  border-radius: 8px; font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #333; outline: none;
  transition: border 0.15s; background: #fafbfd;
}

.form-group select {
  min-height: 42px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #1C4169 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #1C4169 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, #ffffff, #f7f9fc);
  box-shadow: inset 0 0 0 1px rgba(28,65,105,0.03);
  color: #1f2937;
  cursor: pointer;
  font-weight: 600;
  padding-right: 42px;
}

.form-group select:hover {
  border-color: #c8d3e2;
  background:
    linear-gradient(45deg, transparent 50%, #F08C28 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #F08C28 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, #ffffff, #f3f6fa);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #1C4169; background: white; }
.form-group select:focus {
  background:
    linear-gradient(45deg, transparent 50%, #F08C28 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #F08C28 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
    #ffffff;
  box-shadow: 0 0 0 3px rgba(28,65,105,0.12);
}
.form-group textarea { height: 80px; resize: vertical; }

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 12px;
  border: 1.5px solid #dde3ed;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  color: #1f2937;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(28,65,105,0.03);
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}

.custom-select-button:hover,
.custom-select.open .custom-select-button,
.custom-select-button:focus {
  border-color: #1C4169;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(28,65,105,0.12);
  outline: none;
}

.custom-select-arrow {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #eef3f8;
  position: relative;
  transition: background 0.15s, transform 0.15s;
}

.custom-select-arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border: solid #1C4169;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 9px;
  left: 10px;
  transform: rotate(45deg);
}

.custom-select.open .custom-select-arrow {
  background: #fff2e3;
  transform: rotate(180deg);
}

.custom-select.open .custom-select-arrow::before {
  border-color: #F08C28;
}

.custom-select-options {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  padding: 6px;
  border: 1px solid #d8e1ee;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(28,65,105,0.18);
}

.custom-select.open .custom-select-options {
  display: grid;
  gap: 5px;
}

.custom-select-option {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.custom-select-option:hover,
.custom-select-option:focus {
  background: #eef4fb;
  color: #1C4169;
  outline: none;
}

.custom-select-option.selected {
  background: #eef4fb;
  color: #1C4169;
  box-shadow: inset 3px 0 0 #F08C28;
}

.modal-acciones { display: flex; gap: 10px; margin-top: 20px; }

.btn-cancelar {
  flex: 1; padding: 10px;
  border: 1.5px solid #dde3ed; background: white;
  border-radius: 8px; font-size: 14px;
  font-weight: 600; color: #666; cursor: pointer; transition: 0.15s;
}
.btn-cancelar:hover { background: #f5f5f5; }

.btn-confirmar {
  flex: 2; padding: 10px; border: none;
  background: #1C4169; color: white;
  border-radius: 8px; font-size: 14px;
  font-weight: 700; cursor: pointer;
  font-family: 'Montserrat', sans-serif; transition: 0.15s;
}
.btn-confirmar:hover { background: #163354; }

.btn-danger-admin {
  background: #7a1d1d;
}

.btn-danger-admin:hover {
  background: #5f1414;
}

/* ======================
   PANEL ADMINISTRADOR
====================== */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 24, 39, 0.52);
  backdrop-filter: blur(3px);
}

.admin-dashboard {
  width: min(1180px, 100%);
  max-height: 92vh;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.18)),
    #eceaf8;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(27,28,58,0.34);
  padding: 20px;
  animation: modalEntrada 0.2s ease;
}

.admin-dashboard-header,
.admin-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-dashboard-header {
  align-items: center;
  margin-bottom: 16px;
}

.admin-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-kicker {
  color: #F08C28;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.admin-dashboard-header h3 {
  margin: 2px 0 0;
  color: #171728;
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.admin-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  color: #171728;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(64,61,109,0.12);
}

.admin-close:hover { background: #f5f3ff; color: #7c3aed; }

.admin-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #171728;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(64,61,109,0.12);
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.admin-export:hover {
  background: #f5f3ff;
  color: #7c3aed;
  box-shadow: 0 10px 22px rgba(124,58,237,0.16);
}

.admin-export-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid rgba(124,58,237,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.62);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.56), 0 8px 20px rgba(64,61,109,0.08);
}

.admin-tab {
  min-width: 112px;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
  color: #57516f;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(64,61,109,0.08);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.admin-tab:hover {
  background: #f6f4ff;
  color: #7c3aed;
}

.admin-tab.active {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(124,58,237,0.24);
}

.admin-view { display: none; }
.admin-view.active { display: block; }

.admin-summary-grid,
.admin-chart-grid {
  display: grid;
  gap: 12px;
}

.admin-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.admin-stat,
.admin-chart,
.admin-comments,
.admin-feedback-history,
.admin-visual-panel {
  border: 1px solid rgba(124,58,237,0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(64,61,109,0.1);
}

.admin-stat {
  position: relative;
  overflow: hidden;
  padding: 14px;
  min-height: 104px;
}

.admin-stat span {
  display: block;
  color: #3f3b55;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-stat strong {
  position: relative;
  z-index: 1;
  color: #171728;
  font-size: 25px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
}

.admin-stat.strength strong { color: #2563eb; }
.admin-stat.weakness strong { color: #ef4444; }

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  gap: 12px;
}

.admin-chart-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-visual-panel,
.admin-chart,
.admin-comments,
.admin-feedback-history {
  padding: 14px;
}

.admin-main-chart {
  min-height: 318px;
}

.admin-score-panel {
  min-height: 318px;
}

.admin-chart h4,
.admin-comments h4,
.admin-feedback-history h4,
.admin-visual-panel h4 {
  margin: 0;
  color: #171728;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
}

.admin-panel-label {
  display: block;
  margin: 0 0 4px;
  color: #7a7396;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.admin-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-chart-head strong {
  color: #7c3aed;
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  line-height: 1;
}

.admin-chart-meta {
  color: #7a7396;
  font-size: 12px;
  margin: 8px 0 12px;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: 118px 1fr 42px;
  gap: 8px;
  align-items: center;
  margin: 9px 0;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}

.admin-bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeafa;
}

.admin-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.2s ease;
}

.admin-trend-chart {
  position: relative;
  min-height: 250px;
  margin-top: 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(124,58,237,0.08), rgba(56,189,248,0.07)),
    #fbfbff;
  overflow: hidden;
}

.admin-trend-svg {
  display: block;
  width: 100%;
  height: 250px;
}

.admin-axis {
  stroke: #d9d3ef;
  stroke-width: 1.5;
}

.admin-grid-line {
  stroke: #e6e0f6;
  stroke-width: 1;
  stroke-dasharray: 5 6;
}

.admin-axis-label {
  fill: #7a7396;
  font-size: 11px;
  font-weight: 700;
  text-anchor: end;
}

.admin-trend-area {
  fill: url(#adminTrendFill);
}

.admin-trend-line {
  fill: none;
  stroke: #7c3aed;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-trend-point {
  fill: #ffffff;
  stroke: #7c3aed;
  stroke-width: 3;
}

.admin-trend-caption {
  position: absolute;
  right: 14px;
  top: 14px;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid rgba(124,58,237,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(64,61,109,0.12);
}

.admin-trend-caption span,
.admin-trend-caption em {
  display: block;
  color: #7a7396;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.admin-trend-caption strong {
  display: block;
  margin: 4px 0 2px;
  color: #7c3aed;
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  line-height: 1;
}

#adminOverallChart {
  display: grid;
  place-items: center;
  gap: 16px;
  margin-top: 16px;
}

.admin-donut {
  width: 184px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(124,58,237,0.08), 0 14px 28px rgba(64,61,109,0.1);
}

.admin-donut-center {
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(64,61,109,0.12);
}

.admin-donut-center span {
  color: #7a7396;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-donut-center strong {
  color: #171728;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  line-height: 1;
}

.admin-legend {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #4c4863;
  font-size: 12px;
  font-weight: 700;
}

.admin-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.admin-comments {
  grid-column: 1 / -1;
  max-height: 330px;
  overflow: auto;
}

.admin-feedback-history {
  grid-column: 1 / -1;
}

#adminFeedbackHistorial {
  display: grid;
  gap: 10px;
  max-height: 520px;
  margin-top: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.feedback-history-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8e2f5;
  border-radius: 8px;
  background: #fbfbff;
}

.feedback-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feedback-history-head strong,
.feedback-history-head time {
  display: block;
}

.feedback-history-head strong {
  color: #171728;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  word-break: break-word;
}

.feedback-history-head time {
  margin-top: 3px;
  color: #7a7396;
  font-size: 11px;
  font-weight: 700;
}

.feedback-history-answers {
  display: grid;
  gap: 8px;
}

.feedback-history-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eeeafa;
}

.feedback-history-answer span {
  color: #3f3b55;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-history-answer strong {
  color: #7c3aed;
  font-size: 12px;
  white-space: nowrap;
}

.feedback-history-comment {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #F08C28;
  border-radius: 8px;
  background: #fff8f1;
  color: #3f3b55;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.requests-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.requests-filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid #e2ddf3;
  border-radius: 12px;
  background: #ffffff;
}

.requests-filter-label {
  display: block;
  margin-top: 3px;
  color: #171728;
  font-weight: 800;
}

.requests-month-select {
  width: min(240px, 100%);
}

.requests-month-select .custom-select-button {
  min-height: 42px;
  border-color: #d8d2e9;
  border-radius: 10px;
  color: #1C4169;
}

.requests-month-select .custom-select-options {
  max-height: 250px;
  overflow-y: auto;
}

.requests-summary-grid .admin-stat strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(16px, 2vw, 24px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.requests-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.requests-chart-panel {
  min-height: 430px;
}

.requests-monthly-panel {
  grid-column: 1 / -1;
  min-height: 300px;
}

.requests-pie-chart {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.requests-donut {
  width: min(252px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(124,58,237,0.08), 0 16px 30px rgba(64,61,109,0.12);
}

.requests-donut-center {
  width: 124px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(64,61,109,0.12);
}

.requests-donut-center span {
  color: #7a7396;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.requests-donut-center strong {
  color: #171728;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  line-height: 1;
}

.requests-legend {
  align-self: stretch;
  align-content: start;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.requests-ranking-chart {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 330px;
  margin-top: 18px;
  padding-right: 5px;
  overflow-y: auto;
}

.requests-ranking-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(130px, 1.4fr) 34px;
  align-items: center;
  gap: 10px;
}

.requests-ranking-row span {
  overflow: hidden;
  color: #3f3b55;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.requests-ranking-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeaf7;
}

.requests-ranking-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #38bdf8);
}

.requests-ranking-row strong {
  color: #1C4169;
  font-size: 13px;
  text-align: right;
}

.requests-monthly-chart {
  min-height: 230px;
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 8px 4px;
  overflow-x: auto;
  border-top: 1px solid #e2ddf3;
}

.requests-month-bar {
  min-width: 72px;
  height: 190px;
  display: grid;
  grid-template-rows: 24px 1fr 34px;
  align-items: end;
  justify-items: center;
  gap: 6px;
}

.requests-month-bar strong {
  color: #171728;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1;
}

.requests-month-column {
  width: 34px;
  height: var(--bar-height);
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #7c3aed, #38bdf8);
  box-shadow: 0 10px 20px rgba(124,58,237,0.16);
}

.requests-month-bar em {
  color: #6f698a;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 900px) {
  .requests-analytics-grid {
    grid-template-columns: 1fr;
  }

  .requests-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .requests-month-select {
    width: 100%;
  }

  .requests-pie-chart {
    grid-template-columns: 1fr;
  }

  .requests-legend {
    max-height: none;
  }
}

.admin-secondary {
  border: 1px solid #dde3ed;
  background: #fafbfd;
  color: #1C4169;
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-comment {
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid #eef2f7;
}

.admin-comment p {
  margin: 0 0 4px;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.admin-comment time {
  color: #98a2b3;
  font-size: 11px;
}

.admin-empty {
  color: #778195;
  font-size: 13px;
  margin: 10px 0 0;
}

.recent-requests-dashboard {
  width: min(760px, 100%);
}

.recent-requests-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(28,65,105,0.06);
}

.recent-requests-toolbar strong {
  display: block;
  color: #1C4169;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

.recent-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(28,65,105,0.06);
}

.recent-request-main {
  min-width: 0;
}

.recent-request-main p {
  margin: 0;
  color: #1C4169;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.recent-request-main time {
  display: block;
  margin-top: 6px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
}

.recent-request-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 6px;
  max-width: 240px;
}

.recent-request-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.recent-request-pill.approved {
  background: #e8f7ee;
  color: #197a44;
}

.recent-request-pill.pending {
  background: #fff6df;
  color: #b54708;
}

.recent-request-pill.rejected {
  background: #ffe7e7;
  color: #b42318;
}

.recent-request-meta .recent-request-subject {
  background: #eef5fc;
  color: #1C4169;
}

.recent-request-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: #57516f;
  font-size: 12px;
  font-weight: 700;
}

.admin-dashboard .admin-dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
}

.admin-dashboard .admin-visual-panel,
.admin-dashboard .admin-chart,
.admin-dashboard .admin-comments {
  padding: 16px;
}

.admin-dashboard .admin-main-chart,
.admin-dashboard .admin-score-panel {
  min-height: 322px;
}

.admin-dashboard .admin-chart {
  min-height: 230px;
}

.admin-dashboard .admin-comments {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
    #ffffff;
}

.admin-dashboard .admin-comment {
  border-top-color: #e8e2f5;
}

.admin-dashboard .admin-comment p {
  color: #3f3b55;
}

.admin-dashboard .admin-comment time,
.admin-dashboard .admin-empty {
  color: #7a7396;
}

.admin-dashboard .requests-analytics-grid {
  align-items: stretch;
}

.admin-dashboard .requests-chart-panel {
  min-height: 440px;
}

.admin-dashboard .requests-monthly-panel {
  min-height: 314px;
}

.admin-dashboard .requests-pie-chart {
  min-height: 300px;
}

.admin-dashboard .requests-monthly-chart {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-radius: 8px;
}

#limiteSolicitudesStatus:empty {
  display: none;
}

/* ======================
   LOGIN ADMIN
====================== */
.login-page {
  min-height: 100vh;
  position: relative;
  background: #1C4169;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("Images/login-campus-1920.jpg") center / cover no-repeat;
  opacity: 0.45;
  z-index: 0;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.62), rgba(12,12,12,0.78));
  z-index: 0;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  backdrop-filter: blur(2px);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.login-logo img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 24px;
  padding: 8px;
  border: 1px solid #dde3ed;
  background: #ffffff;
}

.login-kicker {
  display: block;
  color: #F08C28;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  line-height: 1.25;
  margin-bottom: 22px;
}

.login-card h1 {
  margin: 6px 0 22px;
  color: #1C4169;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-status {
  min-height: 18px;
  margin: 0 0 12px;
  color: #b54708;
  font-size: 12px;
  font-weight: 700;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.caps-warning {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #b54708;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.login-submit {
  width: 100%;
  flex: none;
  background: #1C4169;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(28,65,105,0.24);
}

.login-submit:hover {
  background: #163354;
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.login-back {
  display: block;
  margin-top: 14px;
  color: #1C4169;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.login-back:hover {
  text-decoration: underline;
}

/* ======================
   FEEDBACK
====================== */
.feedback-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: min(360px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.feedback-toggle {
  border: none;
  background: #F08C28;
  color: white;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(28,65,105,0.22);
  transition: transform 0.15s, background 0.15s;
}

.feedback-toggle:hover {
  background: #d97718;
  transform: translateY(-1px);
}

.feedback-panel {
  width: 100%;
  background: white;
  border: 1px solid #dde3ed;
  border-radius: 10px;
  padding: 16px;
  max-height: min(78vh, 660px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 18px 46px rgba(28,65,105,0.22);
  animation: modalEntrada 0.18s ease;
}

.feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feedback-header h3 {
  margin: 0;
  color: #1C4169;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.feedback-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #eef2f7;
  color: #667085;
  cursor: pointer;
  font-weight: 800;
}

.feedback-close:hover { background: #dde3ed; color: #1C4169; }

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.feedback-field label {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-help {
  color: #778195;
  font-size: 11px;
  line-height: 1.3;
}

.star-rating-input {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 42px;
  padding: 4px 0;
}

.star-button {
  position: relative;
  width: 28px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #d5dde8;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
  padding: 0;
}

.star-button::before {
  content: "★";
}

.star-button.is-filled,
.star-button.is-half {
  color: #F08C28;
}

.star-button.is-half::before {
  color: #d5dde8;
}

.star-button.is-half::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #F08C28;
}

.star-button:focus-visible {
  outline: 2px solid #1C4169;
  outline-offset: 2px;
  border-radius: 4px;
}

.star-rating-value {
  margin-left: 8px;
  color: #1C4169;
  font-size: 12px;
  font-weight: 800;
}

.star-rating-readonly {
  position: relative;
  display: inline-block;
  color: #d5dde8;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1px;
}

.star-rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: #F08C28;
  white-space: nowrap;
}

.star-rating-base {
  color: #d5dde8;
}

.star-rating-label {
  margin-left: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
  width: 100%;
  border: 1.5px solid #dde3ed;
  border-radius: 8px;
  background: #fafbfd;
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  outline: none;
  padding: 9px 10px;
}

.feedback-field input::placeholder {
  color: #8a94a6;
  font-size: 12px;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  background: white;
  border-color: #1C4169;
}

.feedback-field textarea {
  min-height: 82px;
  resize: vertical;
}

.feedback-status {
  min-height: 18px;
  margin: 0;
  color: #1C4169;
  font-size: 12px;
  font-weight: 600;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-overlay { padding: 10px; }

  .admin-dashboard {
    max-height: 94vh;
    padding: 16px;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-bar-row {
    grid-template-columns: 104px 1fr 34px;
  }

  #adminFeedbackHistorial {
    max-height: 60vh;
  }

  .feedback-history-answer {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .feedback-history-answer strong {
    white-space: normal;
  }

  .feedback-widget {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .feedback-toggle {
    width: 100%;
  }

  .recent-request-item {
    grid-template-columns: 1fr;
  }

  .recent-requests-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .recent-request-meta {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  .container {
    min-height: 100vh;
    height: auto;
    overflow: visible;
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 18px;
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) minmax(240px, 320px);
    align-items: center;
    gap: 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
  }

  .sidebar-logo-img,
  .sidebar-header-card,
  .sidebar-section,
  .sidebar-session,
  .session-user-badge,
  .admin-panel {
    width: 100%;
  }

  .sidebar-logo-img {
    justify-content: flex-start;
  }

  .sidebar-logo-img img {
    width: 74px;
    height: 74px;
    border-radius: 18px;
  }

  .sidebar-header-body {
    padding: 0;
    text-align: left;
  }

  .logo-sub {
    font-size: 13px;
  }

  .sidebar-section {
    margin-top: 0;
  }

  .logo-titulo {
    text-align: left;
    margin-bottom: 8px;
  }

  .sidebar-session {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .admin-panel {
    padding-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .session-user-badge {
    margin-top: 0;
  }

  .main {
    min-height: 0;
    overflow: visible;
    padding: 18px;
  }

  .titulo-principal {
    font-size: 22px;
  }

  #calendar {
    min-height: 520px;
    flex: none;
    align-items: stretch;
  }

  .day-column {
    flex: 0 0 172px;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    min-height: 100dvh;
    padding-bottom: 76px;
  }

  .sidebar {
    padding: 16px 12px;
    grid-template-columns: 64px 1fr;
    align-items: center;
  }

  .sidebar-logo-img img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    padding: 5px;
  }

  .logo-sub {
    font-size: 11px;
    line-height: 1.25;
  }

  .sidebar-section,
  .sidebar-session {
    grid-column: 1 / -1;
  }

  .sidebar-section {
    margin-top: 4px;
  }

  .logo-titulo {
    font-size: 14px;
    text-align: center;
  }

  .mini-calendar-card {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .sidebar-session {
    position: fixed;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 920;
    width: calc(50vw - 15px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
  }

  .sidebar-session:not(.admin-menu-open) {
    width: auto;
    min-width: 54px;
  }

  .sidebar-session.admin-menu-open {
    width: min(220px, calc(100vw - 20px));
  }

  .session-user-badge {
    display: none !important;
  }

  .admin-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0;
    border-top: 0;
    pointer-events: auto;
  }

  .admin-menu-toggle:not([hidden]) {
    display: inline-flex;
  }

  .admin-menu-toggle {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin-left: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(28,65,105,0.9);
    color: #ffffff;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 10px 24px rgba(16,24,40,0.24);
    backdrop-filter: blur(10px);
  }

  .admin-panel:not(.menu-open) {
    min-height: 38px;
  }

  .admin-panel.menu-open {
    padding-bottom: 45px;
  }

  .admin-menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .admin-panel:not(.menu-open) #btnPanelAdmin,
  .admin-panel:not(.menu-open) #btnSolicitudesRecientes,
  .admin-panel:not(.menu-open) #btnLogout {
    display: none !important;
  }

  .admin-panel.menu-open #btnPanelAdmin,
  .admin-panel.menu-open #btnSolicitudesRecientes,
  .admin-panel.menu-open #btnLogout {
    align-self: stretch;
    background: rgba(28,65,105,0.9);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 10px 24px rgba(16,24,40,0.2);
    backdrop-filter: blur(10px);
    animation: adminMenuOptionIn 0.18s ease both;
  }

  .admin-panel.menu-open #btnSolicitudesRecientes {
    animation-delay: 0.03s;
  }

  .admin-panel.menu-open #btnLogout {
    animation-delay: 0.06s;
  }

  @keyframes adminMenuOptionIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  #btnPanelAdmin,
  #btnSolicitudesRecientes,
  #btnLogout {
    min-height: 38px;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 11px;
    box-shadow: none;
  }

  .main {
    padding: 12px;
    gap: 10px;
  }

  .header {
    padding: 14px 12px;
    border-radius: 10px;
  }

  .titulo-principal {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.4px;
  }

  #semanaActual {
    font-size: 12px;
  }

  #calendar {
    min-height: 560px;
    gap: 10px;
    padding-bottom: 86px;
    scroll-snap-type: x proximity;
  }

  .feedback-widget {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 930;
    width: calc(50vw - 15px);
    align-items: stretch;
    gap: 6px;
  }

  .feedback-toggle {
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.15;
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
  }

  .feedback-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    padding: 13px;
    border-radius: 12px;
  }

  .feedback-header {
    margin-bottom: 9px;
  }

  .feedback-header h3 {
    font-size: 15px;
  }

  .feedback-field {
    gap: 4px;
    margin-bottom: 9px;
  }

  .feedback-field label {
    font-size: 11px;
    line-height: 1.28;
  }

  .feedback-field input,
  .feedback-field textarea {
    font-size: 12px;
    padding: 8px 9px;
  }

  .feedback-field textarea {
    min-height: 64px;
  }

  .star-rating-input {
    min-height: 34px;
    padding: 1px 0;
  }

  .star-button {
    width: 25px;
    height: 29px;
    font-size: 24px;
  }

  .star-rating-value {
    margin-left: 6px;
    font-size: 11px;
  }

  .day-column {
    flex: 0 0 min(82vw, 280px);
    scroll-snap-align: start;
  }

  .day-column h4 {
    font-size: 11px;
    padding: 9px 6px;
  }

  .cell {
    min-height: 52px;
    padding: 8px;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
  }

  .modal {
    max-width: none;
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 20px 16px;
    border-radius: 12px;
  }

  .modal-solicitud {
    padding-bottom: 34px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .modal-titulo {
    padding-right: 32px;
    font-size: 18px;
  }

  .modal-fecha {
    margin-bottom: 14px;
  }

  .form-group {
    margin-bottom: 11px;
  }

  .form-group label {
    font-size: 12px;
    line-height: 1.25;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .custom-select-button {
    min-height: 40px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .form-group textarea {
    height: 72px;
  }

  .custom-select-button {
    padding-right: 8px;
  }

  .custom-select-arrow {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .custom-select-arrow::before {
    top: 8px;
    left: 8px;
  }

  .custom-select-options {
    position: static;
    margin-top: 6px;
    box-shadow: 0 10px 24px rgba(28,65,105,0.14);
  }

  .custom-select-option {
    min-height: 34px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .field-help {
    font-size: 10px;
    line-height: 1.25;
  }

  .modal-scroll-hint {
    bottom: -22px;
    margin: 8px -16px -34px;
    padding: 14px 12px 10px;
    font-size: 10px;
  }

  .modal-acciones,
  .feedback-actions {
    flex-direction: column;
  }

  .btn-cancelar,
  .btn-confirmar {
    width: 100%;
  }

  .login-shell {
    padding: 16px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .login-logo img {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 420px) {
  .sidebar {
    grid-template-columns: 54px 1fr;
  }

  .sidebar-logo-img img {
    width: 50px;
    height: 50px;
  }

  .mini-calendar-top {
    padding: 0 8px;
  }

  .mini-month-button {
    min-width: 66px;
    padding: 0 7px;
  }

  .day-mini,
  .day-mini-empty {
    min-height: 22px;
  }

  .day-column {
    flex-basis: 86vw;
  }

  .modal {
    padding: 18px 12px;
  }

  .modal-scroll-hint {
    margin-left: -12px;
    margin-right: -12px;
  }

  .feedback-panel {
    left: 8px;
    right: 8px;
    max-height: min(74vh, 560px);
    padding: 12px;
  }

  .star-button {
    width: 23px;
    font-size: 22px;
  }

  .star-rating-value {
    display: block;
    margin-left: 4px;
  }

}

/* Etiquetas de responsables */
/* El nombre de sesión conserva su aspecto y abre la gestión solo para admin. */
.session-user-badge:not(:disabled) { cursor: pointer; }
.session-user-badge:not(:disabled):hover { color: #F08C28; }
.session-user-badge:focus-visible { outline: 2px solid #F08C28; outline-offset: 4px; border-radius: 6px; }
.session-user-badge:disabled { opacity: 1; }
#etiquetasModal { margin: auto; border: 0; width: calc(100% - 32px); max-width: 480px; box-sizing: border-box; }
#etiquetasModal::backdrop { background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); }
#etiquetasModal .modal-titulo { padding-right: 28px; }
#etiquetasForm { margin: 20px 0 24px; }
.etiquetas-campos { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; }
#etiquetaColor { height: 42px; padding: 4px; cursor: pointer; }
#etiquetasModal button:disabled { opacity: .5; cursor: wait; }
#etiquetasLista { margin-top: 8px; color: #667085; font-size: 13px; }
.etiqueta-fila { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.etiqueta-fila span { flex: 1; min-width: 90px; padding-left: 8px; overflow-wrap: anywhere; color: #1C4169; font-weight: 700; }
.etiqueta-fila .etiqueta-editar { flex: 0 0 auto; padding: 8px 12px; font-size: 11px; border-radius: 999px; }
.reserva-color-control select { width: 100%; font: inherit; background: white; border: 1px solid #cbd5e1; border-radius: 7px; padding: 8px; }
@media (max-width: 700px) {
  .session-user-badge:not(:disabled) { display: block !important; font-size: 11px; padding: 4px; }
  #etiquetasModal .modal-acciones { flex-wrap: wrap; }
}
.cell-reserva-item.etiqueta-asignada { background: var(--etiqueta-color); color: var(--etiqueta-texto); border: 0; border-radius: 8px; padding: 7px 8px; gap: 3px; }
.etiqueta-asignada .cell-reserva-persona, .etiqueta-asignada .cell-reserva-admin-meta, .etiqueta-asignada .cell-reserva-ipads { color: var(--etiqueta-texto); }
.etiqueta-asignada .etiqueta-nombre { color: #ffffff; }
.etiqueta-nombre { display: block; font-size: 11px; font-weight: 700; color: #27364a; overflow-wrap: anywhere; }

.etiquetas-paleta { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 2px; }
.etiqueta-muestra { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--muestra-color); box-shadow: 0 0 0 1px #e4e9f1; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.etiqueta-muestra:hover { transform: translateY(-2px); }
.etiqueta-muestra[aria-pressed="true"] { box-shadow: 0 0 0 2px #1C4169; }
.etiqueta-muestra[aria-pressed="true"]::after { content: "✓"; color: white; font-size: 16px; font-weight: 700; }
.etiqueta-muestra:focus-visible { outline: 2px solid #1C4169; outline-offset: 4px; }

.cell-reserva-pie { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.cell-reserva-pie:empty { display: none; }
.cell-reserva-pie .etiqueta-nombre { margin-left: auto; min-width: 0; max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 500; line-height: 1.4; }
.cell-reserva-pie .cell-reserva-ipads { flex-shrink: 0; }
.asignacion-etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-height: 180px; overflow-y: auto; padding: 3px; }
.asignacion-etiqueta { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; border: 1px solid #e4e9f1; border-radius: 10px; background: #f8fafc; padding: 9px 12px; color: #475569; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.asignacion-etiqueta > span:nth-child(2) { overflow-wrap: anywhere; min-width: 0; }
.asignacion-etiqueta:hover { background: #eef3f8; border-color: #b8c7d9; }
.asignacion-etiqueta[aria-pressed="true"] { background: #eef3f8; border-color: #1C4169; color: #1C4169; }
.asignacion-punto { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--opcion-color); box-shadow: inset 0 0 0 1px #00000014; }
.asignacion-check { visibility: hidden; font-size: 12px; }
.asignacion-etiqueta[aria-pressed="true"] .asignacion-check { visibility: visible; }
.asignacion-etiqueta:focus-visible { outline: 2px solid #1C4169; outline-offset: 2px; }
.asignacion-etiqueta:disabled { opacity: .6; cursor: wait; }

#etiquetasForm .modal-acciones { justify-content: flex-end; margin-top: 16px; }
#etiquetasForm .btn-confirmar { flex: 0 0 auto; padding: 9px 14px; font-size: 12px; font-weight: 600; }

.login-user-icon { display: inline-block; vertical-align: middle; margin-right: 5px; transform: translateY(-1px); }

.etiqueta-solo-lectura { display: inline-block; max-width: 100%; padding: 5px 10px; border-radius: 7px; background: var(--etiqueta-color); color: #ffffff; font-size: 11px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }

.btn-agregar-solicitud { align-self: flex-start; margin-top: 5px; padding: 4px 8px; border: 1px solid #c8d6e5; border-radius: 6px; background: #f4f8fc; color: #1C4169; font: 600 10px "Montserrat", sans-serif; cursor: pointer; }
.btn-agregar-solicitud:hover { background: #e3edf7; border-color: #1C4169; }
.btn-agregar-solicitud:focus-visible { outline: 2px solid #1C4169; outline-offset: 2px; }

.recordatorio-encuesta { margin: auto; width: calc(100% - 32px); max-width: 410px; border: 0; border-top: 4px solid #F08C28; box-sizing: border-box; }
.recordatorio-encuesta::backdrop { background: rgba(20, 40, 65, .42); backdrop-filter: blur(3px); }
.recordatorio-encuesta .modal-titulo { padding-right: 24px; }
#recordatorioEncuestaTexto { color: #475569; font-size: 14px; line-height: 1.65; }
#recordatorioEncuestaTexto p { margin: 14px 0 0; }
#recordatorioEncuestaTexto strong { color: #F08C28; font-weight: 600; }
#recordatorioEncuestaTexto .recordatorio-agradecimiento { padding-top: 14px; border-top: 1px solid #e4e9f1; color: #1C4169; font-weight: 600; }

#btnSoporte svg { width: 18px; height: 18px; vertical-align: middle; margin-right: 5px; }
.soporte-modal { margin: auto; width: calc(100% - 32px); max-width: 420px; border: 0; box-sizing: border-box; }
.soporte-modal::backdrop { background: rgba(20,40,65,.42); backdrop-filter: blur(3px); }
.soporte-modal .modal-titulo { padding-right: 24px; }
#soporteDescripcion { margin: 14px 0 18px; font-size: 14px; line-height: 1.6; color: #475569; }
.soporte-canales { display: grid; gap: 10px; }
.soporte-canal { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e4e9f1; border-radius: 12px; color: #1C4169; text-decoration: none; background: #f8fafc; transition: background .15s, border-color .15s; }
.soporte-canal:hover { background: #eef4fa; border-color: #b5c7d9; }
.soporte-canal:focus-visible { outline: 2px solid #F08C28; outline-offset: 3px; }
.soporte-canal svg { width: 24px; height: 24px; flex-shrink: 0; color: #F08C28; }
.soporte-canal > span { min-width: 0; }
.soporte-canal strong { display: block; font-size: 13px; margin-bottom: 4px; }
.soporte-canal span span { display: block; font-size: 12px; color: #475569; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .admin-panel:not(.menu-open):has(.admin-menu-toggle:not([hidden])) { padding-bottom: 45px; }
}

/* Apariencia compartida de Support y Login en todas las pantallas. */
#btnSoporte, #btnAdmin { background: #1C4169; }
#btnSoporte:hover, #btnAdmin:hover { background: #2b5079; }
#btnSoporte:focus-visible, #btnAdmin:focus-visible { outline: 2px solid #F08C28; outline-offset: 3px; }
