@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bebas-neue-latin.woff2") 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: 48px 0 72px;
  background: var(--bg);
  border-bottom: 4px solid var(--red);
}
.hero__media { position: absolute; inset: 0; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: grayscale(.4) contrast(1.15) brightness(.9); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(11, 11, 13, .55) 0%, rgba(11, 11, 13, .88) 70%),
    linear-gradient(180deg, rgba(215, 25, 42, .22) 0%, rgba(11, 11, 13, .2) 40%, 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);
}
.hero__lead { max-width: 34ch; margin: 0 auto 28px; color: #d2d3d8; font-size: 1.0625rem; }
.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.6s ease-out both, drift 18s ease-in-out 1.6s infinite alternate; }
}

@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; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1.05); } }
@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__col:not(.team__col--main) .team__card img { aspect-ratio: 900 / 840; object-position: 50% 30%; }
.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; }
  .team { grid-template-columns: 80fr 107fr; gap: 24px; align-items: start; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
  .wa-float { right: 24px; bottom: 24px; }
}
