/**
 * LIPA Brain Gym — UI visual (mates + promos)
 */
@import url('/css/brain-design-system.css');

:root {
  --brain-violet: #a855f7;
  --brain-violet-deep: #7c3aed;
  --brain-magenta: #e879f9;
  --brain-glow: rgba(168, 85, 247, 0.55);
  --brain-surface: linear-gradient(145deg, rgba(124, 58, 237, 0.22) 0%, rgba(15, 10, 30, 0.95) 55%);
}

/* —— Home promo —— */
.home-brain {
  max-width: var(--lipa-max-wide, 1100px);
  margin: 0 auto var(--lipa-space-2xl, 48px);
  padding: 0 var(--lipa-space-lg, 24px);
}

.home-brain__head {
  text-align: center;
  margin-bottom: var(--lipa-space-lg, 24px);
}

.home-brain__head h2 {
  font-family: var(--lipa-font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #e9d5ff, var(--brain-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-brain__head p {
  margin: 0;
  color: var(--lipa-text-secondary);
  font-size: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.home-brain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--lipa-space-md, 16px);
}

.brain-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--lipa-text);
  border-radius: var(--lipa-radius-lg, 20px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: var(--brain-surface);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.brain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 121, 249, 0.6);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.25);
}

.brain-card__stage {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
}

.brain-card__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.brain-card__float {
  position: absolute;
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.08;
  color: #fff;
  pointer-events: none;
  user-select: none;
}

.brain-card__float--a { top: 12%; left: 10%; transform: rotate(-12deg); }
.brain-card__float--b { bottom: 8%; right: 12%; transform: rotate(8deg); }

.brain-card__equation {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--lipa-font-display);
  line-height: 1.1;
}

.brain-card__expr {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f3ff;
  text-shadow: 0 0 24px var(--brain-glow);
}

.brain-card__hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brain-magenta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brain-card--tablas .brain-card__expr {
  color: #faf5ff;
  text-shadow: 0 0 28px rgba(232, 121, 249, 0.5);
}

.brain-card__body {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brain-card__body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.brain-card__body p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--lipa-text-secondary);
}

.brain-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: #e9d5ff;
}

/* Rutinas en home — pills visibles */
.home-routines {
  max-width: var(--lipa-max, 980px);
  margin: 0 auto var(--lipa-space-xl, 32px);
  padding: 0 var(--lipa-space-lg, 24px);
}

.home-routines__block {
  margin-bottom: var(--lipa-space-md, 16px);
  padding: var(--lipa-space-md, 16px);
  border-radius: var(--lipa-radius, 14px);
  border: 1px solid var(--lipa-border);
  background: var(--lipa-surface);
}

.home-routines__block--brain {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(124, 58, 237, 0.08);
}

.home-routines__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lipa-text-secondary);
  margin: 0 0 12px;
}

.home-routines__block--brain .home-routines__label {
  color: #d8b4fe;
}

.home-routine-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-routine-steps a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--lipa-text) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--lipa-border-strong);
  transition: background 0.15s, border-color 0.15s;
}

.home-routine-steps a:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.45);
  color: #fff !important;
}

.home-routines__block--brain .home-routine-steps a {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
}

.home-routines__block--brain .home-routine-steps a:hover {
  background: rgba(168, 85, 247, 0.28);
  border-color: var(--brain-magenta);
}

.home-routine-steps .step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  color: var(--lipa-accent);
}

.home-routines__block--brain .home-routine-steps .step-n {
  color: #e9d5ff;
  background: rgba(0, 0, 0, 0.4);
}

.home-routines__more {
  margin: 10px 0 0;
  font-size: 13px;
}

.home-routines__more a {
  color: var(--lipa-accent) !important;
  font-weight: 500;
  text-decoration: none;
}

.home-routines__block--brain .home-routines__more a {
  color: #d8b4fe !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.hero-chip--accent {
  background: linear-gradient(135deg, rgba(46, 184, 154, 0.2), rgba(124, 58, 237, 0.15));
  border-color: rgba(46, 184, 154, 0.45);
  color: #0d5c4a;
  font-weight: 700;
}

.hero-chip--brain {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(124, 58, 237, 0.12);
  color: #e9d5ff;
}

.hero-chip--brain a {
  color: inherit;
  text-decoration: none;
}

/* —— Juegos mates (arena visual) —— */
.math-arena {
  position: relative;
  min-height: 280px;
  border: 2px solid transparent;
  border-radius: var(--lipa-radius-lg, 20px);
  background:
    linear-gradient(160deg, rgba(30, 16, 60, 0.95) 0%, rgba(8, 8, 14, 0.98) 100%);
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.math-arena::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brain-violet-deep), var(--brain-magenta), rgba(0, 212, 255, 0.35));
  z-index: 0;
  opacity: 0.65;
}

.math-arena::after {
  content: '7 3 9 4 12 8';
  position: absolute;
  inset: 0;
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: none;
  z-index: 0;
}

.math-arena__inner {
  position: relative;
  z-index: 1;
  padding: var(--lipa-space-lg, 24px) var(--lipa-space-md, 16px);
}

.math-arena--live {
  animation: brain-pulse-border 2s ease-in-out infinite;
}

@keyframes brain-pulse-border {
  0%, 100% { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3), 0 12px 40px rgba(124, 58, 237, 0.15); }
  50% { box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.5), 0 12px 48px rgba(124, 58, 237, 0.35); }
}

.math-question {
  font-family: var(--lipa-font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  margin: 0 0 var(--lipa-space-lg, 24px);
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 0 32px var(--brain-glow), 0 2px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.math-question--pop {
  animation: math-pop 0.2s ease-out;
}

@keyframes math-pop {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.math-timer-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(168, 85, 247, 0.35);
  border-top-color: var(--brain-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #e9d5ff;
}

.math-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}

.math-choice {
  min-height: 64px;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s, box-shadow 0.12s;
  touch-action: manipulation;
  backdrop-filter: blur(8px);
}

.math-choice:hover:not(:disabled) {
  border-color: rgba(232, 121, 249, 0.6);
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.math-choice:active {
  transform: scale(0.96);
}

.math-choice--ok {
  border-color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.25) !important;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}

.math-choice--bad {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, 0.2) !important;
}

.math-streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.math-streak[hidden] {
  display: none !important;
}

.game-page--brain .stats .stat strong {
  color: #e9d5ff;
}

.brain-hub-page .arcade-card__visual--calculo,
.brain-hub-page .arcade-card__visual--tablas,
.brain-hub-page .arcade-card__visual--palabras {
  font-size: 2.75rem;
}

.brain-eyebrow--lang {
  color: #2dd4bf;
}

.brain-level-pill--lang {
  color: #99f6e4;
  background: rgba(13, 148, 136, 0.25);
  border-color: rgba(45, 212, 191, 0.4);
}

.math-arena--lang {
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.35), 0 12px 40px rgba(13, 148, 136, 0.12);
}

.lang-direction {
  font-size: 14px;
  color: var(--lipa-text-secondary);
  margin: 0 0 8px;
  text-align: center;
}

.lang-prompt {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.btn--lang {
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  border-color: #2dd4bf !important;
}

/* —— Home Brain Gym first —— */
.landing-hero--brain-gym .landing-hero__title {
  background: linear-gradient(90deg, #f5f3ff 0%, #e9d5ff 40%, var(--brain-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero--brain-gym .landing-hero__eyebrow {
  color: #c4b5fd;
}

.hero-chip--brain a {
  color: #e9d5ff;
  text-decoration: none;
}

.btn-hero-primary--brain {
  background: linear-gradient(135deg, var(--brain-violet-deep), var(--brain-violet)) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
}

.btn-hero-primary--brain:hover {
  filter: brightness(1.1);
}

.home-entreno-hoy {
  max-width: var(--lipa-max-wide, 1100px);
  margin: 0 auto var(--lipa-space-2xl, 48px);
  padding: 0 var(--lipa-space-lg, 24px);
}

.home-entreno-hoy__title {
  font-family: var(--lipa-font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  color: var(--lipa-text);
}

.home-entreno-hoy__lead {
  text-align: center;
  color: var(--lipa-text-secondary);
  font-size: 1rem;
  max-width: 32rem;
  margin: 0 auto var(--lipa-space-lg, 24px);
  line-height: 1.5;
}

.home-routines__block--primary {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(124, 58, 237, 0.08);
}

.home-routines__block--extra {
  opacity: 0.92;
}

.home-arcade-extra {
  max-width: var(--lipa-max-wide, 1100px);
  margin: 0 auto var(--lipa-space-2xl, 48px);
  padding: 0 var(--lipa-space-lg, 24px);
  border-top: 1px solid var(--lipa-border);
  padding-top: var(--lipa-space-xl, 32px);
}

.home-arcade-extra__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lipa-text-secondary);
  text-align: center;
  margin: 0 0 8px;
}

.home-arcade-extra__lead {
  text-align: center;
  color: var(--lipa-text-secondary);
  font-size: 14px;
  margin: 0 0 var(--lipa-space-md, 16px);
}

.home-arcade-extra__toggle {
  border: 1px solid var(--lipa-border);
  border-radius: var(--lipa-radius-lg, 16px);
  background: var(--lipa-surface);
  overflow: hidden;
}

.home-arcade-extra__toggle > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--lipa-text);
  list-style: none;
}

.home-arcade-extra__toggle > summary::-webkit-details-marker {
  display: none;
}

.home-arcade-extra__toggle[open] > summary {
  border-bottom: 1px solid var(--lipa-border);
}

.home-arcade-extra .home-play {
  margin-bottom: var(--lipa-space-lg, 24px);
  padding-top: var(--lipa-space-md, 16px);
}

.start-here--arcade .start-here__title {
  color: var(--lipa-text-secondary);
}

/* —— Neon Lenguaje (ES) —— */
.game-page--lengua .brain-eyebrow--lang {
  color: #f9a8d4;
}

.brain-level-pill--lang {
  color: #fce7f3;
  background: rgba(236, 72, 153, 0.22);
  border-color: rgba(244, 114, 182, 0.45);
}

.lengua-arena {
  border-color: rgba(244, 114, 182, 0.35);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.2), 0 12px 40px rgba(236, 72, 153, 0.12);
}

.lengua-arena--live {
  border-color: rgba(244, 114, 182, 0.55);
}

.lengua-prompt {
  text-align: center;
  font-size: 1rem;
  color: var(--lipa-text-secondary);
  margin: 0 0 12px;
}

.lengua-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.lengua-work {
  min-height: 140px;
}

.lengua-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.lengua-slots--frase {
  min-height: 48px;
}

.lengua-slot {
  min-width: 52px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px dashed rgba(244, 114, 182, 0.45);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--lipa-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fce7f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lengua-slot--wide {
  min-width: auto;
  padding: 8px 14px;
}

.lengua-slot--filled {
  border-style: solid;
  border-color: #f472b6;
  background: rgba(236, 72, 153, 0.2);
}

.lengua-hint-word {
  text-align: center;
  font-size: 13px;
  color: var(--lipa-text-secondary);
  margin: 0 0 16px;
  letter-spacing: 0.08em;
}

.lengua-big-word {
  text-align: center;
  font-family: var(--lipa-font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: #fce7f3;
  margin: 0 0 20px;
  letter-spacing: 0.12em;
}

.lengua-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lengua-chip {
  min-width: 56px;
  padding: 12px 16px;
  font-family: var(--lipa-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 12px;
  border: 2px solid rgba(244, 114, 182, 0.5);
  background: rgba(236, 72, 153, 0.15);
  color: #fce7f3;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}

.lengua-chip:hover:not(:disabled) {
  transform: scale(1.05);
  background: rgba(236, 72, 153, 0.28);
}

.lengua-chip:disabled {
  opacity: 0.35;
  cursor: default;
}

.lengua-chip--bad {
  border-color: #f87171 !important;
  background: rgba(248, 113, 113, 0.25) !important;
}

.lengua-read-text {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #f5f3ff;
  margin: 0 0 16px;
  text-align: center;
}

.lengua-read-q {
  font-size: 1rem;
  margin: 0 0 16px;
  text-align: center;
  color: #fce7f3;
}

.lengua-choices {
  margin-top: 8px;
}

.btn--lengua {
  background: linear-gradient(135deg, #db2777, #ec4899) !important;
  border-color: #f472b6 !important;
  color: #fff !important;
}

/* —— Rutina guiada —— */
.lipa-routine-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(8, 6, 18, 0.92) 24%, rgba(8, 6, 18, 0.98) 100%);
  pointer-events: none;
}

.lipa-routine-bar__inner {
  pointer-events: auto;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: var(--brain-surface);
  box-shadow: 0 -8px 32px rgba(124, 58, 237, 0.25);
}

.lipa-routine-bar__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--lipa-text-secondary);
}

.lipa-routine-bar__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c4b5fd;
  font-weight: 600;
}

.lipa-routine-bar__step {
  font-variant-numeric: tabular-nums;
}

.lipa-routine-bar__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.lipa-routine-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brain-violet-deep), var(--brain-magenta));
  transition: width 0.35s ease;
}

.lipa-routine-bar__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #f5f3ff;
}

.lipa-routine-bar__sub {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--lipa-text-secondary);
}

.lipa-routine-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lipa-routine-bar__prompt {
  width: 100%;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #e9d5ff;
  text-align: center;
}

.lipa-routine-bar__repeat {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.lipa-routine-bar__repeat:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lipa-routine-bar__next {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brain-violet-deep), #9333ea);
}

.lipa-routine-bar__next--pulse {
  animation: lipa-routine-pulse 1.2s ease-in-out infinite;
}

@keyframes lipa-routine-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(168, 85, 247, 0); }
}

.lipa-routine-bar__skip,
.lipa-routine-bar__quit {
  font-size: 13px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: #a78bfa;
  cursor: pointer;
  text-decoration: none;
}

.lipa-routine-bar__skip:hover,
.lipa-routine-bar__quit:hover {
  color: #e9d5ff;
}

body.lipa-routine-active.game-page .wrap,
body.lipa-routine-active.lipa-page main {
  padding-bottom: 140px;
}

.lipa-routine-done {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #d1fae5;
  font-size: 15px;
  line-height: 1.45;
}

.lipa-routine-done a {
  color: #6ee7b7;
}

.brain-routine-guided-hint {
  margin-top: 8px;
  font-size: 14px;
}

.brain-routine-guided-hint a {
  color: #c4b5fd;
  font-weight: 600;
}

/* —— Naturales / Sociales —— */
.brain-eyebrow--science {
  color: #86efac;
}

.brain-eyebrow--social {
  color: #7dd3fc;
}

.brain-level-pill--science {
  border-color: rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
}

.brain-level-pill--social {
  border-color: rgba(56, 189, 248, 0.5);
  color: #bae6fd;
}

.btn--science {
  background: linear-gradient(135deg, #15803d, #22c55e) !important;
  border-color: #4ade80 !important;
  color: #fff !important;
}

.btn--social {
  background: linear-gradient(135deg, #0369a1, #38bdf8) !important;
  border-color: #7dd3fc !important;
  color: #fff !important;
}

.naturales-prompt,
.sociales-prompt {
  text-align: center;
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.naturales-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

.naturales-name {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  color: #dcfce7;
}

.naturales-choices,
.sociales-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.naturales-choice {
  flex: 1 1 40%;
  min-width: 120px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid rgba(74, 222, 128, 0.4);
  background: rgba(21, 128, 61, 0.25);
  color: #ecfdf5;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.naturales-choice--ok {
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.45);
}

.naturales-choice--bad {
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.25);
}

.naturales-read-text,
.sociales-read-text,
.naturales-statement {
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 12px;
  color: #ecfdf5;
}

.naturales-read-q,
.sociales-read-q {
  text-align: center;
  margin: 0 0 16px;
  color: #bbf7d0;
}

.sociales-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 16px;
}

.sociales-slot {
  min-width: 64px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px dashed rgba(125, 211, 252, 0.45);
  font-size: 14px;
  text-align: center;
}

.sociales-slot--filled {
  border-style: solid;
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.35);
}

.sociales-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sociales-chip {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.5);
  background: rgba(3, 105, 161, 0.35);
  color: #e0f2fe;
  font-weight: 600;
  cursor: pointer;
}

.sociales-chip--bad {
  animation: lipa-routine-pulse 0.3s ease;
  border-color: #f87171;
}

/* —— Infantil / Peques —— */
.brain-eyebrow--peques {
  color: #fcd34d;
}

.brain-level-pill--peques {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
}

.btn--peques {
  background: linear-gradient(135deg, #d97706, #fbbf24) !important;
  border-color: #fcd34d !important;
  color: #1c1917 !important;
  font-weight: 800 !important;
}

.peques-prompt {
  text-align: center;
  font-size: 1.2rem;
  margin: 0 0 16px;
  color: #fef3c7;
}

.peques-hero {
  display: block;
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.peques-count-icons {
  font-size: 2.25rem;
  letter-spacing: 0.35em;
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.4;
}

.peques-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.peques-choices--big .peques-choice {
  min-width: 100px;
  font-size: 1.1rem;
}

.peques-choices--nums .peques-choice--num {
  font-size: 1.75rem;
  min-width: 72px;
  min-height: 72px;
}

.peques-choice {
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid rgba(251, 191, 36, 0.5);
  background: rgba(180, 83, 9, 0.35);
  color: #fffbeb;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}

.peques-choice--ok {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.55);
}

.peques-choice--bad {
  border-color: #f87171;
  background: rgba(185, 28, 28, 0.35);
}
