:root {
  /* Colors taken from the Ingeniería Transformacional logo */
  --teal: #33bac9;
  --teal-deep: #14535e;
  --teal-ink: #0f3d45;
  --coral: #ef7b6e;
  --orange: #e8a462;
  --gold: #e3c847;
  --brand-gradient: linear-gradient(90deg, var(--teal) 0%, var(--teal-deep) 30%, var(--coral) 65%, var(--gold) 100%);

  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1c2a2e;
  --muted: #5d6a6e;
  --line: #e4e2dc;
  --brand: var(--teal-deep);
  --brand-ink: #ffffff;
  --brand-soft: #e2f4f6;
  --accent: var(--coral);
  --ok: #2f7a4b;
  --ok-soft: #e3f2e8;
  --warn: #93600f;
  --warn-soft: #fcf1dc;
  --bad: #b2453b;
  --bad-soft: #fde7e4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 61, 69, .06), 0 6px 20px rgba(15, 61, 69, .06);
  --display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; font-family: var(--sans); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.topbar { background: var(--surface); color: var(--teal-ink); position: relative; box-shadow: 0 1px 0 var(--line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--brand-gradient); }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 52px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-kicker { font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--coral); }
.brand-kicker span { font-weight: 400; color: var(--teal); }
.brand-name { font-size: .82rem; color: var(--muted); font-weight: 600; }
.topbar nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.topbar nav a, .topbar nav button {
  color: var(--teal-ink); text-decoration: none; padding: 7px 12px; border-radius: 999px;
  font: inherit; font-size: .92rem; font-weight: 600; background: none; border: 0; cursor: pointer;
}
.topbar nav a:hover, .topbar nav button:hover { background: var(--brand-soft); }
.topbar nav a.active { background: var(--brand-soft); color: var(--teal-deep); }
.lang-btn { border: 1.5px solid var(--teal) !important; color: var(--teal-deep) !important; }
@media (max-width: 480px) {
  .brand img { width: 42px; }
  .brand-kicker { font-size: .85rem; }
  .brand-name { font-size: .75rem; }
}

/* ---------- logo on pages ---------- */
.page-logo { display: block; margin: 4px auto 18px; width: 190px; max-width: 55%; height: auto; }
.hero.center { text-align: center; }
.hero h1 { color: var(--teal-ink); }
.foot-logo { width: 28px; height: auto; vertical-align: middle; margin-right: 6px; opacity: .9; }

/* ---------- layout ---------- */
.wrap { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
.wrap.wide { max-width: 1100px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
}
.card.tight { padding: 16px 20px; }
.hero { margin-bottom: 20px; }
.hero .price {
  display: inline-block; background: #fdebe7; color: #b54d41;
  font-weight: 600; padding: 2px 10px; border-radius: 999px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cfc8bc; border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: .85rem; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 18px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--brand); color: var(--brand-ink);
}
.btn:hover { filter: brightness(1.12); }
.btn.primary-grad { background: linear-gradient(90deg, var(--teal-deep), #1d7480); }
.btn.block { width: 100%; }
.btn.secondary { background: #fff; color: var(--brand); border-color: #cfc8bc; }
.btn.ghost { background: none; color: var(--brand); padding: 6px 10px; }
.btn.small { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn.ok { background: var(--ok); }
.btn.bad { background: #fff; color: var(--bad); border-color: #e2b7b3; }
.inline-form { display: inline; margin: 0; }

/* ---------- alerts ---------- */
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; }
.alert.ok { background: var(--ok-soft); color: #1f5434; }
.alert.error { background: var(--bad-soft); color: #7d2a24; }
.alert.info { background: var(--brand-soft); color: var(--brand); }

/* ---------- status pills ---------- */
.pill {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px;
  border-radius: 999px; white-space: nowrap;
}
.pill.unpaid { background: var(--bad-soft); color: var(--bad); }
.pill.partial { background: var(--warn-soft); color: var(--warn); }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.overpaid { background: #ece6f7; color: #5b3f8c; }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.confirmed { background: var(--ok-soft); color: var(--ok); }
.pill.rejected, .pill.voided { background: #eeece8; color: var(--muted); text-decoration: line-through; }
.pill.open { background: var(--ok-soft); color: var(--ok); }
.pill.closed { background: #eeece8; color: var(--muted); }

/* ---------- registration code ---------- */
.code-box {
  border: 2px dashed var(--coral); border-radius: var(--radius); padding: 16px;
  text-align: center; background: #fff6f3; margin-bottom: 16px;
}
.code-box .code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 2rem;
  font-weight: 700; letter-spacing: .06em; color: var(--ink);
}

/* ---------- balance ---------- */
.balance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.balance > div { background: #fff; padding: 14px; }
.balance .label { font-size: .8rem; color: var(--muted); }
.balance .value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.balance .value.due { color: var(--bad); }
.balance .value.zero { color: var(--ok); }
.progress { height: 8px; background: #ece7de; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress > span { display: block; height: 100%; background: var(--ok); }
.progress > span.pend { background: repeating-linear-gradient(45deg, #e6c48b, #e6c48b 6px, #f0d7aa 6px, #f0d7aa 12px); }
.progress { display: flex; }

/* ---------- pay options ---------- */
.pay-opt { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.pay-opt strong { display: block; }
.pay-opt .handle { font-family: ui-monospace, Menlo, monospace; font-weight: 600; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
td.r, th.r { text-align: right; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #faf8f4; }
.empty { text-align: center; color: var(--muted); padding: 28px; }

/* ---------- admin stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { font-size: .8rem; color: var(--muted); }
.stat .value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.stat.attn { border-color: #e6c48b; background: #fffaf2; }
.filters { display: grid; grid-template-columns: 200px 1fr 180px auto auto; gap: 10px; margin-bottom: 14px; }
@media (max-width: 800px) { .filters { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 3px 10px; font-size: .82rem; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: .85rem; }

footer.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 16px 32px; }

/* ---------- small-screen fixes ---------- */
.handle, td.num { white-space: nowrap; }
@media (max-width: 560px) {
  .card { padding: 18px 16px; }
  .balance > div { padding: 10px; }
  .balance .value { font-size: 1.05rem; }
  table { font-size: .88rem; }
  th, td { padding: 9px 6px; }
}

/* card accent line in brand colors */
.card.accent { border-top: 0; position: relative; overflow: hidden; }
.card.accent::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand-gradient); }
.stat .value { color: var(--teal-ink); }
th { color: var(--teal-deep); }

/* ---------- registration form sections ---------- */
.form-section {
  font-size: 1.02rem; color: var(--teal-deep); margin: 22px 0 12px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.grid3 { display: grid; grid-template-columns: 1.4fr 1.2fr .9fr; gap: 16px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
textarea { resize: vertical; }
input[type=file] { padding: 9px; background: #fbfaf8; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 8px; background: #fbfaf8; }
.check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--teal-deep); }
.check label { font-weight: 400; margin: 0; font-size: .93rem; }
.check.has-error { border-color: var(--bad); background: var(--bad-soft); }
.check-error { margin: -4px 0 8px 4px; }
.req { color: var(--coral); font-weight: 700; }
.fee-calc { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.fee-calc strong { color: var(--ink); }
.att-list { list-style: none; padding: 0; margin: 0 0 12px; }
.att-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.att-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #f3f1ec; }
.att-pdf { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: #fdebe7; color: #b54d41; font-weight: 700; font-size: .8rem; }
.fee-calc strong { display: inline !important; }

/* ---------- payment method picker ---------- */
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
@media (max-width: 560px) { .pm-grid { grid-template-columns: 1fr 1fr; } }
.pm-opt { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.pm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pm-body { display: flex; gap: 10px; align-items: center; height: 100%; padding: 12px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.pm-opt:hover .pm-body { border-color: var(--teal); }
.pm-opt input:focus-visible + .pm-body { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.pm-opt input:checked + .pm-body { border-color: var(--teal-deep); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--teal-deep); }
.pm-opt.disabled { cursor: not-allowed; opacity: .55; }
.pm-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pm-text strong { font-size: .92rem; }
.pm-text .small { font-size: .76rem; }
.pm-icon { flex: 0 0 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff; background: var(--teal-deep); }
.pm-icon.pm-card { background: #eef3f5; font-size: 1.1rem; }
.pm-icon.pm-klarna { background: #ffb3c7; color: #17120f; }
.pm-icon.pm-afterpay { background: #b2fce4; color: #000; }
.pm-icon.pm-zelle { background: #6d1ed4; }
.pm-icon.pm-venmo { background: #008cff; }
.pm-icon.pm-cash { background: #2f7a4b; }
.pm-icon.pm-ach { background: #e8eef6; font-size: 1.1rem; }
.pm-icon.pm-zip { background: #1a0826; color: #aa8fff; font-size: .72rem; font-weight: 800; letter-spacing: -.02em; }
.pm-grid.has-error .pm-body { border-color: var(--bad); }
.pm-panel { margin-top: 14px; }
.pm-panel[hidden] { display: none; }
.send-to { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.send-to .handle { font-size: 1.05rem; color: var(--teal-ink); }
.send-to .handle[hidden] { display: none; }
.memo-box { border: 2px solid #f0c27b; background: #fff8ec; border-radius: 12px; padding: 14px; }
.memo-box p { margin: 6px 0 10px; }
.memo-box input { font-weight: 700; color: var(--teal-ink); background: #fff; }
.send-to .handle { overflow-wrap: anywhere; word-break: break-word; }
.pm-body { transition: none; }
.sched-table input { padding: 8px; font-size: .9rem; min-width: 110px; }
.sched-table td { padding: 6px 4px; }
.cycle-card h2 { font-size: 1.3rem; }

/* =========================================================
   Landing (training info + registration)
   ========================================================= */
.wrap.landing { max-width: 1040px; padding-top: 8px; }
[hidden] { display: none !important; }

.lp-hero {
  position: relative; color: #fff; overflow: hidden;
  background: #0f3d45 url("hero-man-wide.jpg") left center / cover no-repeat;
}
.lp-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,61,69,.15) 0%, rgba(15,61,69,.55) 38%, rgba(15,61,69,.92) 62%, #0f3d45 100%);
}
.lp-hero-inner {
  position: relative; max-width: 1040px; margin: 0 auto; padding: 64px 16px 56px;
  display: flex; align-items: center; justify-content: flex-end; gap: 32px;
}
.lp-hero-text { max-width: 520px; }
.lp-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: #ffd9c9; }
.lp-cycle { background: var(--coral); color: #fff; border-radius: 8px; padding: 2px 10px; letter-spacing: .04em; font-size: 1rem; }
.lp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; margin: 12px 0 14px; color: #fff; }
.lp-dates { font-size: 1.12rem; font-weight: 600; margin: 0 0 22px; color: #fff; }
.lp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-btn { background: var(--coral); padding: 13px 22px; font-size: 1.02rem; box-shadow: 0 6px 18px rgba(239,123,110,.35); }
.lp-btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; padding: 12px 20px; }
.lp-btn-ghost:hover { background: rgba(255,255,255,.12); }
.lp-price-badge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; color: var(--teal-ink); border-radius: 18px; padding: 16px 20px; min-width: 150px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lp-price-badge strong { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--teal-deep); margin: 4px 0; }
.lp-price-badge .small { color: var(--muted); max-width: 130px; }
@media (max-width: 760px) {
  .lp-hero { background-image: url("hero-man.jpg"); background-position: 20% 30%; }
  .lp-hero::before { background: linear-gradient(180deg, rgba(15,61,69,.35) 0%, rgba(15,61,69,.82) 45%, #0f3d45 100%); }
  .lp-hero-inner { flex-direction: column; align-items: flex-start; padding: 150px 16px 32px; gap: 20px; }
  .lp-price-badge { flex-direction: row; gap: 10px; padding: 10px 16px; min-width: 0; }
  .lp-price-badge strong { font-size: 1.9rem; margin: 0; }
  .lp-price-badge .small { max-width: 120px; text-align: left; }
}

.lp-intro { max-width: 760px; margin: 36px auto 8px; text-align: center; }
.lp-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.lp-intro p:last-child { color: var(--muted); }
.lp-section { margin: 44px 0; }
.lp-h2 { font-size: 1.55rem; color: var(--teal-ink); margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.lp-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--brand-gradient); }

.lp-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 680px) { .lp-benefits { grid-template-columns: 1fr; } }
.lp-benefits li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; font-size: .98rem; }
.lp-check { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--teal-deep); font-weight: 800; font-size: .85rem; }

.lp-objective { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.lp-objective img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: 70% 30%; display: block; }
.lp-objective > div { padding: 28px 28px 28px 0; }
@media (max-width: 680px) {
  .lp-objective { grid-template-columns: 1fr; gap: 0; }
  .lp-objective img { min-height: 0; aspect-ratio: 16/10; }
  .lp-objective > div { padding: 20px; }
}

.lp-cycle-name { color: var(--coral); }
.lp-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lp-day { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.lp-day::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand-gradient); }
.lp-day-num { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.lp-day h3 { font-family: var(--display); font-size: 1.05rem; margin: 4px 0 12px; color: var(--teal-ink); }
.lp-day ul { list-style: none; padding: 0; margin: 0; }
.lp-day li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.lp-day li span { color: var(--muted); }
.lp-day li em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .82rem; }
.lp-where { margin: 14px 0 0; }
.lp-note { margin: 14px 0 0; font-size: .85rem; font-weight: 600; color: var(--teal-deep); background: var(--brand-soft);
  display: inline-block; padding: 6px 12px; border-radius: 8px; }

.lp-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 760px) { .lp-two { grid-template-columns: 1fr; } }
.lp-req ol { margin: 0; padding-left: 0; list-style: none; counter-reset: r; }
.lp-req li { counter-increment: r; position: relative; padding: 0 0 14px 44px; line-height: 1.55; }
.lp-req li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-deep); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.lp-invest { border-radius: 20px; padding: 24px; color: #fff; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(140deg, var(--teal-deep) 0%, #1d7480 55%, var(--teal) 100%); }
.lp-invest-label { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .8rem; opacity: .85; }
.lp-invest-amount { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1.05; }
.lp-nonref { margin: 14px 0 0; font-weight: 700; font-size: .85rem; background: rgba(0,0,0,.18); padding: 8px 10px; border-radius: 8px; }

.lp-contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff6f3; border: 1px solid #f6d3cb; border-radius: 16px; padding: 16px 20px; margin: 8px 0 44px; }
.lp-contact div { display: flex; flex-direction: column; }
.lp-contact span { color: var(--muted); font-size: .95rem; }

.lp-form-wrap { max-width: 680px; margin: 0 auto; scroll-margin-top: 16px; }
.lp-form-head { text-align: center; margin-bottom: 16px; }
.lp-form-head img { width: 96px; height: auto; display: block; margin: 0 auto 8px; }
.lp-form-head h2 { font-size: 1.7rem; color: var(--teal-ink); margin: 0 0 4px; }
html { scroll-behavior: smooth; }
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.15em; flex: 0 0 auto; }
.lp-dates { display: flex; align-items: center; gap: 8px; }
.lp-dates .cyc { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .lp-hero { background-position: 30% 25%; background-size: 135% auto; background-color: #0f3d45; }
  .lp-hero::before { background: linear-gradient(180deg, rgba(15,61,69,0) 0%, rgba(15,61,69,.15) 22%, rgba(15,61,69,.85) 46%, #0f3d45 64%); }
  .lp-hero-inner { padding-top: 230px; }
}

/* =========================================================
   Follow-up (Seguimiento)
   ========================================================= */
.wrap.xwide { max-width: 1560px; }
.fu-stats { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
@media (max-width: 1100px) { .fu-stats { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 560px) { .fu-stats { grid-template-columns: repeat(2, 1fr); } }
.fu-stats .stat { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 10px 12px; }
.fu-stats .stat:hover { border-color: var(--teal); }
.fu-stats .stat.on { border-color: var(--teal-deep); box-shadow: 0 0 0 1px var(--teal-deep); background: var(--brand-soft); }
.fu-stats .label { font-size: .74rem; color: var(--muted); }
.fu-stats .value { font-size: 1.35rem; font-weight: 700; }
.fu-stats .value.ok { color: var(--ok); } .fu-stats .value.warn { color: var(--warn); } .fu-stats .value.bad { color: var(--bad); }
.fu-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.fu-filters select, .fu-filters input:not([type=checkbox]) { width: auto; padding: 8px 10px; font-size: .9rem; }
.fu-filters input[name=q] { flex: 1 1 200px; }
.fu-check { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: .85rem; margin: 0; }
.fu-check input { width: auto; }
.fu-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.fu-bulk select, .fu-bulk input { width: auto; padding: 6px 8px; font-size: .88rem; }
.fu-card { padding: 0; }
.fu-wrap { max-height: calc(100vh - 150px); overflow: auto; }
.fu-table { font-size: .86rem; }
.fu-table th { position: sticky; top: 0; background: #fff; z-index: 2; white-space: nowrap; box-shadow: 0 1px 0 var(--line); }
.fu-table th:nth-child(2), .fu-table td:nth-child(2) { position: sticky; left: 0; background: #fff; z-index: 1; }
.fu-table th:nth-child(2) { z-index: 3; }
.fu-table td { vertical-align: top; padding: 8px 8px; }
.fu-table tr:hover td { background: #fbfaf7; }
.fu-table tr.moved td { opacity: .55; }
.fu-person { min-width: 190px; }
.fu-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.fu-notes { min-width: 170px; max-width: 240px; }
.fu-notes .due { color: var(--bad); font-weight: 700; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: #eeece8; color: var(--muted); vertical-align: 1px; }
.tag.en { background: #e0ecff; color: #1f4f9a; }
select.mini { width: auto; min-width: 118px; max-width: 170px; padding: 5px 6px; font-size: .82rem; border-radius: 8px; }
select.mini.v-none { color: var(--muted); }
/* call status colors */
.v-primera_confirmacion, .v-confirmacion_final, .v-graduado, .v-online, .v-papel, .v-pago_completo, .v-jornada_completa { background: var(--ok-soft); border-color: #a9d4b7; color: #1f5434; }
.v-no_responde, .v-por_confirmar, .v-para_cambio, .v-posibilidad, .v-acuerdo_pago, .v-falta_llamar { background: var(--warn-soft); border-color: #ebcd94; color: #6f4a0b; }
.v-no_contactar, .v-numero_equivocado, .v-se_fue, .v-no_asistio, .v-no_interesado, .v-eliminado { background: var(--bad-soft); border-color: #e9b9b3; color: #7d2a24; }
.v-siguiente, .v-otro { background: #ece6f7; border-color: #cfc1ea; color: #4a2f7a; }
.pill.fs-seguimiento { background: #eef3f5; color: var(--teal-deep); }
.pill.fs-confirmado, .pill.fs-graduado { background: var(--ok-soft); color: var(--ok); }
.pill.fs-se_fue, .pill.fs-no_contactar { background: var(--bad-soft); color: var(--bad); }
.pill.fs-pide_cambio { background: var(--warn-soft); color: var(--warn); }
.pill.fs-cambio_ciclo { background: #ece6f7; color: #4a2f7a; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--teal-ink); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 50; }
.toast.bad { background: var(--bad); }
/* participant page follow-up */
.fu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
@media (max-width: 680px) { .fu-grid { grid-template-columns: 1fr; } }
.fu-now { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fu-now > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fbfaf8; }
.fu-now .lbl { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 12px 20px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.call-log { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; }
.call-log li { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: .9rem; }
.call-log .meta { font-size: .78rem; color: var(--muted); }
.banner-warn { background: var(--warn-soft); border: 1px solid #ebcd94; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.fu-enroller { min-width: 150px; }
.fu-table .pill { font-size: .72rem; padding: 1px 7px; }
select.mini { min-width: 112px; }
.settings-save { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 8px 24px rgba(15,61,69,.14); }
/* staff menu: keep on one line on laptops */
.topbar nav a, .topbar nav button { padding: 6px 9px; font-size: .88rem; }
.topbar nav { gap: 2px; }

/* =========================================================
   Entrenamiento Avanzado page
   ========================================================= */
.av-hero { background: #1b1410 var(--av-img) 30% 22% / cover no-repeat; }
.av-hero::before { background: linear-gradient(100deg, rgba(20,16,12,.05) 0%, rgba(20,16,12,.35) 35%, rgba(15,61,69,.9) 62%, #0f3d45 100%); }
.av-sub { color: #ffd9c9; font-weight: 600; margin: -4px 0 12px; }
@media (max-width: 760px) {
  .av-hero { background-size: 120% auto; background-position: 40% 0; }
  .av-hero::before { background: linear-gradient(180deg, rgba(15,61,69,0) 0%, rgba(15,61,69,.2) 25%, rgba(15,61,69,.88) 50%, #0f3d45 66%); }
  .av-hero .lp-hero-inner { padding-top: 260px; }
}
.av-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .av-pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .av-pillars { grid-template-columns: 1fr; } }
.av-pillar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.av-pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--coral), var(--gold)); }
.av-num { font-family: var(--display); font-weight: 700; color: var(--coral); font-size: .95rem; }
.av-pillar h3 { font-family: var(--display); font-size: 1.08rem; margin: 6px 0 6px; color: var(--teal-ink); }
.av-pillar p { margin: 0; font-size: .94rem; color: var(--muted); }
.av-exp img { object-position: 50% 25%; }
.av-offers { display: flex; flex-direction: column; gap: 10px; }
.av-offer { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 20px; transition: border-color .15s; }
.av-offer:hover { border-color: var(--teal); }
.av-offer.best { color: #fff; border: 0; background: linear-gradient(140deg, var(--teal-deep) 0%, #1d7480 55%, var(--teal) 100%); }
.av-offer-price { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1.1; }
.av-offer .small { opacity: .85; }
.av-nonref { background: var(--bad-soft); color: #7d2a24; margin: 0; }
.tabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { padding: 8px 14px; border-radius: 10px 10px 0 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.tab.on { color: var(--teal-deep); background: #fff; border: 1px solid var(--line); border-bottom-color: #fff; margin-bottom: -1px; }
.banner-link { background: var(--brand-soft); border: 1px solid #bfe3e8; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: .93rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.av-exp { background-image: linear-gradient(140deg, var(--teal-deep), #1d7480 40%, var(--coral) 85%, var(--gold)); background-size: 50% 100%; background-repeat: no-repeat; }
.av-exp > div { background: #fff; height: 100%; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 680px) { .av-exp { background-size: 100% 260px; } }

/* Programa de Liderazgo page */
.pl-hero { background-position: 30% 35%; }
.pl-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .pl-three { grid-template-columns: 1fr; } }
.pl-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-areas .chip { font-size: .92rem; padding: 6px 14px; }
.pl-support { margin: 0; padding-left: 20px; }
.pl-support li { margin-bottom: 6px; }
.pl-quote { margin: 16px 0 0; font-family: var(--display); font-weight: 700; color: var(--coral); font-size: 1.1rem; }
.pl-span { margin: -30px 0 40px; font-weight: 600; color: var(--teal-deep); }

/* =========================================================
   Company home page (/)
   ========================================================= */
.foot a { color: inherit; }
.home-hero .lp-hero-inner { min-height: 380px; }
.home-sub { font-size: 1.1rem; line-height: 1.55; margin: 0 0 22px; color: #e6f6f8; }
.home-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-level { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.home-level:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,83,94,.14); }
.home-level-top { padding: 20px; color: #fff; background: linear-gradient(140deg, var(--teal-deep), var(--teal)); }
.lv-avanzado .home-level-top { background: linear-gradient(140deg, #1d7480, var(--coral)); }
.lv-liderazgo .home-level-top { background: linear-gradient(140deg, var(--coral), var(--gold)); }
.home-level-num { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.home-level-top h3 { font-family: var(--display); font-size: 1.2rem; margin: 6px 0 0; line-height: 1.2; color: #fff; }
.home-level-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.home-level-body > p { margin: 0 0 10px; color: var(--muted); }
.home-req { color: var(--teal-deep) !important; font-weight: 600; }
.home-facts { margin: auto 0 14px; display: grid; gap: 8px; padding-top: 8px; }
.home-facts div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.home-facts dt { color: var(--muted); font-size: .88rem; }
.home-facts dd { margin: 0; text-align: right; font-size: .92rem; }
.home-more { font-weight: 700; color: var(--coral); }
.home-about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.home-about img { width: 100%; border-radius: 18px; object-fit: cover; aspect-ratio: 4 / 3.4; display: block; }
.home-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.home-mv > div { background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; }
.home-mv h3 { margin: 0 0 4px; font-family: var(--display); color: var(--teal-deep); font-size: 1rem; }
.home-mv p { margin: 0; font-size: .94rem; }
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.home-stats div { min-width: 0; overflow-wrap: anywhere; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px; }
.home-stats strong { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--coral); }
.home-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.home-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-person { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.home-person div { display: flex; flex-direction: column; min-width: 0; }
.home-person span:not(.home-avatar) { color: var(--muted); font-size: .84rem; }
.home-avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700;
  font-family: var(--display); background: var(--brand-gradient); }
.home-coach { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; color: #fff; border-radius: 20px; padding: 28px;
  background: linear-gradient(140deg, var(--teal-deep) 0%, #1d7480 55%, var(--teal) 100%); }
.home-coach h2 { color: #fff; font-size: 1.6rem; margin: 6px 0 8px; }
.home-coach p { color: #e6f6f8; margin: 0 0 18px; }
.home-coach-prices { display: grid; gap: 12px; }
.home-coach-prices div { background: rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.home-coach-prices strong { font-family: var(--display); font-size: 2rem; grid-row: span 2; }
.home-coach-prices em { font-style: normal; font-size: .85rem; color: var(--gold); }
.home-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.home-contact a span { overflow-wrap: anywhere; }
.home-contact .ico { flex: 0 0 22px; width: 22px; height: 22px; color: var(--teal); }
.home-social { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.home-social .chip { text-decoration: none; }
@media (max-width: 860px) {
  .home-levels, .home-about, .home-coach, .home-contact { grid-template-columns: 1fr; }
  .home-team { grid-template-columns: 1fr 1fr; }
  .home-about img { max-height: 280px; }
}
@media (max-width: 520px) {
  .home-team, .home-mv { grid-template-columns: 1fr; }
  .home-stats strong { font-size: 1.8rem; }
  .home-stats { gap: 8px; } .home-stats div { padding: 14px 6px; } .home-stats span { font-size: .8rem; }
  .home-coach { padding: 22px 18px; }
}
/* public nav: keep it on one scrollable row on phones */
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; }
  .topbar nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-left: 0; }
  .topbar nav .lang-btn { margin-left: auto; }
}

/* delete registration */
.btn.danger { background: var(--bad); color: #fff; }
.danger-zone { border-color: #e2b7b3; }
.danger-zone summary { color: var(--bad); font-weight: 600; }

/* contacts */
.lv-chip { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin: 0 4px 2px 0;
  background: var(--brand-soft); color: var(--teal-deep); border: 1px solid transparent; }
.lv-chip.lv-graduado { background: var(--ok-soft); color: #1f5434; }
.lv-chip.lv-historico { background: #fff7d6; color: #6b5900; }
.lv-chip.lv-inscrito { background: #fff; border-color: var(--line); color: var(--muted); }
.cp-chosen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; }
.cp-results { display: flex; flex-direction: column; margin-top: 4px; border-radius: 10px; overflow: hidden; }
.cp-opt { text-align: left; background: #fff; border: 1px solid var(--line); border-top: 0; padding: 9px 12px; cursor: pointer; font: inherit; }
.cp-opt:first-child { border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.cp-opt:last-child { border-radius: 0 0 10px 10px; }
.cp-opt:only-child { border-radius: 10px; }
.cp-opt:hover, .cp-opt:focus { background: var(--brand-soft); outline: none; }
.cp-empty { padding: 6px 2px; }
.cp-new { margin-top: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.cp-new .grid3 input { width: 100%; }

/* participant page: sticky side menu + grouped sections */
.reg-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
.reg-nav { position: sticky; top: 16px; }
.reg-nav nav { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column;
  box-shadow: 0 6px 18px rgba(20,83,94,.06); max-height: calc(100vh - 32px); overflow-y: auto; }
.reg-nav .grp { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 12px 10px 4px; }
.reg-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.25; border-left: 3px solid transparent; }
.reg-nav a:hover { background: var(--brand-soft); }
.reg-nav a.on { background: var(--brand-soft); color: var(--teal-deep); font-weight: 700; border-left-color: var(--teal); }
.reg-nav a.rn-danger { color: var(--bad); margin-top: 8px; }
.reg-nav .badge { flex: 0 0 auto; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: #eef1f1; color: var(--muted); }
.reg-nav .badge.due { background: var(--bad-soft); color: #7d2a24; }
.reg-nav .badge.warn { background: #fff1d6; color: #7a5200; }
.reg-nav .badge.bad { background: var(--bad); color: #fff; }
.reg-nav .badge.ok { background: var(--ok-soft); color: #1f5434; }
.reg-main { min-width: 0; }
.reg-group { margin-bottom: 30px; }
.reg-gtitle { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--teal-deep); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.reg-ctitle { font-family: var(--display); font-size: 1.12rem; color: var(--teal-ink); margin: 0 0 12px; }
.reg-sec { scroll-margin-top: 16px; }
.reg-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.reg-quick > div { display: flex; flex-direction: column; gap: 3px; background: var(--brand-soft); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.reg-quick .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reg-quick strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.reg-quick strong.due { color: var(--bad); }
.reg-quick strong.zero { color: #1f5434; }
.call-scroll { max-height: 360px; overflow-y: auto; }
.call-scroll .call-log { margin-top: 0 !important; }
@media (max-width: 900px) {
  .reg-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .reg-nav { min-width: 0; }
  .reg-nav { top: 0; z-index: 20; margin: 0 -16px; }
  .reg-nav nav { flex-direction: row; overflow-x: auto; border-radius: 0; border-left: 0; border-right: 0; padding: 8px 12px; gap: 4px;
    max-height: none; scrollbar-width: none; }
  .reg-nav nav::-webkit-scrollbar { display: none; }
  .reg-nav .grp { display: none; }
  .reg-nav a { flex: 0 0 auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 8px; }
  .reg-nav a.on { border-bottom-color: var(--teal); }
  .reg-nav a.rn-danger { margin-top: 0; }
  .reg-sec { scroll-margin-top: 64px; }
  .reg-quick { grid-template-columns: 1fr 1fr; }
}

/* participant page: one section at a time */
.reg-layout.tabs .reg-sec:not(.show), .reg-layout.tabs .reg-group:not(.show) { display: none; }
.reg-layout.tabs .reg-sec.show { animation: regIn .18s ease-out; }
@keyframes regIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.reg-nav .grp { font-size: .8rem; font-weight: 800; color: var(--teal-ink); letter-spacing: .07em; margin: 14px 10px 4px;
  padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.reg-nav a.rn-top { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--teal-ink); }
.reg-nav a.rn-top.on { color: var(--teal-deep); }
.reg-nav a:not(.rn-top) { padding-left: 14px; }
@media (max-width: 900px) {
  .reg-nav a.rn-top { font-size: .9rem; text-transform: none; letter-spacing: 0; }
}
@media (max-width: 900px) { .reg-nav .grp { display: none; } .reg-nav a:not(.rn-top) { padding-left: 10px; } }

/* Llamadas toolbar: jornada + pop-up filters / assign / move */
.fu-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fu-toolbar .fu-filters, .fu-toolbar .fu-bulk { margin: 0; flex-wrap: nowrap; }
.fu-toolbar .fu-filters > select[name=cycle] { min-width: 180px; font-weight: 600; }
details.pop { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop[open] > summary { background: var(--brand-soft); border-color: var(--teal); }
.pop-count { background: var(--coral); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }
.pop-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(560px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 14px 36px rgba(20,83,94,.18); }
.pop-right .pop-panel { left: auto; right: 0; width: min(320px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; }
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pop-grid input[name=q] { grid-column: 1 / -1; }
.pop-panel select, .pop-panel input:not([type=checkbox]) { width: 100% !important; }
@media (max-width: 640px) {
  .pop-grid { grid-template-columns: 1fr; }
  .fu-toolbar .fu-filters, .fu-toolbar .fu-bulk { flex-wrap: wrap; }
  .pop-right .pop-panel { right: auto; left: 0; }
}

/* participant page: trainings of the person */
.reg-nav .grp.grp-first { margin-top: 4px; padding-top: 0; border-top: 0; }
.reg-nav .rn-train { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px 7px 14px; border-radius: 10px;
  font-size: .88rem; color: var(--ink); text-decoration: none; }
.reg-nav .rn-train.cur { background: linear-gradient(90deg, var(--teal-deep), #1d7480); color: #fff; font-weight: 700; }
.reg-nav .rn-train.cur .badge { background: rgba(255,255,255,.2); color: #fff; }
.reg-nav .rn-train.rn-add { color: var(--teal-deep); font-weight: 600; font-size: .84rem; }
.reg-nav .badge.st-paid, .reg-nav .badge.st-overpaid { background: var(--ok-soft); color: #1f5434; }
.reg-nav .badge.st-partial { background: #fff1d6; color: #7a5200; }
.reg-nav .badge.st-unpaid { background: var(--bad-soft); color: #7d2a24; }
.reg-nav .rn-sep { height: 1px; background: var(--line); margin: 10px 4px 6px; }
.reg-trainings { margin: 14px 0 4px; }
.reg-trainings tr.cur td { background: var(--brand-soft); }
.reg-trainings td.due { color: var(--bad); font-weight: 600; }
@media (max-width: 900px) {
  .reg-nav .rn-train { flex: 0 0 auto; white-space: nowrap; }
  .reg-nav .rn-sep { width: 1px; height: auto; margin: 4px 6px; }
}
.reg-nav .rn-train .badge { font-size: .64rem; padding: 1px 6px; white-space: nowrap; }
.reg-nav .rn-train > span:first-child { min-width: 0; }

/* administrators */
.perm-chip { display: inline-block; font-size: .72rem; background: var(--brand-soft); color: var(--teal-deep); border-radius: 999px; padding: 1px 8px; margin: 0 4px 3px 0; }
.perm-list { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 10px; margin: 0; }
.perm-list legend { font-weight: 700; padding: 0 6px; }
.perm-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-weight: 400; cursor: pointer; }
.perm-row:last-of-type { border-bottom: 0; }
.perm-row input { width: auto; margin-top: 4px; }
.perm-row span { display: flex; flex-direction: column; }
.perm-matrix td.c, .perm-matrix th.c { text-align: center; font-weight: 700; color: var(--teal-deep); }
.topbar nav a.nav-me { color: var(--muted); }

/* messages */
.msg-channels { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 4px; }
.msg-ch { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 600; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tpl-slot { display: flex; flex-direction: column; gap: 8px; }
.tpl-slot-h .pill { font-size: .8rem; }
.tpl-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  text-decoration: none; color: var(--ink); min-height: 96px; transition: border-color .15s, box-shadow .15s; }
.tpl-card:hover { border-color: var(--teal); box-shadow: 0 6px 16px rgba(20,83,94,.1); }
.tpl-card.off { opacity: .6; }
.tpl-card.empty { align-items: center; justify-content: center; border-style: dashed; color: var(--teal-deep); font-weight: 600; }
.tpl-preview { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tpl-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 0; }
.ph-bar { padding: 12px 16px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-chip { font: inherit; font-size: .78rem; border: 1px solid var(--line); background: var(--brand-soft); color: var(--teal-deep); border-radius: 999px;
  padding: 3px 10px; cursor: pointer; font-family: ui-monospace, monospace; }
.ph-chip:hover { border-color: var(--teal); }
.ch-toggle { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 400; cursor: pointer; }
.ch-toggle input { width: auto; }
.phone-bubble { background: #e9f7ef; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: .9rem; white-space: pre-wrap; margin-bottom: 12px; }
.mail-preview { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .86rem; white-space: pre-wrap; max-height: 340px; overflow: auto; }
.mail-subj { font-weight: 700; margin-bottom: 6px; }
@media (max-width: 900px) { .tpl-layout { grid-template-columns: minmax(0, 1fr); } .tpl-side { position: static; } }
.test-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.test-row input { flex: 1 1 180px; width: auto; }
.prov-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fcfcfa; }
.phone-bubble, .mail-preview { overflow-wrap: anywhere; }
ol.goals { margin: 0; padding-left: 18px; }

/* relevo (waiver) */
.wrap.waiver { max-width: 780px; }
.wv-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.wv-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.wv-progress span { display: block; height: 100%; background: var(--brand-gradient); transition: width .25s; }
.wv-text { line-height: 1.6; }
.wv-text h1, .wv-text h2, .wv-text h3, .wv-text h4 { text-align: center; color: var(--teal-ink); }
.wv-text p { margin: 0 0 10px; }
.wv-field { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.wv-choices { display: flex; flex-direction: column; gap: 6px; }
.wv-choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; background: #fff; }
.wv-choice:hover { border-color: var(--teal); }
.wv-choice input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.wv-choice:has(input:checked) { border-color: var(--teal); background: var(--brand-soft); }
.wv-rules { display: flex; flex-direction: column; gap: 6px; max-height: none; }
.wv-all { background: var(--brand-soft); margin-bottom: 8px; }
.wv-nav { display: flex; gap: 10px; margin-top: 20px; }
.sig-pad { position: relative; border: 2px dashed #b9c6c8; border-radius: 12px; background: #fff; height: 170px; touch-action: none; }
.sig-pad canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.sig-pad .sig-hint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #9aa9ab; pointer-events: none; }
.sig-pad.signed .sig-hint { display: none; }
.sig-pad .sig-clear { position: absolute; right: 6px; bottom: 6px; }
.has-error .sig-pad { border-color: var(--bad); }
.wv-view h3 { margin: 12px 0 6px; color: var(--teal-ink); font-size: 1.02rem; }
.wv-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.wv-l { color: var(--muted); }
.sig-img { max-width: 260px; height: auto; border-bottom: 1px solid #333; }
@media (max-width: 560px) { .wv-row { grid-template-columns: 1fr; gap: 2px; } }
@media print { .topbar, .foot, .no-print { display: none !important; } .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; } }
.auto-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px !important; }
.auto-list { margin: 4px 0; padding-left: 18px; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }

/* ---------- Tienda ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; min-width: 0; }
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,83,94,.14); }
.shop-img { position: relative; aspect-ratio: 1 / 1; background: var(--brand-soft); overflow: hidden; }
.shop-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 18px; text-align: center; color: #fff; background: linear-gradient(140deg, var(--teal-deep), var(--teal)); }
.shop-ph img { width: 64px; height: auto; background: #fff; border-radius: 50%; padding: 10px; }
.shop-ph span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.pg-avanzado .shop-ph, .k-libre .shop-ph { background: linear-gradient(140deg, #1d7480, var(--coral)); }
.pg-completa .shop-ph { background: linear-gradient(140deg, var(--teal-deep), var(--coral) 60%, var(--gold)); }
.pg-liderazgo .shop-ph { background: linear-gradient(140deg, var(--coral), var(--gold)); }
.k-producto .shop-ph { background: linear-gradient(140deg, var(--teal-ink), #1d7480); }
.shop-sale { position: absolute; top: 10px; left: 10px; background: var(--coral); color: #fff; font-weight: 700; font-size: .78rem;
  padding: 3px 10px; border-radius: 999px; }
.shop-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.shop-body h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.25; }
.shop-body p { margin: 0 0 8px; }
.shop-meta { color: var(--teal-deep); }
.shop-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.shop-price { font-family: var(--display); font-weight: 700; color: var(--teal-ink); font-size: 1.1rem; }
.shop-price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 4px; }
.shop-price.big { font-size: 1.6rem; margin: 4px 0 8px; }
.shop-detail { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.shop-detail .shop-img { border-radius: 16px; }
@media (max-width: 640px) { .shop-detail { grid-template-columns: minmax(0, 1fr); } .shop-detail .shop-img { max-width: 260px; } }
.shop-total, .shop-qty1 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; padding: 8px 0; color: var(--teal-ink); }
.shop-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: block; }
.shop-thumb.ph { background: linear-gradient(140deg, var(--teal-deep), var(--teal)); }
.shop-thumb.big { width: 96px; height: 96px; }
.pill.cancelled { background: #eeece8; color: var(--muted); }
.shop-price.any { font-size: .92rem; }
@media (max-width: 640px) { .shop-detail .shop-img { max-width: 180px; } }
@media (max-width: 480px) { .pub-link.nav-home { display: none; } }
@media (max-width: 480px) {
  .topbar nav a, .topbar nav button { padding: 6px 7px; font-size: .84rem; }
  .shop-card .shop-img { aspect-ratio: 16 / 9; }
  .shop-card .shop-ph { flex-direction: row; gap: 14px; }
  .shop-card .shop-ph img { width: 52px; }
}
.lg-short { display: none; }
@media (max-width: 480px) { .lg-full { display: none; } .lg-short { display: inline; } }

/* ---------- Staff: left menu ---------- */
.adm { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.adm.collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 12px 10px; z-index: 40; }
.adm-side::before { content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--teal), var(--teal-deep) 30%, var(--coral) 65%, var(--gold)); }
.adm-brand { display: flex; align-items: center; gap: 6px; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.adm-brand .brand { gap: 10px; min-width: 0; flex: 1; }
.adm-brand .brand img { width: 40px; flex: 0 0 auto; }
.adm-brand .brand-kicker { font-size: .86rem; }
.adm-brand .brand-name { font-size: .72rem; }
.adm-collapse { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; border-radius: 8px; padding: 4px 8px; }
.adm-collapse:hover { background: var(--brand-soft); color: var(--teal-deep); }
.adm-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.adm-side .grp-box { display: flex; flex-direction: column; gap: 2px; }
.adm-side .grp-box + .grp-box { border-top: 1px solid var(--line); }
.adm-side button.grp { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-ink);
  padding: 11px 10px; margin: 2px 0; border-left: 0; gap: 8px; white-space: nowrap; }
.adm-side .grp-l { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.adm-side .grp-chev { font-size: .8rem; transition: transform .15s ease; color: var(--muted); }
.adm-side .grp-box.open .grp-chev { transform: rotate(90deg); }
.adm-side .grp-box:not(.open) .grp-items { display: none; }
.adm-side .grp-box.open .grp-n { display: none; }
.adm-side .grp-items { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.adm-side a, .adm-side button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink);
  text-decoration: none; font: inherit; font-size: .92rem; font-weight: 600; border: 0; border-left: 3px solid transparent; background: none;
  cursor: pointer; width: 100%; text-align: left; white-space: nowrap; }
.adm-side a:hover, .adm-side button:hover { background: var(--brand-soft); }
.adm-side a.on { background: var(--brand-soft); color: var(--teal-deep); font-weight: 700; border-left-color: var(--teal); }
.adm-side .ai { width: 22px; text-align: center; flex: 0 0 auto; font-size: 1rem; }
.adm-side .al { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.adm-side .badge { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: #fff1d6; color: #7a5200; }
.adm-foot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.adm-foot form { margin: 0; }
.adm.collapsed .al, .adm.collapsed .grp, .adm.collapsed .adm-side .badge { display: none; }
.adm.collapsed .adm-side .grp-box .grp-items { display: flex; }
.adm.collapsed .adm-side button.grp { display: none; }
.adm.collapsed .adm-side .grp-box + .grp-box { padding-top: 6px; }
.adm.collapsed .adm-side .grp + a, .adm.collapsed .adm-side nav { }
.adm.collapsed .adm-brand { flex-direction: column; }
.adm.collapsed .adm-collapse { transform: rotate(180deg); }
.adm.collapsed .adm-side a, .adm.collapsed .adm-side button { justify-content: center; padding: 9px 0; }

.adm-main { min-width: 0; }
.adm-main > .wrap { padding-top: 24px; }
.adm-top { display: none; }
.adm-scrim { position: fixed; inset: 0; background: rgba(15, 61, 69, .35); z-index: 35; }
@media (max-width: 900px) {
  .adm, .adm.collapsed { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-105%); transition: transform .2s ease;
    box-shadow: 0 10px 40px rgba(15, 61, 69, .25); }
  .adm.open .adm-side { transform: none; }
  .adm .al { display: revert !important; }
  .adm .adm-side button.grp { display: flex !important; }
  .adm.collapsed .adm-side .grp-box:not(.open) .grp-items { display: none; }
  .adm .adm-side a, .adm .adm-side button { justify-content: flex-start !important; padding: 9px 10px !important; }
  .adm-collapse { display: none; }
  .adm-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--surface);
    padding: 8px 12px; border-bottom: 1px solid var(--line); box-shadow: 0 3px 0 -1px rgba(0,0,0,0); }
  .adm-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--brand-gradient); }
  .adm-top .brand { gap: 8px; }
  .adm-top .brand img { width: 34px; }
  .adm-burger { border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 1.2rem; padding: 4px 11px; cursor: pointer; color: var(--teal-ink); }
}
@media print { .adm-side, .adm-top { display: none !important; } .adm { display: block; } }
.adm-side .adm-brand a.brand { padding: 0; width: auto; border: 0; background: none; white-space: normal; }
.adm-side .adm-brand .brand-text { min-width: 0; }
.adm.collapsed .adm-brand .brand-text { display: none; }
.adm.collapsed .adm-brand a.brand { justify-content: center; }
@media (max-width: 900px) { .adm .adm-brand .brand-text { display: flex !important; } }
.adm-brand .brand-kicker { line-height: 1.15; }
.adm-brand .brand-kicker span { display: block; }
@media (max-width: 640px) { .fu-stats.shop-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.adm-brand .brand { flex: 1 1 auto; }
.adm-brand .brand img { width: 34px; }
.adm-brand .brand-kicker { font-size: .82rem; }
.adm-collapse { flex: 0 0 auto; align-self: flex-start; }
.adm-side .adm-collapse { width: auto; display: inline-block; padding: 4px 8px; border-left: 0; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 900px) { .adm-side .adm-collapse { display: none; } }

/* ---------- Relevos overview ---------- */
.wv-tally { margin-bottom: 14px; }
.wv-tally-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; }
.wv-tally-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.chip { display: inline-flex; gap: 5px; align-items: center; font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: #eef3f5;
  color: var(--teal-ink); text-decoration: none; border: 1px solid transparent; }
.chip:hover { border-color: var(--teal); }
.chip.on { background: var(--teal-deep); color: #fff; }
.chip.yes { background: var(--bad-soft); color: #7d2a24; }
.chip.yes.on { background: var(--bad); color: #fff; }
.wv-table th { white-space: normal; min-width: 92px; max-width: 150px; font-size: .72rem; vertical-align: bottom; }
.wv-table td { vertical-align: top; }
.wv-table .wv-sticky { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 170px; box-shadow: 1px 0 0 var(--line); }
.wv-texts { min-width: 280px; max-width: 420px; }
.wv-texts > div { margin-bottom: 3px; }
.wv-send { background: #f6fafb; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.wv-send form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.wv-sendbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 10px; }
.wv-pick { float: right; margin-left: 6px; }

/* ---------- Programa de Liderazgo ---------- */
.pl-tag { display: inline-block; background: var(--brand-soft); color: var(--teal-deep); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 2px 10px; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.pl-card { text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.pl-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,83,94,.12); }
.pl-card-head h2 { margin: 6px 0 0; }
.pl-gauge { text-align: center; }
.pl-gauge svg { width: 100%; max-width: 240px; display: block; margin: 0 auto; }
.pl-gauge .g-bg { fill: none; stroke: #e9eef0; stroke-width: 18; stroke-linecap: round; }
.pl-gauge .g-fg { fill: none; stroke: var(--coral); stroke-width: 18; stroke-linecap: round; }
.pl-gauge.lvl-mid .g-fg { stroke: var(--gold); }
.pl-gauge.lvl-high .g-fg { stroke: var(--teal); }
.pl-gauge.lvl-done .g-fg { stroke: var(--ok); }
.pl-gauge .g-num { font-family: var(--display); font-weight: 700; font-size: 38px; text-anchor: middle; fill: var(--teal-ink); }
.pl-gauge .g-sub { font-size: 13px; text-anchor: middle; fill: var(--muted); }
.pl-gauge .g-foot { margin-top: -4px; }
.pl-board-top { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 640px) { .pl-board-top { grid-template-columns: minmax(0, 1fr); } }
.pl-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (max-width: 640px) { .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-facts div { background: #f6fafb; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.pl-facts dt { font-size: .75rem; color: var(--muted); }
.pl-facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--teal-ink); }
.pl-rank { display: flex; flex-direction: column; }
.pl-rank-row { display: grid; grid-template-columns: 28px minmax(0, 200px) minmax(0, 1fr) 36px; gap: 10px; align-items: center; padding: 8px 6px;
  border-bottom: 1px solid var(--line); }
.pl-rank-row:last-child { border-bottom: 0; }
.pl-pos { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--teal-deep); font-weight: 700; font-size: .8rem;
  display: grid; place-items: center; }
.pl-rank-row:nth-child(1) .pl-pos { background: var(--gold); color: #4a3b00; }
.pl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pl-bar { height: 10px; background: #eef3f5; border-radius: 999px; overflow: hidden; }
.pl-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); border-radius: 999px; }
.pl-n { text-align: right; font-family: var(--display); color: var(--teal-ink); }
.pl-who { grid-column: 2 / -1; }
.pl-who ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 520px) { .pl-rank-row { grid-template-columns: 26px minmax(0, 1fr) 30px; } .pl-bar { grid-column: 2 / 4; grid-row: 2; } }
.pl-mini { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); max-width: 560px; }
.pl-hero h1 { margin: 4px 0; }
.pl-cal-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pl-cal-layout.pub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .pl-cal-layout, .pl-cal-layout.pub { grid-template-columns: minmax(0, 1fr); } }
.pl-month-nav { margin-bottom: 8px; }
.pl-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; }
.pl-wd { background: #f6fafb; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 6px 0; text-transform: uppercase; }
.pl-day { background: #fff; min-height: 86px; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-day.out { background: #fafaf8; color: #b5b9ba; }
.pl-day.today .pl-dn { background: var(--coral); color: #fff; }
.pl-dn { font-size: .75rem; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.pl-chip { display: block; font-size: .7rem; line-height: 1.25; padding: 2px 5px; border-radius: 6px; background: var(--brand-soft); color: var(--teal-ink);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--teal); }
.pl-chip.k-sesion, .pl-ev.k-sesion { border-left-color: var(--teal-deep); }
.pl-chip.k-llamada, .pl-ev.k-llamada { border-left-color: var(--gold); }
.pl-chip.k-entrega, .pl-ev.k-entrega { border-left-color: var(--coral); }
.pl-chip.k-otro, .pl-ev.k-otro { border-left-color: #9aa6a9; }
@media (max-width: 520px) { .pl-day { min-height: 54px; } .pl-chip { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--teal); } }
.pl-pub-month .pl-day { min-height: 64px; }
.pl-ev { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pl-ev-time { font-weight: 700; font-size: .85rem; color: var(--teal-deep); }
.pl-ev-body > * + * { margin-top: 3px; }
.pl-kind { margin-left: 6px; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pl-ev-date { font-weight: 700; margin: 14px 0 6px; color: var(--teal-ink); }
.pl-ev-date.is-today { color: var(--coral); }
@media (max-width: 520px) { .pl-ev { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.copy-row .btn { white-space: nowrap; }
.pl-side-form .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pl-side-form .grid3 > :first-child { grid-column: 1 / -1; }
.pl-side-form .grid2 { grid-template-columns: minmax(0, 1fr); }
.pl-side-form input, .pl-side-form select, .pl-side-form textarea { min-width: 0; width: 100%; }
.pl-who-for, .pl-meet-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.pl-who-for legend, .pl-meet-box legend { font-weight: 700; font-size: .88rem; padding: 0 6px; }
.pl-who-for .check, .pl-meet-box .check { display: block; margin: 4px 0; }
.pl-meet-box { background: #f6fafb; }
.pl-join { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px !important; }
.pl-join .btn { background: #1a73e8; }
.pl-join .btn.live { background: var(--coral); }
.pl-live { color: var(--coral); font-weight: 700; font-size: .82rem; animation: plpulse 1.6s infinite; }
@keyframes plpulse { 50% { opacity: .45; } }
.pl-together { color: var(--teal-deep); }
.pl-ev.has-join { border-left-color: #1a73e8; }
.pl-live-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px;
  background: #fff4f2; border: 1px solid #f3c2bb; border-radius: 14px; padding: 12px 16px; color: #7d2a24; }
.pl-live-banner .btn { background: var(--coral); }
.pl-cb { display: flex !important; gap: 8px; align-items: flex-start; margin: 5px 0; font-weight: 500; cursor: pointer; }
.pl-cb input { width: auto !important; margin-top: 3px; flex: 0 0 auto; }
.meet-steps { padding-left: 18px; margin: 0 0 12px; }
.meet-steps li { margin-bottom: 4px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff !important; color: #1f1f1f !important;
  border: 1px solid #dadce0 !important; box-shadow: none; font-weight: 600; }
.gbtn:hover { background: #f8f9fa !important; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 16px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- public nav: Entrenamientos menu ---------- */
.nav-dd { position: relative; }
.nav-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  color: var(--teal-ink); padding: 7px 12px; border-radius: 999px; font-size: .92rem; font-weight: 600; user-select: none; }
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary:hover, .nav-dd > summary.active, .nav-dd[open] > summary { background: var(--brand-soft); color: var(--teal-deep); }
.dd-caret { font-size: .7rem; transition: transform .15s; }
.nav-dd[open] .dd-caret { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 270px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; box-shadow: 0 16px 40px rgba(20,83,94,.18); display: flex; flex-direction: column; gap: 2px; }
.topbar nav .nav-dd-menu a { display: flex; gap: 10px; align-items: center; border-radius: 10px; padding: 9px 10px; font-weight: 500; }
.nav-dd-menu a strong { display: block; font-size: .92rem; }
.nav-dd-menu a small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
.dd-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem;
  background: linear-gradient(140deg, var(--teal-deep), var(--teal)); }
.nav-dd-menu a:nth-child(2) .dd-num { background: linear-gradient(140deg, #1d7480, var(--coral)); }
.nav-dd-menu a:nth-child(3) .dd-num { background: linear-gradient(140deg, var(--coral), var(--gold)); }
@media (max-width: 640px) {
  .topbar nav { overflow: visible; flex-wrap: wrap; }
  .nav-dd > summary { padding: 6px 8px; font-size: .86rem; }
  .nav-dd-menu { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 6px; }
}

/* ---------- Contact page ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; margin: 26px 0 40px; align-items: start; }
@media (max-width: 820px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } }
.ct-info { display: flex; flex-direction: column; gap: 10px; }
.ct-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.ct-card:hover { border-color: var(--teal); transform: translateY(-1px); }
.ct-card small { display: block; color: var(--muted); font-size: .78rem; }
.ct-card strong { display: block; font-size: 1.02rem; color: var(--teal-ink); }
.ct-card em { font-style: normal; color: var(--teal-deep); }
.ct-break { overflow-wrap: anywhere; }
.ct-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--teal-deep); }
.ct-ico svg { width: 22px; height: 22px; }
.ct-ico.wa { background: #e6f7ec; color: #1f8a4c; }
.ct-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: #eef3f5; }
.ct-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-sent { text-align: center; padding: 20px 6px; }
.ct-sent-ico { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700;
  background: var(--ok-soft); color: var(--ok); }
.ib-msg.is-new { border-left: 4px solid var(--coral); }

/* ---------- Documentation ---------- */
.doc-search { margin: 0 0 16px; max-width: 620px; }
.doc-search input { width: 100%; padding-left: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6a6e' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
.doc-nav a span { overflow: hidden; text-overflow: ellipsis; }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.doc-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.doc-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.doc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); font-size: 1.3rem; }
.doc-ico.big { width: 54px; height: 54px; font-size: 1.7rem; flex: 0 0 auto; }
.doc-head { display: flex; gap: 14px; align-items: center; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.doc-toc a { background: #eef3f5; color: var(--teal-ink); border-radius: 999px; padding: 3px 10px; text-decoration: none; }
.doc-toc a:hover { background: var(--brand-soft); }
.doc-sec h3 { margin: 0 0 8px; color: var(--teal-ink); font-family: var(--display); font-size: 1.1rem; }
.doc-body { line-height: 1.6; }
.doc-body ol, .doc-body ul { padding-left: 22px; margin: 6px 0 10px; }
.doc-body li { margin-bottom: 5px; }
.doc-body code { background: #eef3f5; border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.doc-body b.ui { background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: 0 6px; font-weight: 600;
  color: var(--teal-deep); white-space: nowrap; }
.doc-body .tip { background: #f6fafb; border-left: 4px solid var(--teal); border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.doc-pager { margin-top: 6px; }
@media print { .doc-layout { display: block; } .doc-sec { break-inside: avoid; } }

/* how-to videos in Documentación */
.doc-video { padding: 10px; margin: 0 0 14px; }
.doc-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #0f3d45; }
.doc-video figcaption { margin: 8px 4px 0; }
.doc-vbadge { align-self: flex-start; margin-top: 6px; font-size: 12px; font-weight: 700; color: #14535e; background: #e3f4f6; border-radius: 999px; padding: 2px 10px; }

/* ---------- Staff help assistant (Gemini chat) ---------- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--teal-deep); color: #fff; font: 700 .95rem Inter, system-ui, sans-serif; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(15, 61, 69, .3); }
.ai-fab:hover { background: var(--teal-ink); }
.ai-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ai-panel { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 61, 69, .32); border: 1px solid var(--line); }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--teal-ink), var(--teal-deep) 60%, #1d7480); }
.ai-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient); }
.ai-av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: 0 0 auto; }
.ai-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ai-ht span { font-size: .8rem; opacity: .85; }
.ai-ic { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 1rem; }
.ai-ic:hover { background: rgba(255, 255, 255, .24); }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.ai-msg { display: flex; }
.ai-msg.me { justify-content: flex-end; }
.ai-b { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-msg.me .ai-b { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); border-radius: 14px 14px 4px 14px; white-space: pre-wrap; }
.ai-b p { margin: 0 0 6px; } .ai-b p:last-child { margin-bottom: 0; }
.ai-b ul, .ai-b ol { margin: 4px 0 8px; padding-left: 20px; } .ai-b li { margin: 2px 0; }
.ai-b a { color: var(--teal-deep); font-weight: 600; }
.ai-b code { background: var(--brand-soft); border-radius: 5px; padding: 0 4px; font-size: .85em; }
.ai-msg.wait .ai-b { color: var(--muted); font-style: italic; animation: aiPulse 1.2s ease-in-out infinite; }
@keyframes aiPulse { 50% { opacity: .45; } }
.ai-msg.err .ai-b { background: var(--bad-soft); border-color: #f2c4bd; color: var(--bad); }
.ai-starters { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ai-starters[hidden] { display: none; }
.ai-starters button { border: 1px solid #bfe3e8; background: var(--brand-soft); color: var(--teal-ink); border-radius: 999px; padding: 6px 12px;
  font: 600 .84rem Inter, system-ui, sans-serif; cursor: pointer; text-align: left; }
.ai-starters button:hover { background: #cdeef2; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.ai-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; padding: 9px 12px; border-radius: 12px; font: inherit; font-size: .93rem; }
.ai-form .btn { height: 40px; min-width: 44px; }
.ai-note { margin: 0; padding: 4px 14px 10px; font-size: .72rem; color: var(--muted); }
.doc-ai-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 760px) {
  .ai-fab { right: 14px; bottom: 14px; padding: 12px 14px; }
  .ai-fab .ai-fab-t { display: none; }
  .ai-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
}
@media print { .ai-fab, .ai-panel { display: none !important; } }
.adm-main > .wrap { padding-bottom: 88px; }  /* room for the assistant button */

/* WhatsApp provider choice (Configuración → Mensajería) */
.wa-prov { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--brand-soft); padding: 4px; border-radius: 12px; margin: 2px 0 12px; }
.wa-prov label { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.wa-prov label:has(input:checked) { background: #fff; color: var(--teal-deep); box-shadow: 0 1px 4px rgba(15, 61, 69, .15); }
.wa-box[hidden], .wa-save-hint[hidden] { display: none; }

/* refunds of online card payments (participant → Resumen) */
.rf-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.rf-box h4 { margin: 0 0 8px; font-size: .95rem; }
.rf-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rf-row:last-child { border-bottom: 0; }
.rf-info { flex: 1; min-width: 200px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rf-form { flex-basis: 100%; }
.rf-form > summary { list-style: none; display: inline-flex; cursor: pointer; }
.rf-form > summary::-webkit-details-marker { display: none; }
.rf-form[open] > summary { margin-bottom: 10px; }
.rf-form form { background: var(--bad-soft); border: 1px solid #f2c4bd; border-radius: 12px; padding: 12px; }
.rf-neg { color: var(--bad); }
@media (min-width: 700px) { .rf-form:not([open]) { flex-basis: auto; } }

/* staff: charge a card (participant → Registrar pago) */
.cc-box { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--bg); }
.cc-box > summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--teal-deep); }
.cc-box[open] { padding-bottom: 14px; }
.cc-link { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--ok-soft); border: 1px solid #bfe0c9; }

/* Becas y descuentos */
.pm-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #fff1d6; color: #7a5200; border-radius: 999px; padding: 3px 10px; }
.pm-banner { border: 2px dashed var(--gold); background: #fffaf0; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.pm-banner.pm-off { border-color: var(--line); background: var(--bg); }
.pm-banner-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pm-price { font-size: 1.8rem; font-weight: 800; color: var(--teal-ink); margin: 6px 0 2px; }
.pm-price s { font-size: 1rem; font-weight: 600; margin-left: 6px; }
.pm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pm-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; }
.pm-card h2 { margin: 6px 0 0; font-size: 1.08rem; }
.pm-card:hover { box-shadow: 0 8px 24px rgba(15, 61, 69, .12); }
.pm-card.st-vencida, .pm-card.st-pausada { opacity: .7; }
.pm-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pm-price-row strong { font-size: 1.3rem; color: var(--teal-ink); }
.pm-meter { height: 8px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.pm-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); }
.pm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pm-stats .card { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-stats .label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pm-stats strong { font-size: 1.4rem; }
.pm-kind { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-kind label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 600; }
.pm-kind label:has(input:checked) { border-color: var(--teal); background: var(--brand-soft); }
.pm-cycles { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pm-portal { border: 2px dashed var(--gold); background: #fffaf0; }
.pm-portal-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.pm-portal-row:first-of-type { border-top: 0; }

/* Replies (Respuestas) + participant conversation */
.rp-list { display: flex; flex-direction: column; gap: 10px; }
.rp-item { margin: 0; padding: 14px 16px; }
.rp-item.unread { border-left: 4px solid var(--teal); }
.rp-head { display: flex; align-items: flex-start; gap: 10px; }
.rp-ch { font-size: 1.3rem; line-height: 1; }
.rp-who { flex: 1; min-width: 0; }
.rp-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 8px 32px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 32px; }
.convo { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; padding: 4px 2px; }
.cv { max-width: 86%; }
.cv.in { align-self: flex-start; }
.cv.out { align-self: flex-end; }
.cv-meta { font-size: .75rem; color: var(--muted); margin: 0 4px 2px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cv.out .cv-meta { justify-content: flex-end; }
.cv-b { padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.cv.in .cv-b { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cv.out .cv-b { background: var(--brand-soft); border-bottom-right-radius: 4px; }
@media (max-width: 600px) { .rp-body, .rp-actions { margin-left: 0; } .cv { max-width: 96%; } }

/* Responsables de llamadas */
.cl-list { display: flex; flex-direction: column; gap: 10px; }
.cl-item { margin: 0; padding: 14px 16px; }
.cl-item.off { opacity: .65; }
.cl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--teal-deep); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.cl-stat { display: flex; flex-direction: column; align-items: center; min-width: 74px; text-decoration: none; color: inherit; padding: 4px 8px; border-radius: 10px; }
a.cl-stat:hover { background: var(--brand-soft); }
.cl-stat strong { font-size: 1.25rem; color: var(--teal-ink); }
.cl-stat span { font-size: .72rem; color: var(--muted); }
.cl-more { margin-top: 10px; }
.cl-more > summary { cursor: pointer; color: var(--teal-deep); font-weight: 600; }
.cl-more .cl-form { margin-top: 10px; }
.cl-reassign select { max-width: 280px; min-width: 200px; }
.cl-loose { background: #fffaf0; border: 1px dashed var(--gold); }

/* Attendance check-in (kiosk) */
.ck-wrap { max-width: 560px; margin: 0 auto; }
.ck-head { text-align: center; margin: 6px 0 14px; }
.ck-head h1 { margin: 8px 0 0; }
.ck-card { padding: 22px; }
.ck-intro { font-size: 1.1rem; margin-top: 0; }
.ck-label { font-weight: 700; display: block; margin-bottom: 6px; }
.ck-phone { font-size: 1.8rem !important; padding: 14px 16px !important; text-align: center; letter-spacing: .04em; }
.ck-go { margin-top: 14px; font-size: 1.15rem; padding: 16px; }
.ck-hello { font-size: 1.6rem; font-weight: 800; margin: 0; color: var(--teal-ink); }
.ck-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.ck-list li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 600; padding: 10px 12px; border-radius: 12px; }
.ck-list li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; color: #fff; }
.ck-list li.yes { background: var(--ok-soft); } .ck-list li.yes span { background: var(--ok); }
.ck-list li.no { background: var(--bad-soft); } .ck-list li.no span { background: var(--bad); }
.ck-list li.wait { background: var(--brand-soft); } .ck-list li.wait span { background: var(--teal-deep); }
.ck-big { text-align: center; font-size: 1.5rem; font-weight: 800; padding: 18px; border-radius: 14px; }
.ck-big.ok { background: var(--ok-soft); color: var(--ok); }
.ck-box { margin-top: 14px; padding: 16px; border-radius: 14px; border: 2px dashed var(--teal); background: var(--brand-soft); text-align: center; }
.ck-box h2 { margin: 0 0 6px; font-size: 1.2rem; }
.ck-box.ck-warn { border-color: var(--orange); background: var(--warn-soft); }
.ck-qr { display: block; margin: 10px auto; background: #fff; border-radius: 12px; padding: 6px; width: 220px; height: 220px; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ck-kiosk { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.ck-kiosk > div { flex: 1; min-width: 0; }
.ck-kiosk img { background: #fff; border-radius: 8px; flex: 0 0 auto; }
.ck-table th.c, .ck-table td.c { text-align: center; }
.ck-table .today { background: var(--brand-soft); }
.ck-mark { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 800; font-size: 1rem; }
.ck-mark.yes { background: var(--ok); color: #fff; }
.ck-mark.no { background: #fff; border: 1.5px dashed var(--line); color: var(--muted); }
.ck-mark.no:hover { border-color: var(--teal); color: var(--teal-deep); }
@media (max-width: 600px) { .ck-kiosk img { display: none; } }
.ck-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 700px) { .ck-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ck-pay { border-color: var(--orange); background: var(--warn-soft); }
.ck-due { font-size: 1.15rem; margin: 0 0 10px; }
.ck-due strong { font-size: 1.5rem; }
.ck-pay-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 14px; text-align: left; }
.ck-pay-grid > div { flex: 1 1 200px; background: var(--surface, #fff); border-radius: 12px; padding: 12px; }
.ck-pay-phone { text-align: center; }
.ck-qr.sm { width: 160px; height: 160px; margin: 8px auto 0; }
.ck-pay-offline p { margin: 0 0 6px; }
.ck-report { display: grid; gap: 6px; margin-top: 8px; }

.ck-matches { display: grid; gap: 10px; }
.ck-matches form { margin: 0; }
.ck-match { width: 100%; display: grid; gap: 3px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line, #ddd);
  background: var(--surface, #fff); color: inherit; font: inherit; cursor: pointer; }
.ck-match strong { font-size: 1.15rem; }
.ck-match:hover, .ck-match:focus-visible { border-color: var(--teal); background: var(--brand-soft); }

/* Acuerdo de pago PL */
.ac-doc { line-height: 1.55; }
.ac-clauses { padding-left: 1.3em; }
.ac-clauses li { margin-bottom: 10px; }
.ac-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ac-sum > div { flex: 1 1 140px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.ac-sum .label { display: block; font-size: .8rem; color: var(--muted, #6b7779); }
.ac-sum strong { font-size: 1.25rem; }
.ac-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.ac-row { display: grid; grid-template-columns: 32px 1fr 1fr; gap: 10px; align-items: start; }
.ac-row[hidden] { display: none; }
.ac-row .field { margin: 0; }
.ac-n { width: 32px; height: 32px; margin-top: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.ac-plain td { padding: 4px 14px 4px 0; border: 0; }
.ac-sig-block { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.ac-sig-img { max-width: 320px; width: 100%; height: auto; background: #fff; border-bottom: 1px solid #14212b; display: block; margin-bottom: 6px; }
.ac-chip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .78rem; font-weight: 700; margin-right: 3px; background: var(--bg); color: var(--muted, #6b7779); border: 1px solid var(--line); }
.ac-chip.ac-pagada { background: var(--ok-soft); color: #1f5434; border-color: transparent; }
.ac-chip.ac-vencida { background: #f7d9d6; color: #8a2a20; border-color: transparent; }
.ac-chip.ac-hoy, .ac-chip.ac-proxima { background: var(--warn-soft); color: #7a4b00; border-color: transparent; }
@media (max-width: 520px) { .ac-row { grid-template-columns: 28px 1fr; } .ac-row .field:last-child { grid-column: 2; } }
.ac-mini { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }

.ac-in { display: inline-flex; align-items: center; gap: 1px; border-bottom: 2px solid var(--teal); background: var(--brand-soft); border-radius: 6px 6px 0 0; padding: 0 4px; font-weight: 700; }
.ac-in input { border: 0; background: transparent; padding: 2px 2px; font: inherit; font-weight: 700; color: inherit; min-height: 0; box-shadow: none; }
.ac-in.money input { width: 6.2em; }
.ac-in.date input { width: 10.5em; }
.ac-in input:focus { outline: 2px solid var(--teal); border-radius: 4px; }
.ac-in.bad { border-bottom-color: var(--bad); background: #fbe3e0; }
.ac-edited td { padding: 3px 12px 3px 0; }
.ac-resumen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }

.mms-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mms-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.mms-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); display: block; }
.mms-thumb.empty { display: grid; place-items: center; text-align: center; font-size: .8rem; color: var(--muted); padding: 8px; }
.mms-fields { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }

.msn-box summary { cursor: pointer; }
.msn-table td { vertical-align: middle; }
.msn-table input { width: 100%; min-width: 180px; }
.th-edit { text-decoration: none; font-size: .85em; margin-left: 4px; }

/* Básico landing: numbered benefits and the "observarte, elegir y crear" block */
.lp-numbered { counter-reset: none; }
.lp-numbered .lp-check { background: var(--coral, #e8735a); color: #fff; font-weight: 700; font-size: .85rem; }
.lp-exp { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.lp-questions { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.lp-questions li { font-weight: 700; color: var(--teal-ink); padding-left: 22px; position: relative; font-size: 1.08rem; }
.lp-questions li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange, #e8902c); }
.lp-exp-banner { background: var(--brand-soft); color: var(--teal-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  text-align: center; padding: 12px 16px; border-radius: 12px; margin: 8px 0 14px; }
.lp-chain { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chain li { flex: 1 1 220px; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-weight: 600; }

.pm-paid-line { margin: 6px 0 0; font-weight: 700; color: #1f5434; background: var(--ok-soft); border-radius: 10px; padding: 8px 12px; }
.pm-paid-by { display: block; margin-top: 6px; font-size: .78rem; font-weight: 700; line-height: 1.3; color: #1f5434; background: var(--ok-soft); border-radius: 8px; padding: 4px 8px; }

.tag.optout { background: #fbe3e0; color: #8a2a20; }
.fu-excl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.fu-excl a { text-decoration: none; }
.fu-saved { white-space: nowrap; }
.oo-box { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fbe3e0; color: #6f2219; }
.oo-box ul { margin: 6px 0 0; padding-left: 18px; }
.oo-box form { display: inline; }

/* calendar activity picture */
.pl-ev-img{display:block;margin:6px 0}
.pl-ev-img img{display:block;max-width:100%;max-height:260px;border-radius:10px;object-fit:cover;border:1px solid var(--line,#e2e2e2)}
.pl-img-prev{display:block;max-width:220px;max-height:160px;border-radius:8px;margin:0 0 6px;object-fit:cover}

/* kiosk correction request + staff review */
.ck-fix{margin-top:16px;border:1px dashed var(--line,#d6d6d6);border-radius:12px;padding:10px 14px}
.ck-fix summary{cursor:pointer;font-weight:600}
.fx-table{width:100%;border-collapse:collapse}
.fx-table th,.fx-table td{text-align:left;padding:4px 6px;border-bottom:1px solid var(--line,#eee)}
.fx-table tr.fx-changed td{background:rgba(242,193,78,.18)}
.fx-banner .fx-card{border-left:4px solid #E0A23A;margin-bottom:14px}

/* registration transferred to another person */
.tr-note{margin:-8px 0 14px;padding:8px 12px;border-radius:10px;background:rgba(224,162,58,.14);border-left:4px solid #E0A23A}
.tr-before{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px}
.tr-before dt{font-weight:600;color:var(--muted,#667)}
.tr-before dd{margin:0}

/* Llamadas | Registro view tabs + collapsible counters */
.pv-tabs{display:flex;gap:4px;margin:6px 0 10px;border-bottom:1px solid var(--line,#e2e2e2)}
.pv-tab{padding:8px 14px;border-radius:10px 10px 0 0;text-decoration:none;color:var(--muted);font-weight:600;border:1px solid transparent;border-bottom:none;margin-bottom:-1px}
.pv-tab:hover{color:var(--teal-deep)}
.pv-tab.on{color:var(--teal-deep);background:var(--card,#fff);border-color:var(--line,#e2e2e2)}
.pv-stats-btn .pv-hide{display:none}
.pv-stats-btn.on .pv-hide{display:inline}
.pv-stats-btn.on .pv-show{display:none}
.pv-stats-btn.on{background:var(--brand-soft)}
.fu-stats.pv-money{grid-template-columns:repeat(7,minmax(0,1fr))}
@media (max-width:1100px){.fu-stats.pv-money{grid-template-columns:repeat(4,1fr)}}
@media (max-width:560px){.fu-stats.pv-money{grid-template-columns:repeat(2,1fr)}}
.fu-stats .value small{font-size:.75rem;font-weight:600}
.pv-table td.pv-due{color:var(--bad);font-weight:600}

/* audit log */
.au-filters label{display:flex;align-items:center;gap:6px}
.au-table td{vertical-align:top}
.au-table tr.au-bad td{background:rgba(185,71,47,.06)}
.au-changes{margin:0;padding-left:16px}
.au-changes li{margin:2px 0;word-break:break-word}
.au-changes code{font-size:.78rem;background:var(--brand-soft,#eef5f4);padding:0 4px;border-radius:4px}
.au-old{color:var(--bad,#b9472f);text-decoration:line-through;text-decoration-thickness:1px}
.au-new{color:var(--ok,#2f7a4b);font-weight:600}
.au-detail details summary{cursor:pointer}

.ai-msg.err .ai-b { white-space: pre-wrap; }

/* Participant summary: clearly separated blocks */
.rs-block { padding: 18px 0; border-top: 1px solid var(--line); }
.rs-block:first-of-type { border-top: 0; padding-top: 2px; }
.rs-block.rs-glance { padding-bottom: 20px; }
.rs-block.rs-money { background: #f7fbfc; margin: 0 -24px; padding: 20px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rs-block.rs-money + .rs-block { border-top: 0; }
.rs-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-family: var(--display);
  font-size: 1.08rem; color: var(--teal-ink); }
.rs-code { font-size: .85rem; font-weight: 600; }
.rs-money .reg-trainings { margin: 0; }
.rs-money .table-wrap { background: #fff; border-radius: 12px; }
.rs-money .reg-trainings th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.rs-money .reg-trainings td { padding-top: 11px; padding-bottom: 11px; }
.rs-total td { border-top: 2px solid var(--line); background: var(--bg); font-weight: 600; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.rs-tags:empty { display: none; }
.rs-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rs-cols .balance { max-width: 560px; }
.rs-link { margin-top: 16px; }
.rs-person .kv { grid-template-columns: 140px 1fr; }
@media (max-width: 560px) {
  .rs-block.rs-money { margin: 0 -16px; padding: 16px; }
  .rs-money .table-wrap { overflow: visible; background: transparent; }
  .rs-table, .rs-table tbody, .rs-table tfoot, .rs-table tr, .rs-table td { display: block; }
  .rs-table thead { display: none; }
  .rs-table tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 10px; }
  .rs-table tr.cur { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
  .rs-table tr.cur td { background: transparent; }
  .rs-table td { padding: 2px 0 !important; border: 0 !important; text-align: left; }
  .rs-table td:first-child { grid-column: 1 / 3; }
  .rs-table td.rs-cyc { grid-column: 3; text-align: right; color: var(--muted); }
  .rs-table td:nth-child(3) { grid-column: 1 / -1; font-size: .85rem; }
  .rs-table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .rs-table td:last-child { grid-column: 1 / -1; margin-top: 4px; }
  .rs-table tr.muted td:nth-child(2) { grid-column: 1 / -1; }
  .rs-table tfoot tr { background: var(--bg); }
  .rs-table tfoot td:first-child { grid-column: 1 / -1; }
  .rs-table tfoot td:nth-child(3) { grid-column: auto; font-size: inherit; }
  .rs-table tfoot td:last-child:empty { display: none; }
}
.rs-cols .kv { margin: 0; }
@media (max-width: 760px) {
  .rs-cols { grid-template-columns: minmax(0, 1fr); }
  .rs-person .kv, .rs-this .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .rs-person .kv dd, .rs-this .kv dd { margin-bottom: 8px; }
}

/* Llamadas: bulk delete, No contactar, posibilidad */
.bd-btn { color: var(--bad); }
.tag.pos { background: #fff1d6; color: #7a5200; }
.dnc-btn { font: 700 .75rem/1 var(--body, inherit); border: 1px solid #f3c1bb; background: #fdecea; color: #9b2c1e;
  border-radius: 999px; padding: 4px 9px; cursor: pointer; }
.dnc-btn:hover { background: #fbd9d4; }
.dnc-dlg { border: 0; border-radius: 16px; padding: 20px; width: min(380px, calc(100vw - 32px)); box-shadow: 0 20px 60px -20px rgba(0,0,0,.45); }
.dnc-dlg::backdrop { background: rgba(10, 30, 35, .45); }
.dnc-dlg input { width: 100%; }
select.js-save[disabled] { opacity: .55; cursor: not-allowed; }
.dnc-box { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  background: #fdecea; border: 1px solid #f3c1bb; color: #7a2418; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.dnc-box > div:first-child { flex: 1 1 260px; }
.pos-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
  background: #fff8e8; border: 1px solid #f1dca8; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
/* Registrar pago: saved notes */
.pn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.pn-row select { flex: 1 1 240px; min-width: 0; }
.pn-manage { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.pn-item { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.pn-item input[name="text"] { flex: 1; min-width: 0; }
.pn-new { margin-top: 10px; }
.dnc-btn.soft { background: #eef3f4; border-color: #cfdcdf; color: var(--teal-ink, #134049); }
.dnc-box.soft { background: #f3f7f8; border-color: #d3e1e4; color: var(--teal-ink, #134049); }
.spread { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.spread-list { display: flex; flex-wrap: wrap; gap: 4px 12px; max-height: 160px; overflow: auto; margin-bottom: 8px; }

/* Programa de Liderazgo: weekends + Team Factor */
.pl-sched th.pl-part { white-space: nowrap; text-align: left; font-size: .85rem; color: var(--teal-ink, #134049); padding-right: 10px; }
.pl-blocks { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pl-block.pl-team_factor { border-color: #e9a464; background: linear-gradient(180deg, #fff8ee, #fff); }
.pl-block.pl-team_factor .lp-day-num { color: #b0611a; }
.pl-weekdays { margin: -4px 0 8px; text-transform: capitalize; }
.pl-rest { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--line, #ddd); font-style: italic; }

/* Encuestas */
.sv-intro { font-size: 1.05rem; margin: 6px 0 14px; }
.sv-form { display: grid; gap: 18px; }
.sv-q { border: 0; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.sv-q legend { font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.sv-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft, #ddf2f5); color: var(--teal-ink, #134049); font-size: .8rem; }
.sv-q.has-error legend { color: #b3261e; }
.sv-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sv-pill span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; font-weight: 700; }
.sv-stars .sv-pill span { color: #e3a22a; letter-spacing: -1px; }
.sv-pill input:checked + span { background: var(--teal, #1f8796); border-color: var(--teal, #1f8796); color: #fff; }
.sv-pill input:focus-visible + span { outline: 3px solid var(--coral, #ee7b6e); outline-offset: 2px; }
.sv-ends { display: flex; justify-content: space-between; margin-top: 6px; }
.sv-choices { display: grid; gap: 6px; }
.sv-done-ico { font-size: 42px; }
.sv-qtable input, .sv-qtable select { width: 100%; min-width: 0; }
.sv-qtable td:nth-child(2) { min-width: 280px; }
.sv-qtable tr.sv-empty input[name$="_text"] { background: #fafcfc; }
.sv-qtable td.c { text-align: center; }
.sv-res { padding: 14px 0; border-top: 1px solid var(--line); }
.sv-res h3 { margin: 0 0 8px; font-size: 1rem; }
.sv-bars { display: grid; gap: 4px; max-width: 560px; }
.sv-bar { display: grid; grid-template-columns: 90px 1fr 36px; gap: 8px; align-items: center; font-size: .85rem; }
.sv-k { color: #b0761a; white-space: nowrap; }
.sv-track { background: var(--bg, #f3f7f8); border-radius: 6px; height: 14px; overflow: hidden; }
.sv-fill { display: block; height: 100%; background: linear-gradient(90deg, #33bbcb, #1f8796); border-radius: 6px; }
.sv-c { text-align: right; }
.sv-texts { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 560px) { .sv-pill span { min-width: 34px; height: 36px; } .sv-bar { grid-template-columns: 70px 1fr 30px; } }
.fu-stats.sv-stats { grid-template-columns: repeat(3, minmax(0, 220px)); }
@media (max-width: 560px) { .fu-stats.sv-stats { grid-template-columns: repeat(2, 1fr); } }

/* Reglas automáticas */
.ar-list { display: grid; gap: 8px; margin-top: 8px; }
.ar-item > summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; cursor: pointer; list-style: none; }
.ar-item > summary::-webkit-details-marker { display: none; }
.ar-item.off > summary strong { color: var(--muted); }
.ar-form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.ar-when select, .ar-when input { width: auto; }
.ar-new > summary { color: var(--teal, #1f8796); }

/* Mensajes page */
.mx-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.mx-guide > div { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mx-guide .mx-n { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft, #ddf2f5); color: var(--teal-ink, #134049); font-weight: 800; }
.mx-tabs { margin-bottom: 12px; }
.mx-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.07); font-size: .75rem; text-align: center; }
.mx-lead { margin: 0 0 12px; max-width: 900px; }
.mx-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mx-tpl { display: flex; flex-direction: column; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.mx-tpl.off { opacity: .6; }
.mx-tpl.saved { box-shadow: 0 0 0 3px #b8e6c6; }
.mx-tpl-main { display: grid; gap: 4px; padding: 14px; color: inherit; text-decoration: none; flex: 1; }
.mx-tpl-main:hover strong { text-decoration: underline; }
.mx-tpl-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); background: #f8fbfb; }
.mx-col { font-size: .85rem; font-weight: 600; }
.mx-tpl-new { align-items: center; justify-content: center; min-height: 120px; border-style: dashed; color: var(--teal, #1f8796); font-weight: 700; text-decoration: none; }
.mx-sys { display: grid; gap: 8px; }
.mx-sys-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 18px; align-items: center;
  background: var(--card, #fff); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
.mx-sys-row.on { border-left-color: #2e9e6a; }
.mx-sys-what { display: grid; gap: 2px; }
.mx-sys-pick { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.mx-sys-pick select { max-width: 280px; }
.mx-today { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
@media (max-width: 760px) {
  .mx-guide { grid-template-columns: 1fr; }
  .mx-sys-row { grid-template-columns: 1fr; }
  .mx-sys-pick { justify-content: flex-start; }
}
.rp-hook { border-left: 4px solid #e3a22a; background: #fffaf0; margin-bottom: 12px; }

/* Replies in Llamadas */
.rp-badge { font: 700 .75rem/1 var(--body, inherit); border: 1px solid #9bd3b2; background: #e9f8ef; color: #17643c; border-radius: 999px; padding: 4px 9px; cursor: pointer; }
.rp-badge:hover { background: #d6f2e1; }
.rp-badge .rp-n { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 2px; border-radius: 999px; background: #17643c; color: #fff; font-size: .7rem; }
.rp-badge.pulse { animation: rpPulse 1.2s ease-in-out 4; }
@keyframes rpPulse { 50% { box-shadow: 0 0 0 6px rgba(46, 158, 106, .25); } }
@media (prefers-reduced-motion: reduce) { .rp-badge.pulse { animation: none; } }
tr.has-reply > td:first-child { box-shadow: inset 4px 0 0 #2e9e6a; }
.rp-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
  background: #eefaf3; border: 1px solid #b9e3c9; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.rp-dlg { width: min(460px, calc(100vw - 32px)); }
.rp-dlg-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.rp-dlg-msg { background: #f3f7f8; border-radius: 12px 12px 12px 4px; padding: 8px 12px; white-space: pre-wrap; }
.rp-freq { margin-bottom: 12px; }
.na-btn { display: block; margin-top: 4px; font: 600 .72rem/1 var(--body, inherit); border: 1px solid var(--line); background: #fff;
  color: var(--muted); border-radius: 999px; padding: 4px 8px; cursor: pointer; }
.na-btn:hover { border-color: #e3a22a; color: #8a5a00; }

/* Reportes */
.rpt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 12px; }
.rpt-card { display: grid; gap: 6px; padding: 18px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px;
  color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.rpt-card:hover { box-shadow: 0 10px 28px -16px rgba(0,0,0,.35); transform: translateY(-1px); }
.rpt-card strong { font-size: 1.05rem; }
.rpt-ico { font-size: 28px; }
.rpt-n { justify-self: start; margin-top: 4px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef3f4; }
.rpt-n.warn { background: #fdecea; color: #9b2c1e; }
.rpt-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
  background: var(--card, #fff); border: 1px solid var(--line); border-left: 4px solid var(--teal, #1f8796); border-radius: 12px; padding: 12px 14px; }
.rpt-head.soon { border-left-color: #d9534f; background: #fff7f6; }
.rpt-table td { vertical-align: top; }
.rpt-table tr.ag-vencido > td:first-child { box-shadow: inset 4px 0 0 #d9534f; }
.fu-stats.rpt-stats { grid-template-columns: repeat(4, minmax(0, 200px)); margin-bottom: 12px; }
@media (max-width: 640px) { .fu-stats.rpt-stats { grid-template-columns: repeat(2, 1fr); } }

/* sortable table columns */
th.th-sort { cursor: pointer; user-select: none; }
th.th-sort:hover { color: var(--teal-deep, #14535e); background: rgba(51, 187, 203, .08); }
th.th-sort:focus-visible { outline: 2px solid #1F8796; outline-offset: -2px; }
th.th-sort::after { content: "↕"; margin-left: 4px; font-size: .85em; opacity: .3; }
th.th-sort[aria-sort="ascending"]::after { content: "▲"; opacity: .9; color: #1F8796; }
th.th-sort[aria-sort="descending"]::after { content: "▼"; opacity: .9; color: #1F8796; }

/* do not contact (STOP) */
.oo-tag { background: #fde8e6; color: #9b2c22; border-color: #f3b9b2; font-weight: 700; }
.pill.oo-pill { background: #c0392b; color: #fff; }
.oo-banner { margin-bottom: 14px; }
/* Registro y pagos: date range */
.rg-range { display: inline-flex; gap: 6px; align-items: center; }
.rg-range[hidden] { display: none; }
.rg-range input[type=date] { width: auto; }
.pill.rg-new { font-size: 11px; padding: 1px 7px; }
.fu-toolbar .fu-filters { flex-wrap: wrap; }

.sw-chans { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: var(--soft, #f3f7f8); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.sw-chans label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; margin: 0; }
.sw-chans label.off { opacity: .55; }
.sw-chans input { width: auto; margin: 0; }

/* Zelle / Venmo inside the registration form */
.off-pay .off-lead{margin:0 0 12px}
.off-step{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid #e6eef0}
.off-step:first-of-type{border-top:0}
.off-n{flex:none;width:28px;height:28px;border-radius:50%;background:#144450;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.off-body{flex:1;min-width:0}
.off-body .send-to,.off-body .memo-box{margin-top:8px}

/* Klarna how-to video in the payment step (only when Klarna is chosen) */
.klarna-video video{display:block;width:100%;height:auto;border-radius:12px;background:#0f1d2b}

/* Wide staff pages use the whole screen; wide tables get visible scroll bars (top and bottom) and ◀ ▶ */
.adm-main > .wrap.xwide { max-width: none; padding-left: 20px; padding-right: 20px; }
@media (min-width: 1500px) { .adm-main > .wrap.wide { max-width: 1400px; } }
.table-wrap { scrollbar-width: auto; scrollbar-color: #8fa6ab #eef3f4; }
.table-wrap::-webkit-scrollbar, .hscroll-top::-webkit-scrollbar { height: 12px; width: 12px; }
.table-wrap::-webkit-scrollbar-track, .hscroll-top::-webkit-scrollbar-track { background: #eef3f4; border-radius: 6px; }
.table-wrap::-webkit-scrollbar-thumb, .hscroll-top::-webkit-scrollbar-thumb { background: #8fa6ab; border-radius: 6px; border: 2px solid #eef3f4; }
.table-wrap::-webkit-scrollbar-thumb:hover, .hscroll-top::-webkit-scrollbar-thumb:hover { background: #5c7177; }
.hscroll-top { overflow-x: auto; overflow-y: hidden; height: 14px; margin: 0 0 2px; scrollbar-width: auto; scrollbar-color: #8fa6ab #eef3f4; }
.hscroll-top > div { height: 1px; }
.hscroll-nav { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 4px; position: sticky; left: 0; }
.hs-btn { min-width: 40px; min-height: 32px; padding: 2px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .9rem; }
.hs-btn:hover:not(:disabled) { background: var(--brand-soft); }
.hs-btn:disabled { opacity: .35; cursor: default; }

.call-log .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.call-del { display: inline; margin-left: auto; }
.call-del .linkish { background: none; border: 0; cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: .9rem; opacity: .55; }
.call-del .linkish:hover, .call-del .linkish:focus-visible { opacity: 1; background: #fde7e3; }
.pay-video{margin:0 0 14px;padding:12px;border:1px solid #e3e6ec;border-radius:14px;background:#fbfaf8}
.foot-credit{margin-top:8px;font-size:.75rem}
.foot-credit a{font-weight:600;text-decoration:underline}

/* PL weekends: group headers over the day columns (Asistencia) and the day chips (QR scan) */
.ck-groups .ck-grp { font-size: .8rem; text-transform: none; border-left: 2px solid var(--line, #ddd); border-bottom: 1px solid var(--line, #ddd); }
.tks-grp { flex-basis: 100%; font-size: .8rem; font-weight: 700; margin-top: 6px; color: var(--muted, #667); }
.tks-grp:first-child { margin-top: 0; }
