/* ============================================================
   SISTEMA "MARCADOR" — monicanieto.com
   Tipografía: Archivo variable (ancho 62–125, peso 100–900)
   Ritmo: base 8px · secciones con padding simétrico
   Ver _diseno-referencias/propuesta-sistema-y-copy.md
   ============================================================ */
:root {
  --mk-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --mk-night: #120D1F;
  --mk-night-2: #1B1530;
  --mk-paper: #F7F4FC;
  --mk-white: #FFFFFF;
  --mk-ink: #16112A;
  --mk-muted-d: #BDB3DA;
  --mk-muted-l: #564E6E;
  --mk-violet: #630DD3;
  --mk-violet-h: #7A2CF0;
  --mk-green: #77D10F;
  --mk-green-ink: #3F7A06;
  --mk-line-d: rgba(255, 255, 255, .12);
  --mk-line-l: #E4D9FC;

  --mk-sec: clamp(64px, 9vw, 120px);
  --mk-wrap: 1200px;
  --mk-gutter: clamp(16px, 4vw, 40px);
  --mk-radius: 16px;
  --mk-ease: cubic-bezier(.22, 1, .36, 1);
}

html body { font-family: var(--mk-font); }

/* ---------- Estructura ---------- */
.mk { background: var(--mk-night); color: var(--mk-white); overflow-x: clip; }
.mk-wrap { max-width: var(--mk-wrap); margin: 0 auto; padding: 0 var(--mk-gutter); }
.mk-sec { padding: var(--mk-sec) 0; position: relative; }
.mk-sec--night { background: var(--mk-night); color: var(--mk-white); }
.mk-sec--paper { background: var(--mk-paper); color: var(--mk-ink); }
.mk-sec--green { background: var(--mk-green); color: var(--mk-night); }
.mk-sec--decision { padding: calc(var(--mk-sec) * 1.5) 0; }
.mk-sec--tight-top { padding-top: calc(var(--mk-sec) * .5); }

.mk-head { max-width: 760px; margin-bottom: 48px; }
.mk-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Tipografía ---------- */
.mk h1, .mk h2, .mk h3, .mk p, .mk li { margin: 0; }
.mk-label {
  font-stretch: 75%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mk-green);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px !important;
}
.mk-sec--paper .mk-label { color: var(--mk-violet); }
.mk-sec--green .mk-label { color: var(--mk-night); }
.mk-label__n { font-variant-numeric: tabular-nums; opacity: .7; }
.mk-label__n::after { content: "·"; margin-left: 10px; }

.mk-h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: .94;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.mk-h2 {
  font-stretch: 112%;
  font-weight: 750;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.mk-h3 { font-stretch: 100%; font-weight: 700; font-size: 22px; line-height: 1.2; }
.mk-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; margin-top: 20px !important; max-width: 40em; }
.mk-body, .mk p { font-size: 17px; line-height: 1.6; }
.mk-sec--night .mk-lead, .mk-sec--night .mk-body { color: var(--mk-muted-d); }
.mk-sec--paper .mk-lead, .mk-sec--paper .mk-body { color: var(--mk-muted-l); }

/* La palabra remate: verde y con subrayado que barre (animado por marcador.js) */
.mk-hit { font-style: normal; color: var(--mk-green); position: relative; white-space: nowrap; }
.mk-sec--paper .mk-hit { color: var(--mk-green-ink); }
.mk-sec--green .mk-hit { color: var(--mk-white); }
.mk-hit::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.06em;
  height: .08em;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(var(--mk-hit, 1));
}

/* ---------- Botones ---------- */
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--mk-font); font-weight: 700; font-size: 16px; line-height: 1.1;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out, transform .16s ease-out;
}
.mk-btn:active { transform: scale(.97); }
.mk-btn--primary { background: var(--mk-violet); color: #fff !important; }
.mk-btn--primary:hover { background: var(--mk-violet-h); color: #fff !important; }
.mk-btn--ghost { border-color: rgba(255,255,255,.4); color: #fff !important; background: transparent; }
.mk-btn--ghost:hover { border-color: #fff; color: #fff !important; }
.mk-sec--paper .mk-btn--ghost, .mk-card--light .mk-btn--ghost { border-color: #CBBDF2; color: var(--mk-ink) !important; }
.mk-sec--paper .mk-btn--ghost:hover, .mk-card--light .mk-btn--ghost:hover { border-color: var(--mk-violet); color: var(--mk-violet) !important; }
.mk-btn--dark { background: var(--mk-night); color: #fff !important; }
.mk-btn--dark:hover { background: #2a2140; color: #fff !important; }
.mk-btn--block { width: 100%; }
.mk-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.mk-link:hover { color: var(--mk-green); }
.mk-sec--paper .mk-link:hover { color: var(--mk-violet); }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Foco visible en todo el sistema */
.mk a:focus-visible, .mk button:focus-visible, .mk input:focus-visible + .mk-check__box,
.mk-nav a:focus-visible, .mk-nav button:focus-visible {
  outline: 3px solid var(--mk-green); outline-offset: 3px; box-shadow: none;
}
.mk-sec--paper a:focus-visible, .mk-sec--paper button:focus-visible, .mk-card--light a:focus-visible { outline-color: var(--mk-violet); }

/* ---------- Navegación ---------- */
/* Saltos a #ancla: la sección arranca justo debajo de la barra fija, sin quedar tapada */
html { scroll-padding-top: 65px; }
html:has(body.admin-bar) { scroll-padding-top: 97px; }
@media (max-width: 860px) {
  html { scroll-padding-top: 125px; }
  html:has(body.admin-bar) { scroll-padding-top: 171px; }
}
.mk-nav {
  position: sticky; top: 0; z-index: 1030;
  background: var(--mk-night);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease-out;
}
.mk-nav.is-scrolled { border-bottom-color: var(--mk-line-d); }
.admin-bar .mk-nav { top: 32px; }
.mk-nav__bar {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--mk-gutter);
  height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.mk-logo {
  font-stretch: 112%; font-weight: 800; font-size: 19px; letter-spacing: -.01em;
  color: #fff !important; text-decoration: none; justify-self: start; white-space: nowrap;
}
.mk-logo span { color: var(--mk-green); }
.mk-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.07); border: 1px solid var(--mk-line-d); border-radius: 999px; padding: 4px;
}
.mk-switch a {
  position: relative; z-index: 1; min-height: 40px; padding: 0 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-stretch: 87.5%; font-weight: 700; font-size: 15px; color: var(--mk-muted-d) !important; text-decoration: none;
  border-radius: 999px; transition: color .2s ease-out; white-space: nowrap;
}
.mk-switch a:hover { color: #fff !important; }
.mk-switch a[aria-current="page"] { color: #fff !important; }
.mk-switch__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--mk-violet); border-radius: 999px; opacity: 0;
  transition: transform .3s var(--mk-ease), opacity .2s ease-out;
}
.mk-switch[data-active="escuelas"] .mk-switch__pill { opacity: 1; }
.mk-switch[data-active="atletas"] .mk-switch__pill { opacity: 1; transform: translateX(100%); }
.mk-nav__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.mk-nav__actions .mk-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.mk-lang {
  min-height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mk-line-d);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .06em;
}
.mk-lang:hover { border-color: rgba(255,255,255,.4); }
.mk-more { position: relative; }
.mk-more__btn {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mk-line-d);
  background: transparent; color: #fff; font-family: var(--mk-font); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.mk-more__btn:hover { border-color: rgba(255,255,255,.4); }
.mk-more__btn i { transition: transform .2s var(--mk-ease); }
.mk-more.is-open .mk-more__btn i { transform: rotate(180deg); }
.mk-more__panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px;
  background: var(--mk-night-2); border: 1px solid var(--mk-line-d); border-radius: 16px; padding: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; visibility: hidden;
  transition: opacity .16s ease-out, transform .2s var(--mk-ease), visibility 0s linear .2s;
}
.mk-more.is-open .mk-more__panel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mk-more__panel ul { list-style: none; margin: 0; padding: 0; }
.mk-more__panel a {
  display: block; padding: 11px 14px; border-radius: 10px;
  color: #fff !important; text-decoration: none; font-size: 15px; font-weight: 500;
}
.mk-more__panel a:hover { background: rgba(255,255,255,.07); }
/* Submenús dentro de "Más": lista anidada siempre visible (anula el desplegable blanco de style.css) */
.mk-more__panel { max-height: calc(100vh - 96px); overflow-y: auto; }
.mk-more__panel .menu-item-has-children { position: static; }
.mk-more__panel .menu-item-has-children .sub-menu {
  display: block; position: static; min-width: 0; z-index: auto;
  background: transparent; box-shadow: none; list-style: none;
  margin: 0 0 6px 14px; padding: 0 0 0 10px; border-left: 1px solid var(--mk-line-d);
}
.mk-more__panel .menu-item-has-children .sub-menu li a {
  margin: 0 !important; padding: 9px 12px; line-height: 1.3;
  color: var(--mk-muted-d) !important; font-size: 14px;
}
.mk-more__panel .menu-item-has-children .sub-menu li a:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.mk-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--mk-green); transform-origin: left; transform: scaleX(0);
}
@media (max-width: 860px) {
  .mk-nav__bar { grid-template-columns: 1fr auto; height: 60px; }
  .mk-nav__demo { display: none !important; }
  .mk-switch { grid-column: 1 / -1; grid-row: 2; margin-bottom: 10px; }
  .mk-nav__bar { height: auto; padding-top: 10px; row-gap: 10px; }
  .mk-switch a { min-height: 44px; }
}

/* ---------- Hero ---------- */
.mk-hero { padding: clamp(40px, 6vw, 88px) 0 var(--mk-sec); }
/* minmax(0,…): una palabra .mk-hit (nowrap) no puede empujar la columna derecha fuera del contenedor */
.mk-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
/* Hero con herramienta (buscador, checklist): la tarjeta necesita más ancho que una foto */
.mk-hero__grid--tool { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.mk-hero__grid--tool .mk-h1 { font-size: clamp(40px, 4vw, 58px); }
.mk-hero__q { font-stretch: 87.5%; font-weight: 700; font-size: 15px; color: var(--mk-muted-d); margin-top: 36px !important; }
.mk-photo {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5;
  background: #c9bfb4; box-shadow: inset 0 0 0 1px var(--mk-line-d);
}
.mk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.mk-photo__tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mk-photo__tag span {
  background: rgba(18,13,31,.82); color: #fff; border-radius: 999px; padding: 7px 12px;
  font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.mk-photo__tag span:first-child { background: var(--mk-green); color: var(--mk-night); }
@media (max-width: 860px) {
  .mk-hero__grid { grid-template-columns: 1fr; }
  .mk-photo { max-width: 420px; aspect-ratio: 1 / 1; }
}

/* ---------- Marcador (cifras) ---------- */
.mk-score { display: grid; grid-template-columns: repeat(var(--mk-cols, 4), 1fr); border-top: 1px solid var(--mk-line-d); }
.mk-sec--paper .mk-score, .mk-sec--green .mk-score { border-top-color: rgba(18,13,31,.18); }
.mk-score__item { padding: 24px 24px 0 0; }
.mk-score__item + .mk-score__item { padding-left: 24px; border-left: 1px solid var(--mk-line-d); }
.mk-sec--green .mk-score__item + .mk-score__item { border-left-color: rgba(18,13,31,.18); }
.mk-score__num {
  display: block; font-stretch: 70%; font-weight: 800; font-size: clamp(48px, 6vw, 80px); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.mk-score__label { display: block; margin-top: 8px; font-size: 15px; line-height: 1.4; font-weight: 500; }
.mk-sec--night .mk-score__label { color: var(--mk-muted-d); }
@media (max-width: 760px) {
  .mk-score { grid-template-columns: 1fr 1fr; }
  .mk-score__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .mk-score__item { padding-bottom: 24px; }
}

/* ---------- Bloques de ruta (home) ---------- */
.mk-route { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.mk-route--flip .mk-route__aside { order: -1; }
.mk-symptoms { list-style: none; padding: 0 !important; margin: 32px 0 0 !important; border-top: 1px solid var(--mk-line-d); }
.mk-sec--paper .mk-symptoms { border-top-color: var(--mk-line-l); }
.mk-symptoms li {
  display: flex; gap: 14px; align-items: baseline; padding: 16px 0;
  border-bottom: 1px solid var(--mk-line-d); font-size: 18px; line-height: 1.45; font-weight: 500;
}
.mk-sec--paper .mk-symptoms li { border-bottom-color: var(--mk-line-l); }
.mk-symptoms li::before {
  content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mk-green); transform: translateY(-1px);
}
.mk-sec--paper .mk-symptoms li::before { border-color: var(--mk-violet); }
.mk-answer { margin-top: 24px !important; font-size: 18px; line-height: 1.55; max-width: 34em; }
.mk-answer strong { color: var(--mk-green); }
.mk-sec--paper .mk-answer strong { color: var(--mk-violet); }
.mk-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-module {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--mk-line-d); font-weight: 600; font-size: 15px;
}
.mk-module i { color: var(--mk-green); font-size: 20px; }
.mk-price-note { margin-top: 16px !important; font-size: 15px; color: var(--mk-muted-d); }
.mk-price-note strong { color: #fff; font-stretch: 87.5%; font-size: 20px; }
.mk-sec--paper .mk-module { background: var(--mk-white); box-shadow: inset 0 0 0 1px var(--mk-line-l); color: var(--mk-ink); }
.mk-sec--paper .mk-module i { color: var(--mk-violet); }
.mk-sec--paper .mk-price-note { color: var(--mk-muted-l); }
.mk-sec--paper .mk-price-note strong { color: var(--mk-ink); }
@media (max-width: 860px) {
  .mk-route { grid-template-columns: 1fr; }
  .mk-route--flip .mk-route__aside { order: 0; }
}

/* ---------- Tarjetas ---------- */
.mk-cards { display: grid; grid-template-columns: repeat(var(--mk-cols, 4), 1fr); gap: 16px; }
.mk-card { padding: 28px 24px; border-radius: var(--mk-radius); box-shadow: inset 0 0 0 1px var(--mk-line-d); }
.mk-sec--paper .mk-card { background: var(--mk-white); box-shadow: inset 0 0 0 1px var(--mk-line-l); }
.mk-card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 20px; background: rgba(119,209,15,.14); color: var(--mk-green);
}
.mk-sec--paper .mk-card__icon { background: #EFE8FD; color: var(--mk-violet); }
.mk-card .mk-h3 { margin-bottom: 8px; }
.mk-card p { font-size: 16px; line-height: 1.55; }
.mk-sec--night .mk-card p { color: var(--mk-muted-d); }
.mk-sec--paper .mk-card p { color: var(--mk-muted-l); }
.mk-card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.mk-card ul li { padding: 8px 0; border-top: 1px solid var(--mk-line-d); font-size: 15px; color: var(--mk-muted-d); }
@media (max-width: 1000px) { .mk-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mk-cards { grid-template-columns: 1fr; } }

/* ---------- Criterio / origen ---------- */
.mk-origin { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mk-origin .mk-photo { aspect-ratio: 4 / 5; }
.mk-quote {
  margin: 28px 0 0; padding-left: 20px; border-left: 3px solid var(--mk-violet);
  font-stretch: 100%; font-weight: 600; font-size: 20px; line-height: 1.45;
}
.mk-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mk-roles span {
  padding: 8px 14px; border-radius: 999px; background: var(--mk-white); box-shadow: inset 0 0 0 1px var(--mk-line-l);
  font-stretch: 87.5%; font-weight: 700; font-size: 14px; color: var(--mk-ink);
}
@media (max-width: 860px) {
  .mk-origin { grid-template-columns: 1fr; }
  .mk-origin .mk-photo { max-width: 360px; aspect-ratio: 1 / 1; }
}

/* ---------- Autodiagnóstico (escuelas) ---------- */
.mk-check { background: var(--mk-night-2); border-radius: 20px; padding: 24px; box-shadow: inset 0 0 0 1px var(--mk-line-d); transition: box-shadow .25s ease-out; }
.mk-check.is-alert { box-shadow: inset 0 0 0 1px rgba(119,209,15,.6); }
.mk-check__title { font-stretch: 100%; font-weight: 700; font-size: 20px; margin-bottom: 12px !important; }
.mk-check__item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; margin: 0 -12px; border-radius: 12px;
  font-size: 16px; line-height: 1.45; color: var(--mk-muted-d); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out;
}
.mk-check__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-check__box {
  flex: 0 0 22px; height: 22px; margin-top: 1px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 6px;
  display: grid; place-items: center; transition: background-color .15s ease-out, border-color .15s ease-out;
}
.mk-check__box i { font-size: 15px; color: var(--mk-night); opacity: 0; transform: scale(.5); }
.mk-check__item input:checked + .mk-check__box { background: var(--mk-green); border-color: var(--mk-green); }
.mk-check__item input:checked + .mk-check__box i { opacity: 1; transform: scale(1); }
.mk-check__item input:checked ~ span:last-child { color: #fff; }
@media (hover: hover) and (pointer: fine) { .mk-check__item:hover { background: rgba(255,255,255,.05); } }
.mk-check__result { margin-top: 12px !important; padding-top: 14px; border-top: 1px solid var(--mk-line-d); font-weight: 700; font-size: 16px; min-height: 3.2em; color: var(--mk-muted-d); }
.mk-check.is-alert .mk-check__result { color: var(--mk-green); }

/* ---------- Búsqueda antes/después (atletas) ---------- */
.mk-search { background: var(--mk-white); color: var(--mk-ink); border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.mk-search__bar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--mk-line-l); border-radius: 999px; padding: 10px 16px; font-size: 15px; margin-bottom: 14px; }
.mk-search__bar i { color: var(--mk-violet); }
.mk-search__toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #F1ECFC; border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.mk-search__toggle button {
  position: relative; z-index: 1; border: 0; background: none; border-radius: 999px; min-height: 40px;
  font-family: var(--mk-font); font-weight: 700; font-size: 14px; color: #5A4D8A; cursor: pointer; transition: color .2s ease-out;
}
.mk-search__toggle button[aria-checked="true"] { color: #fff; }
.mk-search__toggle button:focus-visible { outline: 3px solid var(--mk-violet); outline-offset: 2px; }
.mk-search__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--mk-violet); border-radius: 999px; }
.mk-search__toggle[data-state="pagina"] .mk-search__pill { transform: translateX(100%); }
/* Ambas listas ocupan la misma celda: la tarjeta mide siempre lo de la más alta y el hero no salta al cambiar */
.mk-search__views { display: grid; }
.mk-search__list { list-style: none; margin: 0; padding: 0; grid-area: 1 / 1; }
.mk-search__list[hidden] { display: block !important; visibility: hidden; } /* Bootstrap fuerza [hidden]{display:none!important} */
.mk-search__list li { padding: 12px 0; border-bottom: 1px solid #F0EBFC; font-size: 14px; line-height: 1.45; color: #4a4a4a; }
.mk-search__list li strong { display: block; color: #1a0dab; font-weight: 600; font-size: 16px; }
.mk-search__src { display: block; font-size: 12px; color: #5f6368; }
.mk-search__own { background: #F4FBEA; border: 1px solid #CDE9A9; border-radius: 12px; padding: 14px !important; }
.mk-search__verdict { border-bottom: 0 !important; font-weight: 700; color: #A12B2B !important; }
.mk-search__verdict--ok { color: #2F6B06 !important; }

/* ---------- Chips de lo que incluye ---------- */
.mk-chips { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-chips li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--mk-white); box-shadow: inset 0 0 0 1px var(--mk-line-l); font-size: 16px; font-weight: 600; color: var(--mk-ink); }
.mk-chips i { color: var(--mk-violet); font-size: 18px; }
@media (max-width: 560px) { .mk-chips { grid-template-columns: 1fr; } }

/* ---------- Videos ---------- */
.mk-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mk-video { border-radius: var(--mk-radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--mk-line-d); background: var(--mk-night-2); }
.mk-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0b0814; }
.mk-video__body { padding: 20px 24px 24px; }
.mk-video__body p { margin-top: 6px !important; color: var(--mk-muted-d); font-size: 16px; }
/* Tarjetas de video oscuras también sobre fondo claro (escuelas) */
.mk-sec--paper .mk-video { box-shadow: 0 16px 40px rgba(20, 12, 40, .14); }
.mk-sec--paper .mk-video .mk-h3 { color: #fff; }
.mk-sec--paper .mk-video .mk-site-link { color: var(--mk-green) !important; }
@media (max-width: 760px) { .mk-videos { grid-template-columns: 1fr; } }

/* ---------- Packs (escuelas) y kit (atletas) ---------- */
.mk-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.mk-pack {
  background: var(--mk-white); color: var(--mk-ink); border-radius: 20px; padding: 28px 24px;
  box-shadow: inset 0 0 0 1px var(--mk-line-l); display: flex; flex-direction: column; position: relative;
}
.mk-pack--featured { box-shadow: inset 0 0 0 2px var(--mk-violet); }
.mk-pack__badge {
  position: absolute; top: -12px; left: 24px; background: var(--mk-violet); color: #fff; border-radius: 999px; padding: 5px 12px;
  font-stretch: 75%; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.mk-pack__name { font-stretch: 112%; font-weight: 800; font-size: 24px; line-height: 1.1; }
.mk-pack__for { margin-top: 6px !important; font-size: 15px; color: var(--mk-muted-l); }
.mk-pack__price { margin-top: 20px !important; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mk-pack__price strong { font-stretch: 70%; font-weight: 800; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--mk-violet); }
.mk-pack__price s { color: #77708C; font-size: 15px; }
.mk-pack__save { background: #EAF7D9; color: var(--mk-green-ink); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 13px; }
.mk-pack__deposit { margin-top: 8px !important; font-size: 14px; color: var(--mk-muted-l); }
.mk-pack ul { list-style: none; padding: 0; margin: 20px 0; flex-grow: 1; }
.mk-pack ul li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #F0EBFC; font-size: 15px; line-height: 1.4; color: #2e2842; }
.mk-pack ul li i { color: var(--mk-green-ink); }
.mk-pack__host { background: var(--mk-paper); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--mk-muted-l); margin-bottom: 16px; }
.mk-pack__host strong { color: var(--mk-ink); }
.mk-pack .mk-btn + .mk-btn { margin-top: 8px; }
.mk-pack__wa { display: block; text-align: center; margin-top: 12px; font-weight: 700; font-size: 14px; color: #1E7E45 !important; text-decoration: none; }
.mk-pack__wa:hover { text-decoration: underline; }
/* Enlace a una página de ejemplo, sobre los botones del paquete */
.mk-pack__example {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-bottom: 8px;
  font-weight: 700; font-size: 15px; color: var(--mk-violet) !important; text-decoration: underline; text-underline-offset: 4px;
}
.mk-pack__example:hover { text-decoration-thickness: 2px; }
.mk-pay { margin-top: 20px !important; text-align: center; font-size: 14px; color: var(--mk-muted-d); }
@media (max-width: 1000px) { .mk-packs { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.mk-table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.mk-table th, .mk-table td { padding: 12px 14px; border-bottom: 1px solid var(--mk-line-d); text-align: center; }
.mk-table th:first-child, .mk-table td:first-child { text-align: left; }
.mk-table thead th { font-stretch: 87.5%; font-weight: 700; color: #fff; }
.mk-table td { color: var(--mk-muted-d); }
.mk-yes { color: var(--mk-green) !important; font-weight: 800; }
.mk-table-wrap { overflow-x: auto; }
.mk-sec--paper .mk-table th, .mk-sec--paper .mk-table td { border-bottom-color: var(--mk-line-l); }
.mk-sec--paper .mk-table thead th { color: var(--mk-ink); }
.mk-sec--paper .mk-table td { color: var(--mk-muted-l); }
.mk-sec--paper .mk-yes { color: var(--mk-green-ink) !important; }
.mk-sec--paper .mk-pay { color: var(--mk-muted-l); }
.mk-sec--night .mk-steps li { border-top-color: var(--mk-violet-h); }
.mk-sec--night .mk-steps li::before { color: #B794FF; }
.mk-sec--night .mk-steps li:last-child { border-top-color: var(--mk-green); }
.mk-sec--night .mk-steps li:last-child::before { color: var(--mk-green); }
.mk-sec--night .mk-steps p { color: var(--mk-muted-d); }

/* ---------- Pasos ---------- */
.mk-steps { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: paso; }
.mk-steps li { border-top: 2px solid var(--mk-violet); padding-top: 20px; }
.mk-steps li::before { counter-increment: paso; content: "0" counter(paso); display: block; font-stretch: 70%; font-weight: 800; font-size: 40px; line-height: 1; color: var(--mk-violet); margin-bottom: 12px; }
.mk-steps li:last-child { border-top-color: var(--mk-green-ink); }
.mk-steps li:last-child::before { color: var(--mk-green-ink); }
.mk-steps p { color: var(--mk-muted-l); font-size: 16px; margin-top: 6px !important; }
@media (max-width: 900px) { .mk-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mk-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.mk-faq { max-width: 820px; margin: 0 auto; }
.mk-faq details { border-bottom: 1px solid var(--mk-line-l); }
.mk-faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-stretch: 100%; font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--mk-ink);
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font-size: 28px; font-weight: 400; color: var(--mk-violet);
  transition: transform .2s var(--mk-ease);
}
.mk-faq details[open] summary::after { transform: rotate(45deg); }
.mk-faq summary:focus-visible { outline: 3px solid var(--mk-violet); outline-offset: 4px; border-radius: 4px; }
.mk-faq details p { padding: 0 0 22px; color: var(--mk-muted-l); font-size: 17px; line-height: 1.6; max-width: 42em; }

/* ---------- Cierre ---------- */
.mk-close { text-align: center; max-width: 820px; margin: 0 auto; }
.mk-close .mk-actions { justify-content: center; }
.mk-close__note { margin-top: 20px !important; font-size: 15px; color: var(--mk-muted-d); }

/* ---------- Movimiento: estado inicial lo pone marcador.js (si falla, todo se ve) ---------- */
@media (prefers-reduced-motion: reduce) {
  .mk *, .mk-nav * { transition: none !important; animation: none !important; }
  .mk-btn:active { transform: none; }
}

/* ---------- Home: recursos, servicios, reseñas, blog, contacto ---------- */
.mk-res, .mk-post, .mk-quote-card { display: flex; flex-direction: column; }
.mk-res__tag {
  font-stretch: 75%; font-weight: 700; font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mk-green-ink) !important; margin-bottom: 8px !important;
}
.mk-sec--night .mk-res__tag { color: var(--mk-green) !important; }
.mk-res p:not(.mk-res__tag) { flex-grow: 1; margin-bottom: 24px !important; }
.mk-res .mk-btn { align-self: flex-start; }
.mk-sec--paper .mk-res--featured { box-shadow: inset 0 0 0 2px var(--mk-violet); }
.mk-more-link { margin-top: 32px !important; font-size: 17px; }

/* Filtros por público (Recursos) */
.mk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mk-filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--mk-line-d);
  background: transparent; color: var(--mk-muted-d); font-family: var(--mk-font); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.mk-filter:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.mk-filter[aria-pressed="true"] { background: var(--mk-violet); border-color: var(--mk-violet); color: #fff; }

.mk-svc { list-style: none; padding: 0 !important; margin: 0 !important; border-top: 1px solid var(--mk-line-d); }
.mk-svc li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--mk-line-d); }
.mk-svc i { color: var(--mk-green); font-size: 20px; margin-top: 2px; }
.mk-svc strong { display: block; font-size: 17px; font-weight: 700; }
.mk-svc span { display: block; margin-top: 2px; font-size: 15px; color: var(--mk-muted-d); }

.mk-testimonials { margin-top: clamp(64px, 8vw, 104px); }
/* Feed de Instagram (plugin Smash Balloon) en un panel blanco */
.mk-ig { background: #fff; border-radius: var(--mk-radius); padding: clamp(12px, 2vw, 24px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); color: var(--mk-ink); }
.mk-ig #sb_instagram { padding-bottom: 0 !important; }
/* Testimonios: tarjeta blanca en cualquier fondo, comillas violeta y foto circular */
.mk-quote-card {
  margin: 0; justify-content: space-between; gap: 24px; padding: 28px 26px 24px;
  background: #fff; box-shadow: 0 18px 44px rgba(22, 17, 42, .10), inset 0 0 0 1px var(--mk-line-l);
}
.mk-quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--mk-ink); font-weight: 500; }
.mk-quote-card blockquote::before {
  content: "\201C"; display: block; height: 30px; margin-bottom: 6px;
  font-size: 64px; line-height: 1; font-weight: 800; color: var(--mk-violet);
}
.mk-quote-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--mk-line-l); }
.mk-quote-card__who { min-width: 0; }
.mk-cards[style*="--mk-cols:2"] .mk-quote-card blockquote { font-size: 19px; }
.mk-quote-card figcaption strong { display: block; font-size: 15px; color: var(--mk-ink); }
.mk-quote-card figcaption .mk-quote-card__who span { display: block; font-size: 14px; line-height: 1.4; color: var(--mk-muted-l); }
.mk-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mk-green);
}
.mk-avatar--logo { object-fit: contain; background: #fff; padding: 5px; }
.mk-avatar--initials {
  display: grid; place-items: center; background: var(--mk-violet);
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em;
}

.mk-post { padding: 0 0 24px; overflow: hidden; }
.mk-post > *:not(.mk-post__img) { padding-left: 24px; padding-right: 24px; }
.mk-post__img { display: block; aspect-ratio: 16 / 10; background: var(--mk-night-2); margin-bottom: 20px; overflow: hidden; }
.mk-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-post .mk-h3 a { color: #fff; text-decoration: none; }
.mk-post .mk-h3 a:hover { color: var(--mk-green); }
.mk-post .mk-h3 a::after { content: ""; position: absolute; inset: 0; }
.mk-post { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .mk-post { transition: box-shadow .2s ease-out; }
  .mk-post:hover { box-shadow: inset 0 0 0 1px rgba(119,209,15,.5); }
}

.mk-form { background: var(--mk-white); border-radius: 20px; padding: 28px; box-shadow: inset 0 0 0 1px var(--mk-line-l); }
#contacto.mk-sec .mk-form input, #contacto.mk-sec .mk-form textarea {
  border-radius: 12px; border: 1.5px solid #D6C8F7; color: var(--mk-ink); font-family: var(--mk-font); font-size: 16px;
}
#contacto.mk-sec .mk-form input:focus, #contacto.mk-sec .mk-form textarea:focus { border-color: var(--mk-violet); outline: none; box-shadow: 0 0 0 3px rgba(99,13,211,.18); }
#contacto.mk-sec .mk-form button.forminator-button-submit {
  border-radius: 999px; border: 0; background: var(--mk-violet); color: #fff; font-family: var(--mk-font); font-weight: 700; font-size: 16px; min-height: 48px; padding: 0 24px;
}
#contacto.mk-sec .mk-form button.forminator-button-submit:hover { background: var(--mk-violet-h); }

/* El CSS adicional del Personalizador quita el padding superior de #contacto: se restituye el ritmo */
section#contacto.mk-sec { padding-top: var(--mk-sec) !important; }

/* ---------- Pie de página en el mismo sistema ---------- */
html body footer { background: var(--mk-night); border-top: 1px solid var(--mk-line-d); font-family: var(--mk-font); }
html body footer .container { padding-top: 48px; }
html body footer a { color: var(--mk-muted-d); text-decoration: none; }
html body footer a:hover { color: var(--mk-green); }
html body footer a:focus-visible { outline: 3px solid var(--mk-green); outline-offset: 3px; }
html body footer p { color: var(--mk-muted-d); font-size: 14px; }
html body footer .site-footer { border-top: 1px solid var(--mk-line-d); margin-top: 32px; }

/* Variantes por tono de reseñas y blog */
/* Los testimonios son tarjetas blancas también sobre fondo oscuro */
.mk-sec--night .mk-quote-card { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.mk-sec--paper .mk-post .mk-h3 a { color: var(--mk-ink); }
.mk-sec--paper .mk-post .mk-h3 a:hover { color: var(--mk-violet); }
.mk-sec--paper .mk-post__img { background: #EFE8FD; }
@media (hover: hover) and (pointer: fine) { .mk-sec--paper .mk-post:hover { box-shadow: inset 0 0 0 1px var(--mk-violet); } }
.mk-sec--night .mk-form { box-shadow: none; }

section#recursos.mk-sec--paper { background: var(--mk-paper); }
html body footer .wp-block-social-link-anchor svg { fill: currentColor; }
html body footer .wp-block-social-link { background: transparent !important; }
html body footer .wp-block-social-link-anchor:hover { color: var(--mk-green); }

/* ---------- Proyectos ---------- */
.mk-works { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mk-work { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mk-work__media { aspect-ratio: 16 / 10; background: #EFE8FD; overflow: hidden; }
.mk-sec--night .mk-work__media { background: var(--mk-night-2); }
.mk-work__media video, .mk-work__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-work__body { padding: 24px; }
.mk-work__body .mk-h3 { margin-bottom: 8px; }
.mk-site-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; min-height: 44px;
  font-weight: 700; font-size: 15px; color: var(--mk-violet) !important; text-decoration: underline; text-underline-offset: 4px;
}
.mk-sec--night .mk-site-link { color: var(--mk-green) !important; }
.mk-site-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 760px) { .mk-works { grid-template-columns: 1fr; } }

/* Recursos sobre fondo oscuro (el Personalizador fija un fondo claro a #recursos) */
section#recursos.mk-sec--night { background: var(--mk-night); }
.mk-sec--night .mk-res--featured { box-shadow: inset 0 0 0 2px var(--mk-violet-h); }

/* Dos opciones (atletas) */
.mk-packs--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .mk-packs--2 { grid-template-columns: 1fr; max-width: 520px; } }
.mk-custom-kit { text-align: center; margin-top: 32px !important; color: var(--mk-muted-l); }
.mk-sec--night .mk-custom-kit { color: var(--mk-muted-d); }

/* ---------- Franja de diagnóstico gratis (deportistas, tras 01) ---------- */
.mk-diag {
  margin-top: clamp(32px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px;
  background: var(--mk-night); color: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 32px);
}
.mk-diag__title { font-stretch: 100%; font-weight: 800; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; margin: 0 0 6px !important; }
.mk-diag__text { color: var(--mk-muted-d); font-size: 16px; margin: 0 !important; max-width: 60ch; }
.mk-diag .mk-btn { flex-shrink: 0; }
@media (max-width: 760px) { .mk-diag { flex-direction: column; align-items: flex-start; } }
/* Variante sobre fondo oscuro: directorio de perfiles de atletas */
.mk-sec--night .mk-diag { background: var(--mk-night-2); box-shadow: inset 0 0 0 1px var(--mk-line-d); }
.mk-showcase__sites { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mk-showcase__sites a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--mk-line-d); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px;
}
.mk-showcase__sites a:hover { border-color: var(--mk-green); color: var(--mk-green) !important; }
/* Imagen en lugar de video en una tarjeta de proyecto */
.mk-video__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0b0814; }
/* Nota bajo los pasos (opción secundaria) */
.mk-steps__note { margin-top: 28px !important; font-size: 15px; color: var(--mk-muted-l); }
.mk-sec--night .mk-steps__note { color: var(--mk-muted-d); }
