/* Activation: Inicio's checklist card and the full-screen steps (/activar/*).
 * Only app.css's tokens, so light and dark follow the app's theme.
 * Prefix act-. Every control is at least 44px tall. */

.act-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Inicio: the card sits above the two columns ─────────────────────── */

.page.home-page { display: flex; flex-direction: column; }
.page.home-page > .home { flex: 1 1 auto; min-height: 0; height: auto; }
@container homepage (max-width: 1149.98px) {
  .page.home-page > .home { flex: none; }
  .act-card, .act-hidden { margin-left: var(--gutter); margin-right: var(--gutter); }
}
.act-slot { display: none; }

.act-card {
  flex: none;
  margin: 16px 28px 0;
  padding: 22px 24px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.act-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.act-head-text { min-width: 0; }
.act-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.act-sub { margin: 4px 0 0; color: var(--text-2); }
.act-head-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.act-primary, .act-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 600;
  transition: background-color 80ms linear, opacity 80ms linear;
}
.act-primary { background: var(--text); color: var(--bg); }
.act-primary:hover { opacity: .88; }
.act-quiet { color: var(--text-2); font-weight: 500; }
.act-quiet:hover { background: var(--hover); }

.act-bar { height: 4px; border-radius: 2px; background: var(--seg-bg); overflow: hidden; }
.act-bar-fill { display: block; height: 100%; border-radius: 2px; background: var(--success); transition: width 240ms var(--ease-out-cubic); }

.act-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.act-tile-in {
  height: 100%; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface);
  transition: background-color 80ms linear, border-color 80ms linear;
}
a.act-tile-in:hover { background: var(--hover); border-color: var(--text-2); }
a.act-tile-in:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.act-badge {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--seg-bg); color: var(--text);
}
.act-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-tile-title { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.act-tile-sub { color: var(--text-2); font-size: 13px; line-height: 1.35; }
.act-tile-go { margin-top: 6px; color: var(--text); font-weight: 600; font-size: 13px; }
.act-tile.is-done .act-tile-in { background: transparent; border-style: dashed; }
.act-tile.is-done .act-badge { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.act-tile.is-done .act-tile-title, .act-tile.is-done .act-tile-sub { color: var(--muted); }
.act-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--muted);
  padding: 1px 8px; border-radius: 10px; background: var(--seg-bg);
}

.act-foot { margin: 0; padding-top: 2px; }
.act-book { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; min-height: 32px; }
.act-book:hover { color: var(--text); text-decoration: underline; }

.act-hidden { margin: 16px 28px 0; color: var(--muted); font-size: 13px; }
.act-hidden a { color: var(--text-2); text-decoration: underline; }

/* By Inicio's own width (its container), not the window's: the sidebar
   takes a different share at each size. */
@container homepage (max-width: 980px) { .act-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container homepage (max-width: 560px) {
  .act-card { padding: 18px 16px 14px; }
  .act-tiles { grid-template-columns: minmax(0, 1fr); }
  .act-head-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .act-head-actions .act-primary { flex: 1; min-height: 44px; white-space: nowrap; }
}

/* ── The step pages ──────────────────────────────────────────────────── */

.act-body { overflow: auto; background: var(--bg); }
.act-page { min-height: calc(100dvh / var(--zoom)); display: flex; flex-direction: column; }

.act-top {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 12px 24px; background: var(--bg);
}
.act-back, .act-later {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: var(--text-2);
  transition: background-color 80ms linear, color 80ms linear;
}
.act-back { width: 44px; }
.act-later { padding: 0 14px; font-weight: 500; white-space: nowrap; }
.act-back:hover, .act-later:hover { background: var(--hover); color: var(--text); }
.act-segs { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 420px; display: flex; gap: 6px; }
.act-seg { flex: 1; height: 6px; border-radius: 3px; background: var(--border); transition: background-color 200ms linear; }
.act-seg.is-done { background: color-mix(in srgb, var(--success) 70%, var(--bg)); }
.act-seg.is-current { background: var(--text); }

.act-main { width: 100%; max-width: 680px; margin: 0 auto; padding: 36px 24px 150px; }
.act-eyebrow {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted);
}
.act-done-tag {
  display: inline-flex; align-items: center; gap: 4px; letter-spacing: .4px;
  padding: 2px 8px; border-radius: 10px; color: var(--success);
  background: color-mix(in srgb, var(--success) 14%, transparent);
}
.act-q { margin: 12px 0 10px; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.7px; }
.act-explain { margin: 0 0 28px; color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 560px; }
.act-note {
  display: flex; align-items: center; gap: 8px; margin: -12px 0 24px;
  color: var(--text-2); font-size: 13px;
}

.act-form { margin: 0; }
.act-group {
  margin: 0 0 14px; padding: 20px; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
}
fieldset.act-group { border: 1px solid var(--border); }
/* A legend sits on the fieldset's border by default: inside the card instead. */
fieldset.act-group > legend { float: left; width: 100%; }
fieldset.act-group > legend + * { clear: both; }
.act-group-title { margin: 0 0 12px; padding: 0; font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.act-group-help { margin: -4px 0 14px; color: var(--text-2); font-size: 13px; line-height: 1.5; }

.act-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.act-chip { position: relative; display: inline-flex; }
.act-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.act-chip > span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 22px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 500; color: var(--text);
  transition: background-color 80ms linear, border-color 80ms linear, color 80ms linear;
}
.act-chip:hover > span { border-color: var(--text-2); }
.act-chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.act-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.act-chip-two > span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 6px 16px; border-radius: 12px; line-height: 1.25; }
.act-chip-two small { font-size: 12px; color: var(--muted); }
.act-chip-two input:checked + span small { color: inherit; opacity: .75; }
fieldset[disabled] .act-chip { opacity: .55; }
fieldset[disabled] .act-chip input { cursor: default; }

.act-invite { display: flex; flex-direction: column; gap: 8px; }
.act-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.act-input {
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); font-size: 15px;
}
.act-input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.act-secondary {
  align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600;
  transition: background-color 80ms linear;
}
.act-secondary span { display: inline-flex; align-items: center; gap: 8px; }
.act-secondary:hover { background: var(--hover); }
.act-secondary:disabled { opacity: .6; cursor: default; }

/* Tu negocio's "Pegá el link de tu web": the field and its button on one
   row, the guess's note (or the error) under them. */
.act-web { display: flex; flex-direction: column; }
.act-web > label.act-group-title { display: block; }
.act-web-row { display: flex; gap: 8px; align-items: stretch; }
.act-web-row .act-input { flex: 1 1 auto; min-width: 0; }
.act-web-go { margin-top: 0; align-self: stretch; min-height: 48px; white-space: nowrap; }
.act-web-busy { display: inline-flex; align-items: center; gap: 8px; }
.act-web-msg {
  display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0;
  padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45;
}
.act-web-msg > svg { flex: none; margin-top: 2px; }
.act-web-msg.is-note { background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--text); }
.act-web-msg.is-note > svg { color: var(--success); }
.act-web-msg.is-error { background: color-mix(in srgb, var(--error) 10%, transparent); color: var(--text); }
.act-web-msg.is-error > svg { color: var(--error); }
.act-web .act-input[aria-invalid="true"] { border-color: var(--error); }

.act-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.act-person {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.act-person:first-child { border-top: 0; padding-top: 0; }
.act-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--seg-bg); color: var(--text-2); font-weight: 700;
}
.act-person-text { display: flex; flex-direction: column; min-width: 0; }
.act-person-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-person-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-role { color: var(--text-2); font-size: 13px; }
.act-person.is-new { background: color-mix(in srgb, var(--success) 8%, transparent); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 12px; }
.act-copy {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 10px; color: var(--text); font-weight: 600; font-size: 13px;
}
.act-copy:hover { background: var(--hover); }
.act-link-help { grid-column: 2 / -1; margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.45; }

.act-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; }
.act-soon-ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--seg-bg); color: var(--text-2);
}
.act-soon-ic.is-done { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.act-soon-title { margin: 0; font-size: 17px; font-weight: 700; }
.act-soon .act-group-help { margin: 0; }

/* The first forecast's training card (_training.html): under Tus datos'
   upload summary and on "Tu primer plan". The icon breathes while it runs;
   reduced motion keeps it still. */
.act-train { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }
.act-up .act-train { margin-top: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.act-train-ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary);
}
.act-train-ic.is-busy { animation: act-breathe 1.8s ease-in-out infinite; }
.act-train-ic.is-done { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.act-train-ic.is-bad { background: color-mix(in srgb, var(--error) 14%, transparent); color: var(--error); }
@keyframes act-breathe { 50% { transform: scale(1.06); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .act-train-ic.is-busy { animation: none; } }
.act-train-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
.act-train .act-group-help { margin: 0; }
.act-train-state { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.act-train-bar { width: 100%; height: 8px; border-radius: 4px; background: var(--seg-bg); overflow: hidden; }
.act-train-fill { display: block; height: 100%; border-radius: 4px; background: var(--primary); transition: width 600ms var(--ease-out-cubic); }
.act-train-note { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.act-train-go {
  margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600; transition: opacity 80ms linear;
}
.act-train-go:hover { opacity: .88; }
.act-tile-busy { display: inline-flex; align-items: center; gap: 6px; }
.act-tile-busy .act-spin { width: 12px; height: 12px; border-width: 2px; }

/* Tus datos: the connector cards and their search, the booking card, the
   sales file's drop zone and its summary. */
.act-search { position: relative; display: block; margin-bottom: 14px; }
.act-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; pointer-events: none; }
.act-search-input { width: 100%; padding-left: 44px; }
.act-cnx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.act-cnx-in {
  height: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background-color 80ms linear, border-color 80ms linear;
}
a.act-cnx-in:hover { background: var(--hover); border-color: var(--text-2); }
a.act-cnx-in:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.act-cnx-logo {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--seg-bg);
}
.act-cnx-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.act-cnx-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-cnx-kind { color: var(--muted); font-size: 12px; }
.act-cnx-go { margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.act-cnx-card.is-on .act-cnx-in { border-color: color-mix(in srgb, var(--success) 50%, var(--border)); }
.act-cnx-card.is-on .act-cnx-go { color: var(--success); }
.act-cnx-card.is-soon .act-cnx-in { background: transparent; border-style: dashed; }
.act-cnx-card.is-soon .act-cnx-name, .act-cnx-card.is-soon .act-cnx-go { color: var(--muted); }
.act-cnx-none { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }

.act-build { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.act-build-text { min-width: 0; flex: 1 1 280px; }
.act-build .act-group-help { margin-bottom: 0; }
.act-build-go { margin-top: 0; align-self: center; }

.act-up code { font-size: 12px; padding: 1px 5px; border-radius: 6px; background: var(--seg-bg); }
.act-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 132px; padding: 18px; border-radius: 14px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--border); background: var(--surface); color: var(--text-2);
  transition: background-color 80ms linear, border-color 80ms linear;
}
.act-drop:hover, .act-drop.is-over { border-color: var(--text-2); background: var(--hover); }
.act-drop:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.act-drop.is-busy { cursor: progress; }
.act-drop-ic { color: var(--text-2); display: inline-flex; }
.act-drop-text { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.act-drop-text u { text-underline-offset: 2px; }
.act-drop-hint { color: var(--muted); font-size: 12px; }
.act-template { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.act-template:hover { color: var(--text); text-decoration: underline; }
.act-up .act-web-msg { margin: 0 0 12px; }
.act-up .act-note { margin: 0; }

.act-up-done {
  display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; padding: 14px;
  border-radius: 12px; background: color-mix(in srgb, var(--success) 10%, transparent);
}
.act-up-ic { color: var(--success); display: inline-flex; flex: none; }
.act-up-text { min-width: 0; }
.act-up-name { margin: 0; overflow-wrap: anywhere; }
.act-up-line { margin: 4px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.act-up-warns { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.act-up-warns li { display: flex; align-items: flex-start; gap: 6px; }
.act-up-warns svg { flex: none; margin-top: 1px; color: var(--warning); }
.act-up-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.act-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.act-footer-in {
  max-width: 680px; margin: 0 auto; padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.act-summary { min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-next {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; min-width: 132px; padding: 0 26px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600;
  transition: opacity 80ms linear;
}
.act-next:hover { opacity: .88; }
.act-next:disabled { opacity: .35; cursor: default; }

.act-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--bg) 40%, transparent); border-top-color: var(--bg);
  animation: act-spin .8s linear infinite;
}
.act-spin-dark { border-color: color-mix(in srgb, var(--text) 25%, transparent); border-top-color: var(--text); }
@keyframes act-spin { to { transform: rotate(360deg); } }

.act-toasts {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.act-toast {
  max-width: min(480px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px;
  background: var(--tooltip-bg); color: #fff; box-shadow: var(--fab-shadow); font-size: 14px;
}
.act-toast[data-kind="bad"] { background: var(--error); }

@media (max-width: 600px) {
  .act-top { padding: 8px 12px; gap: 8px; }
  .act-main { padding: 20px 16px 140px; }
  .act-q { font-size: 26px; letter-spacing: -.4px; }
  .act-explain { font-size: 15px; margin-bottom: 20px; }
  .act-group { padding: 16px; border-radius: 14px; }
  .act-footer-in { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .act-next { min-width: 112px; padding: 0 20px; }
  .act-web-row { flex-direction: column; }
  .act-cnx-grid { grid-template-columns: minmax(0, 1fr); }
  .act-build-go { width: 100%; }
  .act-person { grid-template-columns: 36px minmax(0, 1fr); }
  .act-person .act-role, .act-person .act-copy { grid-column: 2; justify-self: start; }
}
