/* Critical above-the-fold styles & boot spinner (CSP style-src 'self' safe) */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html { touch-action: manipulation; color-scheme: dark; }
body { margin: 0; background: #0a0a0f; color: #f8fafc; font-family: system-ui, -apple-system, sans-serif; }
#root { min-height: 100dvh; }
img { max-width: 100%; height: auto; }
[data-below-fold] { content-visibility: auto; contain-intrinsic-size: 0 400px; }

.rs-boot-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: #0a0a0f;
}

.rs-boot-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #1e293b;
  border-top-color: #3b82f6;
  animation: rs-boot-spin 0.7s linear infinite;
}

@keyframes rs-boot-spin {
  to { transform: rotate(360deg); }
}

/* La portada estática solo es visible sin JS; React reemplaza el loader al montar. */
html.rs-js #prerender-seo.rs-pre-home { display: none; }
html:not(.rs-js) .rs-home-loader { display: none; }

/* Prerendered static SEO shell before React hydration */
#prerender-seo {
  max-width: 768px;
  margin: 0 auto;
  padding: 96px 24px 48px;
  color: #8B94A7;
  background: #0A0F1C;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}
#prerender-seo nav[aria-label="Ruta"] { font-size: 13px; color: #8B94A7; margin-bottom: 24px; }
#prerender-seo nav[aria-label="Ruta"] a { color: #8B94A7; }
#prerender-seo .rs-pre-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: #8B94A7; font-weight: 600; }
#prerender-seo h1 { font-size: 34px; font-weight: 700; color: #F1F5F9; line-height: 1.1; margin: 12px 0 16px; }
#prerender-seo h2 { color: #F1F5F9; font-weight: 700; font-size: 26px; margin: 0 0 16px; line-height: 1.2; }
#prerender-seo h3 { color: #F1F5F9; font-weight: 600; font-size: 16px; margin: 0 0 6px; }
#prerender-seo .rs-pre-intro { font-size: 17px; color: #8B94A7; }
#prerender-seo .rs-pre-cta-wrap { margin-top: 24px; }
#prerender-seo .rs-pre-cta {
  display: inline-block;
  background: #2E6BF0;
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
}
#prerender-seo .rs-pre-disclaimer { font-size: 11px; line-height: 1.6; color: #8B94A7; }
#prerender-seo .rs-pre-block { margin-top: 40px; }
#prerender-seo .rs-pre-sec { margin-bottom: 40px; }
#prerender-seo .rs-pre-p { margin: 0 0 16px; }
#prerender-seo .rs-pre-ul { margin: 16px 0; padding-left: 20px; }
#prerender-seo .rs-pre-li { margin-bottom: 8px; }
#prerender-seo .rs-pre-faq { margin-bottom: 16px; }
#prerender-seo .rs-pre-faq-a { margin: 0; color: #8B94A7; }
