/* ============================================================
   ESCUELA A MANSALVA — Piano Styles
   ============================================================ */

/* ---- Wrapper -------------------------------------------------*/
.piano-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.piano-svg {
  display: block;
  touch-action: none;
}

/* ---- White keys ----------------------------------------------*/
.piano-white {
  fill: #fefefe;
  stroke: #444;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.07s;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.25));
}

.piano-white:hover {
  fill: #e8f4ff;
}

.piano-white.piano-pressed {
  fill: #b3d6f5;
}

/* ---- Black keys ----------------------------------------------*/
.piano-black {
  fill: #1a1a1a;
  stroke: #000;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.07s;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.5));
}

.piano-black:hover {
  fill: #2d2d2d;
}

.piano-black.piano-pressed {
  fill: #1a3a6b;
}

/* ---- Lit keys (illumination)  --------------------------------*/
.piano-lit {
  fill: var(--key-light, #ffd700) !important;
  opacity: 0.85;
}

.piano-lit.piano-white {
  filter: drop-shadow(0 0 8px var(--key-light, #ffd700));
}

.piano-lit.piano-black {
  opacity: 0.9;
  filter: drop-shadow(0 0 10px var(--key-light, #ffd700));
}

@keyframes piano-pulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1;   }
  100% { opacity: 0.6; }
}
.piano-lit-anim {
  animation: piano-pulse 0.8s ease-in-out infinite;
}

/* ---- Labels --------------------------------------------------*/
.piano-label {
  font-size: 9px;
  fill: #999;
  pointer-events: none;
  font-family: sans-serif;
}

.piano-label-c {
  fill: #0d6efd;
  font-weight: bold;
  font-size: 8px;
}

/* ============================================================
   GAME STYLES
   ============================================================ */

.game-area {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #f0f0f0;
}

.game-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.note-display {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.note-badge {
  font-size: 2.2rem;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 12px;
  background: rgba(255,215,0,.15);
  border: 2px solid #ffd700;
  color: #ffd700;
  letter-spacing: 2px;
  animation: badge-in 0.3s ease;
  text-shadow: 0 0 12px rgba(255,215,0,.5);
}

@keyframes badge-in {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.score-bar {
  display: flex;
  gap: 16px;
  font-size: 1rem;
}

.score-item {
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 6px 16px;
  text-align: center;
}
.score-item .val { font-size: 1.6rem; font-weight: 800; }

.instructions-text {
  font-size: 1.05rem;
  color: #b0c4de;
  min-height: 40px;
  text-align: center;
}

.feedback-msg {
  font-size: 1.4rem;
  font-weight: 700;
  min-height: 40px;
  text-align: center;
  transition: color 0.3s;
}
.feedback-msg.ok    { color: #4cff91; }
.feedback-msg.error { color: #ff6b6b; }
.feedback-msg.info  { color: #ffd700; }

.level-progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
}
.level-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #0d6efd, #ffd700);
  transition: width 0.5s ease;
}

/* Piano inside dark game */
.game-area .piano-white {
  fill: #f5f5f5;
  stroke: #333;
}
.game-area .piano-black {
  fill: #111;
}
.game-area .piano-label   { fill: #bbb; }
.game-area .piano-label-c { fill: #5b9bf5; }

/* ============================================================
   CURSO PIANO STYLES
   ============================================================ */
.curso-piano-hero {
  background: linear-gradient(135deg, #0d2137 0%, #0d6efd 100%);
  padding: 60px 0 40px;
  color: #fff;
}

.schedule-day {
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  user-select: none;
}
.schedule-day:hover        { border-color: #0d6efd; background: #e7f0ff; }
.schedule-day.selected     { border-color: #0d6efd; background: #0d6efd; color: #fff; }
.schedule-day input        { display: none; }

.price-box {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: sticky;
  top: 80px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.piano-preview-wrap {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 24px 16px;
  overflow: hidden;
}
