/* ============================================================
   GENIOS CREATIVOS · Design System (edición niños 8–13)
   Sistema visual de juego: colores vivos, tipografía redonda,
   tarjetas tipo "sticker" y botones 3D presionables.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  /* Marca (derivada de la mascota: boina roja, capa azul, oro, arcoíris) */
  --blue:   #2F7BF6;
  --blue-d: #1B5FD6;
  --red:    #FF4D5E;
  --gold:   #FFB020;
  --yellow: #FFD23F;
  --green:  #22C268;
  --purple: #8C5CF0;
  --teal:   #15C2C9;
  --pink:   #FF5DA2;

  /* Tinta y papel (cálidos, nunca negro puro) */
  --ink:    #1E2547;
  --ink-2:  #4B5478;
  --ink-3:  #8C93B4;
  --line:   #E6E9F7;

  /* Fondos */
  --paper:  #EEF2FF;
  --card:   #FFFFFF;

  /* Colores por mundo / módulo */
  --m1: #2F7BF6;  /* El Genio Creativo */
  --m2: #8C5CF0;  /* El Mundo del Genio */
  --m3: #FF9F1C;  /* La Historia del Genio */
  --m4: #22C268;  /* El Genio en Movimiento */
  --m5: #15C2C9;  /* La Voz del Genio */
  --m6: #FF4D5E;  /* El Genio al Mundo */

  --r-sm: 14px;
  --r:    22px;
  --r-lg: 30px;
  --shadow: 0 18px 40px -18px rgba(30,37,71,.45);
  --shadow-sm: 0 10px 24px -14px rgba(30,37,71,.4);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fondo decorativo: blobs de color suaves + cielo */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(47,123,246,.20), transparent 60%),
    radial-gradient(900px 600px at 100% 8%, rgba(140,92,240,.16), transparent 55%),
    radial-gradient(900px 700px at 80% 105%, rgba(255,176,32,.16), transparent 55%),
    linear-gradient(180deg, #EAF1FF 0%, #F4F1FF 50%, #FFF6EC 100%);
}
/* textura de puntos sutil */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(47,123,246,.07) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.01em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ── Sparkles decorativos (glifos, no SVG) ── */
.spark { position: absolute; color: var(--gold); opacity: .9; pointer-events: none;
         text-shadow: 0 2px 0 rgba(0,0,0,.04); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100%{ transform: scale(1); opacity:.5 } 50%{ transform: scale(1.25); opacity:1 } }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 70px; position: relative; }

/* ── Nav izquierda ── */
.topbar-nav { display: flex; align-items: center; gap: 2px; }

/* ── Brand centrado absolutamente ── */
.topbar-brand {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.topbar-brand .brand-robot { height: 36px; width: 36px; object-fit: contain; }
.topbar-brand .brand-blue { color: var(--blue); }

/* ── Grupo derecho ── */
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Legacy — mantener por si algo todavía lo usa */
.topbar-spacer { flex: 1; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 5px 0 var(--blue-d);
}
.brand-badge img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); line-height: 1; }
.brand-name span { color: var(--blue); }
.brand-sub { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 14px; color: var(--ink-2);
  padding: 9px 15px; border-radius: 999px; border: 2px solid transparent;
  transition: .18s;
}
.tlink:hover { color: var(--ink); background: #fff; border-color: var(--line); transform: translateY(-1px); }
.tlink .ic { font-size: 17px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  border: 2px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
  transition: .18s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--blue); }
.icon-btn.off { opacity: .55; }

/* ============================================================
   BOTONES (3D presionables)
   ============================================================ */
.btn {
  --bg: var(--blue); --sh: var(--blue-d);
  font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg); color: #fff; border: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; font-size: 17px;
  box-shadow: 0 6px 0 var(--sh), var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, filter .12s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--sh); }
.btn-lg { font-size: 20px; padding: 17px 34px; }
.btn-ghost {
  --bg: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--line), var(--shadow-sm);
  border: 2px solid var(--line);
}
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn.red    { --bg: var(--red);    --sh: #D43344; }
.btn.gold   { --bg: var(--gold);   --sh: #D98C00; color: var(--ink); }
.btn.green  { --bg: var(--green);  --sh: #169A50; }
.btn.purple { --bg: var(--purple); --sh: #6E40D6; }

/* ── Chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 2px solid var(--line); color: var(--ink-2);
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: rgba(47,123,246,.1);
  padding: 7px 15px; border-radius: 999px;
}

/* ── Sección genérica ── */
.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 700; color: var(--ink); margin: 14px 0 10px; }
.section-head h2 em { font-style: normal; color: var(--blue); }
.section-head p { font-size: 18px; font-weight: 600; color: var(--ink-2); }

/* ============================================================
   HERO (hub)
   ============================================================ */
.hero { padding: 46px 0 28px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px); font-weight: 700; color: var(--ink);
  margin: 16px 0 14px;
}
.hero h1 .pop { color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 .pop::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 14px; z-index: -1;
  background: var(--yellow); border-radius: 999px; transform: rotate(-1.2deg);
}
.hero-sub { font-size: 19px; font-weight: 600; color: var(--ink-2); max-width: 520px; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Columna de arte del hero: mascota arriba + video debajo (sin traslapar) */
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* Mascota centrada sobre un disco de luz (ya NO encima del video) */
.hero-mascot-wrap { position: relative; width: 100%; display: grid; place-items: center; }
.hero-mascot-wrap::before {
  content: ''; position: absolute; z-index: 0;
  width: min(340px, 80%); aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,123,246,.22), rgba(140,92,240,.12) 45%, transparent 68%);
}
.hero-mascot-wrap::after {
  content: ''; position: absolute; bottom: 6%; z-index: 0;
  width: 46%; height: 22px; border-radius: 50%;
  background: rgba(30,37,71,.16); filter: blur(9px);
}
.hero-mascot {
  position: relative; z-index: 1; width: 250px; max-width: 64%;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.24));
  animation: float 4s ease-in-out infinite; cursor: pointer;
}
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-1.5deg) } 50%{ transform: translateY(-16px) rotate(1.5deg) } }

/* Video: marco tipo TV/juego ocupando TODO el ancho del contenedor, debajo */
.hero-screen {
  position: relative; width: 100%; border-radius: 28px; padding: 12px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 26px 54px -24px rgba(47,123,246,.6), 0 8px 0 rgba(0,0,0,.06);
}
.hero-screen-inner {
  position: relative; border-radius: 18px; overflow: hidden; background: #0B1230;
  aspect-ratio: 16/9;
}
.hero-screen video { width: 100%; height: 100%; object-fit: cover; }
.hero-screen .glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(47,123,246,.35), transparent 62%); pointer-events: none; }

.hero-pill {
  position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px;
  box-shadow: var(--shadow); border: 2px solid var(--line); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; gap: 8px; z-index: 2;
}
.hero-pill .em { font-size: 20px; }
.hero-pill.tl { top: -14px; left: -10px; animation: bob 5s ease-in-out infinite; }
.hero-pill.br { bottom: -14px; right: -10px; animation: bob 5s ease-in-out infinite .8s; }
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-9px) } }

/* ============================================================
   XP / PROGRESO
   ============================================================ */
.xp {
  background: #fff; border: 2px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow-sm); max-width: 520px; margin-top: 6px;
}
.xp-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.xp-lvl {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), #FF8A00); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 5px 0 #D98C00; line-height: 1; text-align: center;
}
.xp-lvl small { display: block; font-size: 8px; letter-spacing: .1em; font-weight:700; opacity:.9; }
.xp-lvl b { font-size: 19px; }
.xp-meta { flex: 1; }
.xp-label { font-weight: 800; font-size: 15px; color: var(--ink); }
.xp-pct { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--blue); }
.xp-track { height: 16px; background: #EAEDFa; border-radius: 999px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(30,37,71,.12); }
.xp-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #38E08A);
  position: relative; transition: width 1.1s cubic-bezier(.34,1.4,.5,1);
}
.xp-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  background-size: 60px 100%; background-repeat: no-repeat;
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer { from{ background-position: -60px 0 } to{ background-position: 320px 0 } }
.xp-next { margin-top: 11px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.xp-next b { color: var(--ink); }

/* ============================================================
   STEAM strip
   ============================================================ */
.steam { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.steam-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--r);
  padding: 22px 14px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .18s;
}
.steam-card:hover { transform: translateY(-5px); }
.steam-emoji { font-size: 34px; margin-bottom: 8px; }
.steam-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.steam-card p { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 3px; }

/* ============================================================
   MAPA DE LA AVENTURA  · mundos + nodos
   ============================================================ */
.worlds { display: flex; flex-direction: column; gap: 26px; }
.world {
  position: relative; border-radius: var(--r-lg);
  background: #fff; border: 2px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
}
.world-head {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px;
  color: #fff; position: relative;
  background: linear-gradient(120deg, var(--wc, var(--blue)), color-mix(in srgb, var(--wc, var(--blue)) 62%, #fff));
}
.world-mascot {
  width: 72px; height: 72px; flex-shrink: 0; object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.3));
  animation: bob 4.5s ease-in-out infinite;
}
.world-id { font-weight: 900; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.world-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,3vw,30px); line-height: 1.05; }
.world-guide { font-weight: 800; font-size: 13px; opacity: .92; margin-top: 2px; }
.world-head .spacer { flex: 1; }
.world-prog {
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: 7px 15px; font-weight: 900; font-size: 14px; white-space: nowrap;
}

/* camino de nodos */
.path { display: flex; flex-wrap: wrap; gap: 10px 6px; align-items: stretch; padding: 26px; }
.node {
  position: relative; flex: 1 1 150px; min-width: 140px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px 16px 15px; border-radius: 18px;
  background: #F7F9FF; border: 2px solid var(--line);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.node-link:hover .node { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--wc, var(--blue)); }
.node-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.node-dot {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 17px; color: #fff;
  background: var(--wc, var(--blue)); box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.node-state { font-size: 19px; line-height: 1; }
.node-title { font-weight: 800; font-size: 14px; color: var(--ink); line-height: 1.2; }
.node-meta { font-size: 12px; font-weight: 700; color: var(--ink-3); }

/* estados */
.node.done { background: color-mix(in srgb, var(--green) 12%, #fff); border-color: color-mix(in srgb, var(--green) 40%, #fff); }
.node.done .node-dot { background: var(--green); box-shadow: 0 4px 0 #169A50; }
.node.current {
  background: #fff; border-color: var(--wc, var(--blue)); border-width: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wc, var(--blue)) 18%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 4px color-mix(in srgb, var(--wc, var(--blue)) 18%, transparent) } 50%{ box-shadow: 0 0 0 10px color-mix(in srgb, var(--wc, var(--blue)) 8%, transparent) } }
.node.current .node-meta { color: var(--wc, var(--blue)); }
.node.locked { background: #F1F2F8; border-style: dashed; opacity: .85; }
.node.locked .node-dot { background: #C5CADF; box-shadow: 0 4px 0 #AEB4CF; }
.node.locked .node-title { color: var(--ink-3); }
.node-link.is-locked { pointer-events: none; }

.node .play-tag {
  margin-top: 2px; align-self: flex-start;
  background: var(--wc, var(--blue)); color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 0 rgba(0,0,0,.14); display: none;
}
.node.current .play-tag { display: inline-block; }

/* Nodo "Reto" (checkpoint del mundo) */
.node.reto { background: color-mix(in srgb,var(--gold) 10%,#fff); border-color: color-mix(in srgb,var(--gold) 36%,#fff); }
.node.reto .node-dot { background: var(--gold); box-shadow: 0 4px 0 #D98C00; }
.node.reto .node-meta { color: #B8780A; }
.node.reto.open { border-width: 3px; box-shadow: 0 0 0 4px color-mix(in srgb,var(--gold) 22%,transparent); animation: pulse 1.8s ease-in-out infinite; }
.node.reto.open .play-tag { display: inline-block; background: var(--gold); box-shadow: 0 4px 0 #D98C00; }
.node.reto.locked { background: #F1F2F8; border-style: dashed; opacity: .85; }
.node.reto.locked .node-dot { background: #C5CADF; box-shadow: 0 4px 0 #AEB4CF; }
.node.reto.locked .node-title { color: var(--ink-3); }

/* ============================================================
   GUÍAS (variantes de Robotsin)
   ============================================================ */
.guides { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.guide {
  text-align: center; background: #fff; border: 2px solid var(--line);
  border-radius: var(--r); padding: 18px 12px 16px; box-shadow: var(--shadow-sm);
  transition: transform .18s;
}
.guide:hover { transform: translateY(-6px) rotate(-1deg); }
.guide-img { aspect-ratio: 1/1; display: grid; place-items: center; margin-bottom: 8px; }
.guide-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); }
.guide .g-mod { font-weight: 900; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.guide h4 { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin: 2px 0 4px; }
.guide p { font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }

/* ============================================================
   EXTRA cards
   ============================================================ */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.extra {
  display: block; background: #fff; border: 2px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s, border-color .18s; position: relative; overflow: hidden;
}
.extra:hover { transform: translateY(-5px); }
.extra .em { font-size: 40px; margin-bottom: 12px; }
.extra .tag { font-weight: 900; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.extra h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 6px 0 8px; }
.extra p { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.extra .go { margin-top: 14px; font-family: var(--font-display); font-weight: 600; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--blue), var(--purple) 70%, var(--pink));
  color: #fff; padding: 50px; text-align: center; box-shadow: var(--shadow);
}
.cta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,4.5vw,46px); }
.cta p { font-size: 18px; font-weight: 600; opacity: .95; max-width: 560px; margin: 12px auto 26px; }
.cta img { width: 200px; margin: 0 auto 6px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.3)); animation: floatY 4s ease-in-out infinite; cursor: pointer; }
@keyframes floatY { 0%,100%{ transform: translateY(0) rotate(-1.5deg) } 50%{ transform: translateY(-14px) rotate(1.5deg) } }
.cta img.gc-wiggle { animation: gcWiggleC .6s cubic-bezier(.36,.07,.19,.97); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { text-align: center; padding: 46px 22px 60px; color: var(--ink-3); font-weight: 700; font-size: 14px; }
.foot b { color: var(--ink-2); }
.foot .ico { font-size: 26px; margin-bottom: 8px; }

/* ============================================================
   MISIÓN DIARIA (loop diario)
   ============================================================ */
.daily {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, color-mix(in srgb,var(--gold) 14%,#fff), #fff);
  border: 2px solid color-mix(in srgb,var(--gold) 34%,#fff);
  border-radius: var(--r-lg); padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.daily-icon { width: 60px; height: 60px; border-radius: 18px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 30px; background: linear-gradient(135deg, #FF8A00, var(--gold)); box-shadow: 0 5px 0 #D98C00; }
.daily.done .daily-icon { background: linear-gradient(135deg, var(--green), #38E08A); box-shadow: 0 5px 0 #169A50; }
.daily-main { flex: 1; min-width: 0; }
.daily-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.daily-label { font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #B8780A; }
.daily-date { font-weight: 700; font-size: 12px; color: var(--ink-3); }
.daily-text { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.2; }
.daily-action { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.daily-streak { font-weight: 800; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
@media (max-width: 620px) { .daily { flex-wrap: wrap; } .daily-action { flex-direction: row-reverse; width: 100%; justify-content: space-between; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Safe areas (notch iPhone / barras iOS) */
.topbar .wrap { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
.foot { padding-bottom: max(60px, calc(40px + env(safe-area-inset-bottom))); }

/* Tablet / iPad */
@media (max-width: 940px) {
  .hero { padding-top: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-sub, .xp { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .steam { grid-template-columns: repeat(3,1fr); }
  .guides { grid-template-columns: repeat(3,1fr); }
  .section { padding: 48px 0; }
}

/* Teléfono grande */
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: 60px; gap: 6px; }
  .topbar-brand { display: none; }
  .topbar-nav .tlink span:not(.ic) { display: none; }
  .topbar-nav .tlink { padding: 8px 10px; }
  .brand-sub, .tlink span { display: none; }
  .brand-name { font-size: 17px; }
  .brand-badge { width: 40px; height: 40px; }
  .tlink { padding: 9px 11px; }
  .icon-btn { width: 44px; height: 44px; }
  .steam { grid-template-columns: repeat(2,1fr); }
  .guides { grid-template-columns: repeat(2,1fr); }
  .extras { grid-template-columns: 1fr; }
  .world-head { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .world-mascot { width: 52px; height: 52px; }
  .world-prog { font-size: 13px; padding: 6px 13px; }
  .path { padding: 16px; gap: 10px; }
  .node { flex-basis: 100%; min-width: 0; }
  .cta { padding: 34px 20px; }
  .cta img { width: 150px; }
  .hero-pill.tl { left: 0; }
  .hero-pill.br { right: 0; }
}

/* Teléfono pequeño */
@media (max-width: 400px) {
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .btn-lg { font-size: 18px; padding: 15px 24px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn, .hero-cta .streak { width: 100%; justify-content: center; }
  .xp-next { font-size: 13px; }
  .steam { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .section-head h2 { font-size: 30px; }
}

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

/* ── STEAM strip (chips pequeños) ── */
.steam-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.steam-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.7);
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ── Reel de videos ── */
.reel-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.reel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: reelScroll 40s linear infinite;
}
.reel-track:hover { animation-play-state: paused; }
.reel-item {
  flex-shrink: 0;
  width: 280px;
  height: 158px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes reelScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
