/* ==========================================================================
   ESTILOS - EL TERRARIO DE LAS LOMBRICES Y LA PLANTA MÁGICA
   Muestra de Ciencias • Jardín de Infantes (4 y 5 años)
   Todo en una sola pantalla, claro, táctil, visual y sin distracciones.
   ========================================================================== */

:root {
  --color-sky-top: #64b5f6;
  --color-sky-bottom: #b3e5fc;
  --color-grass-top: #a5d6a7;
  --color-grass-bottom: #4caf50;
  --color-soil-rich: #3e2723;
  --color-soil-light: #795548;
  --color-worm-pink: #ff85a1;
  --color-worm-dark: #f72585;
  --color-gold: #fbc02d;

  --font-main: 'Fredoka', 'Quicksand', system-ui, -apple-system, sans-serif;
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-btn: 0 6px 0 rgba(0, 0, 0, 0.2);
  --shadow-btn-pressed: 0 2px 0 rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--color-sky-top) 0%, var(--color-sky-bottom) 50%, var(--color-grass-top) 80%, var(--color-grass-bottom) 100%);
  color: #1a1a1a;
  position: relative;
  touch-action: none;
}

/* Canvas de Confeti */
#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ==========================================================================
   1. BARRA SUPERIOR (HEADER SENCILLO Y CLARO)
   ========================================================================== */
.kinder-header-bar {
  position: relative;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 4px solid #81d4fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff85a1, #f72585);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(247, 37, 133, 0.35);
  animation: cuteBounce 3s ease-in-out infinite;
}

.brand-texts h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e7d32;
  line-height: 1.1;
}

.brand-texts span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0288d1;
}

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

.btn-ctrl {
  background: #ffffff;
  border: 3px solid #b3e5fc;
  border-radius: 16px;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0277bd;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-btn);
  transition: all 0.15s ease;
}

.btn-ctrl:hover {
  transform: translateY(-2px);
  background: #f0f9ff;
}

.btn-ctrl:active {
  transform: translateY(3px);
  box-shadow: var(--shadow-btn-pressed);
}

.btn-ctrl.fullscreen {
  background: linear-gradient(135deg, #ffe082, #ffd54f);
  border-color: #ffb300;
  color: #5d4037;
  box-shadow: 0 4px 0 #ffa000;
}

.btn-ctrl.restart {
  background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
  border-color: #66bb6a;
  color: #1b5e20;
  box-shadow: 0 4px 0 #43a047;
}

/* ==========================================================================
   2. ESCENARIO PRINCIPAL: 3 COLUMNAS LIMPIAS (PANTALLA ÚNICA)
   ========================================================================== */
.science-fair-stage {
  width: 100vw;
  height: calc(100vh - 64px - 72px); /* Restando header y barra inferior */
  display: grid;
  grid-template-columns: 290px 1fr 340px; /* Basura | Terrario | Planta */
  gap: 18px;
  padding: 12px 20px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   COLUMNA 1: LOS RESIDUOS / BASURA (IZQUIERDA)
   ========================================================================== */
.waste-column {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 4px solid #81c784;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.column-card-title {
  background: linear-gradient(135deg, #66bb6a, #43a047);
  color: #ffffff;
  border-radius: 18px;
  padding: 6px 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.column-card-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.column-card-title p {
  font-size: 0.78rem;
  opacity: 0.95;
}

/* Barra de Misión / Búsqueda para los chicos */
.waste-mission-bar {
  background: #f1f8e9;
  border: 2px dashed #8bc34a;
  border-radius: 16px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mission-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #33691e;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mission-text strong {
  font-size: 1.1rem;
  color: #2e7d32;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1.5px solid #aed581;
}

.mission-stars {
  display: flex;
  gap: 4px;
}

.m-star {
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.m-star.active {
  transform: scale(1.3);
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.6));
}

/* El Montón de Basura Mezclada (Caja de Búsqueda) */
.waste-mixed-pile-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f9fbf9;
  border: 3px solid #c8e6c9;
  border-radius: 20px;
  padding: 8px;
  overflow: hidden;
  position: relative;
}

.pile-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 4px;
}

.pile-badge-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #558b2f;
}

.btn-shuffle-pile {
  background: #ffffff;
  border: 2px solid #81c784;
  border-radius: 12px;
  padding: 3px 10px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  color: #2e7d32;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.btn-shuffle-pile:hover {
  background: #e8f5e9;
  transform: scale(1.05);
}

.btn-shuffle-pile:active {
  transform: scale(0.95);
}

/* El contenedor del montón con rotaciones dinámicas */
.waste-mixed-pile {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 8px;
  overflow-y: auto;
  padding: 4px;
  max-height: calc(100vh - 290px);
}

.waste-mixed-pile::-webkit-scrollbar {
  width: 6px;
}

.waste-mixed-pile::-webkit-scrollbar-thumb {
  background: #a5d6a7;
  border-radius: 10px;
}

/* Fichas individuales mezcladas */
.waste-food-card {
  background: #ffffff;
  border: 2.5px solid #c8e6c9;
  border-radius: 18px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: grab;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  touch-action: none;
  min-width: 105px;
}

/* Rotaciones dinámicas para dar aspecto de montón revuelto */
.waste-food-card:nth-child(1) { transform: rotate(-3deg); }
.waste-food-card:nth-child(2) { transform: rotate(4deg); }
.waste-food-card:nth-child(3) { transform: rotate(-5deg); }
.waste-food-card:nth-child(4) { transform: rotate(6deg); }
.waste-food-card:nth-child(5) { transform: rotate(-4deg); }
.waste-food-card:nth-child(6) { transform: rotate(3deg); }
.waste-food-card:nth-child(7) { transform: rotate(-6deg); }
.waste-food-card:nth-child(8) { transform: rotate(5deg); }
.waste-food-card:nth-child(9) { transform: rotate(-3deg); }
.waste-food-card:nth-child(10) { transform: rotate(4deg); }
.waste-food-card:nth-child(11) { transform: rotate(-5deg); }
.waste-food-card:nth-child(12) { transform: rotate(6deg); }

.waste-food-card.organic {
  border-color: #a5d6a7;
  background: #ffffff;
}

.waste-food-card.inorganic {
  border-color: #ffcdd2;
  background: #fffdfd;
}

.waste-food-card:hover {
  transform: scale(1.15) rotate(0deg) !important;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  border-color: #ffd54f;
}

.waste-food-card:active, .waste-food-card.dragging {
  cursor: grabbing;
  transform: scale(1.25) rotate(-5deg) !important;
  border-color: #ffb300;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.waste-icon {
  font-size: 2.1rem;
  line-height: 1;
  pointer-events: none;
}

.waste-card-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #2e7d32;
  pointer-events: none;
}

.waste-food-card.inorganic .waste-card-label {
  color: #c62828;
}

/* ==========================================================================
   COLUMNA 2: EL TERRARIO DE LOMBRICES BAILARINAS (CENTRO)
   ========================================================================== */
.terrarium-column {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 4px solid #bcaaa4;
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.terrarium-title-bar {
  background: linear-gradient(135deg, #8d6e63, #5d4037);
  color: #ffffff;
  border-radius: 20px;
  padding: 8px 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title-text-group {
  text-align: left;
}

.title-text-group h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-text-group p {
  font-size: 0.78rem;
  opacity: 0.95;
}

/* Botón interactivo para hacer bailar a las lombrices */
.btn-dance-worms {
  background: linear-gradient(135deg, #ff4081, #f50057);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 16px;
  padding: 6px 14px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 0, 87, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  animation: cuteBounce 2s infinite;
}

.btn-dance-worms:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(245, 0, 87, 0.6);
}

.btn-dance-worms:active {
  transform: scale(0.96);
}

/* La Caja de Cristal del Terrario */
.glass-terrarium-box {
  width: 100%;
  flex: 1;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.5) 0%, rgba(186, 230, 253, 0.2) 35%, #5d4037 40%, #3e2723 100%);
  border: 6px solid #4e342e;
  border-radius: 26px;
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-bottom: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.glass-terrarium-box.target-highlight {
  border-color: #ffd54f;
  box-shadow: 0 0 35px rgba(255, 213, 79, 0.9), inset 0 0 25px rgba(255, 213, 79, 0.5);
  transform: scale(1.02);
}

/* Efectos de Baile: Luces de discoteca */
.disco-lights-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
  background: radial-gradient(circle at 30% 20%, rgba(255, 64, 129, 0.45), transparent 40%),
              radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.45), transparent 40%),
              radial-gradient(circle at 50% 60%, rgba(255, 214, 0, 0.45), transparent 50%);
}

.disco-lights-overlay.active {
  opacity: 1;
  animation: discoSpin 3s linear infinite alternate;
}

@keyframes discoSpin {
  0% { transform: scale(1) rotate(0deg); filter: hue-rotate(0deg); }
  100% { transform: scale(1.1) rotate(15deg); filter: hue-rotate(360deg); }
}

/* Notas musicales flotantes */
.worm-music-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.floating-note {
  position: absolute;
  font-size: 1.5rem;
  animation: noteFloatUp 1.8s ease-out forwards;
  pointer-events: none;
}

@keyframes noteFloatUp {
  0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-90px) scale(1.3) rotate(20deg); opacity: 0; }
}

/* Indicador flotante en el terrario */
.terrarium-hint-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 3px dashed #66bb6a;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1b5e20;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  animation: cuteBounce 2s infinite;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
}

/* ==========================================================================
   LOMBRICES ANIMADAS, BAILARINAS Y VIVAS
   ========================================================================== */
.terrarium-worm {
  width: 95px;
  height: 125px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  animation: wormIdleDance 3s ease-in-out infinite;
  z-index: 15;
}

#worm-lupita {
  animation-delay: 1.5s;
}

/* Baile suave continuo */
@keyframes wormIdleDance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-3deg) scaleY(1.03); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-6px) rotate(3deg) scaleY(1.03); }
}

/* Baile alegre cuando suena música o comen comidita */
.terrarium-worm.dancing {
  animation: wormSalsaDance 0.8s ease-in-out infinite alternate !important;
}

@keyframes wormSalsaDance {
  0% { transform: translateY(0) rotate(-14deg) scaleX(1.08); }
  50% { transform: translateY(-16px) rotate(0deg) scaleX(0.95) scaleY(1.1); }
  100% { transform: translateY(0) rotate(14deg) scaleX(1.08); }
}

/* Salto con pirueta 360 cuando se tocan */
.terrarium-worm.jump-spin {
  animation: wormJumpSpinAnim 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes wormJumpSpinAnim {
  0% { transform: scale(1) translateY(0) rotate(0deg); }
  50% { transform: scale(1.3) translateY(-40px) rotate(180deg); }
  100% { transform: scale(1) translateY(0) rotate(360deg); }
}

.terrarium-worm.chewing {
  animation: wormChompAnim 0.4s ease infinite alternate !important;
}

/* Gorrito de fiesta / corona */
.worm-party-hat {
  position: absolute;
  top: -16px;
  font-size: 1.6rem;
  display: none;
  z-index: 25;
  animation: cuteBounce 1s infinite;
}

.party-mode .worm-party-hat {
  display: block;
}

/* CARAS DE LAS LOMBRICES: FELIZ VS MOLESTA/DESAGRADO */
.face-happy {
  display: inline;
}

.face-annoyed {
  display: none;
}

/* ESTADO MOLESTO / ASCO (AL ACERCAR O ARRASTRAR INORGÁNICOS) */
.terrarium-worm.annoyed .face-happy {
  display: none !important;
}

.terrarium-worm.annoyed .face-annoyed {
  display: inline !important;
}

.terrarium-worm.annoyed .worm-body {
  fill: #dcedc8 !important; /* Color enfermo / verdoso pálido */
  stroke: #558b2f !important;
  filter: drop-shadow(0 0 10px rgba(139, 195, 74, 0.9));
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.terrarium-worm.annoyed {
  animation: wormDisgustShake 0.35s ease-in-out infinite alternate !important;
}

@keyframes wormDisgustShake {
  0% { transform: translateY(0) rotate(-14deg) scale(0.94); }
  50% { transform: translateY(-8px) rotate(0deg) scale(0.92); }
  100% { transform: translateY(0) rotate(14deg) scale(0.94); }
}

/* Manitos empujando en señal de rechazo ¡NO! */
.terrarium-worm.annoyed .worm-hand.hand-left {
  animation: handPushAwayLeft 0.3s ease-in-out infinite alternate !important;
}
.terrarium-worm.annoyed .worm-hand.hand-right {
  animation: handPushAwayRight 0.3s ease-in-out infinite alternate !important;
}

@keyframes handPushAwayLeft {
  0% { transform: translate(5px, -18px) rotate(-35deg); }
  100% { transform: translate(12px, -24px) rotate(-60deg); }
}

@keyframes handPushAwayRight {
  0% { transform: translate(-5px, -18px) rotate(35deg); }
  100% { transform: translate(-12px, -24px) rotate(60deg); }
}

/* Burbujitas flotantes de queja "¡Fuchi! ¡Eso no!" */
.worm-disgust-bubble {
  position: absolute;
  top: -26px;
  background: #f44336;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(244, 67, 54, 0.5);
  white-space: nowrap;
  display: none;
  animation: cuteBounce 0.6s infinite;
  z-index: 35;
}

.terrarium-worm.annoyed .worm-disgust-bubble {
  display: block;
}

/* Alerta visual en el Terrario cuando hay basura inorgánica */
.glass-terrarium-box.danger-alert {
  border-color: #f44336 !important;
  box-shadow: 0 0 35px rgba(244, 67, 54, 0.95), inset 0 0 25px rgba(244, 67, 54, 0.45) !important;
  animation: terrariumDangerPulse 0.4s ease-in-out infinite alternate;
}

@keyframes terrariumDangerPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.terrarium-inorganic-warning {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(183, 28, 28, 0.6);
  white-space: nowrap;
  display: none;
  z-index: 35;
  animation: cuteBounce 0.8s infinite;
}

.glass-terrarium-box.danger-alert .terrarium-inorganic-warning {
  display: block;
}

.glass-terrarium-box.danger-alert .terrarium-hint-badge {
  display: none !important;
}

/* Manitos bailando */
.worm-hand.hand-left {
  animation: handWaveLeft 0.8s ease-in-out infinite alternate;
}
.worm-hand.hand-right {
  animation: handWaveRight 0.8s ease-in-out infinite alternate;
}

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

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

.worm-label-bubble {
  background: #ffffff;
  border: 2px solid #ff85a1;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #d81159;
  position: absolute;
  bottom: -6px;
  white-space: nowrap;
}

/* ZONA DONDE APARECE EL ABONO LISTO (HUMUS) */
.abono-output-container {
  width: 100%;
  height: 90px;
  background: #efebe9;
  border: 3px solid #d7ccc8;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.abono-empty-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #8d6e63;
  opacity: 0.85;
}

/* La porción de abono / pala lista para arrastrar */
.abono-ready-pile {
  background: linear-gradient(135deg, #ffb300, #ff8f00);
  border: 4px solid #ffffff;
  border-radius: 24px;
  padding: 10px 22px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: grab;
  box-shadow: 0 8px 20px rgba(255, 143, 0, 0.4), var(--shadow-btn);
  display: none;
  align-items: center;
  gap: 10px;
  animation: cuteBounce 2s infinite;
  transition: transform 0.15s ease;
}

.abono-ready-pile.visible {
  display: flex;
}

.abono-ready-pile:hover {
  transform: scale(1.08);
}

.abono-ready-pile:active, .abono-ready-pile.dragging {
  cursor: grabbing;
  transform: scale(1.2) rotate(4deg);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* ==========================================================================
   COLUMNA 3: LA PLANTA Y LA REGADERA (DERECHA)
   ========================================================================== */
.plant-column {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 4px solid #81d4fa;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
}

.plant-title-bar {
  background: linear-gradient(135deg, #0288d1, #0277bd);
  color: #ffffff;
  border-radius: 18px;
  padding: 6px 12px;
  width: 100%;
  text-align: center;
}

.plant-title-bar h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plant-title-bar p {
  font-size: 0.78rem;
  opacity: 0.95;
}

/* Indicador de Riego de 3 pasos */
.plant-water-status {
  background: #e1f5fe;
  border: 2px solid #81d4fa;
  border-radius: 14px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0277bd;
  width: 100%;
  justify-content: space-between;
}

.water-drops-indicator {
  display: flex;
  gap: 6px;
}

.drop-token {
  font-size: 1.25rem;
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drop-token.filled {
  opacity: 1;
  filter: none;
  transform: scale(1.3);
  filter: drop-shadow(0 2px 4px rgba(2, 136, 209, 0.6));
}

/* LA REGADERA GRANDE ARRIBA DE LA PLANTA */
.watering-can-box {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 2px 0;
}

.watering-can-btn {
  background: linear-gradient(135deg, #29b6f6, #0288d1);
  border: 4px solid #ffffff;
  border-radius: 22px;
  padding: 8px 18px;
  color: #ffffff;
  font-family: var(--font-main);
  cursor: grab;
  box-shadow: 0 8px 18px rgba(2, 136, 209, 0.35), var(--shadow-btn);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: cuteBounce 2.8s infinite;
  transition: transform 0.15s ease;
}

.watering-can-btn:hover {
  transform: scale(1.08) rotate(-5deg);
}

.watering-can-btn:active, .watering-can-btn.dragging {
  cursor: grabbing;
  transform: scale(1.2) rotate(-15deg);
  z-index: 1000;
}

.can-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.can-text-col strong {
  font-size: 1.05rem;
}

.can-text-col small {
  font-size: 0.74rem;
  opacity: 0.95;
}

.watering-can-btn .can-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

/* Lluvia animada sobre la maceta */
.plant-rain-container {
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  height: 90px;
  pointer-events: none;
  display: none;
  z-index: 40;
}

.plant-rain-container.raining {
  display: block;
}

.rain-drop-particle {
  position: absolute;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #4fc3f7, #0288d1);
  border-radius: 4px;
  animation: rainFallFast 0.5s linear infinite;
}

/* La Gran Maceta y Planta */
.plant-pot-stage {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
  padding-bottom: 6px;
}

.plant-growth-visual {
  width: 240px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  bottom: 110px;
  pointer-events: none;
  z-index: 20;
}

/* Maceta kawaii de barro */
.clay-pot-wrapper {
  width: 240px;
  height: 125px;
  background: linear-gradient(180deg, #d87040 0%, #b84d20 70%, #903510 100%);
  border: 5px solid #6c2306;
  border-radius: 0 0 50px 50px;
  position: relative;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.25), inset 0 4px 8px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clay-pot-wrapper.target-highlight {
  border-color: #ffd54f;
  box-shadow: 0 0 30px rgba(255, 213, 79, 0.9), inset 0 0 20px rgba(255, 213, 79, 0.5);
  transform: scale(1.05);
}

.clay-pot-rim-top {
  position: absolute;
  top: -18px;
  width: 260px;
  height: 30px;
  background: linear-gradient(180deg, #e67e4d 0%, #c45b2b 100%);
  border: 5px solid #6c2306;
  border-radius: 16px;
}

.pot-soil-layer {
  position: absolute;
  top: 4px;
  width: 228px;
  height: 45px;
  background: radial-gradient(ellipse at 50% 50%, #8d6e63 0%, #4e342e 100%);
  border-radius: 50%;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
  overflow: hidden;
}

.pot-roots-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.pot-soil-layer.fertilized {
  background: radial-gradient(ellipse at 50% 50%, #3e2723 0%, #1a0a02 100%);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.7);
}

.pot-soil-layer.watered {
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.7), 0 0 25px rgba(41, 182, 246, 0.8);
}

/* Carita tierna de la maceta */
.pot-face-eyes {
  display: flex;
  gap: 26px;
  margin-top: 15px;
}

.pot-face-eye {
  width: 12px;
  height: 12px;
  background: #2b1106;
  border-radius: 50%;
  position: relative;
}

.pot-face-eye::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
}

.pot-face-mouth {
  width: 18px;
  height: 9px;
  border-bottom: 3.5px solid #2b1106;
  border-radius: 0 0 15px 15px;
  margin-top: 2px;
}

/* ==========================================================================
   3. BARRA INFERIOR DE GUÍA (TITO LA LOMBRIZ Y VOZ)
   ========================================================================== */
.kinder-footer-guide {
  position: relative;
  z-index: 90;
  width: 100vw;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 4px solid #ffd166;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.guide-avatar-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.guide-worm-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff85a1, #f72585);
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(247, 37, 133, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: cuteWiggle 3s infinite;
}

.guide-speech-bubble {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 8px 18px;
  flex: 1;
  max-width: 950px;
}

.guide-speech-text {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.guide-speech-text strong {
  color: #059669;
}

.btn-speak-again {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-speak-again:hover {
  background: #e2e8f0;
  transform: scale(1.05);
}

/* ==========================================================================
   ANIMACIONES SUAVES
   ========================================================================== */
@keyframes cuteBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cuteWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

@keyframes wormChompAnim {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0.8) scaleX(1.15); }
}

@keyframes rainFallFast {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(85px); opacity: 0; }
}

/* Clon flotante de arrastre */
.drag-floating-clone {
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 16px 30px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .science-fair-stage {
    grid-template-columns: 240px 1fr 280px;
    gap: 12px;
    padding: 10px;
  }
}
