/* Mambises BJJ · web pública. Blanco y negro, como la app. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #000;
  --ink: #0b0b0b;
  --white: #fff;
  --paper: #fafafa;
  --grey: #6b6b6b;
  --grey-dark: #9a9a9a;
  --line: #e6e6e6;
  --line-dark: #262626;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
  --radius: 14px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
}
.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.muted {
  color: var(--grey);
}
.small {
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
}
.title {
  margin-top: 14px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 300;
  line-height: 1.45;
}
strong {
  font-weight: 600;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn--light {
  background: var(--white);
  color: var(--black);
}
.btn--light:hover {
  background: #e9e9e9;
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover {
  background: #262626;
}
.btn--dark .muted {
  color: #9a9a9a;
}

/* Cabecera */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  color: var(--white);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.topbar.is-solid {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.topbar__logo img {
  width: 52px;
  height: auto;
}
.topbar__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}
.topbar__nav a,
.topbar__students {
  text-decoration: none;
  opacity: 0.85;
}
.topbar__nav a:hover,
.topbar__students:hover {
  opacity: 1;
}
.topbar__students {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 13px;
}

/* Portada */
.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video {
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.hero__shade {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.82)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7));
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 110px var(--gutter) 90px;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__logo {
  width: clamp(150px, 22vw, 230px);
  height: auto;
  margin-bottom: 28px;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.hero__title {
  margin-top: 14px;
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__lead {
  max-width: 34ch;
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero__scroll {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  translate: -50% 0;
  color: rgba(255, 255, 255, 0.7);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes bob {
  50% {
    transform: translateY(6px);
  }
}

/* Secciones */
.section {
  padding: clamp(72px, 11vw, 140px) 0;
}
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--dark .eyebrow,
.section--dark .muted {
  color: var(--grey-dark);
}
.intro {
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split--center {
  align-items: center;
}
.split__text > * + * {
  margin-top: 20px;
}
.split__text .title + * {
  margin-top: 28px;
}
.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  filter: grayscale(1);
}
.split__media--logo {
  display: grid;
  place-items: center;
}
.split__media--logo img {
  width: min(240px, 60%);
  border-radius: 50%;
}

.quote {
  margin-top: 32px !important;
  padding-left: 20px;
  border-left: 2px solid var(--black);
}
.quote p {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.45;
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--grey);
}
.split__text .btn {
  margin-top: 32px;
}

/* Valores */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.values li {
  padding: 32px 28px 36px;
  background: var(--black);
}
.values__n {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--grey-dark);
}
.values h3 {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 300;
}
.values p {
  margin-top: 10px;
  font-size: 15px;
  color: #bdbdbd;
}

/* Horarios */
.schedule {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.schedule li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.schedule__day {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.schedule__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 19px;
  font-weight: 300;
}
.schedule__slots b {
  margin-right: 8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#horarios .small {
  margin-top: 20px;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--black);
}
.gallery figure {
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery__wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9 !important;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s ease, transform 0.8s ease;
}
.gallery figure:hover img {
  filter: grayscale(0);
  transform: scale(1.02);
}

.gallery__podium,
.gallery__group {
  aspect-ratio: 16 / 9 !important;
}
.gallery__podium img {
  object-position: center 35%;
}

/* Precios */
.pricing {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
}
.price {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price h3 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.price__amount {
  font-size: 48px;
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.price__amount span {
  font-size: 17px;
  color: var(--grey);
}
.price p:last-of-type {
  font-size: 15px;
}
.price--feature {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.price--feature h3 {
  color: var(--grey-dark);
}
.price--feature .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Contacto */
.actions {
  margin-top: 28px !important;
}
.contact {
  margin-top: 40px !important;
  border-top: 1px solid var(--line-dark);
}
.contact li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact__label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-dark);
}
.contact a {
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: right;
}
.contact a:hover {
  text-decoration: underline;
}

/* Pie */
.footer {
  padding: 72px 0 calc(48px + env(safe-area-inset-bottom));
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer__inner img {
  width: 84px;
  height: auto;
  opacity: 0.9;
}
.footer__claim {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.footer__affiliation,
.footer__copy {
  font-size: 13px;
  color: var(--grey-dark);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 10px;
  font-size: 14px;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Reproductor */
.player {
  width: min(1100px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--black);
  overflow: visible;
}
.player::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.player video {
  width: 100%;
  max-height: calc(100vh - 32px);
  border-radius: var(--radius);
}
.player__close {
  position: absolute;
  top: -48px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

/* Revelado suave al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Marcas de contenido pendiente (se quitan antes de publicar) */
.pendiente {
  outline: 2px dashed #e0a100;
  outline-offset: 4px;
}
.note.pendiente {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff6d6;
  color: #6b4e00;
  font-size: 14px;
  outline: 0;
}

/* Móvil */
@media (max-width: 900px) {
  .topbar__nav {
    display: none;
  }
  .topbar__students {
    margin-left: auto;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split__media {
    order: -1;
  }
  .split--center .split__media {
    order: 0;
  }
  .values {
    grid-template-columns: 1fr 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .gallery__third {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3 !important;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .values li {
    padding: 26px 22px 28px;
  }
  .values h3 {
    margin-top: 14px;
  }
  .schedule li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
  }
  .gallery__wide {
    aspect-ratio: 4 / 3 !important;
  }
}

/* Fundador */
.section--soft {
  background: var(--paper);
}
.coach {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.coach__photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.05);
}
.coach__text > * + * {
  margin-top: 20px;
}
.coach__text .title + * {
  margin-top: 28px;
}

.stats {
  display: flex;
  gap: 1px;
  margin-top: 28px !important;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats li {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--white);
}
.stats__value {
  font-size: 32px;
  font-weight: 200;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stats__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.footer .footer__affiliation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer .footer__affiliation img {
  width: 40px;
  height: 40px;
  opacity: 0.85;
  filter: grayscale(1);
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.footer .footer__affiliation:hover img {
  opacity: 1;
  filter: none;
}

/* Prensa */
.section--tight {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.press {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.press:hover {
  border-color: var(--ink);
}
.press__source {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.press__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
}
.press__more {
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .coach {
    grid-template-columns: 1fr;
  }
  .coach__photo {
    max-width: 420px;
  }
}
