/* academias.html — page-specific composition. Tokens and shared
   components (.k-btn, .k-nav, footer, calendly) come from theme-dark.css.
   Accent stays the default royal blue (--k-live). Mock UI follows the
   index hero screens: hairline borders, no glow, tabular numbers, and
   colour only where something needs attention (full group, surcharge). */

.k-section { padding: var(--section-y) var(--gutter); }
.k-section .k-container { padding-inline: 0; }
.k-eyebrow { display: block; }

h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: var(--ls-display); }
h3 { font-size: var(--fs-h3); letter-spacing: var(--ls-tight); }

.ac-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 44px; }
.ac-head > p:last-child { color: var(--text-muted); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.ac-head--center { margin-inline: auto; text-align: center; align-items: center; }

.ac-code { font-family: var(--font-mono); font-size: .92em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ac-t { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-faint); }
.ac-pill {
  display: inline-block; width: fit-content; padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 11px; color: var(--text-muted); background: var(--surface-inset);
}
.ac-pill--ok   { color: var(--k-ok);   background: var(--k-ok-dim); }
.ac-pill--danger { color: var(--k-danger); background: var(--k-danger-dim); }

/* ── HERO ─────────────────────────────────────────────────────────── */
.ac-hero { padding: 104px var(--gutter) 56px; }
.ac-hero__inner {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; align-items: center;
}
.ac-hero__copy { display: flex; flex-direction: column; gap: 22px; }
.ac-kicker {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--k-live);
}
.ac-hero h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.06; }
.ac-hero__sub { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--text-muted); max-width: 500px; }
.ac-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ac-hero__proof { font-size: var(--fs-body-sm); color: var(--text-faint); }
.ac-hero__proof a { color: var(--text-secondary); border-bottom: 1px solid var(--border-strong); }
.ac-hero__proof a:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* Mascot, right of the hero copy */
.ac-hero__mascot { display: flex; justify-content: center; align-items: center; position: relative; }
.ac-hero__mascot::before {
  content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgb(var(--live-rgb) / .10), rgb(var(--live-rgb) / 0) 68%);
}
.ac-hero__mascot img { position: relative; width: min(100%, 380px); height: auto; filter: drop-shadow(0 26px 34px var(--shadow-soft)); }
@media (max-width: 760px) {
  .ac-hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .ac-hero__mascot { order: -1; justify-content: flex-start; }
  .ac-hero__mascot::before { display: none; }
  .ac-hero__mascot img { width: 132px; }
}

/* ── PANEL SCREENSHOT ─────────────────────────────────────────────── */
.ac-shot { padding: 0 var(--gutter) 64px; }
.ac-shot__frame {
  max-width: var(--container-max); margin: 0 auto; overflow: hidden;
  border: 1px solid var(--border-hairline); border-radius: 16px; background: var(--frame-bg);
  box-shadow: var(--shadow-shot);
}
.ac-shot__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: var(--frame-bar); border-bottom: 1px solid var(--frame-line); }
.ac-shot__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--frame-dot); }
.ac-shot__bar span { margin-left: 12px; font-size: 12px; color: var(--text-faint); }
.ac-shot__frame img { display: block; width: 100%; height: auto; }
.ac-shot__cap { max-width: var(--container-max); margin: 14px auto 0; font-size: var(--fs-caption); color: var(--text-faint); text-align: center; }
@media (max-width: 560px) {
  .ac-shot { padding-bottom: 44px; }
  .ac-shot__frame { border-radius: 10px; }
  .ac-shot__bar { height: 26px; padding: 0 10px; gap: 5px; }
  .ac-shot__bar i { width: 7px; height: 7px; }
  .ac-shot__bar span { display: none; }
}

/* ── PARA QUIÉN ───────────────────────────────────────────────────── */
.ac-who { padding: 40px var(--gutter); border-top: 1px solid var(--border-faint); border-bottom: 1px solid var(--border-faint); background: var(--surface-card); }
.ac-who__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-inline: 0; }
.ac-who__def { color: var(--text-secondary); line-height: var(--lh-relaxed); max-width: 58ch; }
.ac-who__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-who__list li {
  padding: 6px 12px; border: 1px solid var(--border-hairline); border-radius: var(--radius-pill);
  font-size: 13px; color: var(--text-muted);
}
@media (max-width: 860px) { .ac-who__inner { grid-template-columns: 1fr; gap: 24px; } }

/* ── SPLIT LAYOUT (heading left, content right) ──────────────────── */
.ac-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.ac-split__head { display: flex; flex-direction: column; gap: 14px; }
.ac-split__head > p:not(.k-eyebrow) { color: var(--text-muted); line-height: var(--lh-relaxed); }
.ac-split__head--sticky { position: sticky; top: 110px; }
@media (max-width: 860px) {
  .ac-split { grid-template-columns: 1fr; gap: 32px; }
  .ac-split__head--sticky { position: static; }
}

/* Pains */
.ac-pains { list-style: none; counter-reset: pain; border-top: 1px solid var(--border-hairline); }
.ac-pains li {
  counter-increment: pain; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--border-hairline);
}
.ac-pains li::before { content: counter(pain, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.ac-pains p { font-size: 18px; line-height: 1.45; color: var(--text-primary); }
.ac-pains span { font-family: var(--font-mono); font-size: 11px; color: var(--k-live); white-space: nowrap; }
@media (max-width: 560px) {
  .ac-pains li { grid-template-columns: 28px minmax(0, 1fr); }
  .ac-pains span { grid-column: 2; }
  .ac-pains p { font-size: 17px; }
}

/* ── MÓDULOS ──────────────────────────────────────────────────────── */
.ac-mods-sec { background: var(--surface-card); border-top: 1px solid var(--border-faint); border-bottom: 1px solid var(--border-faint); }
.ac-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border-faint); border: 1px solid var(--border-faint); border-radius: var(--radius-md); overflow: hidden; }
.ac-mod { background: var(--surface-card); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.ac-mod p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }
.ac-mod__ui {
  min-height: 132px; margin-bottom: 8px; padding: 14px; font-size: 12px;
  background: var(--surface-page); border: 1px solid var(--border-faint); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.ac-mod__ui--row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
@media (max-width: 980px) { .ac-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ac-mods { grid-template-columns: 1fr; } }

.ac-mini-lines > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border-faint);
}
.ac-mini-lines dd { font-variant-numeric: tabular-nums; color: var(--text-primary); white-space: nowrap; }
.is-minus dd { color: var(--text-muted); }
.is-charge dd { color: var(--k-danger); }
.is-ok dd { color: var(--k-ok); }
.ac-form > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-faint); }
.ac-form span { color: var(--text-faint); }
.ac-form b { font-weight: var(--fw-regular); color: var(--text-primary); text-align: right; display: flex; flex-direction: column; }
.ac-form em { font-style: normal; font-size: 10.5px; color: var(--k-ok); }
.ac-mini-lines dt { color: var(--text-secondary); }
.ac-mini-lines > div:last-child { border-bottom: 0; }

.ac-heat { display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); gap: 5px; align-items: center; }
.ac-heat span { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); text-align: center; }
.ac-heat span:nth-child(4n+1) { text-align: left; }
.ac-heat i { height: 22px; border-radius: 4px; background: rgb(var(--live-rgb) / calc(var(--v) * .5)); }
.ac-heat i[style*="--v:1"] { background: var(--k-danger-dim); box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .45); }

.ac-scan { position: relative; width: 104px; height: 104px; padding: 9px; flex-shrink: 0; }
.ac-scan::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--k-live), var(--k-live)) top left / 16px 2px no-repeat, linear-gradient(var(--k-live), var(--k-live)) top left / 2px 16px no-repeat,
    linear-gradient(var(--k-live), var(--k-live)) top right / 16px 2px no-repeat, linear-gradient(var(--k-live), var(--k-live)) top right / 2px 16px no-repeat,
    linear-gradient(var(--k-live), var(--k-live)) bottom left / 16px 2px no-repeat, linear-gradient(var(--k-live), var(--k-live)) bottom left / 2px 16px no-repeat,
    linear-gradient(var(--k-live), var(--k-live)) bottom right / 16px 2px no-repeat, linear-gradient(var(--k-live), var(--k-live)) bottom right / 2px 16px no-repeat; }
.ac-qr { display: block; width: 100%; height: 100%; border-radius: 4px; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.ac-scan__line { position: absolute; left: 6px; right: 6px; top: 12px; height: 2px; border-radius: 2px; background: var(--k-live); box-shadow: 0 0 10px 2px rgb(var(--live-rgb) / .45); animation: ac-scan 2.6s ease-in-out infinite alternate; }
@keyframes ac-scan { to { top: 90px; } }
@media (prefers-reduced-motion: reduce) { .ac-scan__line { animation: none; top: 52px; } }
.ac-access { list-style: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ac-access li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.ac-access li + li { padding-top: 10px; border-top: 1px solid var(--border-faint); }
.ac-access b { font-weight: 600; color: var(--text-primary); }
.ac-access li > span:not(.ac-pill) { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); justify-self: end; }
.ac-access .ac-pill { grid-column: 1 / -1; justify-self: start; margin-top: 4px; white-space: nowrap; }

.ac-log li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 6px 0; color: var(--text-secondary); border-bottom: 1px solid var(--border-faint); }
.ac-log li:last-child { border-bottom: 0; color: var(--k-ok); }

/* ── UN DÍA EN RECEPCIÓN ─────────────────────────────────────────── */
.ac-day { list-style: none; position: relative; }
.ac-day::before { content: ''; position: absolute; left: 58px; top: 8px; bottom: 8px; width: 1px; background: var(--border-hairline); }
.ac-day li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 32px; padding: 0 0 30px; position: relative; }
.ac-day li:last-child { padding-bottom: 0; }
.ac-day li::after { content: ''; position: absolute; left: 55px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-page); border: 1px solid var(--text-faint); }
.ac-day time { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.ac-day p { color: var(--text-secondary); line-height: var(--lh-relaxed); }

/* ── CASO REAL ────────────────────────────────────────────────────── */
.ac-case-sec { border-top: 1px solid var(--border-faint); }
.ac-case {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px;
  padding: 40px; border: 1px solid var(--border-hairline); border-radius: var(--radius-lg);
  background: var(--surface-card); box-shadow: var(--edge-top);
}
.ac-case__brand { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px; border-radius: var(--radius-md); background: var(--surface-page); border: 1px solid var(--border-faint); align-self: start; }
.ac-case__brand img { width: 140px; height: auto; filter: grayscale(1) brightness(0); opacity: .82; }
[data-theme="dark"] .ac-case__brand img { filter: grayscale(1) brightness(0) invert(1); }
.ac-case__body { display: flex; flex-direction: column; gap: 16px; }
.ac-case__lead { color: var(--text-secondary); font-size: 17px; line-height: var(--lh-relaxed); max-width: 62ch; }
.ac-facts { display: flex; flex-direction: column; border-top: 1px solid var(--border-faint); margin-top: 4px; }
.ac-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border-faint); }
.ac-facts dt { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); padding-top: 2px; }
.ac-facts dd { color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }
.ac-link { color: var(--text-primary); font-size: var(--fs-body-sm); width: fit-content; border-bottom: 1px solid var(--border-strong); }
.ac-link:hover { border-color: var(--text-muted); }
@media (max-width: 860px) {
  .ac-case { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
  .ac-case__brand { flex-direction: row; justify-content: space-between; width: 100%; padding: 18px 22px; }
  .ac-case__brand img { width: 88px; }
}
@media (max-width: 480px) { .ac-facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* ── PASOS ────────────────────────────────────────────────────────── */
.ac-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--border-hairline); padding-top: 28px; }
.ac-steps li { display: flex; flex-direction: column; gap: 10px; }
.ac-steps__n { font-family: var(--font-mono); font-size: 12px; color: var(--k-live); }
.ac-steps p { color: var(--text-muted); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }
@media (max-width: 900px) { .ac-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ac-steps { grid-template-columns: 1fr; gap: 24px; } }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.ac-faq { border-top: 1px solid var(--border-hairline); }
.ac-faq details { border-bottom: 1px solid var(--border-hairline); }
.ac-faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-size: 17px; color: var(--text-primary);
}
.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease-out);
}
.ac-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.ac-faq summary:hover { color: var(--text-secondary); }
.ac-faq details p { padding: 0 36px 22px 0; color: var(--text-muted); line-height: var(--lh-relaxed); max-width: 64ch; }

/* ── CONTACTO ─────────────────────────────────────────────────────── */
.ac-cta { text-align: center; border-top: 1px solid var(--border-faint); }
.ac-cta .calendly-frame { margin-bottom: 28px; }

/* ── MASCOTA (contacto) ──────────────────────────────────────────── */
.ac-mascot { display: block; height: auto; pointer-events: none; user-select: none; }
.ac-mascot--cta { width: 132px; margin: 0 auto 4px; filter: drop-shadow(0 14px 20px var(--shadow-soft)); }
