@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --cream: #fff7ea;
  --cream2: #fdeccf;
  --soft: #3d3f58;
  --ink: #1b1f3b;
  --muted: #6b6a7d;
  --line: #f0dfc2;
  --accent: #ff9f1c;
  --accent2: #f77f00;
  --navy: #1b1f3b;
  --ok: #22b573;
  --bad: #ef4d62;
  --opt0: #ff6b4a; /* estrella */
  --opt1: #1fa9c9; /* rayo */
  --opt2: #e64a9a; /* corazón */
  --opt3: #7c5cf0; /* hexágono */
  --radius: 18px;
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, .head { font-family: var(--head); font-weight: 700; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* Logo */
.logo { font-family: var(--head); font-weight: 700; font-size: 1.5rem; display: inline-flex; align-items: center; gap: .3em; text-decoration: none; color: inherit; }
.logo-mark { width: 1.35em; height: 1.35em; }

/* Barra de navegación */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,247,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .95rem; padding: 7px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a.on { background: var(--cream2); }
@media (max-width: 700px) { .nav-links { display: none; } .nav-in { justify-content: space-between; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  border: 0; border-radius: 999px; padding: .75em 1.4em; font-size: 1rem; font-weight: 800; text-decoration: none;
  background: var(--accent); color: var(--ink);
  box-shadow: 0 4px 0 var(--accent2);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 4px 0 #e8d6b8; border: 2px solid var(--line); }
.btn.navy { background: var(--navy); color: #fff; box-shadow: 0 4px 0 #0b0d1c; }
.btn.danger { background: var(--bad); color: #fff; box-shadow: 0 4px 0 #b52b3e; }
.btn.glass { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.btn.small { padding: .5em 1em; font-size: .9rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); display: inline-grid; place-items: center; font-size: 1.05rem; box-shadow: 0 3px 0 #e8d6b8; }

.card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 0 var(--line), 0 10px 30px rgba(120,80,20,.08); border: 1px solid var(--line); }

.shape { width: 1.4em; height: 1.4em; flex: none; display: inline-block; }
.shape svg { width: 100%; height: 100%; fill: #fff; }

.tag { display: inline-block; background: var(--accent); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 8px; }

/* Animaciones */
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pop { animation: pop .35s ease-out both; }
.rise { animation: rise .4s ease-out both; }

/* Tema oscuro (pantalla grande y móvil) */
body.stage { color: #fff; background-color: var(--stage-bg, #2b1a10); background-image: var(--pattern, none); background-size: 220px 220px; background-attachment: scroll; }
