:root {
  color: #17241f;
  background: #edf5fb;
  font: 16px/1.55 system-ui, sans-serif;
  --muted: #445c72;
  --border: #d6e3ef;
  --green: #c1f659;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(#fff 80px, #e6f0f8 80px, #f6faff); }
a { color: inherit; }
:focus-visible { outline: 3px solid #255a42; outline-offset: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.045em; }
p, dd, figcaption { color: var(--muted); }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: 20px; }

.site-header, .site-footer, .overview-grid, .academy-explore, .modules { width: min(1440px, calc(100% - 60px)); margin-inline: auto; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.site-header { padding-block: 20px; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.site-header img { width: 182px; height: auto; }
.site-header nav { display: flex; gap: clamp(10px, 2vw, 28px); }
.site-header nav a, .site-footer a { font-weight: 690; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* Portada y captura del sistema */
.overview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 92% 65%, #136b91, transparent 61%),
    linear-gradient(120deg, #124372 0%, #0a213e 45%, #09395d);
}
.overview::before, .overview::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.overview::before {
  width: 69%;
  height: 132%;
  right: -19%;
  top: 4%;
  border: 1px solid #70e7ff80;
  border-radius: 50%;
  transform: rotate(-23deg);
  background: radial-gradient(ellipse at 57% 6%, #20c5dfd9, #14769b68 35%, transparent 69%);
  box-shadow: inset 0 12px 28px #68e9ff49;
}
.overview::after {
  width: 120%;
  height: 64%;
  right: -6%;
  bottom: -49%;
  transform: rotate(-5deg);
  border-radius: 58% 55% 0 0;
  background: linear-gradient(96deg, #a9f44d, #1b7594 39%, #53e4f6 88%);
  box-shadow: 0 -3px 24px #66dfff59;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .39fr) minmax(0, .61fr);
  align-items: center;
  gap: clamp(26px, 4vw, 76px);
  padding-block: clamp(44px, 7vw, 108px);
}
.academy-explore {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  margin-top: clamp(24px, 4vw, 55px);
}
.panel { min-width: 0; background: #fff; border: 1px solid #f7f9f5; border-radius: 28px; }
.intro, .overview-index, .workflow, .module-copy { padding: clamp(17px, 2vw, 29px); }
.intro.panel { border: 0; background: transparent; padding: 0; }
.intro .eyebrow {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
}
.eyebrow {
  color: #216378;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}
h1 { font-size: clamp(2.35rem, 4.2vw, 4.8rem); font-weight: 830; text-wrap: balance; }
h1 span { display: block; color: var(--green); text-shadow: 0 0 24px #c1f65932; }
.intro > p:not(.eyebrow) { max-width: 45ch; margin-top: 1rem; color: #e0efff; font-size: clamp(1rem, 1.25vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; }
.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.primary { background: var(--green); border-color: var(--green); color: #132638; box-shadow: 0 5px 22px #b7ff5736; }
.secondary { background: #1c537254; border-color: #a1d5ed; color: #fff; }
.button:hover { border-color: #6d9564; }

.overview-shot.panel {
  padding: clamp(6px, 1vw, 13px);
  border-color: #74c7eeaa;
  background: linear-gradient(155deg, #1d5275, #0a213a 66%);
  box-shadow: 0 20px 48px #03172d9c, 0 0 37px #45d1ff4a, inset 0 1px 0 #b4e8ff85;
}
.overview-shot .screenshot { border-radius: clamp(9px, 1.1vw, 17px); }
.overview-shot figcaption, .overview-shot figcaption strong { color: #e2f3ff; }
.screenshot {
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
  background: #e9f0f4;
  cursor: zoom-in;
}
.overview-shot .screenshot { flex: 1; display: grid; align-items: center; }
.screenshot img { width: 100%; height: auto; }
.zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 43px;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: #1b3222;
  font-size: 1.25rem;
}
.screenshot:hover .zoom { background: var(--green); }
figcaption { padding: 10px 9px 2px; font-size: 1.32rem; font-weight: 700; }
.overview-shot figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; }



.overview-index {
  grid-row: 2;
  padding: clamp(15px, 2.2vw, 34px);
  background: linear-gradient(145deg, #fff, #f3f3fb);
  border-color: #e3e5f4;
  color: #10132a;
}
.index-heading {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(15px, 2vw, 28px);
  padding-inline: clamp(0px, .7vw, 10px);
}
.index-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 40%;
  background: radial-gradient(ellipse at 64% 50%, #e5e0ff, transparent 70%);
}
.index-kicker, .index-badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .38em .8em;
  border-radius: 999px;
  background: #ebe5ff;
  color: #4923c7;
  font-size: .78rem;
  font-weight: 750;
}
.index-kicker { margin-bottom: 10px; }
.index-heading h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); margin-bottom: 6px; }
.index-heading > div > p:last-child { color: #38435d; font-weight: 580; }
.index-art { width: min(100%, 430px); max-height: 185px; object-fit: contain; justify-self: end; }
.index-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(9px, 1.05vw, 16px); }
.index-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(11px, 1.22vw, 21px);
  border: 1px solid #e1e4f3;
  border-radius: 19px;
  text-decoration: none;
  background: linear-gradient(145deg, #fff, #fcfcff);
  box-shadow: 0 5px 11px #19245b12;
  transition: transform .16s, border-color .16s, box-shadow .16s;
  --icon: #4a90fc;
  --ink: #1258b5;
  --wash: #e6f0ff;
}
.index-link:hover, .index-link:focus-visible {
  border-color: var(--icon);
  box-shadow: 0 7px 16px #19245b24;
  transform: translateY(-2px);
}
.index-link[href="#mi-academia"] { --icon: #7562ee; --ink: #5631c8; --wash: #ece8ff; }
.index-link[href="#alumnos"] { --icon: #28bc76; --ink: #086941; --wash: #dff8eb; }
.index-link[href="#agenda"] { --icon: #ef6068; --ink: #a41d2e; --wash: #ffe8ea; }
.index-link[href="#entrenamientos"] { --icon: #ed792b; --ink: #9d4810; --wash: #ffebda; }
.index-link[href="#evaluaciones"] { --icon: #a05af2; --ink: #6826b7; --wash: #f1e5ff; }
.index-link[href="#asistencia"] { --icon: #23b6b8; --ink: #086b68; --wash: #ddf7f4; }
.index-link[href="#torneos"] { --icon: #e0a800; --ink: #795500; --wash: #fff4d3; }
.index-link[href="#tienda"] { --icon: #ed4081; --ink: #a61653; --wash: #ffe4ef; }
.index-link[href="#cobros"] { --icon: #47c75e; --ink: #166c29; --wash: #e2f9df; }
.index-link[href="#sponsors"] { --icon: #8066ec; --ink: #5834bd; --wash: #eee7ff; }
.index-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--icon), white 13%), var(--icon));
  color: #fff;
}
.index-symbol svg, .index-kicker svg, .index-badge svg, .index-arrow svg {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.index-symbol svg { font-size: 25px; }
.index-link strong { font-size: clamp(.93rem, 1.3vw, 1.17rem); line-height: 1.12; overflow-wrap: anywhere; }
.index-link small { margin-top: 6px; color: #46526c; font-size: .84rem; line-height: 1.23; }
.index-card-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
}
.index-badge { font-size: .7rem; color: var(--ink); background: var(--wash); padding-inline: .62em; }
.index-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: auto;
  border-radius: 50%;
  background: #f0eefe;
  color: #4224b9;
}
@media (max-width: 1050px) { .index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 740px) { .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .index-heading { grid-template-columns: minmax(0, 1fr); } .index-art { max-height: 105px; justify-self: center; } }
@media (prefers-reduced-motion: reduce) { .index-link { transition: none; } }

.workflow h2, .section-heading h2 { font-size: clamp(1.65rem, 3vw, 2.8rem); }
.workflow-grid {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.workflow-grid li {
  padding: 14px;
  border-radius: 16px;
  color: #fff;
  background: radial-gradient(ellipse at top right, var(--flare), transparent 70%), var(--tile);
  border: 1px solid #9edbff41;
  box-shadow: 0 6px 12px #08244529;
  --tile: #1350a4;
  --flare: #249ff7;
}
.workflow-grid li:nth-child(2) { --tile: #056475; --flare: #10a6a9; }
.workflow-grid li:nth-child(3) { --tile: #52429e; --flare: #8b6bf3; }
.workflow-grid li:nth-child(4) { --tile: #175d45; --flare: #248761; }
.workflow-grid p { color: #f1f8ff; }
.step-number { color: #e8ffad; font-size: .78rem; font-weight: 800; }
.workflow-grid h3 { margin: 5px 0; font-size: 1.06rem; }
.workflow-grid p, .workflow-grid a { font-size: .88rem; }
.workflow-grid a { display: inline-block; margin-top: 6px; font-weight: 680; }

.modules { display: grid; gap: 14px; margin-top: clamp(28px, 5vw, 70px); }
.section-heading { padding-inline: 6px; margin-bottom: 6px; }
.module {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr);
  gap: 10px;
  padding: 10px;
  align-items: center;
}
.module-portrait figure { max-width: 340px; justify-self: center; }
.module-copy h3 { color: #245da6; font-size: clamp(1.9rem, 3.2vw, 3.15rem); }
.module-copy > p:not(.eyebrow) { margin-top: 12px; }
.module-copy dl { margin-top: 17px; border-radius: 14px; background: #eaf4fc; padding: 13px; }
.module-copy dt { font-weight: 720; }
.module-copy dd { margin-top: 3px; }
.site-footer { padding-block: 28px; font-size: .87rem; }

.viewer {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 12px;
  border: 0;
  background: #101917;
  color: white;
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; }
.viewer-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; z-index: 1; }
.viewer-zoom { display: flex; gap: 4px; margin-right: auto; }
.viewer-toolbar button {
  min-width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #eaf4fc;
  color: #0a2746;
  cursor: pointer;
  font: 700 .9rem/1 system-ui, sans-serif;
}
.viewer-toolbar button:disabled { opacity: .5; cursor: default; }
.viewer-toolbar button:focus-visible { outline-color: #a8e7ff; }
.viewer-toolbar [data-zoom-reset] { min-width: 60px; }
.viewer .viewer-status {
  position: absolute;
  top: 54px;
  right: 8px;
  max-width: min(90%, 300px);
  padding: 7px;
  border-radius: 8px;
  background: #102132;
  font-size: .85rem;
  z-index: 2;
}
.viewer-stage { min-width: 0; min-height: 0; overflow: hidden; touch-action: none; }
.viewer-stage.is-zoomed { cursor: grab; }
.viewer-stage.is-zoomed:active { cursor: grabbing; }
.close { cursor: pointer; padding: 9px 13px; border: 0; border-radius: 10px; font: inherit; }
.viewer img { width: 100%; height: 100%; object-fit: contain; min-height: 0; pointer-events: none; user-select: none; }
.viewer p { color: #fff; text-align: center; font-size: 1.32rem; font-weight: 700; }
.viewer-controls:not([hidden]) {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.viewer-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #b6cce6;
  border-radius: 12px;
  background: #eaf4fc;
  color: #0a2746;
  cursor: pointer;
  font: 700 1.6rem/1 system-ui, sans-serif;
}
.viewer-controls button:focus-visible { outline-color: #a8e7ff; }
.viewer-controls span { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
/* Keep the screenshot as tall as possible on short landscape screens. */
@media (orientation: landscape) and (max-height: 540px) {
  .viewer {
    --side-space: 50px;
    padding: 2px max(var(--side-space), env(safe-area-inset-right))
      max(2px, env(safe-area-inset-bottom)) max(var(--side-space), env(safe-area-inset-left));
  }
  .viewer[open] { grid-template-rows: minmax(0, 1fr) auto; gap: 2px; }
  .viewer-toolbar {
    position: absolute;
    top: max(4px, env(safe-area-inset-top));
    right: max(4px, env(safe-area-inset-right));
    z-index: 1;
  }
  .viewer-zoom { position: fixed; top: max(4px, env(safe-area-inset-top)); left: max(4px, env(safe-area-inset-left)); }
  .viewer .close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.45rem;
  }
  .viewer .close span { display: none; }
  .viewer-footer {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
  }
  .viewer p {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .87rem;
  }
  .viewer-controls:not([hidden]) { margin: 0; }
  .viewer-controls span { font-size: .78rem; white-space: nowrap; }
  .viewer-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .viewer-controls [data-viewer-prev] { left: max(3px, env(safe-area-inset-left)); }
  .viewer-controls [data-viewer-next] { right: max(3px, env(safe-area-inset-right)); }
}
html:has(.viewer[open]) { overflow: hidden; }

@media (max-width: 740px) {
  .site-header, .site-footer, .overview-grid, .academy-explore, .modules { width: calc(100% - 28px); }
  .site-header { padding-block: 12px; }
  .site-header img { width: clamp(110px, 31vw, 150px); }
  .site-header nav { font-size: .82rem; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); padding-block: 36px 42px; gap: 23px; }
  .overview::before { width: 110%; height: 76%; top: auto; bottom: -22%; right: -55%; }
  .panel { border-radius: 22px; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module { grid-template-columns: minmax(0, 1fr); }
}

.module-capabilities {
  display: grid;
  gap: 8px;
  padding-left: 19px;
  color: var(--muted);
}
.module-capabilities strong { color: #17241f; }
.module-carousel { min-width: 0; }
.carousel-slides { touch-action: pan-y pinch-zoom; }
.carousel-slide .screenshot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #eaf3fb;
}
.carousel-slide img { height: 100%; object-fit: contain; }
.carousel-controls:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 7px;
}
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #eaf4fc;
  color: #0a2746;
  cursor: pointer;
  font: 700 1.6rem/1 system-ui, sans-serif;
}
.carousel-controls button:hover { background: var(--green); }
.carousel-controls span { font-size: .9rem; font-variant-numeric: tabular-nums; }
