/* Artem Jiu Jitsu · estilos del sitio */

@font-face {
  font-family: 'Artem Display';
  src: url('../fonts/ArtemDisplay-Regular.otf') format('opentype');
  font-display: swap;
}

:root {
  --ink: #1d1d1b;
  --paper: #ffffff;
  --sand: #f4f2ee;
  --line: #e3e0d9;
  --muted: #5f5d58;
  --muted-dark: #d6d3cc;
  --tan: #C49A6C;
  --tan-dark: #8a6a45;
  --sky: #6EC6E4;
  --wine: #8E3B46;
  --mix: linear-gradient(120deg, #8a6a45 0%, #1d1d1b 65%);
  --ph-dark: #2c2b28;
  --ph-dark-text: #a9a59c;

  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Artem Display', 'Jost', sans-serif;
  --max: 1280px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--tan-dark); }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--tan); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------- botones */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; font-weight: 600; letter-spacing: .06em;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 15px; }
.btn-tan { background: var(--tan); color: var(--ink); }
.btn-tan:hover { background: #d4ae85; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #3a3936; color: var(--paper); }
.btn-ghost { background: transparent; border-color: #6b6964; color: var(--paper); font-weight: 500; }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ------------------------------------------------------- nav y footer */

.site-header {
  background: var(--ink); color: var(--paper);
  position: sticky; top: 0; z-index: 20;
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .25); }
[id] { scroll-margin-top: 110px; }
.nav {
  padding-top: 34px; padding-bottom: 34px;
  transition: padding .35s ease;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--paper); text-decoration: none; transition: gap .35s ease; }
.brand svg { transition: transform .35s ease; transform-origin: left center; }
.nav .wordmark {
  display: inline-block; max-width: 160px; overflow: hidden; white-space: nowrap;
  transition: max-width .4s ease, opacity .25s ease, transform .4s ease;
}
.is-scrolled .nav { padding-top: 20px; padding-bottom: 20px; }
.is-scrolled .nav .brand { gap: 0; }
.is-scrolled .nav .wordmark { max-width: 0; opacity: 0; transform: translateX(-12px); }
.brand:hover { color: var(--paper); }
.wordmark { font-family: 'Jost', 'Futura', sans-serif; font-size: 20px; font-weight: 500; letter-spacing: .42em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.navlink {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--paper); text-decoration: none; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
}
.navlink:hover, .navlink[aria-current="page"] { color: var(--tan); }

.site-footer { background: var(--ink); color: var(--ph-dark-text); }
.footer-inner {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px;
}
.brand-sm { gap: 12px; }
.brand-sm .wordmark { font-size: 16px; }
.site-footer a { color: var(--tan); }
.site-footer a:hover { color: #d4ae85; }

/* ------------------------------------------------------------ tipografía */

.display { font-family: var(--display); font-weight: 400; }

.display-label {
  margin: 0 0 20px;
  font-family: var(--display); font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: .04em;
  color: var(--ink);
}
.display-label-tan { color: var(--tan); }

.section-title {
  margin: 0 0 56px; max-width: 760px;
  font-size: clamp(36px, 4.4vw, 52px); font-weight: 300; line-height: 1.05;
}
.section-title-tight { margin-bottom: 24px; }

.label-title { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }
.link-strong { font-size: 15px; font-weight: 500; }
.body-lg { margin: 0 0 16px; font-size: 18px; line-height: 1.6; }
.muted { color: var(--muted); }

/* --------------------------------------------------------- secciones */

.section { padding: 112px 0; }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--paper); }

/* Placeholders de fotos y mapa */
.ph { border-radius: 18px; display: flex; align-items: flex-end; padding: 24px; }
.ph span { font-size: 13px; letter-spacing: .12em; }
.ph-dark { background: var(--ph-dark); }
.ph-dark span { color: var(--ph-dark-text); }
.ph-light { background: #e9e6df; }
.ph-line { background: var(--line); }
.ph-light span, .ph-line span { color: var(--muted); }
.pendiente { color: var(--ph-dark-text); }

/* Hero */
.hero { background: var(--ink); color: var(--paper); }
.hero-inner { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.kicker { margin: 0 0 24px; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--tan); }
.hero-title { margin: 0; font-weight: 300; }
.hero-title .display { display: block; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.08; letter-spacing: .02em; }
.hero-sub { display: block; margin-top: 20px; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; }
.hero-lead { margin: 28px 0 0; font-size: 20px; line-height: 1.5; color: var(--muted-dark); max-width: 520px; }
.hero-photo { flex: 1 1 420px; min-width: 0; height: 520px; border-radius: 18px; object-fit: cover; }

/* Hero con la foto de fondo a pantalla completa (si hay foto cargada) */
.site-header.sobre-foto { position: fixed; left: 0; right: 0; top: 0; background: transparent; transition: background-color .35s ease, box-shadow .3s; }
.site-header.sobre-foto.is-scrolled { background: var(--ink); }
.hero-con-foto { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-fondo { position: absolute; inset: 0; z-index: -2; }
.hero-fondo img, .hero-fondo video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-activa { opacity: 1; animation: hero-zoom var(--slide-zoom, 8s) ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-fondo.en-pausa .hero-slide.is-activa { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-slide.is-activa { animation: none; } }
.hero-pausa {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 1;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(20, 20, 19, .35); color: var(--paper); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero-pausa:hover { border-color: var(--tan); color: var(--tan); }
.hero-pausa .icono-play { display: none; }
.hero-pausa[aria-pressed="true"] .icono-play { display: block; }
.hero-pausa[aria-pressed="true"] .icono-pausa { display: none; }
.hero-con-foto::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 20, 19, .75) 0%, rgba(20, 20, 19, 0) 22%),
    linear-gradient(90deg, rgba(20, 20, 19, .92) 0%, rgba(20, 20, 19, .72) 38%, rgba(20, 20, 19, .25) 70%, rgba(20, 20, 19, .1) 100%);
}
.hero-con-foto .hero-inner { width: 100%; padding-top: 150px; padding-bottom: 110px; }
.hero-con-foto .hero-text { flex: 0 1 640px; }
.hero-con-foto .hero-lead { color: #e6e3dc; }

/* Hoy en Artem */
.hoy { padding-top: 56px; padding-bottom: 56px; }
.hoy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.hoy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.hoy-vacio { margin: 0; font-size: 18px; }
.tile {
  flex: 1 1 240px; max-width: 320px; min-height: 160px; border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--c); color: var(--t);
}
.tile-time { font-size: 54px; font-weight: 300; line-height: 1; }
.tile-prog { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.tile-prog strong, .clase-prog strong { font-weight: 700; }
.tile-profe { font-size: 15px; opacity: .85; }

/* Programas */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.prog-card {
  position: relative; display: flex; flex-direction: column; min-height: 434px;
  padding: 30px 26px 24px; border-radius: 16px;
  background: var(--c); color: var(--t);
  transition: transform .25s ease, box-shadow .25s ease;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(29, 29, 27, .18); }
.prog-card p { margin: 0; }
.prog-nombre {
  margin: 0 0 26px; font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32px); line-height: 1; letter-spacing: .02em;
}
.prog-desc { font-size: 16px; line-height: 1.3; font-weight: 500; margin-bottom: 20px !important; }
.prog-when { font-size: 16px; line-height: 1.3; font-weight: 500; margin-bottom: 22px !important; }
.prog-profes { font-size: 14px; line-height: 1.55; font-weight: 500; }
.prog-link {
  margin-top: auto; padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  color: inherit; text-decoration: none; font-size: 14px; font-weight: 500;
}
.prog-link:hover { color: inherit; }
.prog-link-texto { text-decoration: underline; text-underline-offset: 3px; }
.prog-flecha { flex: 0 0 auto; transition: transform .25s ease; }
.prog-card:hover .prog-flecha { transform: translateX(6px); }
/* Toda la tarjeta lleva a los horarios */
.prog-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.prog-link:focus-visible { outline: none; }
.prog-link:focus-visible::after { outline: 3px solid var(--tan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .prog-card, .prog-flecha { transition: none; } .prog-card:hover { transform: none; } }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.profe { display: flex; flex-direction: column; gap: 16px; }
.profe-marco { position: relative; border-radius: 14px; overflow: hidden; background: var(--ph-dark); }
.profe-marco::after {
  content: ''; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 100%);
}
.profe-foto { aspect-ratio: 4 / 5; width: 100%; display: block; object-fit: cover; padding: 16px; }
img.profe-foto { padding: 0; height: auto; object-position: var(--foco, 50% 30%); filter: grayscale(1); transition: transform .5s ease; }
.profe:hover img.profe-foto { transform: scale(1.03); }
.profe-foto.ph { display: flex; align-items: flex-start; border-radius: 0; }
.profe-foto.ph span { font-size: 12px; letter-spacing: .1em; }
.profe-nombre {
  position: absolute; left: 22px; right: 18px; bottom: 20px; z-index: 1; margin: 0;
  font-family: var(--display); font-weight: 400; color: var(--paper);
  font-size: clamp(24px, 2.3vw, 31px); line-height: 1.08; letter-spacing: .02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.profe-nombre span { display: block; }
.profe-faja { display: flex; align-items: center; gap: 12px; }
.belt {
  width: 84px; height: 10px; border-radius: 2px; background: var(--faja);
  display: flex; justify-content: flex-end; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.belt > span { width: 22px; height: 10px; margin-right: 10px; background: var(--punta); display: flex; align-items: stretch; justify-content: center; gap: 1px; padding: 0 2px; }
.belt i { width: 2px; background: #ffffff; }
.belt-name { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.profe-bio { margin: 0; font-size: 15px; line-height: 1.5; color: var(--paper); }
.profe-grupos { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted-dark); }

/* Academia y contacto */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-top { align-items: stretch; }
.split-text { flex: 1 1 420px; min-width: 0; }
.academia-foto { flex: 1 1 460px; min-width: 0; height: 440px; border-radius: 18px; object-fit: cover; }
.contacto-texto { margin-bottom: 32px; }
.datos { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.datos dt { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.datos dd { margin: 0; font-size: 17px; }
.mapa { flex: 1 1 440px; min-width: 0; min-height: 420px; border: 0; border-radius: 18px; }
iframe.mapa { filter: grayscale(1) contrast(1.05); }

/* Galería */
.galeria { padding: 72px 0; }
.galeria .label-title { margin-bottom: 28px; }
.galeria-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.galeria-grid a { display: block; border-radius: 14px; overflow: hidden; }
.galeria-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.galeria-grid a:hover img { transform: scale(1.03); }

/* Lightbox de la galería */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 20, 19, .96); color: var(--paper);
}
.lightbox::backdrop { background: rgba(20, 20, 19, .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lightbox-entra .25s ease; }
@keyframes lightbox-entra { from { opacity: 0; } to { opacity: 1; } }
.lightbox-figura { margin: 0; padding: 72px 88px 24px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox-img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox-pie { font-size: 15px; color: var(--muted-dark); text-align: center; }
.lightbox-contador { margin-left: 10px; color: var(--ph-dark-text); font-size: 13px; letter-spacing: .12em; }
.lightbox-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .35); color: var(--paper); font: 300 34px/1 var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 0 4px;
}
.lightbox-btn:hover { border-color: var(--tan); color: var(--tan); }
.lightbox-cerrar { top: 18px; right: 18px; }
.lightbox-ant { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-sig { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .lightbox-figura { padding: 72px 12px 96px; }
  .lightbox-img { max-height: calc(100vh - 200px); }
  .lightbox-ant, .lightbox-sig { top: auto; bottom: 24px; transform: none; }
  .lightbox-ant { left: calc(50% - 64px); }
  .lightbox-sig { right: calc(50% - 64px); }
}

/* Preguntas frecuentes */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; min-height: 64px; padding: 18px 40px 18px 0; position: relative;
  font-size: 20px; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 300; }
.faq-item[open] summary::after { content: '–'; }
.faq-respuesta { padding: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 720px; }

/* ------------------------------------------------------------ horarios */

.horarios { padding-top: 72px; padding-bottom: 96px; }
.horarios-head { text-align: center; margin-bottom: 48px; }
.horarios-logo { display: block; margin: 0 auto 22px; color: var(--ink); }
.horarios-title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: .12em; padding-left: .12em; }
.horarios-lead { margin: 16px 0 0; font-size: 18px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips + .chips { margin-top: 12px; }
.chip {
  font-family: inherit; cursor: pointer; min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  border: 1px solid #c9c5bc; background: var(--paper); color: var(--ink);
  transition: background-color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: transparent; background: var(--c); color: var(--t); }

.semana { display: flex; flex-wrap: wrap; margin-top: 56px; }
.dia { flex: 1 1 200px; min-width: 0; padding: 0 10px 28px; border-radius: 18px; }
.dia-hoy { background: var(--sand); }
.dia-head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 0 20px; border-bottom: 1px solid var(--ink); margin-bottom: 18px;
}
.dia-letra { font-size: 52px; font-weight: 300; line-height: 1; }
.dia-nombre { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.badge-hoy { font-size: 11px; font-weight: 600; letter-spacing: .2em; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.dia-clases { display: flex; flex-direction: column; gap: 14px; }
.slot { display: flex; flex-direction: column; gap: 14px; }
.slot > .clase:only-child, .slot > .clase-vacia { flex: 1; }

.clase {
  min-height: 168px; border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--c); color: var(--t);
  transition: opacity .2s;
}
.clase p { margin: 0; }
.clase.is-off { opacity: .12; }
.clase-hora { font-size: 50px; font-weight: 300; line-height: 1; }
.clase-fin { font-size: 13px; opacity: .85; }
.clase-prog { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.clase-profe { margin-top: 6px !important; padding-top: 10px; border-top: 1px solid currentColor; font-size: 14px; line-height: 1.35; opacity: .9; }
.clase-vacia { height: 168px; border-radius: 16px; border: 1px dashed var(--line); }

.sin-clases { text-align: center; font-size: 18px; margin: 40px 0 0; }

.cta-box {
  margin-top: 80px; border-radius: 20px; background: var(--ink); color: var(--paper); padding: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-text { flex: 1 1 420px; min-width: 0; }
.cta-text h2 { margin: 0; font-size: 36px; font-weight: 300; line-height: 1.15; }
.cta-text p { margin: 10px 0 0; font-size: 17px; color: var(--muted-dark); }

/* Escritorio: las filas de horas se alinean entre días (subgrid). */
@media (min-width: 761px) {
  @supports (grid-template-rows: subgrid) {
    .semana {
      display: grid;
      grid-template-columns: repeat(var(--dias, 5), minmax(0, 1fr));
      grid-template-rows: auto repeat(var(--horas, 3), auto);
      column-gap: 0;
    }
    .dia { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; row-gap: 14px; }
    .dia-head { margin-bottom: 4px; }
    .dia-clases { display: contents; }
    .clase-vacia { height: auto; min-height: 168px; }
  }
}

/* ------------------------------------------------------ menú del celular */
.menu-toggle, .menu-movil { display: none; }

@media (max-width: 760px) {
  /* Con JS: hamburguesa + menú a pantalla completa. Sin JS queda la fila de links. */
  .js .nav-menu, .js .nav .nav-cta { display: none; }
  .js .nav { flex-wrap: nowrap; padding-top: 22px; padding-bottom: 22px; }
  .js .is-scrolled .nav { padding-top: 14px; padding-bottom: 14px; }

  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0 -8px 0 auto; padding: 0;
    background: none; border: 0; border-radius: 999px; color: var(--paper); cursor: pointer;
    position: relative; z-index: 2;
  }
  .menu-toggle-lineas { position: relative; display: block; width: 26px; height: 18px; }
  .menu-toggle-lineas span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .35s cubic-bezier(.7, 0, .3, 1), opacity .2s ease, top .35s cubic-bezier(.7, 0, .3, 1);
  }
  .menu-toggle-lineas span:nth-child(1) { top: 0; }
  .menu-toggle-lineas span:nth-child(2) { top: 8px; }
  .menu-toggle-lineas span:nth-child(3) { top: 16px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lineas span:nth-child(1) { top: 8px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lineas span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lineas span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

  .site-header .nav { position: relative; z-index: 2; }
  .js .menu-movil {
    display: block; position: fixed; inset: 0; z-index: 1;
    background: var(--ink); color: var(--paper);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .js .menu-movil.is-open { visibility: visible; opacity: 1; transition: opacity .3s ease; }
  .menu-movil-inner { min-height: 100%; padding-top: 130px; padding-bottom: 40px; display: flex; flex-direction: column; }
  .menu-movil-links { list-style: none; margin: 0 0 40px; padding: 0; }
  .menu-movil-links li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .menu-movil-links a {
    display: block; padding: 18px 0 14px;
    font-family: var(--display); font-size: clamp(32px, 10vw, 46px); line-height: 1; letter-spacing: .04em;
    color: var(--paper); text-decoration: none;
  }
  .menu-movil-links a:hover, .menu-movil-links a[aria-current="page"] { color: var(--tan); }
  .menu-movil-cta { margin-top: auto; width: 100%; }

  /* Entrada escalonada de los links */
  .menu-movil-links li, .menu-movil-cta {
    opacity: 0; transform: translateY(18px);
    transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
  }
  .menu-movil.is-open .menu-movil-links li, .menu-movil.is-open .menu-movil-cta { opacity: 1; transform: none; }
  .menu-movil.is-open li:nth-child(1) { transition-delay: .08s; }
  .menu-movil.is-open li:nth-child(2) { transition-delay: .13s; }
  .menu-movil.is-open li:nth-child(3) { transition-delay: .18s; }
  .menu-movil.is-open li:nth-child(4) { transition-delay: .23s; }
  .menu-movil.is-open li:nth-child(5) { transition-delay: .28s; }
  .menu-movil.is-open .menu-movil-cta { transition-delay: .34s; }

  body.menu-abierto { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-lineas span, .menu-movil, .menu-movil-links li, .menu-movil-cta { transition: none !important; }
}

/* ------------------------------------------------- aparición al scroll */
/* La clase js-reveal la pone un script en el <head>: sin JS todo se ve normal. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal [data-reveal="fade"] { transform: none; }
.js-reveal [data-reveal="scale"] { transform: scale(.96); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .site-header, .nav, .brand, .nav .wordmark { transition: none; }
}

/* ------------------------------------------------------------ celular */

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav { padding-top: 12px; padding-bottom: 0; gap: 4px 12px; }
  .nav-links { display: contents; }
  .nav .btn-sm { order: 2; margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 12px; letter-spacing: .14em; }
  .nav-menu {
    order: 3; flex: 1 0 100%; flex-wrap: nowrap; gap: 22px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .navlink { flex: 0 0 auto; font-size: 12px; letter-spacing: .16em; }
  .is-scrolled .nav { padding-top: 6px; padding-bottom: 0; }
  [id] { scroll-margin-top: 120px; }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 36px; }
  .hero-inner { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .hero-lead { font-size: 18px; }
  .hero-photo { height: 320px; }
  .hero-con-foto { align-items: flex-end; }
  .hero-con-foto::before { background: linear-gradient(180deg, rgba(20, 20, 19, .7) 0%, rgba(20, 20, 19, .45) 35%, rgba(20, 20, 19, .85) 100%); }
  .hero-con-foto .hero-inner { padding-top: 120px; padding-bottom: 64px; }
  .academia-foto { height: 300px; }
  .mapa { min-height: 300px; }
  .tile { max-width: none; }
  .profe-foto { aspect-ratio: 1 / 1; }
  .prog-card { min-height: 0; }
  .prog-link { padding-top: 20px; }
  .btn-row .btn { flex: 1 1 100%; }

  .horarios { padding-top: 48px; }
  .dia { flex-basis: 100%; padding: 0 0 24px; }
  .dia-hoy { padding: 0 12px 24px; margin: 0 -12px; }
  .dia-head { flex-direction: row; justify-content: flex-start; gap: 14px; border-bottom: none; padding-bottom: 8px; margin-bottom: 12px; }
  .dia-letra { display: none; }
  .dia-nombre { font-size: 14px; font-weight: 600; color: var(--ink); }
  .dia-hoy .dia-head { padding-top: 16px; }
  .slot-vacio { display: none; }
  .clase { min-height: 0; }
  .cta-box { padding: 32px 24px; }
  .cta-text h2 { font-size: 30px; }
}

body.sin-scroll { overflow: hidden; }
