@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bebas-neue-latin.woff2?v=20261111a") format("woff2");
}

:root {
  --bg: #0b0b0d;
  --surface: #151518;
  --surface-2: #1d1d21;
  --line: #2a2a30;
  --text: #f2f2f3;
  --muted: #a9abb2;
  --silver: #c9ccd1;
  --red: #d7192a;
  --red-hover: #ef2536;
  --wa: #1fa855;
  --wa-hover: #24c062;
  --display: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", "sans-serif-condensed", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 88px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--silver); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.red { color: var(--red); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.kicker {
  margin: 0 0 8px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
}

.title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 10.5vw, 4rem);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 92px 0 72px;
  background: var(--bg);
  border-bottom: 4px solid var(--red);
}
.hero__media { position: absolute; inset: 0; }
.hero__media::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("/video/hero-dojo-poster.webp?v=20261111a") center / cover no-repeat;
  filter: blur(28px) brightness(.45) saturate(.8);
}
.hero__bg { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; filter: contrast(1.1); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(11, 11, 13, .3) 0%, rgba(11, 11, 13, .7) 75%),
    linear-gradient(180deg, rgba(215, 25, 42, .18) 0%, rgba(11, 11, 13, 0) 35%, rgba(11, 11, 13, .55) 60%, var(--bg) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -30px;
  width: 150px;
  height: 70px;
  background: var(--red);
  transform: skewX(-24deg);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__brand {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 6.5rem);
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}
.hero__title {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--silver);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .9);
}
.hero__lead { max-width: 34ch; margin: 0 auto 28px; color: #e2e3e7; font-size: 1.0625rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.hero__actions { display: flex; flex-direction: column; align-items: center; }

/* Logo en vista explotada: js/hero.js crea las piezas y las ensambla */
.crest {
  --size: 176px;
  position: relative;
  width: var(--size);
  height: var(--size);
  margin: 0 auto 22px;
  perspective: 700px;
}
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; }
.crest__ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 3px solid var(--red);
  opacity: 0;
  pointer-events: none;
}
.crest.is-building .crest__full { opacity: 0; }
.crest__part { will-change: transform, opacity; opacity: 0; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }

@media (prefers-reduced-motion: no-preference) {
  .hero__brand { animation: slam .38s cubic-bezier(.2, .9, .3, 1.2) 2.45s backwards; }
  .hero__title, .hero__lead, .hero__actions { animation: rise .5s ease-out backwards; }
  .hero__title { animation-delay: 2.7s; }
  .hero__lead { animation-delay: 2.8s; }
  .hero__actions { animation-delay: 2.9s; }
  .hero__bg { animation: bg-in 1.2s ease-out both; }
}

@keyframes slam {
  0% { opacity: 0; transform: scale(2.4); letter-spacing: .2em; }
  100% { opacity: 1; transform: scale(1); letter-spacing: .01em; }
}
@keyframes rise {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: none; }
}
@keyframes bg-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes drift { 0% { transform: scale(1.05) translateX(0); } 100% { transform: scale(1.12) translateX(-2%); } }

/* Buttons + microinteracciones */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1.4), box-shadow .2s ease, border-color .2s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn--wa { width: 100%; max-width: 420px; background: var(--wa); color: #fff; box-shadow: 0 6px 0 #127a3c; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { border: 2px solid var(--silver); color: var(--text); }
.btn--ghost:hover { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-3px); }
  .btn--wa:hover { box-shadow: 0 9px 0 #127a3c, 0 14px 28px rgba(31, 168, 85, .35); }
  .btn:hover::after { animation: shine .7s ease-out; }
  .btn:active { transform: translateY(4px) scale(.98); transition-duration: .06s; }
  .btn--wa:active { box-shadow: 0 2px 0 #127a3c; }
  .hero .btn--wa { animation: nudge 4s ease-in-out 4.5s infinite; }
}
@keyframes shine { 0% { left: -60%; } 100% { left: 130%; } }
@keyframes nudge {
  0%, 88%, 100% { translate: 0 0; rotate: 0deg; }
  91% { translate: -4px 0; rotate: -1deg; }
  94% { translate: 4px 0; rotate: 1deg; }
  97% { translate: -2px 0; rotate: 0deg; }
}
.icon { width: 24px; height: 24px; flex: none; }

.link-sec {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 4px;
  color: var(--silver);
  font-weight: 600;
  text-underline-offset: 4px;
}
.link-sec:hover { color: var(--text); }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--surface); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
}
.card h3 { margin: 0 0 6px; font-size: 1.1875rem; }
.card p { margin: 0; color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list strong { font-size: 1.1875rem; }
.list span { color: var(--muted); }

.days { display: grid; gap: 14px; }
.day { background: var(--surface); border: 1px solid var(--line); }
.day__name {
  margin: 0;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.slot { margin: 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); }
.day__name + .slot { border-top: 0; }
.slot time { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.slot span { color: var(--muted); }
.note { margin: 20px 0 0; color: var(--silver); font-weight: 600; }

.coach { display: grid; gap: 28px; align-items: center; }
.coach__photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
  border-bottom: 4px solid var(--red);
}
.coach p:not(.kicker) { margin: 0; color: var(--muted); max-width: 46ch; }
.coach__name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
}
.team { display: grid; gap: 28px; }
.team__card { position: relative; margin: 0; overflow: hidden; border-bottom: 4px solid var(--red); }
.team__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; transition: transform .5s ease; }
.team__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 56px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 13, .92));
}
.team__cap--duo div:last-child { text-align: right; }
.team__role { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }
.team__name { margin: 2px 0 0; font-family: var(--display); font-weight: 400; font-size: 2.4rem; line-height: 1; text-transform: uppercase; }
.team__bio { margin: 14px 0 0; color: var(--muted); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .team__card:hover img { transform: scale(1.04); }
}

.section__lead { margin: -8px 0 24px; color: var(--muted); max-width: 46ch; }
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 8px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 82%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: center;
  border-bottom: 4px solid var(--red);
  transition: transform .3s ease, filter .3s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery img:hover { transform: scale(1.03) rotate(-.5deg); filter: saturate(1.15); }
}

.address { margin: 0 0 22px; color: var(--muted); }
.address strong { color: var(--text); font-size: 1.1875rem; }

.cta {
  padding: 72px 0;
  text-align: center;
  background:
    linear-gradient(200deg, rgba(215, 25, 42, .32) 0%, rgba(11, 11, 13, 0) 60%),
    var(--bg);
  border-top: 4px solid var(--red);
}
.cta p { margin: 0 auto 26px; color: var(--muted); max-width: 36ch; }

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.footer__inner { padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.footer p { margin: 0; }
.footer a { color: var(--silver); text-underline-offset: 3px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.wa-float:hover { background: var(--wa-hover); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--wa);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-float { transition: transform .2s cubic-bezier(.2, .8, .2, 1.4); animation: rise .5s ease-out 3.1s backwards; }
  .wa-float:hover { transform: translateY(-3px) scale(1.03); }
  .wa-float:active { transform: scale(.95); }
  .wa-float::before { animation: pulse-ring 3s ease-out 4s infinite; }
}
@keyframes pulse-ring {
  0% { opacity: .8; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(1.35, 1.6); }
}

/* Privacidad */
.doc { padding: 48px 0 64px; max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1; margin: 0 0 12px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 1.25rem; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.topbar a { color: var(--silver); text-decoration: none; font-weight: 700; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .hero { padding: 72px 0 96px; }
  .crest { --size: 220px; }
  .hero__actions { flex-direction: row; justify-content: center; gap: 24px; }
  .hero__actions .link-sec { margin-top: 0; }
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin: 0 auto; overflow: visible; }
  .gallery img { flex: none; width: 100%; }
  .hero::after { width: 380px; height: 180px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .days { grid-template-columns: repeat(3, 1fr); }
  .list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .list li:nth-last-child(2) { border-bottom: 0; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
  .wa-float { right: 24px; bottom: 24px; }
}

/* Menú fijo */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topnav__inner { display: flex; align-items: center; gap: 8px; min-height: 56px; padding-left: 14px; padding-right: 10px; }
.topnav__home { flex: none; display: block; width: 36px; height: 36px; }
.topnav__home img { width: 36px; height: 36px; }
.topnav__links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.topnav__links::-webkit-scrollbar { display: none; }
.topnav__links a {
  display: block;
  padding: 10px 6px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.topnav__links a { position: relative; border-bottom: 0; transition: color .2s ease, transform .2s ease; }
.topnav__links a::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.topnav__links a:hover, .topnav__links a:focus-visible, .topnav__links a.is-active { color: var(--text); }
.topnav__links a:hover::after, .topnav__links a:focus-visible::after, .topnav__links a.is-active::after { transform: scaleX(1); }
.topnav__links a:active { transform: translateY(1px) scale(.96); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .topnav__links a:hover { transform: translateY(-2px); }
}
.topnav__home img { transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .3s ease; }
@media (prefers-reduced-motion: no-preference) {
  .topnav__home:hover img, .topnav__home:focus-visible img { transform: rotate(360deg) scale(1.08); filter: drop-shadow(0 0 8px rgba(215, 25, 42, .6)); }
}
section[id], .subtitle[id] { scroll-margin-top: 72px; }

.subtitle {
  margin: 44px 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Capacitaciones */
.split { display: grid; gap: 28px; align-items: start; }
.split__photo { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-bottom: 4px solid var(--red); margin: 0 auto; }
.cards--compact { margin-bottom: 24px; }
.cards--compact .card { padding: 16px 18px; }

/* Afiliaciones */
.affil { display: grid; gap: 24px; margin-top: 8px; align-items: center; }
.affil__list { list-style: none; margin: 0 0 18px; padding: 0; }
.affil__list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.affil__list strong { font-size: 1.125rem; }
.affil__list span { color: var(--muted); }
.affil__logos { width: 100%; max-width: 360px; }
.affil__photo { width: 100%; max-width: 360px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; border-bottom: 4px solid var(--red); margin: 0 auto; }
.place { margin-top: 8px; }

/* Galería */
.gal-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gal-videos video { width: 100%; aspect-ratio: 480 / 848; object-fit: cover; background: #000; border-bottom: 4px solid var(--red); }
.gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gal-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gal-grid img:hover { transform: scale(1.03); filter: saturate(1.15); }
}

@media (min-width: 720px) {
  .topnav__links a { padding: 10px 14px; font-size: 1.3rem; }
  .split { grid-template-columns: 2fr 3fr; gap: 48px; }
  .split__photo { margin: 0; }
  .affil { grid-template-columns: 3fr 2fr; gap: 48px; }
  .affil__photo { margin: 0 0 0 auto; }
  .gal-videos { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Carruseles (mismo patrón que Biogenetic: deslizar, flechas y arrastre con mouse) */
.carrusel { position: relative; }
.carrusel__track {
  list-style: none; margin: 0; padding: 4px 20px 12px;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carrusel__track::-webkit-scrollbar { display: none; }
.carrusel__track:focus-visible { outline: 3px solid var(--silver); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .carrusel__track { cursor: grab; } }
.carrusel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carrusel__item { flex: 0 0 auto; scroll-snap-align: start; }
.carrusel__item img, .carrusel__item video { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; background: #000; }
.carrusel--uno { max-width: 440px; width: 100%; margin: 0 auto; }
.carrusel--uno .carrusel__track { padding: 0; scroll-padding: 0; gap: 0; }
.carrusel--uno .carrusel__item { width: 100%; aspect-ratio: 4 / 5; border-bottom: 4px solid var(--red); }
.carrusel__flecha {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(11, 11, 13, .85); color: var(--text); border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}
.carrusel__flecha svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.carrusel__flecha:hover { background: var(--red); }
.carrusel__flecha:active { transform: scale(.92); }
.carrusel__flecha:disabled { opacity: .25; cursor: default; background: rgba(11, 11, 13, .85); }
.carrusel__flecha--prev { left: 8px; }
.carrusel__flecha--next { right: 8px; }
.carrusel__cuenta { margin: 10px 20px 0; text-align: right; font-family: var(--display); font-size: 1.2rem; letter-spacing: .08em; color: var(--silver); }
.carrusel--uno .carrusel__cuenta { margin-right: 0; }

/* Eventos (se editan en data/eventos.json) */
.eventos { display: grid; gap: 20px; }
.eventos__vacio { margin: 0; color: var(--muted); }
.evento { display: grid; background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--red); }
.evento__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.evento__body { padding: 22px 22px 26px; }
.evento__fecha { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-family: var(--display); text-transform: uppercase; }
.evento__fecha span:first-child { font-size: 3.4rem; line-height: 1; color: var(--red); }
.evento__fecha span:last-child { font-size: 1.5rem; letter-spacing: .05em; color: var(--silver); }
.evento__titulo { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; text-transform: uppercase; }
.evento__detalle { margin: 0 0 10px; color: var(--muted); }
.evento__lugar { margin: 0 0 18px; color: var(--silver); font-weight: 700; }

/* Equipo de tres */
.team--tres { grid-template-columns: 1fr; }
.team--tres .team__card img { aspect-ratio: 4 / 5; height: auto; object-position: 50% 0%; }
.team--tres .team__card img[src*="caro"] { object-position: 50% 12%; }
.team--tres .team__card img[src*="maty"] { object-position: 50% 0%; }
.team__card--pendiente { background: radial-gradient(circle at 50% 40%, #2a1014 0%, var(--bg) 70%); }
.team--tres .team__card--pendiente img { object-fit: contain; padding: 18% 18% 30%; opacity: .55; }

/* Logo 3D al final de la página */
.coin {
  display: block; margin: 0 auto 6px; padding: 0; border: 0; background: none; cursor: pointer;
  width: 190px; height: 190px; perspective: 900px; -webkit-tap-highlight-color: transparent;
}
.coin:focus-visible { outline: 3px solid var(--silver); outline-offset: 8px; border-radius: 50%; }
.coin__body { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-22deg); transition: transform .5s ease; }
.coin__face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin__face--front { transform: translateZ(7px); }
.coin__face--back { transform: rotateY(180deg) translateZ(7px); }
.coin__edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin__edge i { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, #6d7076 0%, #3a3b40 70%, #222327 100%); }
.cta .coin__hint { margin: 0 auto 18px; font-family: var(--display); font-size: 1.1rem; letter-spacing: .12em; color: var(--silver); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .coin:not(.is-spinning):hover .coin__body { transform: rotateX(10deg) rotateY(28deg) scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .coin.is-spinning .coin__body { animation: coin-spin 4s linear infinite; }
  .coin.is-spinning.is-burst .coin__body { animation: coin-burst 1.3s cubic-bezier(.15, .7, .2, 1), coin-spin 4s linear 1.3s infinite; }
}
@keyframes coin-spin { from { transform: rotateX(8deg) rotateY(0deg); } to { transform: rotateX(8deg) rotateY(360deg); } }
@keyframes coin-burst { from { transform: rotateX(8deg) rotateY(-22deg) scale(1); } 40% { transform: rotateX(8deg) rotateY(400deg) scale(1.12); } to { transform: rotateX(8deg) rotateY(720deg) scale(1); } }

@media (min-width: 720px) {
  .carrusel__track { padding: 4px max(20px, calc((100vw - 1040px) / 2 + 20px)) 12px; scroll-padding: 0 max(20px, calc((100vw - 1040px) / 2 + 20px)); gap: 16px; }
  .carrusel--uno .carrusel__track { padding: 0; scroll-padding: 0; gap: 0; }
  .carrusel__flecha--prev { left: max(8px, calc((100vw - 1040px) / 2 - 24px)); }
  .carrusel__flecha--next { right: max(8px, calc((100vw - 1040px) / 2 - 24px)); }
  .carrusel--uno .carrusel__flecha--prev { left: 8px; }
  .carrusel--uno .carrusel__flecha--next { right: 8px; }
  .team--tres { grid-template-columns: repeat(3, 1fr); }
  .evento { grid-template-columns: 340px 1fr; align-items: center; }
  .evento__img { height: 100%; }
  .coin { width: 220px; height: 220px; }
}

/* Galería en 3D (coverflow): la foto del centro se agranda y se ve completa */
.carrusel__track { position: relative; }
.carrusel--3d .carrusel__track {
  --w: min(74vw, 340px);
  gap: 0;
  padding: 26px calc(50% - var(--w) / 2) 30px;
  scroll-padding: 0;
  perspective: 1100px;
  perspective-origin: 50% 50%;
}
.carrusel--3d .carrusel__item {
  width: var(--w);
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform-origin: 50% 50%;
  transition: transform .18s ease-out, opacity .18s ease-out, box-shadow .3s ease;
  background: radial-gradient(circle at 50% 40%, #1d1d21 0%, #0b0b0d 75%);
  border-bottom: 4px solid transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  will-change: transform;
}
.carrusel--3d .carrusel__item img,
.carrusel--3d .carrusel__item video { object-fit: contain; background: transparent; }
.carrusel--3d .carrusel__item:not(.is-centro) { cursor: pointer; }
.carrusel--3d .carrusel__item:not(.is-centro) video { pointer-events: none; }
.carrusel--3d .carrusel__item.is-centro { border-bottom-color: var(--red); box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.carrusel--3d .carrusel__item:not(.is-centro) img { filter: brightness(.6) saturate(.8); transition: filter .3s ease; }
.carrusel--3d .carrusel__cuenta { text-align: center; margin: 4px 0 0; }
.carrusel--3d .carrusel__flecha { top: calc(50% - 14px); }
@media (min-width: 720px) {
  .carrusel--3d .carrusel__track { --w: 380px; padding: 30px calc(50% - var(--w) / 2) 34px; scroll-padding: 0; }
  .carrusel--3d .carrusel__flecha--prev { left: calc(50% - 340px); }
  .carrusel--3d .carrusel__flecha--next { right: calc(50% - 340px); }
}
@media (min-width: 1100px) {
  .carrusel--3d .carrusel__flecha--prev { left: calc(50% - 420px); }
  .carrusel--3d .carrusel__flecha--next { right: calc(50% - 420px); }
}

/* Logo del menú: giro al tocar (celular) */
@media (prefers-reduced-motion: no-preference) {
  .topnav__home.is-spin img { animation: nav-spin .8s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes nav-spin { from { transform: rotate(0deg) scale(1); } 50% { transform: rotate(200deg) scale(1.15); } to { transform: rotate(360deg) scale(1); } }

/* Linaje: Coach Mitek */
.maestro__grid { display: grid; gap: 28px; align-items: start; }
.maestro__foto { position: relative; margin: 0 auto; width: 100%; max-width: 360px; border-bottom: 4px solid var(--red); overflow: hidden; }
.maestro__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.maestro__foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; background: linear-gradient(180deg, transparent, rgba(11, 11, 13, .92)); }
.maestro__nombre { display: block; font-family: var(--display); font-size: 2.3rem; line-height: 1; text-transform: uppercase; }
.maestro__apodo { display: block; font-family: var(--display); font-size: 1.4rem; letter-spacing: .06em; color: var(--red); text-transform: uppercase; }
.maestro__lema { margin: 0 0 22px; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--bg); font-family: var(--display); font-size: 1.9rem; line-height: 1.05; text-transform: uppercase; }
.maestro__gira { margin: 0 0 18px; color: var(--muted); }
.maestro__gira a { color: var(--silver); }
.evento--sin-img { grid-template-columns: 1fr !important; }
@media (min-width: 720px) {
  .maestro__grid { grid-template-columns: 340px 1fr; gap: 48px; }
  .maestro__foto { margin: 0; }
}

/* Videos dentro del carrusel de Capacitaciones */
.carrusel--uno .carrusel__item video { object-fit: contain; background: #000; }
/* Fotos de la clase Kids */
.kids { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kids img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 4px solid var(--red); }
.kids figcaption { grid-column: 1 / -1; font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; color: var(--silver); }

/* Afiliaciones: solo escudos y foto */
.affil--escudos { margin-top: 36px; justify-items: center; }
.affil--escudos .affil__logos { max-width: 420px; }
@media (min-width: 720px) {
  .affil--escudos { grid-template-columns: 1fr 1fr; align-items: center; }
  .affil--escudos .affil__logos { justify-self: center; }
  .affil--escudos .affil__photo { margin: 0 auto; }
}

/* ===== Versión celular compacta (menos scroll) ===== */
.dias-tabs { display: none; }
.maestro__mas summary { list-style: none; }
.maestro__mas summary::-webkit-details-marker { display: none; }
@media (min-width: 720px) {
  .maestro__mas summary { display: none; }
}
@media (max-width: 719px) {
  .section { padding: 48px 0; }
  .title { margin-bottom: 18px; }

  /* ¿Es para mí? en 2x2 */
  .cards--2x2 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards--2x2 .card { padding: 14px 12px; border-left-width: 3px; }
  .cards--2x2 .card h3 { font-size: 1rem; margin-bottom: 4px; }
  .cards--2x2 .card p { font-size: .875rem; line-height: 1.4; }

  /* Disciplinas en 2 columnas */
  .list--compacta { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .list--compacta li { padding: 10px 0; }
  .list--compacta strong { font-size: 1rem; line-height: 1.2; }
  .list--compacta span { font-size: .85rem; line-height: 1.35; }
  .list--compacta li:last-child { border-bottom: 1px solid var(--line); }

  /* Horarios en pestañas (solo si el JS cargó) */
  .dias-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
  .dias-tabs button {
    min-height: 46px; border: 1px solid var(--line); background: var(--surface); color: var(--silver);
    font-family: var(--display); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
  }
  .dias-tabs button.is-activo { background: var(--red); color: #fff; border-color: var(--red); }
  .dias-tabs button:active { transform: scale(.96); }
  .days.js-tabs .day { display: none; }
  .days.js-tabs .day.is-activo { display: block; }
  .days.js-tabs .day__name { display: none; }
  .subtitle { margin: 32px 0 14px; }

  /* Equipo y eventos: deslizar de lado */
  .desliza {
    display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none;
  }
  .desliza::-webkit-scrollbar { display: none; }
  .desliza > * { flex: 0 0 82%; scroll-snap-align: start; }
  .team--tres .team__card img { aspect-ratio: 1 / 1; }
  .team__bio { font-size: .95rem; }
  .eventos.desliza > .eventos__vacio { flex-basis: 100%; }
  .evento__img { aspect-ratio: 16 / 10; }
  .evento__body { padding: 16px 16px 18px; }
  .evento__fecha span:first-child { font-size: 2.6rem; }
  .evento__titulo { font-size: 1.8rem; }
  .evento__detalle { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
  .evento__lugar { margin-bottom: 12px; font-size: .95rem; }

  /* Coach Mitek: foto más baja y trayectoria plegable */
  .maestro__foto img { aspect-ratio: 1 / 1; object-position: 50% 15%; }
  .maestro__lema { font-size: 1.5rem; }
  .maestro__mas { margin: 0 0 16px; }
  .maestro__mas summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px;
    border: 1px solid var(--line); background: var(--bg); cursor: pointer;
    font-family: var(--display); font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase;
  }
  .maestro__mas summary::after { content: "+"; font-size: 1.8rem; color: var(--red); transition: transform .2s ease; }
  .maestro__mas[open] summary::after { transform: rotate(45deg); }
  .maestro__mas .cards { margin-top: 10px; }

  /* Capacitaciones y cartas compactas */
  .cards--compact .card { padding: 12px 14px; }
  .cards--compact .card h3 { font-size: 1rem; margin-bottom: 2px; }
  .cards--compact .card p { font-size: .9rem; line-height: 1.4; }
  .carrusel--uno .carrusel__item { aspect-ratio: 1 / 1; }
  .affil--escudos .affil__photo { max-width: 260px; }
}
