/* ==========================================================================
   Santos Boys Club — 2026
   Base: sistema del rediseño RafaBarber (tipografía, espacios, botones, header).
   Paleta: blanco y negro puros (logo del club + referencia Valladares). Sin acento de color:
   el rojo #C0392B era identidad de RafaBarber y no se traslada.
   Motivo gráfico: el aro (aureola) del logo → halo de luz del hero y aro de selección.
   ========================================================================== */

/* Fuentes alojadas localmente (OFL): Instrument Serif + Inter variable, subconjunto latino */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #000000;
  --ink: #0b0b0b;
  --graphite: #161616;
  --paper: #f4f3ef;
  --white: #ffffff;

  --text-soft: #c9c9c9;
  --text-mute: #9a9a9a;
  --text-dark-mute: #5f5f5f;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.3);
  --line-dark: rgba(0, 0, 0, 0.14);

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-eyebrow: 0.6875rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h2: clamp(3rem, 1.6rem + 5.4vw, 6.5rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);
  --container: 1320px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, iframe { display: block; max-width: 100%; }
[hidden]:not(.mobile-menu) { display: none !important; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--white); color: var(--black); }
.section--light ::selection { background: var(--black); color: var(--white); }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--black); }

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--white); color: var(--black);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--paper); color: var(--ink); }

/* ---------- Tipografía común (labels finos estilo Valladares) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.875rem;
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow__rule { width: 2.25rem; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--dark { color: var(--text-dark-mute); }

.section-title {
  margin-top: 1.25rem;
  font-family: var(--serif); font-weight: 400;
  font-size: var(--fs-h2); line-height: 0.92; letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-title em { color: var(--text-mute); }
.section-title--dark em { color: var(--text-dark-mute); }

/* ---------- Botones ---------- */
.btn {
  --btn-pad-y: 0.95rem; --btn-pad-x: 1.6rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 48px; padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; line-height: 1;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out), opacity 0.35s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn__arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light::before { background: var(--black); }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark::before { background: var(--paper); }
.btn--ghost { border-color: var(--line-strong); color: var(--white); background: transparent; }
.btn--ghost::before { background: var(--white); }
@media (hover: hover) {
  .btn:hover::before { transform: scaleY(1); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn--light:hover { color: var(--white); }
  .btn--dark:hover { color: var(--black); }
  .btn--ghost:hover { color: var(--black); border-color: var(--white); }
}
.btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.btn--sm { --btn-pad-y: 0.7rem; --btn-pad-x: 1.15rem; min-height: 44px; font-size: 0.6875rem; }
.btn--lg { --btn-pad-y: 1.15rem; --btn-pad-x: 2rem; min-height: 56px; }
.btn--block { width: 100%; }

/* ==========================================================================
   HEADER — mobile-first. En móvil: logo + menú (el CTA vive abajo, al alcance del pulgar);
   desde 960px: navegación completa + CTA en el header.
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
/* Fondo sólido sin blur en móvil: backdrop-filter es caro al hacer scroll en equipos modestos */
.site-header.is-solid { background: rgba(0, 0, 0, 0.94); border-bottom-color: var(--line); }
.site-header__inner {
  height: 100%; max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
/* El logo del header aparece cuando el del hero ya salió de pantalla */
.brand { display: block; flex-shrink: 0; padding: 4px 0; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.brand img { height: 44px; width: auto; }
.site-header:not(.is-solid) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.nav { display: none; }
.nav__list { display: flex; gap: 2.25rem; }
.nav__list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--text-soft); transition: color 0.3s var(--ease-out);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--white); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }

.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__cta { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-width: 48px; height: 48px;
  margin-right: -0.5rem; padding: 0 0.5rem 0 0.75rem; background: none; border: 0; cursor: pointer;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle__label { display: none; }
.menu-toggle__bars { position: relative; width: 22px; height: 10px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Menú a pantalla completa: enlaces grandes y el CTA abajo, donde llega el pulgar */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 1.5rem) var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  background: var(--black); opacity: 0; visibility: hidden; overflow-y: auto; overscroll-behavior: contain;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.mobile-menu[hidden] { display: flex; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease-out); }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: block; padding: 0.85rem 0;
  font-family: var(--serif); font-size: clamp(2.25rem, 10vw, 3.5rem); line-height: 1; text-decoration: none;
  transform: translateY(14px); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.04s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.08s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.12s; }

@media (min-width: 480px) { .menu-toggle__label { display: inline; } }
@media (min-width: 960px) {
  .nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .site-header.is-solid { background: rgba(0, 0, 0, 0.84); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
  .brand img { height: 46px; }
}

/* ==========================================================================
   1 · HERO — logo protagonista (Flowyakuza) en blanco y negro (Valladares)
   Alturas en svh (con la barra del navegador visible). El logo se dimensiona con el espacio
   que queda tras header, frase, CTA y pie, así nada importante queda bajo el pliegue.
   ========================================================================== */
.hero {
  --hero-chrome: 340px; /* header + frase + CTA + márgenes + pie, en móvil */
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; isolation: isolate; background: var(--black);
}

/* Los barberos flanquean el logo, fundidos hacia el centro */
.hero__cast { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: space-between; }
.hero__shot { position: relative; width: 50%; height: 100%; }
.hero__shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.32) contrast(1.08);
}
.hero__shot:first-child img { -webkit-mask-image: linear-gradient(to right, #000 55%, transparent); mask-image: linear-gradient(to right, #000 55%, transparent); }
.hero__shot:last-child img  { -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);  mask-image: linear-gradient(to left, #000 55%, transparent); }
.hero__shot:not(:first-child):not(:last-child) { display: none; } /* con 3+ barberos el hero muestra solo los extremos */
.hero__shot figcaption {
  display: none;
  position: absolute; bottom: clamp(5rem, 12vh, 7rem);
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-mute);
  writing-mode: vertical-rl;
}
.hero__shot:first-child figcaption { left: var(--gutter); transform: rotate(180deg); }
.hero__shot:last-child figcaption { right: var(--gutter); }
.hero::after { /* viñeta superior/inferior para el header y la transición a la sección clara */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 22%, transparent 70%, #000 100%);
}

.hero__center {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 0.5rem) var(--gutter) calc(4.25rem + env(safe-area-inset-bottom));
}
.hero__copy { display: flex; flex-direction: column; align-items: center; align-self: stretch; }
.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: 40%;
  width: min(820px, 130vw); aspect-ratio: 1.25;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,255,255,0.16), rgba(255,255,255,0.05) 55%, transparent 100%);
  pointer-events: none;
}
.hero__logo { line-height: 0; }
.hero__logo img {
  /* nunca más alto que el espacio libre ni más ancho que 74vw; conserva la proporción */
  height: clamp(150px, min(50svh, 100svh - var(--hero-chrome)), 500px);
  width: auto; max-width: min(74vw, 440px); object-fit: contain;
  filter: drop-shadow(0 18px 48px rgba(0,0,0,0.6));
}
.hero__line {
  margin-top: clamp(1.25rem, 3.5svh, 2.5rem);
  font-family: var(--serif); font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.04; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero__line em { color: var(--text-mute); }
.hero__center .btn { margin-top: clamp(1.25rem, 3.5svh, 2.5rem); align-self: stretch; }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
  font-size: var(--fs-eyebrow); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute);
}

@media (min-width: 700px) {
  .hero { --hero-chrome: 380px; }
  .hero__shot img { filter: brightness(0.38) contrast(1.08); }
  .hero__shot:first-child img { -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 96%); mask-image: linear-gradient(to right, #000 30%, transparent 96%); }
  .hero__shot:last-child img  { -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 96%);  mask-image: linear-gradient(to left, #000 30%, transparent 96%); }
  .hero__shot figcaption { display: block; }
  .hero__center { padding-bottom: 5rem; }
  .hero__copy { align-self: center; }
  .hero__center .btn { align-self: center; }
  .hero__meta { letter-spacing: 0.28em; padding-bottom: 1.5rem; }
}

/* Teléfono en horizontal (poca altura): logo a la izquierda, frase y CTA a la derecha */
@media (orientation: landscape) and (max-height: 560px) {
  .hero__center {
    flex-direction: row; justify-content: center; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); text-align: left;
    padding: calc(var(--header-h) + 0.25rem) max(var(--gutter), env(safe-area-inset-right)) 1.25rem max(var(--gutter), env(safe-area-inset-left));
  }
  .hero__logo img { height: clamp(150px, 100svh - var(--header-h) - 3rem, 400px); max-width: 40vw; }
  .hero__copy { align-items: flex-start; align-self: center; }
  .hero__line { margin-top: 0; }
  .hero__center .btn { align-self: flex-start; }
  .hero__meta, .hero__shot figcaption { display: none; }
}

/* Entrada (solo opacidad y transform) */
.js .hero__logo, .js .hero__line, .js .hero__center .btn { opacity: 0; transform: translateY(18px) scale(0.985); }
.js .hero__glow { opacity: 0; }
.js .hero__shot { opacity: 0; transform: translateX(var(--from, -40px)); }
.js .hero__shot:last-child { --from: 40px; }
.hero.is-ready .hero__logo, .hero.is-ready .hero__line, .hero.is-ready .hero__center .btn,
.hero.is-ready .hero__shot, .hero.is-ready .hero__glow {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
}
.hero.is-ready .hero__glow { transition-duration: 2s; }
.hero.is-ready .hero__line { transition-delay: 0.25s; }
.hero.is-ready .hero__center .btn { transition-delay: 0.38s; }
.hero.is-ready .hero__shot { transition-delay: 0.15s; transition-duration: 1.6s; }

/* ==========================================================================
   2 · EL CLUB — editorial claro
   ========================================================================== */
.club__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.club__title {
  margin-top: 1.25rem; font-family: var(--serif); font-weight: 400;
  font-size: var(--fs-h2); line-height: 0.92; letter-spacing: -0.02em;
}
.club__title em { color: var(--text-dark-mute); }
.club__lead { max-width: 34rem; font-size: var(--fs-lead); line-height: 1.65; color: #2a2a2a; text-wrap: pretty; }
.club__mark { justify-self: center; width: min(58vw, 260px); }
.club__mark img { width: 100%; }

@media (min-width: 960px) {
  .club__grid { grid-template-columns: repeat(12, 1fr); align-items: end; row-gap: 3.5rem; }
  .club__head { grid-column: 1 / span 8; }
  .club__body { grid-column: 1 / span 7; }
  .club__mark { grid-column: 9 / -1; grid-row: 1 / span 2; align-self: center; width: 100%; max-width: 360px; }
}

/* ==========================================================================
   3 · SELECCIÓN DE BARBERO — "character select" en clave editorial
   Móvil (base): dos paneles lado a lado — mantienen el "versus" y ambos se ven sin desplazarse.
   Tocar = seleccionar: la ficha se expande, se ilumina, se dibuja el aro y aparecen las esquinas;
   la otra se apaga. Nada depende de hover: el hover solo suma luz en equipos con puntero.
   ========================================================================== */
.select { padding-top: clamp(3rem, 1.5rem + 5vw, 7rem); }
.select__head { margin-bottom: clamp(1.5rem, 4vw, 3rem); }

.roster {
  display: flex; gap: 0.5rem;
  /* alto = pantalla útil − header − título − barra de confirmación, para que todo quepa al llegar */
  height: clamp(340px, 100svh - 340px, 600px);
}
.fighter {
  --grow: 1;
  position: relative; flex: var(--grow) 1 0; min-width: 0;
  display: block; padding: 0; text-align: left;
  background: var(--ink); border: 1px solid var(--line);
  overflow: hidden; cursor: pointer; isolation: isolate;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: flex-grow 0.6s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.2s var(--ease-out);
}
/* Respuesta inmediata al tocar (antes de que termine la expansión) */
.fighter:active { transform: scale(0.985); }
.fighter__media { position: absolute; inset: 0; z-index: -2; }
.fighter__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) contrast(1.05);
  transform: scale(1.02);
  transition: filter 0.5s var(--ease-out), transform 1.2s var(--ease-out);
}
.fighter__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 18%),
    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 38%, transparent 62%);
}
/* Luz: en táctil queda fija sobre el elegido; con mouse sigue al cursor (--mx/--my desde main.js) */
.fighter__light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 35%), rgba(255,255,255,0.13), transparent 60%);
  transition: opacity 0.5s var(--ease-out);
}
/* Esquinas de "fijado" */
.fighter::after {
  --c: rgba(255,255,255,0.9); --s: 16px;
  content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px, linear-gradient(var(--c), var(--c)) top left / 1px var(--s),
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px, linear-gradient(var(--c), var(--c)) top right / 1px var(--s),
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s),
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s);
  background-repeat: no-repeat;
  transition: opacity 0.35s var(--ease-out), inset 0.5s var(--ease-out);
}

.fighter__index, .fighter__status {
  position: absolute; left: 1.25rem;
  font-size: 0.625rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6); white-space: nowrap;
}
.fighter__index { top: 1.25rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
/* Estado de agenda: visible también en móvil (versión corta, bajo el número) */
.fighter__status { top: 2.65rem; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text-soft); }
.fighter__status-pre { display: none; }
.fighter__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--white); flex-shrink: 0; }
.fighter__status.is-pending { color: var(--text-mute); }
.fighter__status.is-pending::before { background: transparent; border: 1px solid var(--text-mute); }

.fighter__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1rem;
  transition: opacity 0.4s var(--ease-out);
}
.fighter__halo { width: 3.75rem; height: auto; margin-left: 0.15em; margin-bottom: -0.35rem; overflow: visible; }
.fighter__halo ellipse {
  fill: none; stroke: var(--white); stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.8s var(--ease-out);
}
.fighter__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.625rem, 0.4rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.02em;
}
.fighter__skills {
  margin-top: 0.7rem; max-width: 28ch;
  font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft);
}

/* Con alguien elegido: las demás fichas se apagan y se compactan */
.roster.has-pick .fighter[aria-checked="false"] .fighter__media img { filter: brightness(0.26) contrast(1.05); transform: scale(1); }
.roster.has-pick .fighter[aria-checked="false"] .fighter__info { opacity: 0.65; }
.roster.has-pick .fighter[aria-checked="false"] .fighter__name { font-size: clamp(1.125rem, 0.25rem + 4.5vw, 7rem); }
.roster.has-pick .fighter[aria-checked="false"] .fighter__skills { display: none; }
/* En la ficha apagada queda solo el punto de estado (el texto completo está en su nombre accesible) */
.roster.has-pick .fighter[aria-checked="false"] .fighter__status { font-size: 0; gap: 0; }

/* Seleccionado: expansión + luz + aro + esquinas (el estado no depende solo del color) */
.fighter[aria-checked="true"] { --grow: 1.7; border-color: rgba(255,255,255,0.55); cursor: default; }
.fighter[aria-checked="true"]:active { transform: none; }
.fighter[aria-checked="true"] .fighter__media img { filter: brightness(1) contrast(1.06); transform: scale(1.04); }
.fighter[aria-checked="true"]::after { opacity: 1; inset: 8px; }
.fighter[aria-checked="true"] .fighter__halo ellipse { stroke-dashoffset: 0; }
.fighter[aria-checked="true"] .fighter__light { opacity: 1; }
.fighter:focus-visible { outline-offset: -2px; }

/* Barra de confirmación: en móvil solo el botón (ya dice con quién continúas) */
.select__bar {
  scroll-margin-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.select__bar .btn { width: 100%; }
.select__pick { display: none; align-items: baseline; gap: 1rem; }
.select__pick span { font-size: var(--fs-eyebrow); letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-mute); }
.select__pick strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1; }

/* 3+ barberos en móvil: carrusel con snap (con 2 no hace falta) */
.roster[style*="--count: 3"], .roster[style*="--count: 4"], .roster[style*="--count: 5"] {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.roster[style*="--count: 3"] .fighter, .roster[style*="--count: 4"] .fighter, .roster[style*="--count: 5"] .fighter { flex: 0 0 46%; scroll-snap-align: center; }
.roster[style*="--count: 3"] .fighter[aria-checked="true"], .roster[style*="--count: 4"] .fighter[aria-checked="true"], .roster[style*="--count: 5"] .fighter[aria-checked="true"] { flex-basis: 66%; }

@media (min-width: 700px) {
  .roster { gap: clamp(0.5rem, 1vw, 0.875rem); height: clamp(440px, 72svh, 720px); }
  .roster[style*="--count"] { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .roster[style*="--count"] .fighter { flex: var(--grow) 1 0; }
  .fighter { transition-duration: 0.8s, 0.5s, 0.2s; }
  .fighter[aria-checked="true"] { --grow: 1.55; }
  .fighter::after { --s: 22px; inset: 18px; }
  .fighter[aria-checked="true"]::after { inset: 12px; }
  .fighter__index, .fighter__status { top: clamp(1rem, 2vw, 1.75rem); font-size: var(--fs-eyebrow); letter-spacing: 0.28em; }
  .fighter__index { left: clamp(1rem, 2vw, 1.75rem); }
  .fighter__status { left: auto; right: clamp(1rem, 2vw, 1.75rem); }
  .fighter__status-pre { display: inline; }
  .roster.has-pick .fighter[aria-checked="false"] .fighter__status { font-size: var(--fs-eyebrow); gap: 0.45rem; }
  .fighter__info { padding: clamp(1.25rem, 2.6vw, 2.5rem); }
  .fighter__halo { width: clamp(4.5rem, 8vw, 7.5rem); }
  .fighter__name { font-size: clamp(2.25rem, 1.2rem + 5vw, 7rem); }
  .fighter__skills { margin-top: 0.85rem; font-size: var(--fs-eyebrow); letter-spacing: 0.24em; }
  .roster.has-pick .fighter[aria-checked="false"] .fighter__name { font-size: clamp(2.25rem, 1.2rem + 5vw, 7rem); }
  .roster.has-pick .fighter[aria-checked="false"] .fighter__skills { display: revert; }
  .select__bar { margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-top: clamp(1.25rem, 2.5vw, 1.75rem); }
  .select__bar .btn { width: auto; }
  .select__pick { display: flex; }
}
/* Teléfono en horizontal: fichas a la altura de la pantalla */
@media (orientation: landscape) and (max-height: 560px) {
  .roster { height: max(220px, 100svh - var(--header-h) - 8rem); }
  .select__bar { margin-top: 0.75rem; padding-top: 0.75rem; }
  .select__bar .btn { min-height: 48px; --btn-pad-y: 0.8rem; }
  .select__head { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; }
  .select__head .section-title { margin-top: 0; font-size: clamp(2rem, 6vw, 3rem); }
}
/* Con puntero: el hover suma luz, acercamiento y un adelanto del aro */
@media (hover: hover) and (pointer: fine) {
  .fighter:hover .fighter__media img { filter: brightness(0.82) contrast(1.06); transform: scale(1.06); }
  .fighter:hover .fighter__light { opacity: 1; }
  .fighter:hover .fighter__halo ellipse { stroke-dashoffset: 0.6; }
  .fighter:hover { border-color: var(--line-strong); }
  .roster.has-pick .fighter[aria-checked="false"]:hover .fighter__media img { filter: brightness(0.6) contrast(1.05); }
  .fighter[aria-checked="true"]:hover .fighter__halo ellipse { stroke-dashoffset: 0; }
}

/* ==========================================================================
   4 · RESERVA
   ========================================================================== */
.booking__head { margin-bottom: clamp(1.5rem, 4vw, 3rem); }

/* Pasos: en móvil números + solo el nombre del paso actual */
.steps {
  display: flex; margin-bottom: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.steps li {
  flex: 0 0 auto; display: flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding-right: 1rem; white-space: nowrap;
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: #6b6b6b; position: relative; transition: color 0.4s var(--ease-out);
}
.steps li span { font-variant-numeric: tabular-nums; }
.steps__txt { font-style: normal; }
.steps li:not(.is-current) .steps__txt { display: none; }
.steps li::after {
  content: ""; position: absolute; left: 0; right: 1rem; bottom: -1px; height: 2px; background: var(--black);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.steps li.is-done, .steps li.is-current { color: var(--black); }
.steps li.is-current::after { transform: scaleX(1); }
.steps li.is-done span::after { content: " ✓"; }
@media (min-width: 700px) {
  .steps li { flex: 1 0 auto; padding-right: 1.25rem; }
  .steps li::after { right: 1.25rem; }
  .steps li:not(.is-current) .steps__txt { display: inline; }
}

.booking__grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }

.who {
  display: flex; gap: 1rem; align-items: center;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-dark);
}
.who__photo { width: 72px; aspect-ratio: 3 / 4; background: #e3e2dd; flex-shrink: 0; overflow: hidden; }
.who__photo img { width: 100%; height: 100%; object-fit: cover; }
.who__label { font-size: var(--fs-eyebrow); letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-dark-mute); }
.who__name { font-family: var(--serif); font-size: 2.25rem; line-height: 1; margin-top: 0.25rem; }
.who__change {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
@media (hover: hover) { .who__change:hover { background-size: 35% 1px; } }

.booking__empty, .booking__unavailable {
  display: grid; justify-items: start; gap: 1rem;
  padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--line-dark);
}
.booking__empty p { font-family: var(--serif); font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.05; }
.booking__unavailable { color: #333; }
.booking__unavailable-title { font-family: var(--serif); font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.05; color: var(--black); }
.booking__unavailable-title strong { font-weight: 400; font-style: italic; }

/* Servicios: filas táctiles completas; el elegido se marca con relleno + punto (no solo color) */
.services__label { font-size: var(--fs-eyebrow); letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-dark-mute); margin-bottom: 0.75rem; }
.services__list { list-style: none; padding: 0; border-top: 1px solid var(--line-dark); }
.svc {
  width: 100%; display: grid; grid-template-columns: 14px 1fr auto; gap: 0.3rem 0.9rem; align-items: baseline;
  padding: 1.1rem 0.9rem; margin: 0; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.svc::before {
  content: ""; grid-row: 1; width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid currentColor; align-self: center; transition: background-color 0.3s var(--ease-out);
}
.svc:active { background: rgba(0,0,0,0.06); }
.svc__name { font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2.1rem); line-height: 1.05; }
.svc__meta { display: flex; gap: 0.75rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc__meta span + span { color: var(--text-dark-mute); }
.svc__desc { grid-column: 2 / -1; font-size: 0.9375rem; line-height: 1.5; color: var(--text-dark-mute); }
.svc[aria-checked="true"] { background: var(--black); color: var(--white); }
.svc[aria-checked="true"]::before { background: var(--white); }
.svc[aria-checked="true"] .svc__desc, .svc[aria-checked="true"] .svc__meta span + span { color: var(--text-soft); }
@media (hover: hover) and (pointer: fine) { .svc:not([aria-checked="true"]):hover { background: rgba(0,0,0,0.04); } }
@media (max-width: 359px) {
  .svc { grid-template-columns: 14px 1fr; }
  .svc__meta { grid-column: 2; }
}

/* Agenda Cal.com: ocupa todo el ancho en móvil (el iframe se adapta solo y se autoajusta en alto) */
.agenda { margin-top: 1.5rem; scroll-margin-top: calc(var(--header-h) + 0.5rem); }
.agenda__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; flex-wrap: wrap;
  padding-bottom: 0.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--line-dark); font-size: 0.9375rem;
}
.agenda__bar a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-mute); }
.agenda__host { position: relative; min-height: 480px; margin-inline: calc(var(--gutter) * -1); }
.agenda__loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  color: var(--text-dark-mute); font-size: 0.875rem; text-align: center; padding: 1rem;
}
.agenda__loading[hidden] { display: none; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line-dark); border-top-color: var(--black);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agenda__host > [data-cal-ns] { position: relative; z-index: 1; }

@media (min-width: 700px) {
  .agenda__host { margin-inline: 0; min-height: 520px; }
  .who__photo { width: 84px; }
  .who__name { font-size: 2.5rem; }
}
@media (min-width: 960px) {
  .booking__grid { grid-template-columns: 280px 1fr; }
  .who { flex-direction: column; align-items: flex-start; position: sticky; top: calc(var(--header-h) + 1.5rem); border-bottom: 0; }
  .who__photo { width: 100%; }
  .who__name { font-size: 3.25rem; }
}

/* ==========================================================================
   UBICACIÓN — el mapa de Google se carga solo al pedirlo (ahorra ~1,5 MB)
   ========================================================================== */
.location { border-top: 1px solid var(--line); }
.location__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.location__data { margin-top: 2rem; border-top: 1px solid var(--line); }
.location__data > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.location__data dt { font-size: var(--fs-eyebrow); letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute); padding-top: 0.2rem; }
.location__data dd { display: grid; color: var(--text-soft); }
.location__street { color: var(--white); font-weight: 500; }
.location__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.location__actions .btn { flex: 1 1 auto; white-space: nowrap; }
.location__map {
  position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--graphite);
}
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }
@media (min-width: 700px) { .location__actions .btn { flex: 0 0 auto; } }
@media (min-width: 960px) { .location__grid { grid-template-columns: 5fr 7fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--black); border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 6rem) 0 calc(1.5rem + env(safe-area-inset-bottom));
}
.site-footer__top { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.site-footer__logo { width: 110px; grid-column: 1 / -1; }
.site-footer__col h3 { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 0.5rem; }
.site-footer__col a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--text-soft); transition: color 0.3s;
}
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 0.75rem; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--text-mute);
}
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (min-width: 960px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer__logo { grid-column: auto; width: 150px; }
}

/* CTA fijo (solo móvil/tablet): aparece en zonas de lectura; se oculta en hero, selección,
   reserva y footer para no competir con sus propios controles */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 1.5rem max(var(--gutter), env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(0,0,0,0.92) 55%, rgba(0,0,0,0));
  transform: translateY(110%); transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}
.sticky-cta.is-visible { transform: none; pointer-events: auto; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* ---------- Revelado al hacer scroll (opacidad + transform) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero__logo, .js .hero__line, .js .hero__center .btn, .js .hero__shot { transform: none; }
  .spinner { animation-duration: 1.5s !important; }
}
