/* =========================================================================
   TocaFiesta · base.css
   Fondo, tipografía base, confeti y utilidades de accesibilidad.
   Conserva el look original de la portada.
   ========================================================================= */

/* Fuentes autoalojadas (estructura lista; ver README para sustituir el CDN).
   Coloca los .woff2 en assets/fonts y descomenta estos bloques.

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/Fredoka-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}
*/

* { box-sizing: border-box; }
html, body { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-2), transparent 60%),
    linear-gradient(180deg, var(--bg-1), #FFFFFF 70%);
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); }

a { color: var(--brand); }

/* Capa de confeti (decorativa, detrás del contenido) */
.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.confetti-piece {
  position: absolute;
  border-radius: 2px;
  opacity: .45;
  animation: floaty linear infinite;
  will-change: transform;
}
@keyframes floaty {
  from { transform: translateY(-8px) rotate(0deg); }
  to   { transform: translateY(16px) rotate(180deg); }
}

/* Contenedor principal de la app */
.app {
  position: relative;
  z-index: 1;
  max-width: var(--app-max);
  margin: 0 auto;
  padding: 18px 20px calc(120px + env(safe-area-inset-bottom));
}

/* Cabecera / marca (idéntica a la portada) */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .2px;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.brand .accent { color: var(--brand); }
.brand .spark { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* Pie */
.site-footer {
  margin-top: 34px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
}
.site-footer a { color: var(--ink-soft); }

/* Accesibilidad */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 50;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
