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

:root {
  /* Colores */
  --cream: #FDF6EC; 
  --warm: #F5EAD7; 
  --orange: #E8703A; 
  --orange-d: #C4551F;
  --teal: #2A7C6F; 
  --teal-d: #1D5C52; 
  --teal-l: #E6F4F1;
  --gold: #D4A017; 
  --dark: #1E1E1E; 
  --mid: #4A4A4A; 
  --white: #FFFFFF;

  /* Tipografía y radios */
  --radius: 18px; 
  --font-base: 18px; 
  --line-height: 1.6;

  /* Sombras */
  --shadow: 0 6px 24px rgba(0,0,0,.10); 
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);

  /* Tipografía responsiva */
  --h1: 2.8rem; 
  --h2: 2.2rem; 
  --h3: 1.6rem; 
  --p: 1.15rem;
}

html { scroll-behavior: smooth; }
body { 
  font-family: 'Nunito', sans-serif; 
  background: var(--cream); 
  color: var(--dark); 
  font-size: var(--font-base); 
  line-height: var(--line-height); 
}

/* ── VISIBILIDAD PRINCIPAL ── */
.main-content.hidden, #main-content.hidden { display: none; }

/* ── HEADER ── */
header { 
  background: var(--white); 
  border-bottom: 3px solid var(--warm); 
  padding: 14px 40px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  box-shadow: 0 2px 12px rgba(0,0,0,.08); 
}

header:focus-within { outline: 3px solid var(--teal); }

.logo { display:flex; align-items:center; gap:14px; cursor:pointer; }
.logo-svg { 
  width:56px; height:56px; flex-shrink:0; 
  filter: drop-shadow(0 3px 8px rgba(42,124,111,0.25)); 
  transition: transform .3s; 
}
.logo:hover .logo-svg { transform: rotate(-8deg) scale(1.08); }

.logo-text { display:flex; flex-direction:column; line-height:1.1; }
.logo-ritmo { font-family:'Lora',serif; font-size:1.3rem; font-weight:600; color:var(--teal); }
.logo-mental { font-family:'Lora',serif; font-size:1.3rem; font-weight:600; color:var(--orange); }

nav ul { list-style:none; display:flex; gap:8px; }
nav a { 
  text-decoration:none; 
  color: var(--mid); 
  font-size:1rem; 
  font-weight:700; 
  padding:8px 18px; 
  border-radius:50px; 
  transition: background .2s,color .2s; 
}
nav a:hover, nav a:focus { background: var(--teal-l); color: var(--teal); outline: none; }

/* ── HERO ── */
.hero { 
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%); 
  padding: 70px 40px 80px; 
  position: relative; 
  overflow: hidden; 
}

.hero::before, .hero::after { 
  content: ''; 
  position: absolute; 
  border-radius: 50%; 
  pointer-events: none; 
  will-change: transform; 
}
.hero::before { top: -80px; right: -80px; width: 320px; height: 320px; background: rgba(255,255,255,.05); }
.hero::after { bottom: -60px; left: -60px; width: 240px; height: 240px; background: rgba(255,255,255,.04); }

.hero-deco { 
  position: absolute; 
  color: rgba(255,255,255,0.15); 
  pointer-events: none; 
  animation: flotar 4s ease-in-out infinite; 
  will-change: transform;
}
.hero-deco-1 { top:15%; left:8%; font-size:1.4rem; animation-delay:0s; }
.hero-deco-2 { top:70%; right:6%; font-size:1.8rem; animation-delay:1.5s; }
.hero-deco-3 { top:30%; right:18%; font-size:2.4rem; animation-delay:0.8s; }
.hero-deco-4 { bottom:20%; left:20%; font-size:1rem; animation-delay:2.2s; }

@keyframes flotar { 
  0%,100% { transform: translateY(0) rotate(0deg); } 
  50% { transform: translateY(-12px) rotate(10deg); } 
}

.hero-layout { 
  display:flex; align-items:center; justify-content:center; gap:60px; 
  max-width:1000px; margin:0 auto; position:relative; z-index:1; 
}
.hero-mascota { flex-shrink:0; text-align:center; }
.mascota-burbuja { 
  background:white; color:var(--teal-d); font-size:0.95rem; padding:10px 18px; 
  border-radius:20px 20px 20px 4px; box-shadow:0 4px 16px rgba(0,0,0,0.15); 
  margin-bottom:12px; display:inline-block; white-space:nowrap; position:relative; 
  animation: flotar 3s ease-in-out infinite; 
}
.mascota-burbuja::after { 
  content: ''; position:absolute; bottom:-10px; left:18px; 
  border:6px solid transparent; border-top-color:white; 
}
.mascota-svg { width:200px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25)); }
.buho-anim { animation: buho-bounce 3.5s ease-in-out infinite; }

@keyframes buho-bounce { 
  0%,100% { transform: translateY(0); } 
  50% { transform: translateY(-10px); } 
}

.hero-content { max-width:480px; }
.hero-badge { 
  display:inline-block; background:rgba(255,255,255,0.18); color:white; 
  font-size:0.95rem; font-weight:700; padding:8px 18px; border-radius:50px; 
  margin-bottom:18px; border:1px solid rgba(255,255,255,0.25); 
}
.hero h2 { font-family:'Lora',serif; font-size:var(--h1); font-weight:600; color:var(--white); line-height:1.25; margin-bottom:16px; }
.hero h2 .highlight { color:#F7C96E; }
.hero p { font-size:var(--p); color:rgba(255,255,255,.85); margin-bottom:30px; }
.hero-stats { display:flex; gap:20px; margin-top:24px; flex-wrap:wrap; }
.hero-stat { color:rgba(255,255,255,0.85); font-size:0.95rem; font-weight:700; display:flex; align-items:center; gap:6px; }
.hero-stat span { font-size:1.2rem; }

/* ── BOTONES ── */
.btn-primary, .btn-secondary, .btn-back, .btn-back-light {
  border-radius:50px;
  font-family:'Nunito',sans-serif;
  font-weight:700;
  cursor:pointer;
  transition: all .2s;
}

.btn-primary { 
  background: var(--orange); color:white; border:none; 
  padding:18px 48px; font-size:1.2rem; font-weight:900; 
  box-shadow: 0 6px 20px rgba(232,112,58,.4); 
}
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(232,112,58,.5); }
.btn-secondary { background:var(--teal); color:white; border:none; padding:16px 40px; font-size:1.1rem; box-shadow:0 4px 14px rgba(42,124,111,.3); }
.btn-secondary:hover { background:var(--teal-d); transform:translateY(-2px); }

.btn-back, .btn-back-light { padding:10px 26px; font-size:1rem; }
.btn-back { background:none; border:2px solid rgba(255,255,255,.5); color:rgba(255,255,255,.85); }
.btn-back:hover { border-color:white; color:white; }
.btn-back-light { background:none; border:2px solid var(--teal); color:var(--teal); }
.btn-back-light:hover { background:var(--teal); color:white; }

/* ── SECCIONES Y GRIDS ── */
.section, .game-section { padding:70px 40px; max-width:1100px; margin:0 auto; }
.section-title { font-family:'Lora',serif; font-size:var(--h2); font-weight:600; color:var(--teal); text-align:center; margin-bottom:10px; }
.section-title.white { color:#F7C96E; }
.subtitle { text-align:center; color:var(--mid); font-size:1.1rem; margin-bottom:50px; }
.subtitle.white { color:rgba(255,255,255,.8); }

/* ── JUEGOS, SUDOKU, SOPA DE LETRAS, INTRUSO ── */
/* ... (se mantiene igual que tu CSS original para juegos y feedback) */

/* ── ANIMACIONES ── */
@keyframes shake { 
  0%,100%{transform:translateX(0);} 
  20%{transform:translateX(-8px);} 
  40%{transform:translateX(8px);} 
  60%{transform:translateX(-6px);} 
  80%{transform:translateX(6px);} 
}
.shake { animation: shake .4s ease; }

@keyframes pop { 
  0%{transform:scale(.8);opacity:0;} 
  100%{transform:scale(1);opacity:1;} 
}
.pop { animation: pop .25s ease; }

/* ── RESPONSIVE ── */
@media(max-width:700px){
  header { padding:12px 18px; flex-wrap:wrap; gap:10px; }
  nav ul { gap:4px; }
  nav a  { padding:6px 12px; font-size:.9rem; }
  .hero  { padding:50px 20px 60px; }
  .hero-layout { flex-direction:column; gap:30px; text-align:center; }
  .hero h2 { font-size:2rem; }
  .mascota-svg { width:150px; }
  .mascota-burbuja { font-size:0.85rem; }
  .hero-stats { justify-content:center; }
  .section, .game-section { padding:50px 20px; }
  .color-box { width:80px; height:80px; }
  .sopa-cell { width:34px; height:34px; font-size:1rem; }
  .sudoku-cell { font-size:1rem; }
  .num-btn { font-size:1.1rem; padding:12px 0; }
  .riti-tip { flex-direction:column; text-align:center; }
  .suscripcion-buho { display:none; }
  #btn-top { bottom:20px; right:20px; width:44px; height:44px; font-size:1.1rem; }
}