/* ==========================================================================
   Landing · Escuela de porteros y arqueros (/programas/porteros/)
   Se apoya en global.css y landing.css. Textos: Textos por pagina/campus-internacional (programa para porteros)
   y casos de éxito (Jeremias Martinet, Ágatha Basilio).
   ========================================================================== */


/* Encuadre de la foto del portero (está en su tercio izquierdo) */
.hero--gk { --lp-pos: 18% 40%; --lp-pos-mob: 22% 30%; }

/* ---------- 02 · Método: portería que se dibuja ---------- */
.gk-method { padding: var(--space-xl) var(--gutter); background: var(--navy); }
.gk-method__head { display: grid; gap: clamp(16px, 2vw, 28px); max-width: 1100px; }
.gk-method__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(40px, 6vw, 96px); align-items: start; }
.gk-goal { position: sticky; top: calc(var(--header-h) + 6vh); }
.gk-goal__svg { width: 100%; height: auto; overflow: visible; }
.gk-goal__svg path, .gk-goal__svg rect { vector-effect: non-scaling-stroke; }
.gk-goal__net path { fill: none; stroke: rgba(200, 212, 227, 0.16); stroke-width: 1; }
.gk-goal__frame { fill: none; stroke: var(--white); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.gk-goal__ground { fill: none; stroke: var(--line); stroke-width: 1.4; }
.gk-goal__zone { fill: var(--red); fill-opacity: 0; stroke: none; transition: fill-opacity 0.6s var(--ease-out); }
.gk-goal__zone.is-on { fill-opacity: 0.22; }
.gk-goal__nums text { font: 800 22px/1 var(--font-display); letter-spacing: 0.1em; fill: rgba(200, 212, 227, 0.4); transition: fill 0.4s linear; }
.gk-goal__nums text.is-on { fill: var(--white); }
.gk-goal__shots path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 0; }
.gk-goal__spot { fill: var(--white); }
.gk-goal__ball { fill: var(--white); stroke: var(--red); stroke-width: 3; pointer-events: none; }
/* Sin movimiento: todas las zonas visibles */
.no-js .gk-goal__zone, .js:not(.motion-ok) .gk-goal__zone { fill-opacity: 0.12; }

.gk-pillars { display: grid; gap: 0; counter-reset: p; }
.gk-pillar { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: clamp(16px, 2vw, 28px); row-gap: 8px; padding: clamp(28px, 6vh, 64px) 0; border-top: 1px solid var(--line-soft); transition: opacity 0.5s linear; }
.gk-pillar:last-child { border-bottom: 1px solid var(--line-soft); }
.gk-pillar__icon { grid-row: 1 / span 3; width: 64px; height: 64px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-soft); transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.gk-pillar__icon svg { width: 34px; height: 34px; overflow: visible; }
.gk-pillar__icon svg * { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gk-pillar__icon svg .ic-red { stroke: var(--red); }
.gk-pillar__num { font: 800 0.8125rem/1 var(--font-display); letter-spacing: 0.2em; color: var(--muted); }
.gk-pillar__name { font: 900 clamp(1.9rem, 3vw, 3rem)/0.95 var(--font-display); text-transform: uppercase; letter-spacing: -0.005em; }
.gk-pillar__text { color: var(--muted); max-width: 44ch; text-wrap: pretty; }
/* Pilar inactivo: se apagan el título y el icono; el texto mantiene su contraste (WCAG AA) */
.gk-pillar__name, .gk-pillar__icon { transition: color 0.5s linear, opacity 0.5s linear, background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.js.motion-ok .gk-method__grid.is-live .gk-pillar:not(.is-on) .gk-pillar__name { color: rgba(245, 248, 252, 0.42); }
.js.motion-ok .gk-method__grid.is-live .gk-pillar:not(.is-on) .gk-pillar__icon { opacity: 0.45; }
.gk-pillar.is-on .gk-pillar__icon { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.gk-pillar.is-on .gk-pillar__icon svg .ic-red { stroke: var(--white); }

/* ---------- 03 · Grupos ---------- */
.gk-groups { padding: var(--space-xl) var(--gutter); background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%); overflow: hidden; }
.gk-groups__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.gk-groups__copy { display: grid; gap: clamp(16px, 2vw, 28px); }
.gk-ratio { margin: 0; display: grid; gap: clamp(20px, 3vw, 36px); }
.gk-ratio__art { position: relative; display: grid; grid-template-rows: auto clamp(90px, 12vw, 150px) auto; justify-items: center; }
.gk-ratio__coach { display: grid; place-items: center; width: clamp(64px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.gk-ratio__coach svg { width: 58%; height: 58%; }
.gk-ratio__coach svg * { fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gk-ratio__lines { width: 100%; height: 100%; overflow: visible; }
.gk-ratio__lines path { fill: none; stroke: var(--white); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.gk-ratio__lines path.is-soft { stroke: rgba(200, 212, 227, 0.5); stroke-dasharray: 3 6; }
.gk-ratio__gloves { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; justify-items: center; }
.gk-ratio__gloves > span { display: grid; place-items: center; width: min(76px, 15vw); aspect-ratio: 1; box-shadow: inset 0 0 0 1px rgba(245, 248, 252, 0.4); background: var(--navy-950); }
.gk-ratio__gloves > span.is-soft { box-shadow: inset 0 0 0 1px rgba(200, 212, 227, 0.4); background: transparent; border: 1px dashed transparent; }
.gk-ratio__gloves svg { width: 58%; height: 58%; overflow: visible; }
.gk-ratio__gloves svg * { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gk-ratio__gloves svg .ic-red { stroke: var(--red); }
.gk-ratio__gloves .is-soft svg * { stroke: rgba(200, 212, 227, 0.6); }
.gk-ratio__num { display: flex; align-items: baseline; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.gk-ratio__num b { font: 900 clamp(4.5rem, 10vw, 9rem)/0.8 var(--font-display); color: var(--red); letter-spacing: -0.02em; }
.gk-ratio__num span { font: 700 clamp(1rem, 1.4vw, 1.25rem)/1.1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; max-width: 14ch; text-align: left; }

.gk-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 110px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-soft); }
.gk-points li { display: grid; gap: 10px; align-content: start; }
.gk-points__icon { width: 44px; height: 44px; }
.gk-points__icon svg { width: 100%; height: 100%; overflow: visible; }
.gk-points__icon svg * { fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gk-points__icon svg .ic-red { stroke: var(--red); }
.gk-points h3 { font: 800 clamp(1.4rem, 1.9vw, 1.8rem)/1 var(--font-display); text-transform: uppercase; }
.gk-points p { color: var(--muted); max-width: 38ch; }

/* ---------- 04 · Casos ---------- */
.gk-cases { padding: var(--space-xl) var(--gutter); background: var(--navy-950); }
.gk-cases__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 80px); align-items: end; }
.gk-cases__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 80px); }
.gk-case article { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); height: 100%; background: linear-gradient(160deg, var(--navy-800), var(--navy)); box-shadow: inset 0 0 0 1px var(--line-soft); }
.gk-case__photo { position: relative; margin: 0; overflow: hidden; background: var(--navy-700); }
.gk-case__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; aspect-ratio: 439 / 620; }
.gk-case__photo .note { position: absolute; left: 14px; bottom: 10px; font-size: clamp(1.4rem, 1.8vw, 1.9rem); color: var(--white); transform: rotate(-6deg); text-shadow: 0 2px 12px rgba(2, 14, 28, 0.8); }
.gk-case__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 36px); min-width: 0; }
.gk-case__name { font: 900 clamp(2rem, 3.2vw, 3.4rem)/0.9 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.gk-case__meta { font: 600 0.75rem/1.3 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.gk-case__line { width: 120px; height: 24px; margin: auto 0 0; overflow: visible; }
.gk-case__line path { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gk-case__now-label { font: 700 0.75rem/1 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }
.gk-case__now { display: grid; gap: 12px; }
.gk-case__now li { display: flex; align-items: center; gap: 12px; }
.gk-case__now img { width: auto; height: 46px; }
.gk-case__now span { display: grid; font: 800 1.35rem/1 var(--font-display); text-transform: uppercase; }
.gk-case__now small { font: 600 0.6875rem/1.4 var(--font-display); letter-spacing: 0.2em; color: var(--line); }
.gk-cases__more { margin-top: clamp(28px, 4vw, 48px); }


/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .gk-cases__list { grid-template-columns: 1fr; max-width: 760px; }
}

@media (max-width: 899px) {

  .gk-method__grid { grid-template-columns: 1fr; }
  .gk-goal { position: relative; top: auto; max-width: 520px; }
  .gk-groups__grid { grid-template-columns: 1fr; }
  .gk-points { grid-template-columns: 1fr; }
  .gk-cases__head { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .gk-case article { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); }
  .gk-case__body { padding: 16px; }
  .gk-case__name { font-size: 1.8rem; }
  .gk-case__now span { font-size: 1.1rem; }
  .gk-case__now img { height: 36px; }
  .gk-ratio__num { gap: 10px; }
}
