/* Ráfaga · Moxen — los estilos del efecto y de la demostración. */
:root {
  --rf-fondo: #0a0a0a;
  --rf-texto: #f4f4f4;
  --rf-suave: rgba(255, 255, 255, .62);
  --rf-tenue: rgba(255, 255, 255, .12);
  --rf-borde: rgba(255, 255, 255, .18);
  --rf-boton: #f4f4f4;
  --rf-boton-texto: #0a0a0a;
  /* la seda (las lee rafaga.js): el gris de los valles y el de las crestas */
  --rf-sombra: 10, 10, 10;
  --rf-luz: 214, 214, 214;
  --rf-curva: cubic-bezier(.22, 1, .36, 1);
}
a { color: inherit; text-decoration: none; }

/* ── el efecto ─────────────────────────────────────────────────────── */
/* touch-action: none para que el dedo arrastre la seda sin mover la
   página (en un sitio con scroll debajo, usa pan-y) */
.rf-portada {
  position: relative; height: 100%; min-height: 560px; display: grid; grid-template-rows: auto 1fr;
  overflow: hidden; isolation: isolate; touch-action: none; outline: none; -webkit-tap-highlight-color: transparent;
}
.rf-fondo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* un velo bajo el texto: se lee aunque pase una cresta de luz por detrás */
.rf-portada::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 40% at 50% 54%, var(--rf-fondo) 0%, transparent 100%);
  opacity: .78;
}
.rf-portada:focus-visible::after { content: ""; position: absolute; inset: 6px; border: 2px solid var(--rf-borde); border-radius: 6px; pointer-events: none; }
.rf-sin-webgl .rf-pista::after { content: " (Este navegador no tiene WebGL 2: la seda queda quieta.)"; }

/* ── la demostración ───────────────────────────────────────────────── */
.rf-cabecera { display: flex; align-items: center; justify-content: space-between; padding: 26px clamp(18px, 4vw, 44px); }
.rf-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.rf-logo svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rf-nav { display: flex; gap: 4px; }
.rf-nav a { padding: 9px 14px; border-radius: 99px; color: var(--rf-suave); font-size: .94rem; font-weight: 500; transition: color .25s, background-color .3s var(--rf-curva); }
.rf-nav a:hover { color: var(--rf-texto); background: var(--rf-tenue); }
.rf-cabecera a:focus-visible, .rf-boton:focus-visible { outline: 2px solid var(--rf-texto); outline-offset: 3px; }

.rf-centro { display: grid; justify-items: center; align-content: center; text-align: center; padding: 0 20px 80px; }
.rf-titulo { margin: 0; font-size: clamp(2.5rem, 7.4vw, 6.2rem); font-weight: 600; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.rf-bajada { max-width: 520px; margin: 26px 0 0; color: var(--rf-suave); font-size: 1.12rem; line-height: 1.5; text-wrap: balance; }
.rf-boton {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px 0 30px; margin-top: 34px; border-radius: 99px;
  background: var(--rf-boton); color: var(--rf-boton-texto); font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .7); transition: transform .4s var(--rf-curva);
}
.rf-boton svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--rf-curva); }
.rf-boton:hover { transform: translateY(-2px); }
.rf-boton:hover svg { transform: translateX(3px); }

.rf-pista {
  position: absolute; left: 1rem; right: 1rem; bottom: 1.6rem; margin: 0; text-align: center; text-wrap: balance; pointer-events: none;
  color: var(--rf-suave); font-size: .9rem; font-weight: 500; letter-spacing: -.01em; opacity: .8;
}

@media (max-width: 760px) {
  .rf-nav a { padding: 8px 10px; font-size: .88rem; }
  .rf-bajada { font-size: 1rem; }
  .rf-boton { height: 50px; padding: 0 22px 0 26px; }
  .rf-pista { font-size: .82rem; bottom: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-boton, .rf-boton svg { transition: none; }
}
