/* ==========================================================================
   BILIKIDS KIDS CLUB - UNIT 7: OUT AND ABOUT (7 A 10 AÑOS - NIVEL A2)
   Tema: Present Continuous, Weather & Seasons, Clothes & Ongoing Actions
   Mecánicas Inspiradas en Duolingo, Wordwall, Educaplay y Quizizz:
   1. 🐸 Froggy Stepping Stones (Río de Lirios Acuáticos - Salto de Plataformas)
   2. 🎈 Cloud Balloon Popper (Globos de Nube Flotantes - Sentence Unscramble)
   3. 🎡 Weather & Wardrobe Fortune Wheel (Rueda de la Fortuna & Armario)
   4. ⚡ Live TV Weather Broadcast con Power-Ups estilo Quizizz (50/50, 2X Stars)
   ========================================================================== */

:root {
  --font-display: 'Fredoka', cursive, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --unit7-primary: #3b82f6;
  --unit7-primary-dark: #1d4ed8;
  --unit7-secondary: #06b6d4;
  --unit7-accent: #f59e0b;
  --unit7-success: #10b981;
  --unit7-danger: #ef4444;
  --unit7-purple: #8b5cf6;

  --card-bg: #ffffff;
  --border-subtle: #dbeafe;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-card: 0 10px 30px rgba(59, 130, 246, 0.08);
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.unit-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #bfdbfe;
  padding: 10px 20px;
}

.unit-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-back-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  transition: all 0.2s;
}

.btn-back-map:hover {
  background: #dbeafe;
  transform: translateX(-2px);
}

.unit-title-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-tag-pill {
  background: #dbeafe;
  color: #1d4ed8;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.unit-name-head {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #0f172a;
}

.unit-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1e40af;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  transition: transform 0.2s;
}

.unit-score-pill.pulse-star {
  transform: scale(1.15);
  background: #fef08a;
  color: #854d0e;
}

/* Tabs Bar */
.activity-tabs-bar {
  max-width: 1100px;
  margin: 18px auto 8px;
  padding: 0 20px;
  width: 100%;
}

.tabs-track {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tab-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.tab-btn.active {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Main Workspace */
.unit-workspace {
  max-width: 1100px;
  margin: 12px auto 40px;
  padding: 0 20px;
  width: 100%;
}

.activity-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.activity-view.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   ACTIVIDAD 1: 🐸 FROGGY STEPPING STONES (EDUCAPLAY JUMPS)
   -------------------------------------------------------------------------- */
.river-stage-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 2px solid #bfdbfe;
  position: relative;
  overflow: hidden;
}

.river-weather-scene {
  background: linear-gradient(180deg, #bae6fd 0%, #38bdf8 50%, #0284c7 100%);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.river-frog-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.river-water-course {
  background: radial-gradient(circle at center, #0284c7 0%, #0369a1 100%);
  border-radius: 22px;
  padding: 28px 20px;
  margin-bottom: 22px;
  border: 3px solid #38bdf8;
  box-shadow: inset 0 8px 20px rgba(0,0,0,0.3);
  position: relative;
}

.river-path-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 10px;
}

.river-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #075985;
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e0f2fe;
}

.river-step-dot.active-step {
  background: #10b981;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 12px #10b981;
  transform: scale(1.15);
}

.river-step-dot.completed-step {
  background: #38bdf8;
  border-color: #ffffff;
  color: #0c4a6e;
}

.river-step-dot.leaping {
  background: #f59e0b;
  border-color: #ffffff;
  box-shadow: 0 0 16px #f59e0b;
  animation: frogDotHop 0.45s ease-in-out infinite alternate;
}

@keyframes frogDotHop {
  0% { transform: scale(1.15) translateY(0); }
  100% { transform: scale(1.4) translateY(-8px); }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.lilypads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .lilypads-grid { grid-template-columns: 1fr; }
}

.lilypad-card {
  background: radial-gradient(circle, #059669 20%, #047857 70%, #064e3b 100%);
  border: 3px solid #34d399;
  border-radius: 22px;
  padding: 20px 16px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lilypad-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #a7f3d0;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

.lilypad-card.correct {
  background: radial-gradient(circle, #10b981, #059669);
  border-color: #ffffff;
  animation: frogJumpSplash 0.5s ease;
}

@keyframes frogJumpSplash {
  0% { transform: scale(1); }
  50% { transform: scale(1.12) translateY(-10px); }
  100% { transform: scale(1); }
}

.lilypad-card.wrong {
  background: radial-gradient(circle, #b91c1c, #7f1d1d);
  border-color: #ef4444;
  animation: shakeBtn 0.35s;
}

/* --------------------------------------------------------------------------
   ACTIVIDAD 2: 🎈 CLOUD BALLOON POPPER (WORDWALL & DUOLINGO UNSCRAMBLE)
   -------------------------------------------------------------------------- */
.balloon-sky-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 2px solid #bfdbfe;
}

.sky-playfield {
  background: linear-gradient(180deg, #38bdf8 0%, #7dd3fc 60%, #bae6fd 100%);
  border: 3px solid #0284c7;
  border-radius: 22px;
  padding: 28px 20px;
  min-height: 240px;
  margin-bottom: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 14px rgba(0,0,0,0.15);
}

.balloon-clouds-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.cloud-balloon-btn {
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: 28px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0369a1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: floatCloud 3s ease-in-out infinite alternate;
}

@keyframes floatCloud {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.cloud-balloon-btn:hover {
  transform: translateY(-8px) scale(1.06);
  border-color: #0284c7;
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.35);
}

.cloud-balloon-btn.popped {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.sentence-collector-tray {
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  border-radius: 18px;
  padding: 18px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.collected-word-tile {
  background: #3b82f6;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  animation: popInTile 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

@keyframes popInTile {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   ACTIVIDAD 3: 🎡 WEATHER & WARDROBE FORTUNE WHEEL (BLOOKET & WORDWALL)
   -------------------------------------------------------------------------- */
.wheel-stage-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 2px solid #bfdbfe;
}

.wheel-dressing-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

@media (max-width: 800px) {
  .wheel-dressing-layout { grid-template-columns: 1fr; text-align: center; }
}

/* Fortune Wheel Canvas/Graphic */
.fortune-wheel-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wheel-disc-wrapper {
  width: 240px;
  height: 240px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-pointer-triangle {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #ef4444;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.fortune-wheel-disc {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid #0f172a;
  background: conic-gradient(
    #f59e0b 0deg 60deg,
    #3b82f6 60deg 120deg,
    #06b6d4 120deg 180deg,
    #10b981 180deg 240deg,
    #8b5cf6 240deg 300deg,
    #ef4444 300deg 360deg
  );
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 3.5s cubic-bezier(0.15, 0.9, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-center-hub {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-spin-wheel {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 14px;
}

.btn-spin-wheel:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.5);
}

.wardrobe-closet-area {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
}

.wardrobe-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .wardrobe-items-grid { grid-template-columns: repeat(2, 1fr); }
}

.wardrobe-item-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wardrobe-item-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.2);
}

.wardrobe-item-card.dressed {
  border-color: #10b981;
  background: #ecfdf5;
  opacity: 0.4;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   ACTIVIDAD 4: ⚡ LIVE TV WEATHER BROADCAST CON POWER-UPS (QUIZIZZ)
   -------------------------------------------------------------------------- */
.tv-studio-container {
  background: #0f172a;
  color: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
  border: 2px solid #38bdf8;
  text-align: center;
}

.quizizz-powerups-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-powerup-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-powerup-chip:hover {
  transform: scale(1.05);
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
}

.btn-powerup-chip.used {
  opacity: 0.3;
  pointer-events: none;
  border-style: dashed;
}

.tv-green-screen-box {
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border: 2px solid #0284c7;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.tv-on-air-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tv-teleprompter-text {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.btn-tv-mic {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-tv-mic:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.5);
}

.btn-tv-mic.recording {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes shakeBtn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
