/* ==========================================================================
   ESTILOS - CLASE ABIERTA DE INFORMÁTICA 1.º GRADO (SEÑO BEA & FAMILIAS)
   Nodo Andino • Educación & Tecnología
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --font-fun: 'Fredoka', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Paleta Alegre & Infantil */
  --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 50%, #fce7f3 100%);
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --secondary: #ec4899;
  --accent-yellow: #f59e0b;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(14, 165, 233, 0.25);
  --card-shadow: 0 12px 30px -5px rgba(2, 132, 199, 0.15), 0 8px 15px -6px rgba(0, 0, 0, 0.08);
  
  --text-main: #1e293b;
  --text-muted: #475569;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

/* Fondo con burbujas y destellos decorativos */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  opacity: 0.18;
  animation: floatSlow 8s ease-in-out infinite alternate;
  font-size: 2.5rem;
}

@keyframes floatSlow {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-25px) rotate(15deg); }
}

/* ==========================================================================
   CONTROLES FLOTANTES DISCRETOS (PANTALLA LIMPIA SIN BARRAS)
   ========================================================================== */
.floating-controls-layer {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 999;
}

.floating-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-floating-circle {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 2px solid #cbd5e1;
  color: #334155;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.btn-floating-circle:hover {
  transform: scale(1.15);
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
}

.btn-floating-circle:active {
  transform: scale(0.95);
}

.btn-fullscreen-highlight {
  background: #fef08a;
  border-color: #f59e0b;
  color: #92400e;
  animation: pulseNotice 2s ease-in-out infinite;
}

.fullscreen-notice-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #fef08a;
  backdrop-filter: blur(6px);
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

:fullscreen .fullscreen-notice-bar,
:-webkit-full-screen .fullscreen-notice-bar {
  display: none !important;
}

@keyframes pulseNotice {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.btn-ctrl:hover {
  background: #ffffff;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #94a3b8;
}

.btn-ctrl:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #94a3b8;
}

.btn-ctrl.active {
  background: #fef08a;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 3px 0 #f59e0b;
}

/* ==========================================================================
   BARRA DE PROGRESO Y PASOS
   ========================================================================== */
.stepper-container {
  max-width: 900px;
  margin: 15px auto 5px;
  padding: 0 15px;
  position: relative;
  z-index: 10;
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid rgba(2, 132, 199, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-fun);
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-item.active {
  color: #0284c7;
}

.step-item.active .step-number {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

.step-item.completed {
  color: #10b981;
}

.step-item.completed .step-number {
  background: #10b981;
  color: white;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL
   ========================================================================== */
.main-wrapper {
  max-width: 1000px;
  margin: 10px auto 40px;
  padding: 0 15px;
  position: relative;
  z-index: 10;
}

.screen-card {
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   COMPONENTE SEÑO BEA (ANFITRIONA Y TUTORA PEDAGÓGICA)
   ========================================================================== */
.tutor-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 100%);
  border: 2px dashed #93c5fd;
  border-radius: 22px;
  padding: 16px 22px;
  margin-bottom: 24px;
}

.tutor-avatar-frame {
  position: relative;
  flex-shrink: 0;
}

.tutor-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 6px 15px rgba(236, 72, 153, 0.25);
  animation: pulseAvatar 3s ease-in-out infinite alternate;
}

@keyframes pulseAvatar {
  0% { transform: scale(1); }
  100% { transform: scale(1.05) rotate(2deg); }
}

.tutor-tag {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #ec4899;
  color: white;
  font-family: var(--font-fun);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.tutor-speech-bubble {
  flex-grow: 1;
}

.tutor-title {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tutor-message {
  font-size: 1.02rem;
  line-height: 1.45;
  color: #334155;
  margin-bottom: 8px;
}

.btn-speak-tutor {
  background: #fdf2f8;
  border: 2px solid #f472b6;
  color: #db2777;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 0 #f472b6;
}

.btn-speak-tutor:hover {
  background: #fce7f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #db2777;
}

.btn-speak-tutor:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #db2777;
}

/* ==========================================================================
   PANTALLA 1: REGISTRO Y BIENVENIDA (LIMPIA, MODERNA & DIRECTA)
   ========================================================================== */
/* ==========================================================================
   PANTALLA 1: REGISTRO Y BIENVENIDA (PANTALLA COMPLETA & LETRAS GIGANTES)
   ========================================================================== */
.main-wrapper-immersive {
  max-width: 900px;
  margin: 10px auto 30px;
  padding: 0 15px;
}

.screen-welcome-center {
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid var(--card-border);
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.18);
  padding: 35px 24px;
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-central-tutor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.tutor-avatar-img-big {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.35);
  animation: pulseAvatar 3s ease-in-out infinite alternate;
}

.tutor-tag-pill {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #ec4899;
  color: white;
  font-family: var(--font-fun);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.welcome-tutor-greeting {
  margin-top: 15px;
  text-align: center;
}

.tutor-big-heading {
  font-family: var(--font-fun);
  font-size: 2.1rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.tutor-sub-phrase {
  font-family: var(--font-fun);
  font-size: 1.15rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.btn-listen-voice-big {
  background: #fdf2f8;
  border: 3px solid #f472b6;
  color: #db2777;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-fun);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 0 #f472b6;
}

.btn-listen-voice-big:hover {
  background: #fce7f3;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #db2777;
}

.btn-listen-voice-big:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #db2777;
}

/* Tarjeta Central del Nombre */
.welcome-name-center-card {
  background: #f0f9ff;
  border: 3px dashed #38bdf8;
  border-radius: 28px;
  padding: 28px 20px;
  box-shadow: inset 0 2px 10px rgba(2, 132, 199, 0.05);
}

.giant-name-question {
  font-family: var(--font-fun);
  font-size: 2.4rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.giant-name-instruction {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  font-weight: 700;
  color: #e11d48;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.giant-input-box {
  margin: 10px 0 20px;
}

.giant-uppercase-input {
  width: 100%;
  max-width: 540px;
  padding: 16px 20px;
  font-family: var(--font-fun);
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: #0369a1;
  background: #ffffff;
  border: 5px solid #0284c7;
  border-radius: 24px;
  outline: none;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
  transition: all 0.2s ease;
  letter-spacing: 2px;
}

.giant-uppercase-input::placeholder {
  color: #cbd5e1;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.giant-uppercase-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.3), 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .giant-name-question { font-size: 1.9rem; }
  .giant-name-instruction { font-size: 1.05rem; }
  .giant-uppercase-input { font-size: 2rem; padding: 12px 14px; }
  .giant-uppercase-input::placeholder { font-size: 1.4rem; }
}

.companion-selector-central {
  margin-bottom: 22px;
}

.companion-title-upper {
  display: block;
  font-family: var(--font-fun);
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.parent-options-clean {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-parent-pill {
  background: #ffffff;
  border: 3px solid #cbd5e1;
  border-radius: 16px;
  padding: 10px 16px;
  font-family: var(--font-fun);
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  box-shadow: 0 3px 0 #cbd5e1;
}

.btn-parent-pill:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
}

.btn-parent-pill.active {
  background: #fdf2f8;
  border-color: #ec4899;
  color: #be185d;
  box-shadow: 0 4px 0 #ec4899, 0 6px 15px rgba(236, 72, 153, 0.25);
  transform: translateY(-2px);
}

.btn-start-container {
  margin-top: 15px;
}

.btn-giant-play {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  font-family: var(--font-fun);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 18px 50px;
  border-radius: 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 0 #047857, 0 18px 30px rgba(16, 185, 129, 0.4);
  transition: all 0.15s ease;
  animation: bouncePlayBtn 2.2s ease-in-out infinite;
}

@keyframes bouncePlayBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.btn-giant-play:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 0 #047857, 0 22px 35px rgba(16, 185, 129, 0.5);
}

.btn-giant-play:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #047857;
}

.welcome-hero {
  text-align: center;
  margin-bottom: 25px;
}

.welcome-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #78350f;
  font-family: var(--font-fun);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
  animation: bounceBadge 2s ease-in-out infinite;
}

@keyframes bounceBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.welcome-title {
  font-family: var(--font-fun);
  font-size: 2.2rem;
  font-weight: 700;
  color: #0284c7;
  line-height: 1.2;
  margin-bottom: 10px;
}

.welcome-title span {
  color: #ec4899;
}

.welcome-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.form-team-card {
  background: white;
  border: 3px solid #bae6fd;
  border-radius: 24px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto 25px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-fun);
  font-size: 1rem;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 8px;
}

.input-text {
  width: 100%;
  padding: 12px 18px;
  font-family: var(--font-fun);
  font-size: 1.15rem;
  color: #0f172a;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  outline: none;
  transition: all 0.2s ease;
}

.input-text:focus {
  background: white;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.parent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.btn-parent-tag {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-fun);
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-parent-tag.active {
  background: #fce7f3;
  border-color: #ec4899;
  color: #be185d;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.2);
}

.avatar-selector-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.avatar-opt {
  font-size: 2rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-opt:hover {
  transform: scale(1.15);
}

.avatar-opt.active {
  background: #e0f2fe;
  border-color: #0284c7;
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.btn-giant-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  font-family: var(--font-fun);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 0 #047857, 0 15px 25px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
  margin-top: 10px;
}

.btn-giant-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 #047857, 0 18px 28px rgba(16, 185, 129, 0.45);
}

.btn-giant-start:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #047857, 0 8px 15px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   TIP PARA PADRES (BARRA DE APOYO EN CADA ACTIVIDAD)
   ========================================================================== */
.parent-tip-bar {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: 16px;
  padding: 10px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #92400e;
}

.parent-tip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ==========================================================================
   ACTIVIDAD 1: LAS PARTES DE LA COMPUTADORA
   ========================================================================== */
.hardware-playground {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .hardware-playground {
    grid-template-columns: 1fr;
  }
}

.desk-stage {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border: 3px solid #86efac;
  border-radius: 24px;
  padding: 24px;
  min-height: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.desk-targets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.drop-target {
  background: rgba(255, 255, 255, 0.85);
  border: 3px dashed #94a3b8;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.drop-target.hovered {
  border-color: #0284c7;
  background: #e0f2fe;
  transform: scale(1.03);
}

.drop-target.filled {
  border: 3px solid #10b981;
  background: #f0fdf4;
}

.target-silhouette {
  font-size: 3.5rem;
  opacity: 0.35;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.target-label-hint {
  font-family: var(--font-fun);
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.target-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popIn 0.35s ease;
}

.target-content .placed-emoji {
  font-size: 3.8rem;
  margin-bottom: 6px;
}

.target-content .placed-name {
  font-family: var(--font-fun);
  font-size: 1.1rem;
  font-weight: 700;
  color: #065f46;
  background: #a7f3d0;
  padding: 4px 12px;
  border-radius: 999px;
}

.pieces-tray {
  background: white;
  border: 3px solid #cbd5e1;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tray-title {
  font-family: var(--font-fun);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0369a1;
  text-align: center;
  margin-bottom: 6px;
}

.draggable-card {
  background: white;
  border: 3px solid #38bdf8;
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 4px 0 #0284c7;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.draggable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0284c7;
}

.draggable-card:active,
.draggable-card.is-dragging {
  cursor: grabbing;
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.35);
  z-index: 1000;
}

.draggable-card.placed {
  opacity: 0.35;
  pointer-events: none;
  border-color: #cbd5e1;
  box-shadow: none;
}

.draggable-card.selected-tap {
  border-color: #f59e0b;
  background: #fef3c7;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4);
  transform: scale(1.05);
}

.drag-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.drag-info {
  text-align: left;
}

.drag-title {
  font-family: var(--font-fun);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0369a1;
}

.drag-sub {
  font-size: 0.8rem;
  color: #64748b;
}

/* Correspondencia de color para Hardware (accesible para niños de 6 años) */
.drop-target-hardware[data-droptarget="monitor"] { border-color: #0284c7; background: #f0f9ff; }
.drop-target-hardware[data-droptarget="pc"] { border-color: #8b5cf6; background: #f5f3ff; }
.drop-target-hardware[data-droptarget="teclado"] { border-color: #10b981; background: #ecfdf5; }
.drop-target-hardware[data-droptarget="mouse"] { border-color: #ec4899; background: #fdf2f8; }

.draggable-hardware[data-piece="monitor"] { border-color: #0284c7; box-shadow: 0 4px 0 #0369a1; background: #f0f9ff; }
.draggable-hardware[data-piece="pc"] { border-color: #8b5cf6; box-shadow: 0 4px 0 #6d28d9; background: #f5f3ff; }
.draggable-hardware[data-piece="teclado"] { border-color: #10b981; box-shadow: 0 4px 0 #047857; background: #ecfdf5; }
.draggable-hardware[data-piece="mouse"] { border-color: #ec4899; box-shadow: 0 4px 0 #be185d; background: #fdf2f8; }

/* ==========================================================================
   ACTIVIDAD 2: EL PANDA, FORMAS GEOMÉTRICAS Y COLORES
   ========================================================================== */
.shapes-playground {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panda-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, #fef9c3 0%, #ffedd5 100%);
  border: 3px solid #fde047;
  border-radius: 24px;
  padding: 16px 24px;
}

.panda-thumb {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.panda-speech {
  font-family: var(--font-fun);
  font-size: 1.15rem;
  color: #854d0e;
  text-align: left;
  max-width: 480px;
}

/* Estante de Cajas de Colores */
.color-boxes-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 700px) {
  .color-boxes-shelf {
    grid-template-columns: repeat(2, 1fr);
  }
}

.color-box {
  border-radius: 24px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 185px;
  border: 6px solid;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* 1. CAJA ROJA: EXACTAMENTE EL MISMO COLOR SÓLIDO (#ef4444) QUE LAS FIGURAS */
.color-box.box-red {
  background: #ef4444 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.45);
}

/* 2. CAJA AZUL: EXACTAMENTE EL MISMO COLOR SÓLIDO (#0ea5e9) QUE LAS FIGURAS */
.color-box.box-blue {
  background: #0ea5e9 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.45);
}

/* 3. CAJA AMARILLA: EXACTAMENTE EL MISMO COLOR SÓLIDO (#facc15) QUE LAS FIGURAS */
.color-box.box-yellow {
  background: #facc15 !important;
  border-color: #ca8a04 !important;
  color: #713f12 !important;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.45);
}

/* 4. CAJA VERDE: EXACTAMENTE EL MISMO COLOR SÓLIDO (#22c55e) QUE LAS FIGURAS */
.color-box.box-green {
  background: #22c55e !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.45);
}

.color-box.hovered {
  transform: scale(1.1) translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
  filter: brightness(1.12);
}

.box-color-circle {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}

.box-slot {
  width: 90px;
  height: 24px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  margin-bottom: 10px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.4);
}

.box-tag {
  font-family: var(--font-fun);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  margin-bottom: 4px;
}

.box-yellow .box-tag {
  text-shadow: none;
  color: #713f12 !important;
}

.box-count {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* Área de figuras dispersas para clasificar */
.shapes-pool {
  background: #ffffff;
  border: 4px dashed #94a3b8;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 150px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.shape-item {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
  transition: transform 0.15s ease;
}

.shape-item:hover {
  transform: scale(1.18);
}

.shape-item:active,
.shape-item.is-dragging {
  cursor: grabbing;
  transform: scale(1.3) rotate(6deg);
  z-index: 1000;
}

.shape-item.placed {
  display: none;
}

.shape-item.selected-tap {
  outline: 4px dashed #f59e0b;
  outline-offset: 4px;
  transform: scale(1.2);
}

/* Formas Geométricas SVG */
.shape-svg {
  width: 100%;
  height: 100%;
  transition: all 0.2s ease;
}

/* ==========================================================================
   ACTIVIDAD 3: TALLER DE VOCALES (TREN + PALABRA DE COMPUTACIÓN)
   ========================================================================== */
.vowels-playground {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.train-track {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
  border: 3px solid #7dd3fc;
  border-radius: 24px;
  padding: 24px 16px;
  position: relative;
  overflow-x: auto;
}

.train-composition {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-width: 600px;
}

.train-locomotive {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 4rem;
  margin-right: 6px;
  animation: trainChug 1.5s ease-in-out infinite alternate;
}

@keyframes trainChug {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.train-wagon {
  background: white;
  border: 3px solid #38bdf8;
  border-radius: 18px;
  width: 85px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 6px;
  box-shadow: 0 4px 0 #0284c7;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.train-wagon.hovered {
  border-color: #ec4899;
  background: #fdf2f8;
  transform: scale(1.08);
}

.wagon-number {
  font-family: var(--font-fun);
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

.wagon-slot {
  width: 55px;
  height: 55px;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-fun);
  font-size: 2.2rem;
  font-weight: 700;
  color: #0369a1;
  background: #f8fafc;
}

.train-wagon.filled .wagon-slot {
  border: 2px solid #10b981;
  background: #ecfdf5;
  color: #047857;
}

.train-wheels {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.wheel {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #94a3b8;
}

/* Burbujas de vocales desordenadas */
.vowels-pool {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.vowel-bubble {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  font-family: var(--font-fun);
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 6px 0 #7e22ce, 0 10px 15px rgba(168, 85, 247, 0.35);
  transition: all 0.15s ease;
}

.vowel-bubble:hover {
  transform: scale(1.15);
}

.vowel-bubble:active,
.vowel-bubble.is-dragging {
  cursor: grabbing;
  transform: scale(1.25) rotate(8deg);
  z-index: 1000;
}

.vowel-bubble.placed {
  opacity: 0.25;
  pointer-events: none;
  box-shadow: none;
}

.vowel-bubble.selected-tap {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.4);
  transform: scale(1.2);
}

/* Correspondencia de color para Vagones y Vocales (fácil ubicación visual) */
.train-wagon[data-pos="1"] { border-color: #ef4444; border-width: 4px; }
.train-wagon[data-pos="1"] .wagon-number { background: #fee2e2; color: #b91c1c; font-weight: 800; }
.train-wagon[data-pos="2"] { border-color: #0ea5e9; border-width: 4px; }
.train-wagon[data-pos="2"] .wagon-number { background: #e0f2fe; color: #0369a1; font-weight: 800; }
.train-wagon[data-pos="3"] { border-color: #10b981; border-width: 4px; }
.train-wagon[data-pos="3"] .wagon-number { background: #dcfce7; color: #15803d; font-weight: 800; }
.train-wagon[data-pos="4"] { border-color: #facc15; border-width: 4px; }
.train-wagon[data-pos="4"] .wagon-number { background: #fef9c3; color: #854d0e; font-weight: 800; }
.train-wagon[data-pos="5"] { border-color: #a855f7; border-width: 4px; }
.train-wagon[data-pos="5"] .wagon-number { background: #f3e8ff; color: #6b21a8; font-weight: 800; }

.vowel-bubble[data-vowel="A"] { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 6px 0 #b91c1c; }
.vowel-bubble[data-vowel="E"] { background: linear-gradient(135deg, #0ea5e9, #0284c7); box-shadow: 0 6px 0 #0369a1; }
.vowel-bubble[data-vowel="I"] { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 6px 0 #047857; }
.vowel-bubble[data-vowel="O"] { background: linear-gradient(135deg, #facc15, #eab308); color: #713f12; box-shadow: 0 6px 0 #ca8a04; }
.vowel-bubble[data-vowel="U"] { background: linear-gradient(135deg, #a855f7, #7e22ce); box-shadow: 0 6px 0 #6b21a8; }

/* Reto B de la palabra: M O U S E */
.word-challenge-box {
  background: white;
  border: 3px solid #fbcfe8;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
}

.word-hint-title {
  font-family: var(--font-fun);
  font-size: 1.15rem;
  font-weight: 700;
  color: #db2777;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.word-tiles-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.letter-tile {
  width: 58px;
  height: 68px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 3px solid #cbd5e1;
  font-family: var(--font-fun);
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-tile.fixed {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #475569;
}

.letter-tile.slot {
  background: #fff;
  border: 3px dashed #ec4899;
  color: #db2777;
}

.letter-tile.slot.filled {
  border: 3px solid #10b981;
  background: #ecfdf5;
  color: #059669;
}

/* ==========================================================================
   PANTALLA FINAL: DIPLOMA DE HONOR Y CELEBRACIÓN
   ========================================================================== */
.diploma-wrapper {
  text-align: center;
  position: relative;
}

.victory-banner {
  margin-bottom: 20px;
}

.victory-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #78350f;
  font-family: var(--font-fun);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 999px;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
  animation: bounceBadge 2s ease-in-out infinite;
}

/* Certificado Oficial Infantil */
.official-diploma {
  background: #ffffff;
  border: 12px double #f59e0b;
  border-radius: 28px;
  padding: 35px 30px;
  max-width: 820px;
  margin: 0 auto 28px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  background-image: radial-gradient(#fef3c7 1px, transparent 1px);
  background-size: 24px 24px;
}

.diploma-seal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.4));
  animation: pulseAvatar 2.5s ease-in-out infinite alternate;
}

.diploma-header {
  margin-bottom: 18px;
}

.diploma-sup {
  font-family: var(--font-fun);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.diploma-main-title {
  font-family: var(--font-fun);
  font-size: 2.5rem;
  font-weight: 700;
  color: #b45309;
  text-shadow: 1px 2px 0px rgba(0,0,0,0.06);
  margin: 4px 0 8px;
}

.diploma-sub {
  font-size: 1.15rem;
  color: #475569;
}

.diploma-student-name {
  font-family: var(--font-fun);
  font-size: 2.3rem;
  font-weight: 700;
  color: #0369a1;
  border-bottom: 3px dashed #38bdf8;
  display: inline-block;
  padding: 0 30px 4px;
  margin: 15px 0 10px;
}

.diploma-family-name {
  font-family: var(--font-fun);
  font-size: 1.35rem;
  font-weight: 600;
  color: #ec4899;
  margin-bottom: 16px;
}

.diploma-text {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #334155;
  max-width: 650px;
  margin: 0 auto 20px;
}

/* Medallas en el diploma */
.diploma-badges-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.diploma-badge-item {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.diploma-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 2px solid #f1f5f9;
}

.signature-block {
  text-align: center;
}

.signature-line {
  width: 170px;
  height: 2px;
  background: #94a3b8;
  margin: 0 auto 6px;
}

.signature-name {
  font-family: var(--font-fun);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.signature-role {
  font-size: 0.8rem;
  color: #64748b;
}

/* Botones de acción del final */
.final-actions-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-diploma-action {
  font-family: var(--font-fun);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}

.btn-print {
  background: linear-gradient(135deg, #0284c7, #0284c7);
  color: white;
  box-shadow: 0 6px 0 #0369a1, 0 10px 20px rgba(2, 132, 199, 0.3);
}

.btn-print:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #0369a1;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 6px 0 #15803d, 0 10px 20px rgba(34, 197, 94, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #15803d;
}

.btn-restart {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #475569;
  box-shadow: 0 5px 0 #cbd5e1;
}

.btn-restart:hover {
  background: white;
  transform: translateY(-2px);
}

.btn-back-hub {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #92400e;
  box-shadow: 0 5px 0 #f59e0b;
  text-decoration: none;
}

.btn-back-hub:hover {
  background: #fde68a;
  transform: translateY(-2px);
}

/* ==========================================================================
   CANVAS DE CONFETI PARA CELEBRACIONES
   ========================================================================== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   MODAL PARA VER FOLLETO ORIGINAL
   ========================================================================== */
.flyer-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.flyer-modal-overlay.active {
  display: flex;
}

.flyer-modal-card {
  background: white;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.flyer-modal-header {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flyer-modal-title {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  color: #0369a1;
}

.btn-close-modal {
  background: #ef4444;
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.flyer-modal-body img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN (DIPLOMA DE HONOR)
   ========================================================================== */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  .app-header,
  .stepper-container,
  .bg-decorations,
  .tutor-banner,
  .parent-tip-bar,
  .final-actions-row,
  .victory-banner,
  #confetti-canvas,
  .flyer-modal-overlay {
    display: none !important;
  }

  .main-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .screen-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .official-diploma {
    border: 10px double #b45309 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    page-break-inside: avoid;
    padding: 30px !important;
    margin: 0 !important;
  }

  @page {
    size: landscape;
    margin: 1cm;
  }
}
