/* ============================================================
   PALETA DEL PÓSTER — Gimnasio Moderno Summerhill · PROM 2026
   Cargar DESPUÉS de style_gamificacionana.css
   ------------------------------------------------------------
   Morado del póster ....... #7650B8
   Lavanda de fondo ........ #C5C3FA  (versión suave: #EBE9FD)
   Periwinkle .............. #8B8CF0
   Rosa de los íconos ...... #E8A6EA
   Azul hielo de tarjetas .. #E3F1FB
   Ciruela de los títulos .. #3B0A5F
   ============================================================ */
 
:root {
  --bg: #ebe9fd;
  --card: #ffffff;
  --ink: #1f1740;
  --ink-soft: #4d4577;
  --muted: #7f7aa8;
 
  /* "navy" ahora es el morado del póster */
  --navy: #5b3aa8;
  --navy-soft: #7650b8;
  --plum: #3b0a5f;
 
  /* acento cálido (antes dorado) → rosa de los íconos */
  --gold: #e8a6ea;
  --gold-deep: #c077c6;
 
  /* acento frío (antes teal) → periwinkle del póster */
  --teal: #8b8cf0;
  --teal-deep: #5b5cc9;
 
  --coral: #e8588a;
  --ice: #e3f1fb;
  --line: #d5d3f7;
  --lilac-pale: rgba(118, 80, 184, .10);
 
  --shadow-card: 0 10px 30px rgba(59, 10, 95, .09);
  --shadow-hover: 0 16px 34px rgba(59, 10, 95, .18);
}
 
/* ---------- Colores que estaban fijos en el CSS original ---------- */
body { background: var(--bg); color: var(--ink); }
 
header { border-bottom-color: var(--line); }
header a { color: var(--ink); }
.logo { color: var(--plum); }
.logo img { box-shadow: 0 0 0 2px var(--line); }
nav a { color: var(--ink-soft); }
nav a:hover { background: var(--bg); color: var(--plum); }
 
.boton { background: var(--coral); }
.topbar { background: rgba(235, 233, 253, .9); }
 
/* Títulos con la ciruela del póster */
.hero h1,
.level-head h2,
.obj-card h3,
.marco-card h3,
.anexo-content h4,
.game-card-head h3,
.anexos-section h2 { color: var(--plum); }
 
/* Hero: fondo lavanda con tarjeta, como en el póster */
.hero {
  background: linear-gradient(135deg, #7650b8, #8b8cf0);
  color: #fff;
  border-radius: 28px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #f3dcf5; }
.hero-sub { color: rgba(255, 255, 255, .92); }
.hero .chip { background: var(--plum); }
.start-btn { color: var(--plum); }
 
/* Tarjetas internas con el azul hielo del póster */
.obj-card,
.marco-card,
.anexo-card,
.reference-card,
.figura,
figure.figura { background: var(--ice); }
 
.marco-card { border-top-color: var(--teal); }
 
/* Pestañas de sección abiertas */
.level-head.accordion-title[aria-expanded="true"] .level-tag { background: var(--coral); }
.level-tag-game { background: var(--plum); }
 
/* Índice lateral */
.map-fab { box-shadow: 0 10px 24px rgba(59, 10, 95, .30); animation: mapFabIn .5s ease .3s backwards, mapFabRing2 2.4s ease-out 1s 2; }
@keyframes mapFabRing2 {
  0%   { box-shadow: 0 10px 24px rgba(59, 10, 95, .30), 0 0 0 0 rgba(118, 80, 184, .40); }
  70%  { box-shadow: 0 10px 24px rgba(59, 10, 95, .30), 0 0 0 14px rgba(118, 80, 184, 0); }
  100% { box-shadow: 0 10px 24px rgba(59, 10, 95, .30), 0 0 0 0 rgba(118, 80, 184, 0); }
}
.level-map li.done .map-num { background: rgba(139, 140, 240, .22); }
.level-map li.current a { box-shadow: 0 8px 20px rgba(59, 10, 95, .28); }
.level-map li.open-section a::after { box-shadow: 0 0 0 3px rgba(139, 140, 240, .30); }
.level-map li.current.open-section a::after { box-shadow: 0 0 0 3px rgba(232, 166, 234, .40); }
 
/* Figuras */
figure.figura img,
.figura img { box-shadow: 0 8px 20px rgba(59, 10, 95, .14); }
 
/* Juegos */
.game-btn { color: var(--plum); }
.game-btn.yes { background: var(--teal-deep); box-shadow: 0 6px 0 #3f40a8; color: #fff; }
.game-option-btn.wrong { background: var(--coral); border-color: var(--coral); }
.challenge-card { border-color: var(--gold); background: var(--ice); }
.memory-card.flipped,
.memory-card.matched { border-color: var(--teal); }
.score-chip strong { color: var(--gold); }
 
/* Logros */
.achievement-toast { box-shadow: 0 14px 30px rgba(59, 10, 95, .32); }
 
/* Footer */
.site-footer, footer { color: var(--ink-soft); }

/* ---------- Hero en 2 columnas: texto | imagen flotante ---------- */
.hero {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 230px;
  align-items: center;
  gap: 32px;
  padding-right: 40px;
  padding-left: 40px;
}

.hero .hero-img {
  position: static;          /* ya no está suelta encima del texto */
  width: 100%;
  max-width: 230px;
  margin: 0;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 14px 30px rgba(59, 10, 95, .35);
  animation: flotar 4s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}

/* En celular: la imagen pasa arriba del texto */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .hero .hero-img { order: -1; max-width: 170px; margin: 0 auto; }
}
.virtual-assistant {
  width: 64px;
  height: 64px;
  background: #fff;
  border: 3px solid var(--navy-soft);
  overflow: hidden;
  padding: 0;
}

.virtual-assistant img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- Reading Corner ---------- */
.reading-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.reading-picker button {
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  background: var(--ice);
  color: var(--ink-soft);
  border: 2px solid var(--line);
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s;
}

.reading-picker button:hover { border-color: var(--teal); }

.reading-picker button.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.reading-card {
  background: var(--ice);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.reading-card h4 {
  font-family: var(--display);
  color: var(--plum);
  margin-bottom: 8px;
}

.reading-card p { margin-bottom: 12px; line-height: 1.8; }

.reading-q {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.reading-q > p {
  font-family: var(--display);
  font-weight: 700;
  color: var(--plum);
  text-align: left;
  margin-bottom: 6px;
}

.reading-q .game-options { margin-top: 10px; max-width: none; }
/* ---------- Songs & Scenes ---------- */
.lyric-line {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-align: left;
}

.lyric-line .who {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-right: 8px;
}

.lyric-line .blank {
  display: inline-block;
  min-width: 90px;
  border-bottom: 3px dashed var(--gold-deep);
  text-align: center;
  font-weight: 700;
  color: var(--plum);
}

.lyric-line .blank.filled { border-bottom-style: solid; border-color: var(--teal); }

.lyric-line .game-options { margin: 10px 0 0; max-width: none; }
 
/* ---------- Hangman ---------- */
.hangman-lives { text-align: center; font-size: 1.5rem; letter-spacing: 4px; margin: 10px 0; }

.hangman-hint {
  text-align: center;
  font-family: var(--display);
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hangman-word {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px;
}

.hangman-word span {
  width: 38px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--plum);
  background: var(--ice);
  border-bottom: 4px solid var(--gold-deep);
  border-radius: 8px;
}

.hangman-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto 18px;
}

.hang-key {
  width: 38px;
  height: 38px;
  font-family: var(--mono);
  font-weight: 600;
  text-transform: uppercase;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: .15s;
}

.hang-key:hover:not(:disabled) { border-color: var(--teal); }
.hang-key.correct { background: var(--teal); border-color: var(--teal); color: #fff; }
.hang-key.wrong { background: var(--coral); border-color: var(--coral); color: #fff; }
.hang-key:disabled { cursor: not-allowed; }

/* ---------- Time Duel ---------- */
#duelQuestion { max-width: 520px; margin-top: 18px; font-size: 1.1rem; }
 
/* ---------- Video Quiz ---------- */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 3px solid var(--navy-soft);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ---------- Word Search ---------- */
.ws-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.ws-word {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--ice);
  color: var(--plum);
  padding: 6px 12px;
  border-radius: 20px;
}

.ws-word.found {
  background: var(--teal);
  color: #fff;
  text-decoration: line-through;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  max-width: 420px;
  margin: 0 auto 18px;
}

.ws-cell {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(.8rem, 3.2vw, 1.1rem);
  color: var(--plum);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: .15s;
}

.ws-cell:hover { border-color: var(--teal); }
.ws-cell.ws-start { background: var(--gold); border-color: var(--gold-deep); }
.ws-cell.ws-found { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Glosario ---------- */
.glos-search {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--display);
  font-size: .9rem;
  background: var(--bg);
}

.glos-search:focus { outline: none; border-color: var(--teal); background: #fff; }

.glos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 700px) { .glos-grid { grid-template-columns: 1fr; } }

.glos-card {
  background: var(--ice);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 14px 16px;
}

.glos-card[hidden] { display: none; }

.glos-card h3 {
  font-family: var(--display);
  font-size: .95rem;
  color: var(--plum);
  margin-bottom: 6px;
}

.glos-card p { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.glos-empty { text-align: center; color: var(--muted); }
/* ============================================================
   HERRAMIENTAS DE APOYO — verbos irregulares y mini diccionario
   Pegar al final de colores_poster.css
   ============================================================ */
 
/* ---------- Buscador común ---------- */
.tool-search {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--display);
  font-size: .9rem;
  color: var(--ink);
  background: var(--bg);
}
 
.tool-search:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
 
.tool-empty {
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
}
 
/* ---------- Tabla de verbos ---------- */
.verb-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  max-height: 520px;
  overflow-y: auto;
}
 
.verb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 480px;
}
 
.verb-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
}
 
.verb-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
 
.verb-table tbody tr:nth-child(even) { background: var(--ice); }
.verb-table tbody tr:hover { background: var(--lilac-pale); }
 
.verb-table td:first-child {
  font-family: var(--display);
  font-weight: 700;
  color: var(--plum);
}
 
.verb-table td:nth-child(4) { color: var(--ink-soft); }
.verb-table tr[hidden] { display: none; }
 
.verb-audio {
  border: none;
  background: var(--bg);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
 
.verb-audio:hover {
  background: var(--teal);
  transform: scale(1.08);
}
 
/* ---------- Mini diccionario ---------- */
.dict-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
 
.dict-tab {
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  background: var(--ice);
  color: var(--ink-soft);
  border: 2px solid var(--line);
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s;
}
 
.dict-tab:hover { border-color: var(--teal); }
 
.dict-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
 
.dict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
 
.dict-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 14px;
  background: var(--ice);
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
 
.dict-card:hover,
.dict-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal);
  outline: none;
}
 
.dict-card:active { transform: scale(.97); }
 
.dict-emoji { font-size: 2.2rem; line-height: 1.1; }
 
.dict-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: .98rem;
  color: var(--plum);
}
 
.dict-es {
  font-size: .82rem;
  color: var(--ink-soft);
}
 
/* Tarjetas de frases útiles: más anchas */
.dict-grid.is-phrases {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
 
.dict-grid.is-phrases .dict-card {
  flex-direction: row;
  text-align: left;
  gap: 12px;
  padding: 14px 16px;
}
 
.dict-grid.is-phrases .dict-emoji { font-size: 1.6rem; }
.dict-grid.is-phrases .dict-text { display: flex; flex-direction: column; gap: 2px; }