/* ─────────────────────────────────────────────────────────
   Cultura Musical — paleta y componentes base
   Referencia estética: const2/03atrapanotas/landscape/index.html
   (valores reales del archivo, no el resumen de const2/CLAUDE.md §5)
   ───────────────────────────────────────────────────────── */

/* ── Barra superior 35px: logo ───────────────────────── */
#top-bar {
  position: absolute;
  left: 0; top: 0; width: 800px; height: 35px;
  background: #fff;
  display: flex; align-items: center;
  padding: 0 8px;
  z-index: 10;
}
#top-logo { height: 30px; display: block; }

/* ── Barra de título 65px ────────────────────────────── */
#title-bar {
  position: absolute;
  left: 0; top: 35px; width: 800px; height: 65px;
  background: #e07828;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
#title-txt {
  font-size: 30px; font-weight: 700; color: #fff;
  letter-spacing: 0.2px;
}
#btn-volver {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none; cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  transition: background 0.15s;
  z-index: 11;
}
#btn-volver.visible { display: flex; }
#btn-volver:hover   { background: rgba(255,255,255,0.32); }

/* ── Botón info + panel (const2/CLAUDE.md §4, patrón estándar) ── */
#btn-info {
  position: absolute; left: 20px; top: 104px;
  width: 50px; height: 50px; border-radius: 50%;
  background: #8e24aa; border: none; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 700;
  font-family: Georgia, serif; font-style: italic;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); z-index: 20; user-select: none;
}
#btn-info.visible { display: flex; }
#btn-info:hover { background: #7b1fa2; }

#info-panel {
  position: absolute; inset: 0; z-index: 30;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
}
#info-panel.visible { display: flex; }
#info-card {
  background: #1e1a2e; border-radius: 18px; padding: 20px 22px 22px;
  width: 480px; box-shadow: 0 8px 40px rgba(0,0,0,0.55);
  cursor: default; font-family: Arial, sans-serif;
}
#info-lista { margin: 0; padding: 0 0 0 18px; }
#info-lista li {
  font-size: 13px; color: rgba(255,255,255,0.85);
  line-height: 1.55; margin-bottom: 10px;
}
#info-lista li:last-child { margin-bottom: 0; }

/* ── Pantalla de entrada ──────────────────────────────── */
#s-entrada { position: absolute; inset: 0; }

#sol {
  position: absolute;
  right: 25px; bottom: 0;
  width: 300px; height: 300px;
  object-fit: contain;
  display: block;
  z-index: 2;
}

/* ── Bocadillo ────────────────────────────────────────── */
#bocadillo {
  position: absolute;
  left: 460px; top: 175px;
  width: 270px; height: 110px;
  background: #fff;
  border-radius: 16px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 20px;
}
#bocadillo p { font-size: 17px; color: #2a2018; line-height: 1.55; text-align: center; margin: 0; }
#bocadillo::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: calc(50% - 13px);
  width: 0; height: 0;
  border-left: 20px solid transparent;
  border-right:  6px solid transparent;
  border-top: 18px solid #fff;
}

/* ── Botón primario "Aprender" ───────────────────────── */
@keyframes btn-invite {
  0%, 100% { transform: translateX(0);   }
  50%       { transform: translateX(7px); }
}
#btn-aprender-wrap {
  position: absolute;
  left: 130px; top: 340px;
  width: 230px; height: 52px;
  z-index: 5;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.22));
  animation: btn-invite 2.2s ease-in-out infinite;
}
#btn-aprender-wrap:hover { animation-play-state: paused; }
#btn-aprender {
  width: 100%; height: 100%;
  background: #8e24aa;
  border: none; cursor: pointer;
  color: #fff; font-size: 19px; font-weight: 700;
  font-family: Arial, sans-serif;
  clip-path: path('M 6 0 H 204 Q 212 0 218.9 4 L 225.7 22.5 Q 230 25 225.7 27.5 L 218.9 46 Q 212 50 204 50 H 6 Q 0 50 0 44 V 6 Q 0 0 6 0 Z');
  transition: filter 0.15s;
}
#btn-aprender:hover { filter: brightness(1.12); }

/* ── Botón secundario "Preguntas" ────────────────────── */
#btn-jugar-wrap {
  position: absolute;
  left: 130px; top: 406px;
  width: 230px; height: 52px;
  z-index: 5;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.22));
}
#btn-jugar {
  width: 100%; height: 100%;
  background: #3b6fd4;
  border: none; cursor: pointer;
  color: #fff; font-size: 19px; font-weight: 700;
  font-family: Arial, sans-serif;
  clip-path: path('M 6 0 H 204 Q 212 0 218.9 4 L 225.7 22.5 Q 230 25 225.7 27.5 L 218.9 46 Q 212 50 204 50 H 6 Q 0 50 0 44 V 6 Q 0 0 6 0 Z');
  transition: filter 0.15s;
}
#btn-jugar:hover { filter: brightness(1.12); }

/* ── Transiciones de pantalla ─────────────────────────── */
.entry-elem { transition: opacity 0.25s; }
.entry-elem.oculto { opacity: 0; pointer-events: none; }
#s-entrada { transition: opacity 0.25s; }
#s-entrada.oculto { opacity: 0; pointer-events: none; }

.pantalla {
  position: absolute; left: 0; top: 100px; width: 800px; height: 500px;
  display: none;
  background: #faf8f5;
}
.pantalla.visible { display: block; }

/* ── Fases Aprender / Jugar — elementos compartidos ──────
   Mismas coordenadas en ambas fases: el vídeo no debe "saltar"
   de sitio al pasar de una fase a la otra. */
.progreso-pill {
  position: absolute;
  right: 20px; top: 14px;
  background: #fff;
  border: 1px solid #e5dfd7;
  border-radius: 14px;
  padding: 5px 16px;
  font-size: 13px; font-weight: 700; color: #7a746c;
}

.video-wrap {
  position: absolute;
  left: 20px; top: 56px;
  width: 460px; height: 259px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}
.video-wrap > div { width: 100%; height: 100%; }
.video-wrap iframe { width: 100%; height: 100%; display: block; }

.panel-lateral {
  position: absolute;
  left: 500px; top: 56px;
  width: 280px; height: 320px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
  overflow-y: auto;
}

/* ── Fase Aprender ─────────────────────────────────────── */
#ap-texto { font-size: 15px; color: #2a2018; line-height: 1.6; margin: 0; }

.btn-avanzar {
  position: absolute;
  right: 20px; bottom: 20px;
  height: 46px; padding: 0 26px;
  border-radius: 23px;
  background: #e07828; border: none; cursor: pointer;
  color: #fff; font-size: 16px; font-weight: 700;
  font-family: Arial, sans-serif;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  transition: filter 0.15s;
}
.btn-avanzar:hover { filter: brightness(1.08); }
.btn-avanzar:active { transform: scale(0.96); }

/* ── Fase Jugar ────────────────────────────────────────── */
#jg-pregunta-txt {
  font-size: 16px; font-weight: 700; color: #2a2018;
  line-height: 1.45; margin: 0 0 18px;
}
#jg-opciones { display: flex; flex-direction: column; gap: 10px; }

.btn-opcion {
  width: 100%; min-height: 46px;
  border-radius: 12px;
  background: #4472c4; border: none; cursor: pointer;
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: Arial, sans-serif;
  padding: 10px 16px; text-align: left; line-height: 1.35;
  transition: filter 0.15s, transform 0.1s;
}
.btn-opcion:hover:not(:disabled) { filter: brightness(1.08); }
.btn-opcion:active:not(:disabled) { transform: scale(0.98); }
.btn-opcion:disabled { cursor: default; }
.btn-opcion.correcta   { background: #34c785; }
.btn-opcion.incorrecta { background: #ef4565; }

/* ── Pantalla de resultado ────────────────────────────── */
#res-sol {
  position: absolute;
  right: 25px; bottom: 0;
  width: 280px; height: 280px;
  object-fit: contain;
}

#res-bocadillo {
  position: absolute;
  left: 430px; top: 40px;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
  padding: 18px 22px;
}
#res-mensaje { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
#res-detalle { font-size: 14px; color: #6a6258; line-height: 1.5; }

#res-tarjeta {
  position: absolute;
  left: 60px; top: 100px;
  width: 190px; height: 140px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.10);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.res-tarjeta-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: #b0aca6; margin-bottom: 8px;
}
#res-tarjeta-valor { font-size: 44px; font-weight: 700; color: #2a2018; line-height: 1; }

#res-btns {
  position: absolute;
  left: 60px; top: 280px;
  display: flex; gap: 12px;
}
.btn-resultado {
  height: 46px; padding: 0 24px;
  border-radius: 23px; border: none; cursor: pointer;
  color: #fff; font-size: 15px; font-weight: 700;
  font-family: Arial, sans-serif;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: filter 0.15s;
}
.btn-resultado:hover { filter: brightness(1.08); }
.btn-resultado:active { transform: scale(0.96); }
.btn-resultado-primario   { background: #8e24aa; }
.btn-resultado-secundario { background: #b0aca6; }
