:root {
  --brand-1: #1a524f;
  --brand-2: #4caf50;
  --accent-1: #e7607b;
  --surface: #0f1115;
  --card: #151922;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7e9ee;
}

/* Contenedor principal “tarjeta” del calendario */
.calendar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* FullCalendar: tokens dark */
.fc {
  --fc-border-color: var(--border);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(255, 255, 255, 0.03);
  --fc-now-indicator-color: var(--accent-1);
  --fc-today-bg-color: rgba(76, 175, 80, 0.1);
  --fc-event-bg-color: var(--brand-2);
  --fc-event-border-color: var(--accent-1);
  --fc-event-text-color: #fff;
  --fc-button-text-color: #fff;
  --fc-button-bg-color: var(--brand-1);
  --fc-button-border-color: var(--brand-1);
  --fc-button-hover-bg-color: #236964;
  --fc-button-hover-border-color: #236964;
  --fc-button-active-bg-color: var(--accent-1);
  --fc-button-active-border-color: var(--accent-1);
  --fc-today-text-color: #fff;
}

.fc .fc-toolbar-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
}

.fc .fc-button {
  border-radius: 10px;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
  color: var(--text);
}

.fc a[data-navlink] {
  cursor: pointer;
  color: #1a524f;
  font-weight: 700;
}

/* Eventos con look de “card” */
.fc .fc-daygrid-event,
.fc .fc-timegrid-event {
  border-radius: 12px;
  padding: 0 !important;
  overflow: hidden;
}

.card-event-inner {
  padding: 0.55rem 0.65rem;
  line-height: 1.2;
  min-width: 0;
}

.card-event-title {
  font-weight: 700;
  font-size: 0.62rem;
  margin-bottom: 0.15rem;
  letter-spacing: 0.2px;

  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* muestra … al final */
}

.card-event-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.58rem;
  opacity: 0.95;
}

.badge-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.5rem;
  background: transparent;
  border: 1px solid transparent;

  /* ✅ multilínea */
  white-space: normal;
  /* permite saltos de línea */
  overflow-wrap: anywhere;
  /* parte palabras largas si es necesario */
  word-break: break-word;
  /* fallback */
  line-height: 1.15;
  /* más legible en 2+ líneas */
  max-width: 100%;
  /* evita desbordes */
}

/* Semana/Día: slots cómodos y etiquetas */
.fc .fc-timegrid-slot {
  height: 2.2rem;
}

.fc .fc-timegrid-axis-cushion,
.fc .fc-timegrid-slot-label-cushion {
  font-size: 0.8rem;
  color: #aeb4c0;
}

/* Vista Lista */
.fc .fc-list {
  border-radius: 12px;
  overflow: hidden;
}

.fc-list-event td {
  vertical-align: middle;
}

.fc .fc-list-event:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Filtros / Acciones header local */
.calendar-actions .form-control,
.calendar-actions .form-select {
  background: #0f131b;
  border: 1px solid var(--border);
  color: var(--text);
}

.calendar-actions label {
  font-size: 0.78rem;
}

.calendar-actions .btn-outline-light {
  border-color: var(--border);
}

/* Loader */
#calLoader {
  color: #cfd3dc;
}

.fc-list-day-text {
  color: #fff !important;
}

/* 1) Fuerza tarjeta blanca en todas las vistas */
.fc .fc-daygrid-event,
.fc .fc-timegrid-event {
  /* blanco fijo */
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #111 !important;
  /* texto neutro */
}

/* Opcional: línea de acento a la izquierda (se establecerá con JS) */
.fc .fc-daygrid-event,
.fc .fc-timegrid-event {
  box-shadow: inset 4px 0 0 0 transparent;
  /* se sobrescribe en JS */
}

/* Contenido interno de la “card” */
.card-event-inner {
  padding: 0.55rem 0.65rem;
  line-height: 1.2;
}

.card-event-title {
  color: #111;
}

.card-event-meta {
  color: #444;
}

/* El badge ya no tiene color fijo; el JS lo pintará con el color de la API */
.badge-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.5rem;
  background: transparent;
  /* neutral por defecto */
  border: 1px solid transparent;
}

/* ===== Leyenda de estatus (versión XS) ===== */
/* ===== Leyenda de estatus - FINAL ===== */

/* Paleta de colores */
:root {
  --st-pendiente: #1e88e5;
  /* azul */
  --st-confirmada: #2e7d32;
  /* verde */
  --st-cancelada: #9aa0a6;
  /* gris */
  --st-rechazada: #e53935;
  /* rojo */
  --st-consulta: #f1c232;
  /* dorado */
  --st-ingreso: #90caf9;
  /* azul claro */
  --st-programacion: #b6d7a8;
  /* verde pastel */
}

/* Contenedor */
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

/* Pill base */
.legend-item {
  --c: #999;
  --bg: rgba(0, 0, 0, 0.06);
  --bd: rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--bd);
  border-radius: 999px;
  color: var(--c);
  background: var(--bg);
  user-select: none;
  white-space: nowrap;
  transition: 0.18s ease;
}

.legend-item svg {
  display: block;
  width: 14px;
  height: 14px;
}

/* Colores por estado */
.legend-item[data-status="pendiente"] {
  --c: var(--st-pendiente);
  --bg: rgba(30, 136, 229, 0.12);
  --bd: rgba(30, 136, 229, 0.35);
}

.legend-item[data-status="confirmada"] {
  --c: var(--st-confirmada);
  --bg: rgba(46, 125, 50, 0.12);
  --bd: rgba(46, 125, 50, 0.35);
}

.legend-item[data-status="cancelada"] {
  --c: var(--st-cancelada);
  --bg: rgba(154, 160, 166, 0.15);
  --bd: rgba(154, 160, 166, 0.35);
}

.legend-item[data-status="rechazada"] {
  --c: var(--st-rechazada);
  --bg: rgba(229, 57, 53, 0.12);
  --bd: rgba(229, 57, 53, 0.35);
}

.legend-item[data-status="consulta"] {
  --c: var(--st-consulta);
  --bg: rgba(241, 194, 50, 0.14);
  --bd: rgba(241, 194, 50, 0.38);
}

.legend-item[data-status="ingreso"] {
  --c: var(--st-ingreso);
  --bg: rgba(144, 202, 249, 0.14);
  --bd: rgba(144, 202, 249, 0.38);
}

.legend-item[data-status="programacion"] {
  --c: var(--st-programacion);
  --bg: rgba(182, 215, 168, 0.14);
  --bd: rgba(182, 215, 168, 0.38);
}

/* Hover sutil */
.legend-item:hover {
  filter: contrast(1.05) saturate(1.05);
  transform: translateY(-1px);
}

/* ===== Tamaño NANO (ultra compacto) ===== */
.status-legend[data-size="nano"] {
  gap: 0.2rem 0.28rem;
}

.status-legend[data-size="nano"] .legend-item {
  font-size: 0.6rem;
  padding: 0.12rem 0.22rem;
  gap: 0.22rem;
  border-radius: 999px;
}

.status-legend[data-size="nano"] .legend-item svg {
  width: 9px;
  height: 9px;
}

/* Más compacto en móviles */
@media (max-width: 400px) {
  .status-legend[data-size="nano"] .legend-item {
    font-size: 0.58rem;
    padding: 0.1rem 0.2rem;
  }

  .status-legend[data-size="nano"] .legend-item svg {
    width: 8px;
    height: 8px;
  }
}

/* Alinear título a la izquierda de los estatus */
.status-legend--labeled {
  align-items: center;
  /* título centrado verticalmente con los pills */
  flex-wrap: wrap;
  /* los pills pueden brincar de línea */
  row-gap: 0.35rem;
  /* un poco menos de gap vertical para nano */
}

/* Estilo del título/label */
.status-legend--labeled .legend-label {
  margin: 0 0.5rem 0 0;
  /* espacio a la derecha del título */
  font-size: 0.72rem;
  /* pequeño pero legible */
  font-weight: 700;
  white-space: nowrap;
  /* evita que el título se parta */
  opacity: 0.9;
  /* look moderno */
}

/* En pantallas muy pequeñas, reducimos un poco más */
@media (max-width: 400px) {
  .status-legend--labeled .legend-label {
    font-size: 0.68rem;
    margin-right: 0.4rem;
  }
}

/* blanco (útil en fondos oscuros) */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* ===== Barra moderna (no toca tus colores de badges) ===== */
:root {
  --agenda-border: rgba(255, 255, 255, 0.1);
  --agenda-title: #e7e9ee;
  --agenda-muted: #b8bfd3;

  /* Fallbacks (solo si no tienes colores definidos en tu CSS previo) */
  --badge-consulta: #4caf50;
  --badge-ingreso: #e7607b;
  --badge-programa: #1e88e5;
}

@media (prefers-color-scheme: light) {
  :root {
    --agenda-border: rgba(0, 0, 0, 0.08);
    --agenda-title: #1b1f2a;
    --agenda-muted: #4b5563;
  }
}

.agenda-bar {
  border-bottom: 1px solid var(--agenda-border);
  padding: 0.35rem 0.25rem 0.6rem;
  backdrop-filter: saturate(120%) blur(2px);
}

.agenda-title {
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  text-transform: uppercase;
  color: #4caf50;
}

.status-legend .legend-label {
  font-size: 0.9rem;
  color: var(--agenda-muted);
}

.status-legend .legend-item {
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--agenda-border);
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.status-legend .legend-item:hover {
  transform: translateY(-1px);
  border-color: currentColor;
  background-color: rgba(255, 255, 255, 0.04);
}

/* Iconos usan currentColor, así que NO se pierde tu paleta */
.legend-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
}

/* En móvil, apila limpio */
@media (max-width: 576px) {
  .agenda-bar {
    padding-bottom: 0.8rem;
  }

  .status-legend {
    justify-content: flex-start !important;
  }
}

.agenda-title {
  line-height: 1;
}

.agenda-img {
  width: 28px;
  /* ajusta tamaño a tu gusto */
  height: 28px;
  object-fit: contain;
  display: inline-block;
}

@media (min-width: 768px) {
  .agenda-img {
    width: 30px;
    height: 30px;
  }
}

.badge-id {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 0.2px;
  opacity: 0.9;
  color: var(--text, #333);
  background: rgba(0, 0, 0, 0.04);
}

/* ===== Modal Premium FINAL ===== */
:root {
  --gk-radius-xl: 18px;
  --gk-radius-lg: 14px;
  --gk-radius-md: 12px;
  --gk-surface: var(--card, #141823);
  --gk-surface-2: color-mix(in oklab, var(--gk-surface) 85%, #000 15%);
  --gk-border: var(--border, rgba(255, 255, 255, 0.09));
  --gk-border-2: rgba(255, 255, 255, 0.12);
  --gk-text: var(--text, #e8eaef);
  --gk-muted: #9aa3b2;
  --gk-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.25);
  --gk-blur: 14px;
}

@media (prefers-color-scheme: light) {
  :root {
    --gk-surface: #ffffff;
    --gk-surface-2: #f7f8fb;
    --gk-text: #1b1f29;
    --gk-muted: #667085;
    --gk-border: rgba(0, 0, 0, 0.08);
    --gk-border-2: rgba(0, 0, 0, 0.12);
    --gk-shadow:
      0 25px 55px rgba(25, 25, 28, 0.12), 0 2px 10px rgba(25, 25, 28, 0.06);
  }
}

/* Contenedor del modal */
.gk-modal {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--gk-surface) 88%, transparent 12%),
    var(--gk-surface-2)
  );
  border-radius: var(--gk-radius-xl);
  border: 1px solid var(--gk-border);
  box-shadow: var(--gk-shadow);
  backdrop-filter: blur(var(--gk-blur));
  -webkit-backdrop-filter: blur(var(--gk-blur));
  overflow: hidden;
  color: var(--gk-text);
  animation: gk-pop 0.2s ease-out;
}

@keyframes gk-pop {
  from {
    transform: translateY(6px) scale(0.995);
    opacity: 0.85;
  }

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

/* Header */
.gk-modal .modal-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    radial-gradient(
      60% 120% at 0% 0%,
      rgba(255, 255, 255, 0.06),
      transparent 40%
    );
  border-bottom: 1px solid var(--gk-border);
  padding: 18px 22px 14px;
}

.gk-modal .modal-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
  line-height: 1.2;
}

/* Body */
.gk-modal .modal-body {
  padding: 18px 22px;
  background:
    radial-gradient(
      120% 100% at 100% 0%,
      rgba(71, 126, 232, 0.05),
      transparent 40%
    ),
    radial-gradient(
      110% 90% at 0% 100%,
      rgba(231, 96, 123, 0.05),
      transparent 45%
    );
}

/* Footer */
.gk-modal .modal-footer {
  border-top: 1px solid var(--gk-border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.04));
  padding: 12px 22px;
}

/* Botones */
.gk-modal .btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Scroll bonito */
.modal-dialog.modal-dialog-scrollable .modal-content {
  border-radius: var(--gk-radius-xl);
}

.modal-dialog.modal-dialog-scrollable .modal-body {
  max-height: calc(80vh - 130px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gk-border-2) transparent;
}

.modal-dialog.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.modal-dialog.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
  background: var(--gk-border-2);
  border-radius: 999px;
}

.modal-dialog.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

/* Chip de estado */
.gk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  font-size: 0.74rem;
  border: 1px solid var(--gk-border-2);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.gk-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* Secciones */
.gk-section {
  margin-top: 1.1rem;
}

/* Encabezado de sección con icono + divisor + contador */
.gk-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.25px;
  position: relative;
}

.gk-section-head i {
  font-size: 1.1rem;
  opacity: 0.95;
}

.gk-section-head::after {
  content: "";
  height: 1px;
  background: var(--gk-border);
  flex: 1;
  margin-left: 0.5rem;
  opacity: 0.9;
}

.gk-section-head .gk-count {
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.25rem;
  background: color-mix(in oklab, var(--gk-surface-2) 92%, transparent 8%);
  border: 1px solid var(--gk-border);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

/* KPI grid (Estado / Fecha / ID) */
@media (min-width: 640px) {
  .gk-kpi-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.75rem;
  }

  .gk-kpi-grid > .col-kpi {
    grid-column: span 4;
  }
}

/* Cards y Key-Value */
.gk-card {
  border: 1px solid var(--gk-border);
  background:
    linear-gradient(
      180deg,
      color-mix(in oklab, var(--gk-surface) 92%, transparent 8%),
      transparent
    ),
    var(--gk-surface-2);
  border-radius: var(--gk-radius-lg);
  padding: 0.9rem 1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0.5px 0 rgba(0, 0, 0, 0.06);
}

.gk-kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem 0.45rem;
  border-radius: var(--gk-radius-md);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.gk-kv:hover {
  background: color-mix(in oklab, var(--gk-surface-2) 88%, transparent 12%);
  border-color: var(--gk-border-2);
}

.gk-k {
  font-size: 0.72rem;
  color: var(--gk-muted);
  letter-spacing: 0.2px;
}

.gk-v {
  font-weight: 700;
  letter-spacing: 0.15px;
  word-break: break-word;
}

.gk-v:hover {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* Timeline de notas */
.gk-timeline {
  position: relative;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gk-timeline::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--gk-border);
  border-radius: 2px;
}

.gk-note {
  position: relative;
  margin-left: 0.25rem;
  border: 1px dashed var(--gk-border-2);
  background: color-mix(in oklab, var(--gk-surface-2) 96%, transparent 4%);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.gk-note::before {
  content: "";
  position: absolute;
  left: -1.13rem;
  top: 0.95rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--gk-surface-2);
  border: 2px solid var(--gk-border);
  box-shadow: 0 0 0 3px
    color-mix(in oklab, var(--gk-surface-2) 75%, transparent 25%);
}

.gk-note:hover {
  border-color: var(--gk-border);
  background: color-mix(in oklab, var(--gk-surface-2) 98%, transparent 2%);
}

.gk-note .gk-note-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.gk-note small {
  color: var(--gk-muted);
}

/* Meta del header (Estado / Fecha / ID) */
.gk-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.gk-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem;
  font-weight: 700;
  font-size: 0.74rem;
  border-radius: 999px;
  border: 1px solid var(--gk-border, rgba(255, 255, 255, 0.09));
  background: color-mix(
    in oklab,
    var(--gk-surface-2, #141823) 94%,
    transparent 6%
  );
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.gk-pill i {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Línea compacta para Nombre + Apellidos del Paciente */
.gk-inline-kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 540px) {
  .gk-inline-kv {
    grid-template-columns: 1fr 0.7fr 0.7fr;
    /* nombre más ancho, apellidos compactos */
    align-items: end;
  }
}

.gk-inline-kv .gk-kv {
  padding: 0.35rem 0.6rem 0.45rem;
}

/* Header: contenedor derecho (logo + close) */
.gk-header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Logo del header */
.gk-header-logo {
  --gk-logo-size: 28px;
  width: var(--gk-logo-size);
  height: var(--gk-logo-size);
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 6px;
  /* sutil */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
}

@media (min-width: 768px) {
  .gk-header-logo {
    --gk-logo-size: 32px;
  }
}

/* Si tu logo es oscuro y usas fondo oscuro, puedes invertirlo:
   <img ... class="gk-header-logo gk-header-logo--invert" />
*/
.gk-header-logo--invert {
  filter: brightness(0) invert(1);
}

.offcanvas-header-modern {
  background: #4caf50;
}

/* Contenedor general */
#expedienteContent .doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Tarjeta de documento */
#expedienteContent .doc-item {
  border: 1px solid var(--bs-border-color);
  background: #4caf50;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background-color 0.12s ease;
}

#expedienteContent .doc-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: color-mix(
    in srgb,
    var(--bs-success) 35%,
    var(--bs-border-color)
  );
}

/* Círculo de icono */
#expedienteContent .doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  background: #fff;
  border: 1px solid color-mix(in srgb, #4caf50 30%, #000 10%);
}

#expedienteContent .doc-icon i {
  font-size: 1.25rem;
  color: #4caf50;
}

/* Texto */
#expedienteContent .doc-main {
  min-width: 0;
  /* truncado */
}

#expedienteContent .doc-name {
  font-weight: 600;
  line-height: 1.1;
}

#expedienteContent .doc-key {
  color: var(--bs-secondary-color);
}

/* Badge de tipo/extensión */
#expedienteContent .ext-badge {
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.5rem;
}

/* Acciones */
#expedienteContent .doc-actions .btn {
  border-radius: 0.65rem;
  padding: 0.3rem 0.55rem;
}

/* Contenedor general de la lista */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0;
}

/* Cada ítem */
.doc-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  /* azul oscuro translúcido */
  border: 1px solid rgba(148, 163, 253, 0.18);
  /* borde tenue */
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

/* Hover / foco */
.doc-item:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.45);
  transform: translateY(-1px);
}

/* Icono a la izquierda */
.doc-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 253, 0.4);
  flex-shrink: 0;
}

.doc-icon i {
  font-size: 1rem;
  color: #60a5fa;
  /* celestito legible sobre oscuro */
}

/* Zona de texto */
.doc-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.doc-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
}

.doc-key {
  font-size: 0.7rem;
  color: rgba(148, 163, 253, 0.8);
}

/* Badge de extensión / tipo */
.ext-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  font-size: 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 1);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.5);
  flex-shrink: 0;
}

/* Acciones (ver / descargar / eliminar) */
.doc-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  flex-shrink: 0;
}

.doc-actions .btn {
  padding: 0.18rem 0.35rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 253, 0.4);
}

.doc-actions .btn i {
  font-size: 0.8rem;
}

/* Hover sutil botones */
.doc-actions .btn:hover {
  background: rgba(79, 70, 229, 0.18);
  border-color: rgba(129, 140, 248, 0.9);
  color: #bfdbfe;
}

/* Variante "peligro" solo para borrar */
.doc-actions .btn.btn-delete-file:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
}

/* Responsive: en pantallas muy pequeñas apila acciones abajo */
@media (max-width: 576px) {
  .doc-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-actions {
    margin-left: 0;
    margin-top: 0.25rem;
    justify-content: flex-start;
  }
}

#estudiosContent .doc-item {
  background: rgba(24, 24, 35, 0.98);
  border-color: rgba(45, 212, 191, 0.28);
}

#estudiosContent .ext-badge {
  background: rgba(6, 78, 59, 1);
  border-color: rgba(45, 212, 191, 0.55);
  color: #a7f3d0;
}

.badge-kind {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.28);
  color: #111;
  white-space: nowrap;
}

.badge-datetime {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111;

  /* por si llega a ser largo */
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}

/* Header moderno para modal fullscreen */
.urg-modal-header {
  position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 16px 18px;

  /* fondo “elevado” */
  background:
    radial-gradient(
      900px 240px at 10% 0%,
      rgba(76, 175, 80, 0.18),
      transparent 55%
    ),
    radial-gradient(
      700px 220px at 90% 10%,
      rgba(46, 125, 50, 0.14),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.92)
    );
  backdrop-filter: blur(6px);
}

/* Barra/acento lateral (opcional pero se ve muy bien) */
.urg-modal-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #4caf50, #2e7d32);
  opacity: 0.95;
}

.urg-modal-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0;
  line-height: 1.1;
}

.urg-modal-subtitle {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 600;
}

/* Botón cerrar más usable/visible */
.urg-modal-close {
  padding: 0.85rem;
  border-radius: 12px;
  opacity: 0.85;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background-color 0.15s ease;
}

.urg-modal-close:hover {
  opacity: 1;
  transform: scale(1.05);
  background-color: rgba(15, 23, 42, 0.06);
}

.urg-modal-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
  opacity: 1;
}

/* Asegura que el content use todo el alto del fullscreen */
.urg-modal-content {
  height: 100%;
}

/* Body con layout vertical y sin padding global */
/* Body del modal: el ÚNICO que scrollea */
.urg-modal-body {
  padding: 0;
  display: block;
  /* ya no forzamos layout con alturas */
  height: auto;
  min-height: 0;
  overflow: auto;
  /* ✅ scroll del modal */
}

/* Top y bottom consistentes */
.urg-body-top {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin: 10px 10px 0;
  border-radius: 18px;
  background: #f5f5f5;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

/* Sección inferior: ya NO ocupa "lo restante" con height; se adapta al contenido */
.urg-body-bottom {
  margin: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  background:
    radial-gradient(
      900px 260px at 10% 0%,
      rgba(76, 175, 80, 0.1),
      transparent 60%
    ),
    radial-gradient(
      700px 240px at 90% 10%,
      rgba(46, 125, 50, 0.08),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.92)
    );

  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Columnas: sin overflow, mismo estilo */
.urg-col {
  overflow: visible;
  /* ✅ quita scroll interno */
  background: #f5f5f5;
  /* ✅ deja que el wrap mande */
}

/* Separador vertical elegante */
.urg-col-left {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

/* Responsive: apila */
@media (max-width: 991.98px) {
  .urg-body-bottom {
    grid-template-columns: 1fr;
  }

  .urg-col-left {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

/* =========================
   Resumen Caso - Moderno/Elegante
========================= */

.urg-summary-wrap {
  border-radius: 18px;
  background:
    radial-gradient(
      900px 260px at 10% 0%,
      rgba(76, 175, 80, 0.14),
      transparent 60%
    ),
    radial-gradient(
      700px 240px at 90% 10%,
      rgba(46, 125, 50, 0.12),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.92)
    );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  position: relative;
  overflow: hidden;
}

/* pill “CASO” */
.urg-pill {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border: 0;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.7rem;
}

/* chip estado (arriba derecha) */
.urg-state-chip {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 0.7rem;
}

/* cards */
.urg-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.urg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

/* badge outline para tipoCaso */
.urg-badge-outline {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #1b5e20;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

/* divisor elegante */
.urg-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 23, 42, 0.18),
    transparent
  );
}

/* iconos (requiere Bootstrap Icons) */
.urg-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.25);
  color: #2e7d32;
}

.urg-icon i {
  font-size: 1.1rem;
}

.urg-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.urg-badge-outline {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #1b5e20;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.urg-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 23, 42, 0.18),
    transparent
  );
}

/* Padding consistente dentro */
.urg-col .p-3,
.urg-col .p-4,
.urg-col .p-md-4 {
  padding: 16px 18px !important;
}

/* Encabezado de columna */
.urg-col h6 {
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* “Cards” dentro: usa tu urg-card existente */
.urg-col .urg-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

/* ===== TÍTULOS (labels) con más presencia ===== */
#fullModalDetailNotas .fw-semibold {
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  /* más contraste visual */
  font-size: 0.72rem;
  color: #1a524f;

  /* ✅ subrayado moderno */
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(76, 175, 80, 0.65);

  /* ✅ “pill”/fondo sutil para que se note más */
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.28);

  /* micro-sombra elegante */
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

/* ✅ Barrita lateral (acento) */
#fullModalDetailNotas .fw-semibold::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12);
}

/* ✅ Hover sutil */
#fullModalDetailNotas .fw-semibold:hover {
  background: rgba(76, 175, 80, 0.14);
  border-color: rgba(76, 175, 80, 0.4);
  text-decoration-color: rgba(231, 96, 123, 0.7);
  /* usa tu accent-1 */
}

/* Hover ultra sutil (sin azul) */
.gk-kv:hover {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* ===== Acciones Nota Urgencias ===== */
/* Desktop / normal: una sola línea */
.urg-actions {
  display: flex;
  flex-wrap: nowrap;
  /* ✅ una sola línea */
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.urg-actions .urg-btn {
  flex: 0 0 auto;
}

/* Móvil: en fila por fila (columna) */
@media (max-width: 576px) {
  .urg-actions {
    flex-direction: column;
    /* ✅ se apilan */
    align-items: stretch;
    /* ✅ full width */
    justify-content: flex-start;
    white-space: normal;
  }

  .urg-actions .urg-btn {
    width: 100%;
  }
}

.urg-btn {
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 0.78rem;
  padding: 0.42rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.urg-btn i {
  font-size: 0.95rem;
  opacity: 0.9;
}

.urg-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  filter: saturate(1.03);
}

/* Variantes */
.urg-btn-success {
  border-color: rgba(46, 125, 50, 0.35);
  background: rgba(76, 175, 80, 0.12);
  color: #1b5e20;
}

.urg-btn-danger {
  border-color: rgba(229, 57, 53, 0.35);
  background: rgba(229, 57, 53, 0.1);
  color: #b71c1c;
}

.urg-btn-muted {
  border-color: rgba(100, 116, 139, 0.3);
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

/* Responsive: en móvil, botones a ancho completo */
@media (max-width: 576px) {
  .urg-actions {
    width: 100%;
  }

  .urg-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tabs modernos */
.gk-tabs {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.gk-tabs .nav-link {
  position: relative;
  border-radius: 12px !important;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  background: transparent;
  transition:
    transform 0.12s ease,
    background-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  user-select: none;
}

.gk-tabs .nav-link:hover {
  background: rgba(51, 65, 85, 0.06);
  transform: translateY(-1px);
}

.gk-tabs .nav-link.active {
  background: #43a047;
  /* slate-900 */
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

/* mini subrayado elegante en activo */
.gk-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

/* mejora separación del contenido */
.gk-tabpanes {
  padding-top: 8px;
}

/* Responsive: que no se aplasten tanto */
@media (max-width: 576px) {
  .gk-tabs .nav-link {
    padding: 10px 10px;
    font-size: 0.82rem;
  }
}

/* =========================
   Expediente: UI moderna
========================= */
.expediente-wrap {
  --bg: #ffffff;
  --muted: #64748b;
  /* slate-500 */
  --text: #0f172a;
  /* slate-900 */
  --border: #e2e8f0;
  /* slate-200 */
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  --shadow-hover: 0 18px 50px rgba(2, 6, 23, 0.1);
  --radius: 16px;
  --chip: #f1f5f9;
  /* slate-100 */
  --danger: #ef4444;
  --primary: #2563eb;

  /* ✅ 100% ancho */
  width: 100%;
  max-width: 100%;
}

/* ✅ Forzar 1 columna siempre y 100% ancho */
.expediente-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* siempre 1 columna */
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

/* ✅ Quitamos el 2-column layout para que sea 100% ancho */
@media (min-width: 768px) {
  .expediente-grid {
    grid-template-columns: 1fr;
    /* se mantiene 1 columna */
  }
}

.expediente-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  position: relative;
  overflow: hidden;

  /* ✅ 100% ancho real */
  width: 100%;
  max-width: 100%;
}

.expediente-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.expediente-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
}

.expediente-ico i {
  font-size: 22px;
  color: #43a047;
}

.expediente-main {
  min-width: 0;
  flex: 1 1 auto;
}

.expediente-title {
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expediente-sub {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.expediente-chip {
  background: var(--chip);
  color: #334155;
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.expediente-chip code {
  font-size: 11px;
  color: #334155;
}

.expediente-key {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;

  /* ✅ evita desbordes en pantallas pequeñas */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.expediente-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  align-items: center;

  /* ✅ si no caben, que bajen a otra línea */
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ✅ En móvil: acciones en columna (más limpio) */
@media (max-width: 576px) {
  .expediente-card {
    flex-direction: column;
  }

  .expediente-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .expediente-btn {
    width: 100%;
    justify-content: center;
  }
}

.expediente-btn {
  border-radius: 12px !important;
  padding: 7px 10px !important;
  display: inline-flex !important;
  gap: 6px;
  align-items: center;
  font-weight: 600;
}

.expediente-btn i {
  font-size: 16px;
}

.expediente-btn-outline {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  color: #0f172a !important;
}

.expediente-btn-outline:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.expediente-btn-primary {
  background: #4caf50 !important;
  border-color: #4caf50 !important;
}

.expediente-btn-danger {
  background: #fff !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #e7607b !important;
}

.expediente-btn-danger:hover {
  background: rgba(239, 68, 68, 0.06) !important;
  border-color: rgba(239, 68, 68, 0.55) !important;
}

.expediente-empty {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 18px;
  color: #64748b;
  background: #f8fafc;

  /* ✅ 100% */
  width: 100%;
  max-width: 100%;
}

.expediente-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;

  /* ✅ 100% */
  width: 100%;
}

/* ✅ Toolbar en móvil: se apila */
@media (max-width: 576px) {
  .expediente-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.expediente-count {
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
}

/* ✅ EXTRA: fuerza 100% dentro del modal si Bootstrap limita */
#expedienteFilesList {
  width: 100%;
  max-width: 100%;
}

:root {
  --cta: #4caf50;
  --cta-hover: #43a047;
  /* un poco más oscuro */
  --cta-active: #2e7d32;
  /* más oscuro para abierto */
  --cta-ring: rgba(76, 175, 80, 0.35);
  --cta-border: rgba(76, 175, 80, 0.65);
}

.accordion-btn-cta {
  font-weight: 700;
  letter-spacing: 0.2px;

  border: 1px solid var(--cta-border);
  border-radius: 14px;
  margin: 8px 0;

  background: var(--cta);
  color: #fff;

  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.1);
  padding: 14px 16px;

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

/* icono en burbuja (contraste sobre verde) */
.accordion-btn-cta > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* hover (más “botón”) */
.accordion-btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

/* focus accesible */
.accordion-btn-cta:focus {
  box-shadow:
    0 0 0 0.25rem var(--cta-ring),
    0 10px 26px rgba(2, 6, 23, 0.16);
}

/* estado abierto */
.accordion-button:not(.collapsed).accordion-btn-cta {
  background: var(--cta-active);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* icono en abierto un poco más marcado */
.accordion-button:not(.collapsed).accordion-btn-cta > i {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.34);
}

/* flecha del accordion (que combine con blanco) */
.accordion-button.accordion-btn-cta::after {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.reagenda-scroll {
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}
