/* ==========================================================================
   Landing · Tecnificación de fútbol en España (/programas/tecnificacion/)
   Se apoya en global.css y landing.css. Textos: la formación y el método de la portada,
   Textos por pagina/tecnificacion y campus-internacional (objetivos y pautas de los entrenadores).
   ========================================================================== */

/* Encuadre de la foto: jugador a la izquierda, Víctor Betoret a la derecha */
.hero--tec { --lp-pos: 30% 40%; --lp-pos-mob: 19% 30%; }

/* ---------- 02 · Capacidades: gráfico de cuatro ejes ---------- */
.tec-skills { background: var(--navy); }
.tec-skills__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(40px, 6vw, 96px); align-items: start; }
.tec-radar { position: sticky; top: calc(var(--header-h) + 6vh); width: 100%; max-width: 560px; aspect-ratio: 1; padding: 40px; }
.tec-radar__svg { width: 100%; height: 100%; overflow: visible; }
.tec-radar__svg path, .tec-radar__svg circle { vector-effect: non-scaling-stroke; }
.tec-radar__rings path { fill: none; stroke: rgba(200, 212, 227, 0.2); stroke-width: 1; }
.tec-radar__rings path:first-child { stroke: rgba(200, 212, 227, 0.45); }
.tec-radar__axes { fill: none; stroke: rgba(200, 212, 227, 0.25); stroke-width: 1; stroke-dasharray: 3 6; }
.tec-radar__shape { fill: rgba(224, 0, 52, 0.22); stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round; }
.tec-radar__dots circle { fill: var(--navy); stroke: rgba(200, 212, 227, 0.6); stroke-width: 1.6; transition: fill 0.4s linear, stroke 0.4s linear; }
.tec-radar__dots circle.is-on { fill: var(--red); stroke: var(--white); }
.tec-radar__label { position: absolute; font: 800 clamp(0.8rem, 1.1vw, 1rem)/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: #8fa6bf; transition: color 0.4s linear; }
.tec-radar__label.is-on { color: var(--white); }
.tec-radar__label--n { top: 4px; left: 50%; transform: translateX(-50%); }
.tec-radar__label--s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.tec-radar__label--e { right: 0; top: 50%; transform: translate(0, -260%); }
.tec-radar__label--w { left: 0; top: 50%; transform: translate(0, -260%); }
/* Sin JS o sin movimiento, el rombo queda completo (así viene en el HTML) */

.tec-list { display: grid; }
.tec-item { 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); }
.tec-item:last-child { border-bottom: 1px solid var(--line-soft); }
.tec-item__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), opacity 0.5s linear; }
.tec-item__icon svg { width: 34px; height: 34px; overflow: visible; }
.tec-item__icon svg * { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tec-item__icon svg .ic-red { stroke: var(--red); }
.tec-item__kicker { font: 700 0.8125rem/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.tec-item__name { font: 900 clamp(1.9rem, 3vw, 3rem)/0.95 var(--font-display); text-transform: uppercase; transition: color 0.5s linear; }
.tec-item__text { color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.js.motion-ok .tec-skills__grid.is-live .tec-item:not(.is-on) .tec-item__name { color: rgba(245, 248, 252, 0.42); }
.js.motion-ok .tec-skills__grid.is-live .tec-item:not(.is-on) .tec-item__icon { opacity: 0.45; }
.tec-item.is-on .tec-item__icon { background: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.tec-item.is-on .tec-item__icon svg .ic-red { stroke: var(--white); }

/* ---------- 03 · Modalidades ---------- */
.tec-formats { background: var(--navy-950); }
.tec-formats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 80px); }
.tec-format { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2vw, 28px); background: linear-gradient(160deg, var(--navy-800), var(--navy)); box-shadow: inset 0 0 0 1px var(--line-soft); }
.tec-format__art { width: 100%; height: auto; margin-bottom: 8px; overflow: visible; }
.tec-format__art * { vector-effect: non-scaling-stroke; }
.tf-line { fill: none; stroke: rgba(200, 212, 227, 0.55); stroke-width: 1.4; }
.tf-tick { fill: none; stroke: rgba(200, 212, 227, 0.55); stroke-width: 1.4; }
.tf-red { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tf-ring { fill: none; stroke: var(--white); stroke-width: 1.8; }
.tf-ring--soft { stroke: rgba(200, 212, 227, 0.55); stroke-dasharray: 3 4; }
.tf-dot { fill: var(--white); }
.tf-dot--red { fill: var(--red); }
.tec-format__name { font: 900 clamp(1.7rem, 2.3vw, 2.4rem)/0.95 var(--font-display); text-transform: uppercase; }
.tec-format__text { color: var(--muted); text-wrap: pretty; }
.tec-format__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.tec-format__specs dt { font: 600 0.6875rem/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--line); }
.tec-format__specs dd { margin: 6px 0 0; font: 800 1.15rem/1.05 var(--font-display); text-transform: uppercase; }
.tec-format__steps { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); counter-reset: st; }
.tec-format__steps li { display: flex; align-items: center; gap: 10px; font: 800 1.05rem/1.05 var(--font-display); text-transform: uppercase; counter-increment: st; }
.tec-format__steps li::before { content: counter(st); display: grid; place-items: center; flex: none; width: 24px; height: 24px; font-size: 0.8rem; background: var(--red); color: var(--white); }

/* ---------- 04 · Método ---------- */
.tec-method { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%); overflow: hidden; }
.tec-method__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.tec-board { width: 100%; max-width: 560px; aspect-ratio: 3 / 2; justify-self: end; }
.tec-board svg { width: 100%; height: 100%; overflow: visible; }
.tec-board .art-line { fill: none; stroke: rgba(200, 212, 227, 0.55); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tec-board .art-strong { fill: none; stroke: var(--white); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.tec-board .art-red { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tec-board .art-dot { fill: var(--white); }
.tec-board .art-dot--red { fill: var(--red); }
.tec-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(48px, 6vw, 96px); }
.tec-pillar { position: relative; display: grid; gap: 12px; align-content: start; padding-top: clamp(20px, 2.4vw, 32px); }
.tec-pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); transform-origin: left center; }
.tec-pillar__num { font: 900 clamp(3rem, 5vw, 5rem)/0.8 var(--font-display); color: transparent; -webkit-text-stroke: 1.4px rgba(200, 212, 227, 0.6); }
.tec-pillar__name { font: 900 clamp(2rem, 3vw, 3rem)/0.95 var(--font-display); text-transform: uppercase; }
.tec-pillar p { color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.js.motion-ok .tec-pillar::before { transform: scaleX(0); }
.js.motion-ok .tec-pillar.is-drawn::before { transform: scaleX(1); transition: transform 1.1s var(--ease-in-out); }

/* ---------- 05 · Diez pautas ---------- */
.tec-rules { background: var(--navy-950); }
.tec-rules__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 96px); margin-top: clamp(40px, 5vw, 80px); counter-reset: r; }
.tec-rules__list li { position: relative; display: grid; grid-template-columns: clamp(64px, 7vw, 104px) minmax(0, 1fr); align-items: center; gap: clamp(14px, 2vw, 28px); padding: clamp(16px, 2.4vh, 26px) 0; }
.tec-rules__list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-soft); transform-origin: left center; }
.tec-rules__num { font: 900 clamp(2.6rem, 4.4vw, 4.4rem)/0.8 var(--font-display); color: transparent; -webkit-text-stroke: 1.4px var(--red); letter-spacing: -0.02em; }
.tec-rules__list p { font: 700 clamp(1.15rem, 1.6vw, 1.5rem)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.js.motion-ok .tec-rules__list li::after { transform: scaleX(0); }
.js.motion-ok .tec-rules__list li.is-drawn::after { transform: scaleX(1); transition: transform 1s var(--ease-in-out); }

/* ---------- 06 · Entrenadores ---------- */
.tec-coaches { background: var(--navy); }
.tec-coaches__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 5vw, 80px); }
.tec-coach { display: grid; gap: 6px; align-content: start; }
.tec-coach__photo { position: relative; margin: 0 0 10px; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(180deg, var(--navy-700), var(--navy-950)); box-shadow: inset 0 0 0 1px var(--line-soft); }
/* Las fotos son recortes sin fondo: la figura entera, apoyada abajo y con aire por encima de la cabeza */
.tec-coach__photo img { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-width: 100%; height: 92%; margin: 0 auto; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; }
.tec-coach__name { font: 900 clamp(1.4rem, 2vw, 2rem)/0.95 var(--font-display); text-transform: uppercase; }
.tec-coach__lic { font: 700 0.75rem/1.2 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.tec-coaches__more { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- 07 · Sedes y cómo venir ---------- */
.tec-where { background: var(--navy-950); }
.tec-venues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 80px); }
.tec-venue { display: grid; gap: 8px; align-content: start; }
.tec-venue__photo { margin: 0 0 12px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-800); }
.tec-venue__photo img { width: 100%; height: 100%; object-fit: cover; }
.tec-venue__place { font: 700 0.75rem/1 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }
.tec-venue__name { font: 900 clamp(1.9rem, 3vw, 3rem)/0.95 var(--font-display); text-transform: uppercase; }
.tec-venue__text { color: var(--muted); max-width: 48ch; }
.tec-where .lp-routes { margin-top: clamp(48px, 6vw, 96px); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .tec-coaches__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tec-formats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .tec-skills__grid { grid-template-columns: 1fr; }
  .tec-radar { position: relative; top: auto; max-width: 420px; justify-self: center; }
  .tec-method__top { grid-template-columns: 1fr; }
  .tec-board { justify-self: start; max-width: 420px; }
  .tec-pillars { grid-template-columns: 1fr; }
  .tec-rules__list { grid-template-columns: 1fr; }
  .tec-venues { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tec-formats__list { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .tec-radar { padding: 32px 8px; }
  .tec-radar__label { font-size: 0.6875rem; letter-spacing: 0.16em; }
  .tec-radar__label--e, .tec-radar__label--w { transform: translate(0, -340%); }
}
