:root {
  --rojo: #C8302A;
  --rojo-claro: #E8453E;
  --verde: #2E7D32;
  --verde-claro: #4CAF50;
  --verde-menta: #A5D6A7;
  --dorado: #F9A825;
  --dorado-claro: #FFD54F;
  --crema: #FFF8F0;
  --blanco: #ffffff;
  --gris-suave: #F5F5F5;
  --texto: #2C2C2C;
  --texto-suave: #555;
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.1);
  --sombra-hover: 0 8px 30px rgba(0, 0, 0, 0.18);
  --radio: 20px;
  --radio-grande: 32px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--crema);
  color: var(--texto);
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
nav {
  background: var(--rojo);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: white;
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  line-height: 1.1;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--verde);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 3px solid var(--dorado);
}

.nav-logo span {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: white;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--dorado-claro);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  background: var(--rojo);
  padding: 12px 24px 20px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1rem;
}

/* ===== PAGES ===== */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--rojo) 0%, #9b1f1a 40%, var(--verde) 100%);
  color: white;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(249, 168, 37, 0.15);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: var(--dorado);
  color: var(--texto);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.92;
  line-height: 1.6;
}

.hero-quote {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 20px 32px;
  max-width: 500px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.05rem;
}

.hero-quote strong {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--dorado-claro);
}

/* ===== SECTION TITLES ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--rojo);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title span {
  font-size: 1.5em;
}

.section-sub {
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* ===== CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border-radius: var(--radio);
  padding: 28px;
  box-shadow: var(--sombra);
  transition: all 0.3s;
  border-top: 5px solid var(--verde);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--verde);
  margin-bottom: 10px;
}

.card p {
  color: var(--texto-suave);
  line-height: 1.65;
  font-size: 0.95rem;
}

.card.rojo {
  border-top-color: var(--rojo);
}

.card.rojo h3 {
  color: var(--rojo);
}

.card.dorado {
  border-top-color: var(--dorado);
}

.card.dorado h3 {
  color: #c17f00;
}

/* ===== VALORES BANNER ===== */
.valores-banner {
  background: linear-gradient(135deg, var(--verde) 0%, #1B5E20 100%);
  color: white;
  padding: 60px 24px;
}

.valores-banner .section {
  padding: 0;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.valor-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.valor-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.valor-item .emoji {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.valor-item h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.valor-item p {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat {
  text-align: center;
  background: white;
  padding: 28px 20px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.5rem;
  color: var(--rojo);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin-top: 6px;
  font-weight: 700;
}

/* ===== QUIENES SOMOS ===== */
.historia-timeline {
  position: relative;
  padding-left: 36px;
  margin-top: 32px;
}

.historia-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--rojo), var(--verde));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--dorado);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--dorado);
}

.timeline-item .year {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--rojo);
  margin-bottom: 4px;
}

.timeline-item p {
  background: white;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: var(--sombra);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--texto-suave);
}

/* ===== EQUIPO ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.team-card {
  text-align: center;
  background: white;
  border-radius: var(--radio);
  padding: 28px 20px;
  box-shadow: var(--sombra);
  transition: all 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  border: 4px solid var(--verde-menta);
}

.team-avatar-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid rgba(0,0,0,0.05);
}

.team-card h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--verde);
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.82rem;
  color: var(--texto-suave);
  font-weight: 700;
  background: var(--gris-suave);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* ===== MATERIALES PAGE ===== */
.niveles-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tab-btn {
  background: white;
  border: 2px solid var(--verde);
  color: var(--verde);
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--verde);
  color: white;
}

.tab-btn.rojo-tab {
  border-color: var(--rojo);
  color: var(--rojo);
}

.tab-btn.rojo-tab:hover,
.tab-btn.rojo-tab.active {
  background: var(--rojo);
  color: white;
}

.tab-btn.dorado-tab {
  border-color: #c17f00;
  color: #c17f00;
}

.tab-btn.dorado-tab:hover,
.tab-btn.dorado-tab.active {
  background: #c17f00;
  color: white;
}

.nivel-panel {
  display: none;
}

.nivel-panel.active {
  display: block;
  animation: fadeIn 0.3s;
}

.asignaturas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.asig-card {
  background: white;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.asig-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.asig-header h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: white;
}

.asig-header .icon {
  font-size: 1.6rem;
}

.asig-body {
  padding: 16px 20px;
}

.recurso-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  text-decoration: none;
  color: var(--texto);
  font-size: 0.92rem;
  transition: all 0.2s;
  cursor: pointer;
}

.recurso-item:last-child {
  border-bottom: none;
}

.recurso-item:hover {
  color: var(--rojo);
}

.recurso-tipo {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.tipo-video {
  background: #FFEBEE;
  color: #c62828;
}

.tipo-pdf {
  background: #E8F5E9;
  color: #2E7D32;
}

.tipo-ppt {
  background: #FFF3E0;
  color: #e65100;
}

.bg-rojo {
  background: var(--rojo);
  color: white;
}

.bg-verde {
  background: var(--verde);
  color: white;
}

.bg-azul {
  background: #1565C0;
  color: white;
}

.bg-dorado {
  background: var(--dorado);
  color: white;
}

.bg-teal {
  background: #00897b;
  color: white;
}

.bg-morado {
  background: #7b1fa2;
  color: white;
}

/* ===== AGREGAR MATERIAL ===== */
.add-material-btn {
  background: var(--dorado);
  color: var(--texto);
  border: none;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  box-shadow: var(--sombra);
}

.add-material-btn:hover {
  background: var(--dorado-claro);
  transform: scale(1.03);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radio-grande);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--verde);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--texto);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--verde);
}

.modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary {
  flex: 1;
  background: var(--verde);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--verde-claro);
}

.btn-secondary {
  flex: 1;
  background: var(--gris-suave);
  color: var(--texto-suave);
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* ===== JUEGOS ===== */
.juegos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.juego-card {
  background: white;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: all 0.3s;
}

.juego-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.juego-header {
  padding: 24px;
  text-align: center;
  color: white;
}

.juego-header .big-emoji {
  font-size: 3.5rem;
  margin-bottom: 10px;
  display: block;
}

.juego-header h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
}

.juego-body {
  padding: 20px;
}

.juego-body p {
  color: var(--texto-suave);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.jugar-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.jugar-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* ===== GAME AREA ===== */
.game-area {
  display: none;
  background: white;
  border-radius: var(--radio-grande);
  box-shadow: var(--sombra-hover);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.game-area.active {
  display: block;
  animation: fadeIn 0.3s;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.game-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--verde);
}

.close-game {
  background: var(--rojo);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: 'Fredoka One', cursive;
  cursor: pointer;
  font-size: 0.95rem;
}

.score-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.score-badge {
  background: var(--gris-suave);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-badge.puntos {
  background: #E8F5E9;
  color: var(--verde);
}

.question-box {
  background: var(--gris-suave);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.question-box .q-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.question-box .q-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: var(--texto);
  line-height: 1.3;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.opt-btn {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  padding: 14px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.opt-btn:hover {
  border-color: var(--verde);
  color: var(--verde);
}

.opt-btn.correcto {
  background: #E8F5E9;
  border-color: var(--verde);
  color: var(--verde);
}

.opt-btn.incorrecto {
  background: #FFEBEE;
  border-color: var(--rojo);
  color: var(--rojo);
}

.nav-links a {
  text-decoration: none;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-links a.active {
  background: white;
  color: var(--rojo);
}

.feedback-msg {
  text-align: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  display: none;
}

.feedback-msg.show {
  display: block;
  animation: fadeIn 0.3s;
}

.feedback-msg.ok {
  background: #E8F5E9;
  color: var(--verde);
}

.feedback-msg.mal {
  background: #FFEBEE;
  color: var(--rojo);
}

.next-btn {
  width: 100%;
  background: var(--dorado);
  color: var(--texto);
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
}

.next-btn.show {
  display: block;
}

.next-btn:hover {
  background: var(--dorado-claro);
}

/* Memory game */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.mem-card {
  aspect-ratio: 1;
  background: var(--verde);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
  user-select: none;
}

.mem-card.hidden .face {
  display: none;
}

.mem-card.hidden {
  background: var(--verde);
}

.mem-card:not(.hidden) {
  background: white;
  border-color: var(--verde);
}

.mem-card.matched {
  background: #E8F5E9;
  border-color: var(--verde-claro);
  opacity: 0.7;
  cursor: default;
}

/* Sopa de letras */
.sopa-grid {
  display: inline-grid;
  border: 3px solid var(--verde);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}

.sopa-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  transition: all 0.15s;
  user-select: none;
}

.sopa-cell:hover {
  background: var(--verde-menta);
}

.sopa-cell.selected {
  background: var(--dorado-claro);
}

.sopa-cell.found {
  background: #A5D6A7;
  color: var(--verde);
  font-weight: 800;
}

.palabras-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.palabra-tag {
  background: var(--gris-suave);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.palabra-tag.encontrada {
  background: #A5D6A7;
  color: var(--verde);
  text-decoration: line-through;
}

/* ===== NOTICIAS ===== */
.noticia-card {
  background: white;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
}

.noticia-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.noticia-body {
  padding: 20px;
  flex: 1;
}

.noticia-cat {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.noticia-body h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--texto);
  margin-bottom: 8px;
  line-height: 1.3;
}

.noticia-body p {
  font-size: 0.88rem;
  color: var(--texto-suave);
  line-height: 1.6;
}

.noticia-fecha {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin-top: 12px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  background: #1a1a1a;
  color: white;
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--dorado-claro);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  text-decoration: none;
  display: block;
}

.footer-col a:hover {
  color: var(--dorado-claro);
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .memory-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .sopa-cell {
    width: 27px;
    height: 27px;
    font-size: 0.8rem;
  }

  .modal {
    padding: 24px;
  }
}

/* ===== HELPERS ===== */
.tag-green {
  background: #E8F5E9;
  color: var(--verde);
}

.tag-red {
  background: #FFEBEE;
  color: var(--rojo);
}

.tag-yellow {
  background: #FFF9C4;
  color: #f57f17;
}

.tag-blue {
  background: #E3F2FD;
  color: #1565c0;
}

.bg-verde {
  background: linear-gradient(135deg, var(--verde), #1B5E20);
}

.bg-rojo {
  background: linear-gradient(135deg, var(--rojo), #7f1717);
}

.bg-dorado {
  background: linear-gradient(135deg, var(--dorado), #e65100);
}

.bg-azul {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
}

.bg-morado {
  background: linear-gradient(135deg, #7b1fa2, #4a148c);
}

.bg-teal {
  background: linear-gradient(135deg, #00695c, #004d40);
}