/* EBC Frenos — Programa de referidos y recompensas (módulo ets_affiliatemarketing).
 * Diseño: canvas "EBC Frenos · Programa de referidos (área de cliente)" en Claude Design.
 * Se carga solo en las páginas del módulo (ver _partials/stylesheets.tpl), después del CSS
 * del propio módulo. Markup propio en las plantillas sobrescritas del tema (.ebc-eam-*,
 * .ebc-ref-*, .ebc-rw-*); lo que sigue siendo del módulo (gráficos, retirada, vales,
 * historial) se restiliza bajo .ebc-eam--rewards.
 */

/* el CSS del módulo pinta todos los svg con fill:currentColor: respeta los iconos de trazo */
svg[fill="none"] { fill: none; }

/* ---------- menú lateral: estado activo de las entradas del módulo ---------- */
.ebc-acc-side .ebc-acc-mod.is-active {
  background: var(--blue-50);
  color: var(--blue-800);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--blue-700);
}
.ebc-acc-side .ebc-acc-mod.is-active .ebc-acc-mod__ico { color: var(--blue-700); }

/* ---------- contenedor ---------- */
.ebc-eam.ets-am-content,
.ets-am-program.ebc-eam .ets-am-content {
  padding: 0;
  margin: 0;
  color: var(--text-strong);
}
.ebc-eam {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
}
.ebc-eam-body,
.ebc-ref { display: flex; flex-direction: column; gap: 20px; }

/* ---------- cabecera y pestañas ---------- */
.ebc-eam-head { display: flex; flex-direction: column; gap: 8px; }
.ebc-eam-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--text-strong);
  margin: 0;
}
.ebc-eam-head__sub {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}
.ebc-eam-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border-soft);
}
.ebc-eam-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms;
}
.ebc-eam-tab:hover { color: var(--text-strong); text-decoration: none; }
.ebc-eam-tab.is-active { color: var(--blue-700); box-shadow: inset 0 -2px 0 var(--blue-700); }
.ebc-eam-tab__count {
  font: 600 12px var(--font-body);
  background: var(--surface-sunken);
  color: var(--text-body);
  border-radius: 999px;
  padding: 2px 8px;
}
.ebc-eam-tab.is-active .ebc-eam-tab__count { background: var(--blue-100); color: var(--blue-800); }

/* ---------- piezas comunes ---------- */
.ebc-eam-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ebc-eam-card--flush { padding: 0; gap: 0; overflow: hidden; }
.ebc-eam-card__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.ebc-eam-card__head { display: flex; flex-direction: column; gap: 4px; }
.ebc-eam-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text-strong);
}
.ebc-eam-card__desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.ebc-eam-eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ebc-eam-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ebc-eam-empty { margin: 0; font-size: 14px; color: var(--text-muted); }
.ebc-eam-empty--pad { padding: 24px; }
.ebc-eam-link { font-weight: 600; font-size: 13px; color: var(--text-link, var(--blue-600)); text-decoration: none; }
.ebc-eam-link:hover { color: var(--blue-800); text-decoration: underline; }
.ebc-eam-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ebc-eam-alert .alert { margin: 0; border-radius: var(--radius-md); }
.ebc-eam-explanation { font-size: 14px; line-height: 1.6; color: var(--text-body); }

/* botones */
.ebc-eam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms, transform 120ms;
}
.ebc-eam-btn:hover { text-decoration: none; }
.ebc-eam-btn:active { transform: scale(.98); }
.ebc-eam-btn:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }
.ebc-eam-btn[disabled] { opacity: .6; cursor: default; }
.ebc-eam-btn--action { background: var(--red-600); color: #fff; box-shadow: var(--shadow-action); }
.ebc-eam-btn--action:hover { background: var(--red-700); color: #fff; }
.ebc-eam-btn--primary { background: var(--blue-700); color: #fff; }
.ebc-eam-btn--primary:hover { background: var(--blue-800); color: #fff; }
.ebc-eam-btn--outline { background: var(--surface-card); color: var(--blue-700); border-color: var(--blue-700); }
.ebc-eam-btn--outline:hover { background: var(--blue-50); color: var(--blue-800); }
.ebc-eam-btn--ghost { background: transparent; color: var(--text-body); padding: 0 12px; }
.ebc-eam-btn--ghost:hover { color: var(--text-strong); background: var(--surface-sunken); }
.ebc-copy.is-copied { background: var(--ok-700, #1c7a3e); border-color: var(--ok-700, #1c7a3e); color: #fff; box-shadow: none; }

/* campos */
.ebc-eam-field { display: flex; flex-direction: column; gap: 6px; }
.ebc-eam-label {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-body);
}
.ebc-eam-input {
  height: 44px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-card);
  font: 400 14px var(--font-body);
  color: var(--text-strong);
}
select.ebc-eam-input { padding-right: 32px; }
.ebc-eam-input:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.ebc-eam-input--ro { background: var(--surface-sunken); }
.ets-am-program .ebc-eam-field .error { margin: 4px 0 0; font-size: 13px; color: var(--red-700); }

/* tablas */
.ebc-eam-table-wrap { overflow-x: auto; }
.ebc-eam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums slashed-zero;
}
.ebc-eam-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.ebc-eam-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-150);
  color: var(--text-strong);
  white-space: nowrap;
  vertical-align: middle;
}
.ebc-eam-table tbody tr:last-child td { border-bottom: 0; }
.ebc-eam-table .is-num { text-align: right; }
.ebc-eam-table .is-strong { font-weight: 600; }
.ebc-eam-table .is-end { text-align: right; }
.ebc-eam-table__more { text-align: center; }
.ebc-eam-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}
.ebc-eam-sort:hover { color: var(--text-strong); text-decoration: none; }
.ebc-eam-sort svg { opacity: .45; }
.ebc-eam-sort.is-asc, .ebc-eam-sort.is-desc { color: var(--blue-700); }
.ebc-eam-sort.is-asc svg, .ebc-eam-sort.is-desc svg { opacity: 1; }
.ebc-eam-table th.is-num .ebc-eam-sort { flex-direction: row; }

.ebc-eam-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font: 600 12px var(--font-body);
}
.ebc-eam-badge--ok { background: var(--ok-50); color: var(--ok-700); }
.ebc-eam-badge--warn { background: var(--warn-50); color: var(--warn-700); }

.ebc-eam-person { display: inline-flex; align-items: center; gap: 10px; }
.ebc-eam-person__avatar {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 13px var(--font-heading);
}
.ebc-eam-person__name { display: block; font-weight: 600; }
.ebc-eam-person__name--muted { color: var(--text-muted); font-weight: 500; }
.ebc-eam-person__meta { display: block; font-size: 12px; color: var(--text-muted); }

/* paginación */
.ebc-eam-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
}
.ebc-eam-pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.ebc-eam-page {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font: 600 14px var(--font-body);
  text-decoration: none;
}
.ebc-eam-page:hover { border-color: var(--blue-300); color: var(--blue-800); text-decoration: none; }
.ebc-eam-page.is-active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.ebc-eam-page--dots { border: 0; min-width: 24px; color: var(--text-muted); }

/* filtro de periodo */
.ebc-eam-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.ebc-eam-filter .ebc-eam-field { min-width: 200px; }

/* ---------- Cómo invitar ---------- */
.ebc-ref-code {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--ring-onblack);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: center;
  justify-content: space-between;
}
.ebc-ref-code__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ebc-ref-code__eyebrow {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-on-impact-soft);
}
.ebc-ref-code__group { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; width: 100%; }
.ebc-ref-code__value {
  flex: 1 1 240px;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  color: #fff;
  font: 700 clamp(30px, 4vw, 44px)/1.1 var(--font-body);
  letter-spacing: .02em;
  font-variant-numeric: slashed-zero;
}
.ebc-ref-code__value:focus { outline: none; }
.ebc-ref-code__group .ebc-eam-btn { height: 48px; padding: 0 24px; font-size: 15px; }
.ebc-ref-code__desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-on-impact-soft); }
/* El tema padre y el CSS del módulo dan color oscuro a títulos, párrafos e inputs de la página:
   sobre el bloque negro, todo el texto en blanco y el código sin caja. */
.ets-am-program .ebc-ref-code .ebc-ref-code__eyebrow,
.ets-am-program .ebc-ref-code .ebc-ref-code__desc { color: #fff !important; }
.ets-am-program .ebc-ref-code .ebc-ref-code__eyebrow { opacity: .8; }
.ets-am-program .ebc-ref-code input.ebc-ref-code__value {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  padding: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font: 700 clamp(30px, 4vw, 44px)/1.1 var(--font-body) !important;
}

.ebc-ref-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ebc-ref-link__group { display: flex; gap: 10px; flex: 1 1 380px; min-width: 0; }
.ebc-ref-link__group .ebc-eam-input { flex: 1; min-width: 0; }
.ebc-ref-share { display: flex; gap: 8px; }
.ebc-ref-share__btn {
  width: 44px; height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
}
.ebc-ref-share__btn:hover { border-color: var(--blue-300); color: var(--blue-700); }
.ebc-ref-qr { display: flex; align-items: center; gap: 14px; }
.ebc-ref-qr img { border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
.ebc-ref-ids {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--gray-150);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.ebc-ref-ids strong { color: var(--text-strong); font-weight: 600; }

.ebc-ref-banner { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; margin: 0; }
.ebc-ref-banner__preview {
  position: relative;
  flex: 0 0 280px;
  max-width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.ebc-ref-banner__preview img { width: 100%; height: auto; display: block; }
.ebc-ref-banner__preview .delete-banner {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red-700);
  cursor: pointer;
}
.ebc-ref-banner__code { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ebc-ref-banner__textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  font: 400 13px/1.5 ui-monospace, 'SF Mono', Menlo, monospace;
  resize: vertical;
}
.ebc-ref-banner__upload { display: flex; flex-direction: column; gap: 8px; width: 100%; padding-top: 14px; border-top: 1px solid var(--gray-150); }

.ebc-ref-invite { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 0; }
.ebc-ref-invite .ebc-eam-field { flex: 1 1 240px; }
.ebc-ref-invitations {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-150);
}
.ebc-ref-invitations .ebc-eam-table-wrap { border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
.mail-inviting-item { display: flex; flex-direction: column; gap: 10px; }
.eam-alert-sent-mail .alert { margin: 0; border-radius: var(--radius-md); }

/* detalle de un amigo (plantilla del módulo) */
.ebc-eam--referral .ebc-eam-body > :not(.ebc-ref):not(.ebc-eam-card) {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.ebc-eam--referral .eam-btn-back-link { float: none; }

/* ---------- Mis recompensas ---------- */
.ebc-rw-kpis { display: flex; flex-wrap: wrap; gap: 16px; }
.ebc-rw-balance {
  flex: 2 1 380px;
  min-width: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ebc-rw-balance__value {
  font: 700 clamp(36px, 4vw, 48px)/1 var(--font-body);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--blue-700);
}
.ebc-rw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ebc-rw-side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; }
.ebc-rw-stat {
  flex: 1;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ebc-rw-stat__value {
  font: 700 26px/1.1 var(--font-body);
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--text-strong);
}

/* Restilizado del cuerpo del módulo (gráficos, historial, retirada, vales).
   El markup es el del módulo: Bootstrap + clases eam-*. */
.ebc-eam--rewards .ets-am-content.eam-my20 { margin: 0; padding: 0; }
.ebc-eam--rewards .stats-data-reward .panel,
.ebc-eam--rewards .eam-table-data,
.ebc-eam--rewards .eam-withdraw-form,
.ebc-eam--rewards .eam-voucher-form,
.ebc-eam--rewards #customer-reward-withdraw,
.ebc-eam--rewards .payment-info {
  float: none;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 24px;
  margin: 0 0 20px;
  font-size: 14px;
}
.ebc-eam--rewards .stats-data-reward .panel .panel-body { padding: 0; }
.ebc-eam--rewards .eam-box-chart {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.ebc-eam--rewards .box-title,
.ebc-eam--rewards .form-panel-title,
.ebc-eam--rewards h3,
.ebc-eam--rewards h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text-strong);
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}
.ebc-eam--rewards .box-title small { text-transform: none; color: var(--text-muted); font-weight: 500; }
.ebc-eam--rewards label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-body);
}
.ebc-eam--rewards .form-control,
.ebc-eam--register .form-control {
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: none;
  font: 400 14px var(--font-body);
  color: var(--text-strong);
}
.ebc-eam--rewards textarea.form-control,
.ebc-eam--register textarea.form-control { height: auto; min-height: 96px; }
.ebc-eam--rewards .form-control:focus,
.ebc-eam--register .form-control:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px var(--blue-100); }
.ebc-eam--rewards .input-group-addon {
  border: 1px solid var(--border-strong);
  background: var(--surface-sunken);
  font-weight: 600;
}
.ebc-eam--rewards .stat-filter.eam-box-filter {
  background: var(--surface-sunken);
  border: 0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0 0;
}
.ebc-eam--rewards .btn,
.ebc-eam--register .btn {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: none;
}
.ebc-eam--rewards .btn-default,
.ebc-eam--register .btn-default { background: var(--surface-card); color: var(--blue-700); border: 1px solid var(--blue-700); }
.ebc-eam--rewards .btn-default:hover,
.ebc-eam--register .btn-default:hover { background: var(--blue-50); color: var(--blue-800); }
.ebc-eam--rewards .btn-primary,
.ebc-eam--register .btn-primary { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.ebc-eam--rewards .btn-primary:hover,
.ebc-eam--register .btn-primary:hover { background: var(--blue-800); border-color: var(--blue-800); }
.ebc-eam--rewards .eam-voucher-form button[type=submit],
.ebc-eam--rewards .eam-withdraw-form button[type=submit] {
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red-600);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-action);
}
.ebc-eam--rewards .eam-voucher-form button[type=submit]:hover,
.ebc-eam--rewards .eam-withdraw-form button[type=submit]:hover { background: var(--red-700); }
.ebc-eam--rewards table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums slashed-zero;
  margin: 0;
  background: var(--surface-card);
}
.ebc-eam--rewards table.table thead th {
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-soft);
  border-top: 0;
}
.ebc-eam--rewards table.table td {
  padding: 14px 16px;
  border-top: 0;
  border-bottom: 1px solid var(--gray-150);
  vertical-align: middle;
}
.ebc-eam--rewards .eam-table-data.table-striped tbody tr:nth-of-type(odd),
.ebc-eam--rewards .eam-table-data.table-striped tbody tr:nth-of-type(even) { background: var(--surface-card); }
.ebc-eam--rewards .label,
.ebc-eam--rewards .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font: 600 12px var(--font-body);
  text-transform: none;
}
.ebc-eam--rewards .label-success, .ebc-eam--rewards .badge-success { background: var(--ok-50); color: var(--ok-700); }
.ebc-eam--rewards .label-warning, .ebc-eam--rewards .badge-warning { background: var(--warn-50); color: var(--warn-700); }
.ebc-eam--rewards .label-danger, .ebc-eam--rewards .badge-danger { background: var(--red-50); color: var(--red-700); }
.ebc-eam--rewards .label-default, .ebc-eam--rewards .badge-default { background: var(--surface-sunken); color: var(--text-body); }
.ebc-eam--rewards .alert,
.ebc-eam--register .alert { border-radius: var(--radius-md); font-size: 14px; }
.ebc-eam--rewards .eam-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; list-style: none; }
.ebc-eam--rewards .eam-pagination li a,
.ebc-eam--rewards .eam-pagination li span {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font: 600 14px var(--font-body);
  text-decoration: none;
  background: var(--surface-card);
}
.ebc-eam--rewards .eam-pagination li.active a { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

/* alta en el programa (register.tpl del módulo) */
.ebc-eam--register .ets-am-register-program {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (max-width: 600px) {
  .ebc-ref-code { padding: 22px 20px; }
  .ebc-ref-code__group .ebc-eam-btn { width: 100%; }
  .ebc-ref-link__group { flex-basis: 100%; }
  .ebc-ref-banner__preview { flex-basis: 100%; }
  .ebc-ref-invite .ebc-eam-btn { width: 100%; }
  .ebc-eam-card { padding: 18px; }
  .ebc-eam-card__bar, .ebc-eam-pager { padding: 16px 18px; }
  .ebc-eam-tab { padding: 12px 10px; }
}
