/* =============================================================================
   embo-ui — sistema de diseño de los módulos de la Embotelladora (25-sep-2026)

   Filosofía: mostrar solo lo necesario; el contenido "flota" sobre el fondo
   (superficies sin borde, sombra suave, radio amplio); una sola acción
   principal por pantalla, con color y verbo; tooltips (i) que explican el
   proceso a alguien que no lo conoce; transiciones cortas y sin artefactos.

   Namespace propio `em-` para no chocar con `.sui-*` ni con los !important
   de modules-polish.css. Se carga globalmente desde index.html porque los
   modales y toasts viven fuera del contenedor del módulo.
   ========================================================================== */

:root {
  --em-brand:        var(--brand, #2563eb);
  --em-brand-ink:    #ffffff;
  --em-bg:           #f4f6fa;
  --em-surface:      #ffffff;
  --em-surface-2:    #f7f9fc;
  --em-text:         #0f172a;
  --em-text-2:       #475569;
  --em-muted:        #7c8798;
  --em-line:         rgba(15, 23, 42, .08);
  --em-line-strong:  rgba(15, 23, 42, .16);
  --em-success:      #15803d;
  --em-success-soft: #e8f6ec;
  --em-warn:         #b45309;
  --em-warn-soft:    #fdf1e0;
  --em-danger:       #b91c1c;
  --em-danger-soft:  #fdeaea;
  --em-info:         #1d4ed8;
  --em-info-soft:    #e8effd;
  --em-neutral-soft: #eef1f5;

  --em-r:     16px;
  --em-r-sm:  10px;
  --em-r-xs:  7px;
  --em-shadow:     0 1px 2px rgba(15, 23, 42, .04), 0 14px 36px -16px rgba(15, 23, 42, .16);
  --em-shadow-lg:  0 2px 6px rgba(15, 23, 42, .06), 0 28px 64px -24px rgba(15, 23, 42, .28);
  --em-ring:       0 0 0 4px rgba(37, 99, 235, .16);

  --em-dur:   220ms;
  --em-dur-s: 140ms;
  --em-ease:  cubic-bezier(.2, .8, .2, 1);
  --em-font:  var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ----------------------------------------------------------------- página -- */
.em-page {
  font-family: var(--em-font);
  color: var(--em-text);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 32px;
  -webkit-font-smoothing: antialiased;
}
.em-page > * {
  animation: em-rise var(--em-dur) var(--em-ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes em-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes em-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes em-pop  { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes em-spin { to { transform: rotate(360deg); } }
@keyframes em-shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }

.em-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 0;
}
.em-head-text { min-width: 0; }
.em-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 8px;
}
.em-lede {
  margin: 6px 0 0;
  color: var(--em-text-2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 72ch;
}
.em-head-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* ------------------------------------------------------------ superficies -- */
.em-card {
  background: var(--em-surface);
  border-radius: var(--em-r);
  box-shadow: var(--em-shadow);
  transition: box-shadow var(--em-dur) var(--em-ease), transform var(--em-dur) var(--em-ease);
}
.em-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}
.em-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.005em;
}
.em-card-sub { margin: 3px 0 0; color: var(--em-muted); font-size: 13px; }
.em-card-b { padding: 16px 22px 20px; }
.em-card-b.em-flush { padding: 8px 0 6px; }
.em-card-f {
  padding: 12px 22px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--em-line);
}

/* ------------------------------------------------------------ estadísticas -- */
.em-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.em-stat {
  background: var(--em-surface);
  border-radius: var(--em-r);
  box-shadow: var(--em-shadow);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--em-dur) var(--em-ease), box-shadow var(--em-dur) var(--em-ease);
}
a.em-stat:hover { transform: translateY(-2px); box-shadow: var(--em-shadow-lg); }
.em-stat-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--em-muted); display: flex; align-items: center; gap: 6px; }
.em-stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.em-stat-hint { font-size: 12.5px; color: var(--em-text-2); }
.em-stat[data-tone="warn"] .em-stat-value { color: var(--em-warn); }
.em-stat[data-tone="danger"] .em-stat-value { color: var(--em-danger); }
.em-stat[data-tone="success"] .em-stat-value { color: var(--em-success); }

/* ---------------------------------------------------------------- botones -- */
.em-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-family: var(--em-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--em-r-sm);
  padding: 11px 16px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--em-text);
  background: var(--em-surface);
  box-shadow: inset 0 0 0 1px var(--em-line-strong);
  transition: transform var(--em-dur-s) var(--em-ease), box-shadow var(--em-dur-s) var(--em-ease),
              background var(--em-dur-s) var(--em-ease), color var(--em-dur-s) var(--em-ease), opacity var(--em-dur-s);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
.em-btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--em-line-strong), var(--em-shadow); }
.em-btn:active { transform: translateY(0); }
.em-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--em-line-strong), var(--em-ring); }
.em-btn[disabled], .em-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: inset 0 0 0 1px var(--em-line); }
.em-btn-primary { background: var(--em-brand); color: var(--em-brand-ink); box-shadow: none; }
.em-btn-primary:hover { box-shadow: 0 8px 20px -10px var(--em-brand); filter: brightness(1.05); }
.em-btn-success { background: var(--em-success); color: #fff; box-shadow: none; }
.em-btn-success:hover { box-shadow: 0 8px 20px -10px var(--em-success); }
.em-btn-danger { background: var(--em-danger); color: #fff; box-shadow: none; }
.em-btn-danger:hover { box-shadow: 0 8px 20px -10px var(--em-danger); }
.em-btn-soft-danger { background: var(--em-danger-soft); color: var(--em-danger); box-shadow: none; }
.em-btn-ghost { background: transparent; box-shadow: none; color: var(--em-text-2); }
.em-btn-ghost:hover { background: var(--em-neutral-soft); box-shadow: none; transform: none; color: var(--em-text); }
.em-btn-sm { padding: 7px 11px; min-height: 32px; font-size: 13px; border-radius: var(--em-r-xs); }
.em-btn-icon { padding: 0; width: 36px; min-height: 36px; border-radius: var(--em-r-xs); }
.em-btn .em-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: em-spin .7s linear infinite; }
.em-btn.is-loading { pointer-events: none; opacity: .8; }
.em-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Acción principal con explicación debajo: "qué pasa si toco esto". */
.em-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.em-cta-help { font-size: 12.5px; color: var(--em-muted); line-height: 1.4; max-width: 44ch; }

/* ----------------------------------------------------------------- badges -- */
.em-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--em-neutral-soft);
  color: var(--em-text-2);
  white-space: nowrap;
  line-height: 1.2;
}
.em-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.em-badge[data-tone="success"] { background: var(--em-success-soft); color: var(--em-success); }
.em-badge[data-tone="warn"]    { background: var(--em-warn-soft);    color: var(--em-warn); }
.em-badge[data-tone="danger"]  { background: var(--em-danger-soft);  color: var(--em-danger); }
.em-badge[data-tone="info"]    { background: var(--em-info-soft);    color: var(--em-info); }
.em-badge[data-tone="brand"]   { background: color-mix(in srgb, var(--em-brand) 12%, white); color: var(--em-brand); }
.em-badge.em-badge-plain::before { display: none; }

/* ----------------------------------------------------------------- chips -- */
.em-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.em-chip {
  font: inherit; font-size: 13px; font-weight: 600;
  border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 999px;
  background: var(--em-neutral-soft); color: var(--em-text-2);
  transition: background var(--em-dur-s), color var(--em-dur-s), transform var(--em-dur-s) var(--em-ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.em-chip:hover { transform: translateY(-1px); }
.em-chip[aria-pressed="true"] { background: var(--em-text); color: #fff; }
.em-chip .em-count { font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ filas -- */
.em-rows { display: flex; flex-direction: column; }
.em-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-top: 1px solid var(--em-line);
  transition: background var(--em-dur-s);
  animation: em-fade var(--em-dur) var(--em-ease) both;
}
.em-row:first-child { border-top: 0; }
.em-row:hover { background: var(--em-surface-2); }
.em-row.is-clickable { cursor: pointer; }
.em-row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.em-row-title { font-weight: 650; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.em-row-sub { color: var(--em-muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.em-row-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.em-row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.em-amount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; letter-spacing: -.01em; }
.em-amount small { font-weight: 500; color: var(--em-muted); font-size: 12px; margin-left: 4px; }

/* ------------------------------------------------------------------ tabla -- */
.em-table-wrap { overflow-x: auto; }
.em-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.em-table th {
  text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--em-muted); padding: 10px 14px; border-bottom: 1px solid var(--em-line); white-space: nowrap;
}
.em-table td { padding: 12px 14px; border-bottom: 1px solid var(--em-line); vertical-align: middle; }
.em-table tr:last-child td { border-bottom: 0; }
.em-table tbody tr { transition: background var(--em-dur-s); }
.em-table tbody tr:hover { background: var(--em-surface-2); }
.em-table td.em-num, .em-table th.em-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ forms -- */
.em-field { display: flex; flex-direction: column; gap: 6px; }
.em-label { font-size: 13px; font-weight: 600; color: var(--em-text); display: flex; align-items: center; gap: 6px; }
.em-help { font-size: 12.5px; color: var(--em-muted); line-height: 1.4; }
.em-input, .em-select, .em-textarea {
  font: inherit; font-family: var(--em-font); font-size: 14px;
  color: var(--em-text); background: var(--em-surface);
  border: 0; border-radius: var(--em-r-sm);
  box-shadow: inset 0 0 0 1px var(--em-line-strong);
  padding: 10px 12px; min-height: 40px; width: 100%;
  transition: box-shadow var(--em-dur-s);
}
.em-input:focus, .em-select:focus, .em-textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--em-brand), var(--em-ring); }
.em-input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--em-danger); }
.em-textarea { min-height: 84px; resize: vertical; }
.em-input-row { display: flex; gap: 8px; align-items: center; }
.em-input-row .em-input { flex: 1; }
.em-input.em-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

/* ---------------------------------------------------------------- tooltip -- */
.em-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  border: 0; padding: 0; cursor: help; vertical-align: middle;
  background: var(--em-neutral-soft); color: var(--em-text-2);
  font: 700 11px/1 var(--em-font); font-style: normal;
  transition: background var(--em-dur-s), color var(--em-dur-s), transform var(--em-dur-s) var(--em-ease);
  flex-shrink: 0;
}
.em-tip:hover, .em-tip:focus-visible { background: var(--em-text); color: #fff; transform: scale(1.08); outline: none; }
.em-tooltip {
  position: fixed; z-index: 10050; max-width: 300px;
  background: #101828; color: #f8fafc;
  font: 500 12.5px/1.45 var(--em-font);
  padding: 9px 12px; border-radius: 10px;
  box-shadow: var(--em-shadow-lg);
  pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity var(--em-dur-s) var(--em-ease), transform var(--em-dur-s) var(--em-ease);
}
.em-tooltip.is-visible { opacity: 1; transform: none; }
.em-tooltip::after {
  content: ""; position: absolute; left: var(--arrow-x, 50%); width: 8px; height: 8px;
  background: #101828; transform: translateX(-50%) rotate(45deg);
}
.em-tooltip[data-place="top"]::after { bottom: -4px; }
.em-tooltip[data-place="bottom"]::after { top: -4px; }
.em-tooltip strong { color: #fff; }

/* ------------------------------------------------------------------ modal -- */
.em-modal-backdrop {
  position: fixed; inset: 0; z-index: 10020;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: em-fade var(--em-dur) var(--em-ease) both;
}
.em-modal-backdrop.is-closing { animation: em-fade var(--em-dur-s) var(--em-ease) reverse both; }
.em-modal {
  font-family: var(--em-font); color: var(--em-text);
  background: var(--em-surface); border-radius: 20px; box-shadow: var(--em-shadow-lg);
  width: min(100%, 520px); max-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  animation: em-pop var(--em-dur) var(--em-ease) both;
}
.em-modal[data-size="lg"] { width: min(100%, 760px); }
.em-modal[data-size="sm"] { width: min(100%, 420px); }
.em-modal-h { padding: 22px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.em-modal-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.em-modal-intro { margin: 6px 0 0; color: var(--em-text-2); font-size: 13.5px; line-height: 1.5; }
.em-modal-b { padding: 18px 24px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.em-modal-f { padding: 4px 24px 22px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.em-modal-x { flex-shrink: 0; }

/* ------------------------------------------------------------------ toast -- */
.em-toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 10060; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.em-toast {
  pointer-events: auto; font-family: var(--em-font);
  background: #101828; color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 11px 16px; border-radius: 12px; box-shadow: var(--em-shadow-lg);
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 480px);
  animation: em-pop var(--em-dur) var(--em-ease) both;
}
.em-toast.is-leaving { animation: em-pop var(--em-dur-s) var(--em-ease) reverse both; }
.em-toast[data-tone="success"] { background: var(--em-success); }
.em-toast[data-tone="danger"]  { background: var(--em-danger); }
.em-toast[data-tone="warn"]    { background: var(--em-warn); }

/* ------------------------------------------------------------------ vacío -- */
.em-empty { text-align: center; padding: 36px 24px; color: var(--em-text-2); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.em-empty-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--em-neutral-soft); display: grid; place-items: center; color: var(--em-muted); margin-bottom: 6px; }
.em-empty-icon svg { width: 22px; height: 22px; }
.em-empty-title { font-weight: 650; color: var(--em-text); font-size: 15px; }
.em-empty-text { font-size: 13.5px; max-width: 46ch; line-height: 1.5; }

/* ---------------------------------------------------------------- avisos -- */
.em-note {
  border-radius: var(--em-r-sm); padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
  background: var(--em-info-soft); color: var(--em-info); display: flex; gap: 10px; align-items: flex-start;
}
.em-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.em-note[data-tone="warn"]    { background: var(--em-warn-soft);    color: var(--em-warn); }
.em-note[data-tone="danger"]  { background: var(--em-danger-soft);  color: var(--em-danger); }
.em-note[data-tone="success"] { background: var(--em-success-soft); color: var(--em-success); }
.em-note[data-tone="neutral"] { background: var(--em-neutral-soft); color: var(--em-text-2); }

/* Bloque de datos a copiar (datos bancarios, referencias). */
.em-kv { display: grid; grid-template-columns: max-content 1fr auto; gap: 8px 14px; align-items: center; font-size: 14px; }
.em-kv dt { color: var(--em-muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.em-kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
.em-kv .em-copy { justify-self: end; }

/* --------------------------------------------------------------- timeline -- */
.em-steps { display: flex; gap: 0; align-items: flex-start; }
.em-step { flex: 1; position: relative; padding-top: 22px; font-size: 12.5px; color: var(--em-muted); text-align: center; }
.em-step::before { content: ""; position: absolute; top: 7px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--em-line-strong); transform: translateX(-50%); transition: background var(--em-dur), box-shadow var(--em-dur); }
.em-step::after { content: ""; position: absolute; top: 12px; left: calc(50% + 8px); right: calc(-50% + 8px); height: 2px; background: var(--em-line); }
.em-step:last-child::after { display: none; }
.em-step.is-done { color: var(--em-text-2); }
.em-step.is-done::before { background: var(--em-success); }
.em-step.is-done::after { background: var(--em-success); opacity: .5; }
.em-step.is-current { color: var(--em-text); font-weight: 650; }
.em-step.is-current::before { background: var(--em-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--em-brand) 18%, white); }
.em-step.is-failed::before { background: var(--em-danger); }

/* ------------------------------------------------ burbujas del menú lateral -- */
/* services/nav-badges.js: novedades sin ver por sección. */
.snav-item, .mob-nav-item { position: relative; }
.snav-count {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--em-danger); color: #fff;
  font: 700 11.5px/20px var(--em-font); text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--em-surface), 0 4px 10px -4px var(--em-danger);
  flex-shrink: 0;
}
.snav-count.is-bump { animation: em-bump 420ms var(--em-ease) both; }
@keyframes em-bump { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .snav-count.is-bump { animation: none; } }

/* --------------------------------------------- bloques e historial (modales) -- */
/* Compartidos por Pedidos y Delivery: el modal vive fuera del módulo. */
.pd-block-t { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--em-muted); display: flex; align-items: center; gap: 6px; }
.pd-hist { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--em-line); display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.pd-hist li { position: relative; }
.pd-hist li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--em-line-strong); box-shadow: 0 0 0 3px var(--em-surface); }
.pd-hist li:first-child::before { background: var(--em-brand); }

/* --------------------------------------------------------------- skeleton -- */
.em-skel { border-radius: 8px; height: 14px; background: linear-gradient(90deg, #eef1f5 25%, #f7f9fc 50%, #eef1f5 75%); background-size: 800px 100%; animation: em-shimmer 1.3s linear infinite; }
.em-skel-row { display: flex; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--em-line); }
.em-skel-row:first-child { border-top: 0; }

/* ------------------------------------------------------------ utilidades -- */
.em-muted { color: var(--em-muted); }
.em-small { font-size: 12.5px; }
.em-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; letter-spacing: .02em; }
.em-num { font-variant-numeric: tabular-nums; }
.em-hide { display: none !important; }
.em-stack { display: flex; flex-direction: column; gap: 10px; }
.em-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.em-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.em-sep { height: 1px; background: var(--em-line); margin: 4px 0; }
.em-link { color: var(--em-brand); text-decoration: none; font-weight: 600; }
.em-link:hover { text-decoration: underline; }
.em-fade-enter { animation: em-fade var(--em-dur) var(--em-ease) both; }

/* Detalles/acordeón sin marcador feo. */
.em-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 22px; font-weight: 600; font-size: 13.5px; color: var(--em-text-2); border-top: 1px solid var(--em-line); user-select: none; }
.em-details > summary::-webkit-details-marker { display: none; }
.em-details > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--em-dur-s); margin-right: 2px; }
.em-details[open] > summary::before { transform: rotate(45deg); }

/* --------------------------------------------------------------- móvil -- */
@media (max-width: 720px) {
  .em-title { font-size: 21px; }
  .em-head { flex-direction: column; }
  .em-card-h, .em-card-b, .em-card-f, .em-row, .em-details > summary { padding-left: 16px; padding-right: 16px; }
  .em-row { grid-template-columns: 1fr; gap: 8px; }
  .em-row-actions { justify-content: flex-start; }
  .em-modal { border-radius: 18px; }
  .em-kv { grid-template-columns: 1fr auto; }
  .em-kv dt { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .em-page > *, .em-row, .em-modal, .em-modal-backdrop, .em-toast, .em-fade-enter { animation: none !important; }
  .em-btn, .em-chip, .em-stat, .em-card, .em-tooltip { transition: none !important; }
}
