/* BioMorph Gym · estilo común de la web (index.html y gracias.html).
   Colores y fuentes copiados de brand.js (fuente única de la marca). */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas-neue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-semibold.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #0A0C10;
  --bg-mid: #0F131A;
  --bg-card: #171C26;
  --grid: #1B2433;
  --cyan: #00D2FF;
  --cyan-soft: rgba(0, 210, 255, 0.08);
  --cyan-line: rgba(0, 210, 255, 0.28);
  --ok: #10B981;
  --ok-soft: rgba(16, 185, 129, 0.12);
  --err: #EF4444;
  --err-soft: rgba(239, 68, 68, 0.12);
  --white: #FFFFFF;
  --label: #E2E8F0;
  --muted: #94A3B8;
  --ghost: #64748B;
  --line: #222B38;

  --f-title: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: 18px;
  --max: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--muted);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
p { margin: 0 0 1em; }
strong { color: var(--label); font-weight: 600; }
h1, h2, h3 { margin: 0; font-weight: 400; overflow-wrap: break-word; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Retícula biomecánica de fondo, con brillo cian suave en el centro. */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.grid-bg::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 45% at 50% 35%, var(--cyan-soft), transparent 70%);
  pointer-events: none;
}

/* Kicker de laboratorio: cuadrado cian + Inter en mayúsculas. */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.kicker::before {
  content: ''; flex: none; width: 9px; height: 9px; background: var(--cyan);
}

/* Titulares: línea 1 blanca, línea 2 cian (regla de los reels). */
.title {
  font-family: var(--f-title);
  color: var(--white);
  font-size: clamp(38px, 10.5vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.title .c { color: var(--cyan); display: block; }
.title-sm { font-size: clamp(32px, 8.6vw, 56px); }

.lead { font-size: 17px; color: var(--label); line-height: 1.5; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.err { color: var(--err); }
.cyan { color: var(--cyan); }

/* Botón principal: cian con texto oscuro. */
/* Estructura: <a class="btn"><span>Texto</span><svg class="arr">…</svg></a>.
   Flex centra en los dos ejes; la flecha es un icono pegado al texto y nunca cae sola a otra línea.
   Bebas Neue reserva hueco de descendentes bajo las mayúsculas: el padding de arriba es algo mayor
   para que las letras queden ópticamente centradas. */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4em;
  width: 100%;
  min-height: 58px;
  padding: calc(14px + 0.09em) 22px calc(14px - 0.09em);
  border: 0; border-radius: 12px;
  background: var(--cyan);
  color: var(--bg-dark);
  font-family: var(--f-title);
  font-size: clamp(22px, 6.2vw, 28px);
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
  text-wrap: balance;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.55), 0 14px 34px -14px rgba(0, 210, 255, 0.7);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { background: #33DBFF; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn > span { min-width: 0; }
.btn .arr { flex: none; width: 0.85em; height: 0.85em; margin-top: -0.09em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }
/* Si el texto puede partirse en dos líneas, la flecha va dentro del texto unida a la última palabra (.nw). */
.btn .nw { white-space: nowrap; }
.btn .nw .arr { display: inline-block; vertical-align: -0.06em; margin: 0 0 0 0.35em; }
.btn.pulse { animation: pulse 2.4s ease-out infinite; }
.btn-ok { background: var(--ok); box-shadow: 0 14px 34px -14px rgba(16, 185, 129, 0.8); }
.btn-ok:hover { background: #22c993; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.5), 0 14px 34px -14px rgba(0, 210, 255, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(0, 210, 255, 0), 0 14px 34px -14px rgba(0, 210, 255, 0.7); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0), 0 14px 34px -14px rgba(0, 210, 255, 0.7); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Aparición suave al hacer scroll (solo si hay JS y el usuario acepta movimiento). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn.pulse { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (min-width: 768px) {
  :root { --pad: 28px; }
}
