/* ============================================================
   Componentes canónicos (UX_UI.md §5)
   ============================================================ */

/* --- Botones ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}
.btn--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn--secondary:hover {
  background: var(--surface-2);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent-tint);
}
.btn--danger {
  background: var(--danger-tint);
  border-color: transparent;
  color: var(--danger);
}
.btn--danger:hover {
  background: var(--danger);
  color: #fff;
}
.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: var(--text-xs);
}
.btn--block {
  width: 100%;
}
.btn--icon {
  padding: 0.6rem;
  border-radius: var(--radius-full);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn__icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s var(--ease-out);
}
.btn:hover .btn__icon {
  transform: translate(1px, -1px);
}

/* --- Búsqueda ------------------------------------------------ */
.search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}
.search__icon {
  position: absolute;
  left: 0.75rem;
  width: 1rem;
  height: 1rem;
  color: var(--ink-3);
  pointer-events: none;
}
.search__input {
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.search__input::placeholder {
  color: var(--ink-3);
}
.search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.search__kbd {
  position: absolute;
  right: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0 0.35rem;
  background: var(--surface-2);
}

/* --- Tarjeta (doble bisel) ----------------------------------- */
.shell {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 6px;
}
.core {
  background: var(--surface);
  border-radius: 1.125rem;
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .core {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  margin: 0.5rem 0 1rem;
}
.kpi {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.totals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 420px;
  margin-left: auto;
}
.totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.totals__row--total {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
  font-weight: 700;
}

/* --- Cabecera de página -------------------------------------- */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
}
.page-header__sub {
  color: var(--ink-2);
  font-size: var(--text-sm);
  margin-top: 0.25rem;
}
.page-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- Barra de filtros ---------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filters .search {
  flex: 1 1 240px;
  min-width: 200px;
}
.filters .field__select {
  width: auto;
}

/* --- Tablas -------------------------------------------------- */
.table-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.data-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr {
  transition: background 0.15s var(--ease-out);
}
.data-table tbody tr:hover {
  background: var(--surface-2);
}
.data-table .num,
.data-table .col-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.data-table .col-actions {
  text-align: right;
  white-space: nowrap;
}
.row-actions {
  display: inline-flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.15s var(--ease-out);
}
.data-table tr:hover .row-actions {
  opacity: 1;
}

@media (max-width: 1023px) {
  .data-table th {
    padding: 0.7rem 0.75rem;
  }
  .data-table td {
    padding: 0.7rem 0.75rem;
  }
}

@media (max-width: 767px) {
  .core {
    padding: 1.1rem;
  }
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0;
    overflow: hidden;
  }
  /* Fila apilada: label + valor en grid con columnas que sí pueden encogerse
     (minmax(0, …)) para que el texto largo envuelva y no desborde la tarjeta. */
  .data-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: start;
    gap: 0.35rem 0.9rem;
    border: 0;
    padding: 0.5rem 0.9rem;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .data-table td::before {
    content: attr(data-label);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-3);
    text-align: left;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .data-table td > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .data-table .num,
  .data-table .col-num {
    text-align: right;
  }
  .data-table .col-actions {
    grid-template-columns: 1fr;
    text-align: right;
  }
  .data-table .col-actions::before {
    content: none;
  }
  .row-actions {
    opacity: 1;
  }
}

/* --- Campos de formulario ------------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.field__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
.field__helper {
  font-size: var(--text-xs);
  color: var(--ink-3);
}
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field__textarea {
  min-height: 6rem;
  resize: vertical;
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field--error .field__input,
.field--error .field__select,
.field--error .field__textarea {
  border-color: var(--danger);
}
.field__error {
  font-size: var(--text-xs);
  color: var(--danger);
}
.field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.field--check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

/* --- Select con buscador ------------------------------------- */
.ssel {
  position: relative;
  display: block;
  width: 100%;
}
.ssel__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.ssel__control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.ssel__control:hover {
  border-color: var(--ink-3);
}
.ssel.is-open .ssel__control {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.ssel__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ssel__value.is-placeholder {
  color: var(--ink-3);
}
.ssel__arrow {
  display: inline-flex;
  color: var(--ink-3);
  transition: transform 0.2s var(--ease-out);
}
.ssel.is-open .ssel__arrow {
  transform: rotate(180deg);
}
.ssel__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 12rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.ssel--fixed .ssel__panel {
  display: flex;
  flex-direction: column;
}
.ssel--fixed .ssel__list {
  flex: 1 1 auto;
  max-height: none;
}
.ssel__search-wrap {
  padding: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.ssel__search {
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.ssel__search:focus {
  outline: none;
  border-color: var(--accent);
}
.ssel__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  max-height: 260px;
  overflow-y: auto;
}
.ssel__group {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 0.45rem 0.6rem 0.2rem;
}
.ssel__option {
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  -webkit-user-select: none;
  user-select: none;
}
.ssel__option:hover,
.ssel__option.is-active {
  background: var(--surface-2);
}
.ssel__option.is-selected {
  color: var(--accent);
  font-weight: 600;
}
.ssel__option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.field--error .ssel__control {
  border-color: var(--danger);
}

.filters .ssel {
  width: auto;
  min-width: 9rem;
}

/* --- Multiselect de estado (checkboxes, sin buscador) --------- */
.msel {
  position: relative;
}
.msel__control {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  white-space: nowrap;
}
.msel__control::-webkit-details-marker {
  display: none;
}
.msel[open] .msel__control {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.msel__arrow {
  display: inline-flex;
  color: var(--ink-3);
}
.msel__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  min-width: 12rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 0.4rem;
}
.msel__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-sm);
}
.msel__option:hover {
  background: var(--surface-2);
}
.msel__option input[type="checkbox"] {
  accent-color: var(--accent);
}

/* --- Badges -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  line-height: 1.5;
}
.badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--radius-full);
  background: currentColor;
}
.badge--neutral {
  background: var(--surface-2);
  color: var(--ink-2);
}
.badge--success {
  background: var(--success-tint);
  color: var(--success);
}
.badge--warning {
  background: var(--warning-tint);
  color: var(--warning);
}
.badge--danger {
  background: var(--danger-tint);
  color: var(--danger);
}
.badge--info {
  background: var(--info-tint);
  color: var(--info);
}
.badge--accent {
  background: var(--accent-tint);
  color: var(--accent-ink);
}
a.badge {
  cursor: pointer;
  transition: opacity 0.15s ease;
}
a.badge:hover {
  opacity: 0.8;
}

/* --- Estado vacío -------------------------------------------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
}
.empty__icon {
  width: 3rem;
  height: 3rem;
  color: var(--ink-3);
}
.empty__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
}
.empty__text {
  color: var(--ink-2);
  font-size: var(--text-sm);
  max-width: 40ch;
}

/* --- Skeleton ------------------------------------------------ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
.skeleton--row {
  height: 1rem;
  margin-bottom: 0.75rem;
}
.skeleton--card {
  height: 8rem;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* --- Paginación ---------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
}
.pagination a,
.pagination span {
  min-width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 0 0.5rem;
}
.pagination a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.pagination .is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Chips --------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--ink-2);
}
.chip svg {
  width: 14px;
  height: 14px;
}
.chip--ok {
  background: var(--success-tint);
  border-color: transparent;
  color: var(--success);
}
.chip--pending {
  background: var(--warning-tint);
  border-color: transparent;
  color: var(--warning);
}

/* --- Meta en línea (cabecera de evento) ---------------------- */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  color: var(--ink-3);
  font-size: var(--text-sm);
}
.event-meta > span,
.event-meta > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.event-meta a {
  color: var(--ink-2);
}
.event-meta svg {
  width: 14px;
  height: 14px;
}

/* --- Alertas inline ------------------------------------------ */
.alert {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: var(--text-sm);
  border: 1px solid var(--line);
}
.alert--danger {
  background: var(--danger-tint);
  color: var(--danger);
  border-color: transparent;
}
.alert--warning {
  background: var(--warning-tint);
  color: var(--warning);
  border-color: transparent;
}
.alert--info {
  background: var(--info-tint);
  color: var(--info);
  border-color: transparent;
}

/* --- Modal ---------------------------------------------------- */
.modal {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: none;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.modal__panel {
  width: min(560px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.modal[open] .modal__panel {
  animation: modal-in 0.22s var(--ease-spring);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.modal__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
}
.modal__body {
  padding: 1.25rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* --- Reveal (motion) ----------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* --- Acordeón (historial) ------------------------------------ */
.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  background: var(--surface);
}
.acc__head {
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  font-size: var(--text-sm);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.acc__head::-webkit-details-marker {
  display: none;
}
.acc__head::after {
  content: "+";
  color: var(--ink-3);
  font-weight: 700;
}
.acc[open] .acc__head::after {
  content: "–";
}
.acc__body {
  padding: 0 0.9rem 0.75rem;
}
.hist {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
}
.hist__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1.7rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease-out);
}
.hist__item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.hist__item:first-child::before {
  top: 1.05rem;
}
.hist__item:last-child::before {
  bottom: auto;
  height: 1.05rem;
}
.hist__item:only-child::before {
  display: none;
}
.hist__item:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.hist__dot {
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 13px;
  height: 13px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 2px solid var(--accent);
}
.hist__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.hist__cat {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hist__desc {
  font-size: var(--text-sm);
  color: var(--ink);
  line-height: 1.35;
}
.hist__meta {
  font-size: var(--text-xs);
  color: var(--ink-3);
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 640px) {
  .hist__item {
    grid-template-columns: 1fr;
  }
  .hist__meta {
    text-align: left;
  }
}

/* Fila expansible en tablas (historial en listados) */
.table-expand > td {
  background: var(--surface-2);
  padding: 0.85rem 1rem;
}
.icon-btn.is-active {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: var(--accent);
}

/* --- Opciones del pack (dulce/salado) ----------------------- */
.opciones-lista {
  min-width: 0;
}
.opciones-lista .opcion-row {
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.opciones-lista .opcion-row .field__input {
  flex: 1 1 auto;
}
.opcion-grupo {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem 0.75rem;
  margin: 0 0 0.75rem;
}
.opcion-grupo legend {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 0.35rem;
}
.opcion {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 1rem 0.25rem 0;
  font-size: var(--text-sm);
}
.opcion input {
  accent-color: var(--accent);
}

/* --- Disponibilidad (columna: un chip por fila) --------------- */
.disp-grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.disp-grid .chip {
  max-width: 100%;
}
