/* ==============================
   ESTILO GENERAL DEL FOOTER.TASKBAR
   ============================== */

.taskbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.07);
  border-top: 1.5px solid rgba(227, 230, 238, 0.09);
  backdrop-filter: blur(7px);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  color: #c6e3ff;
}

.taskbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.taskbar__spacer {
  flex: 1 1 auto;
}

.taskbar__tray {
  display: flex;
  align-items: center;
  gap: 14px; /* Unificamos el gap a 14px */
}

/* ==============================
   WIDGET DEL CLIMA Y HORA
   ============================== */

.weather-bar {
  display: flex;
  align-items: center;
  min-width: 120px;
  margin-right: 10px;
  white-space: nowrap;
  gap: 4px;
}

.weather-bar #weather-desc {
  display: inline-block;
  max-width: 100px;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
  font-size: 13px;
  margin-left: 7px;
}

.date-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 14px;
  margin-left: 12px;
}

/* ==============================
   ANIMACIONES DE MINIMIZAR / RESTAURAR
   ============================== */

@keyframes coolMinimize {
  0% {
    opacity: 1;
    box-shadow: 0 5px 28px #bbcbe960;
    filter: blur(0);
    transform: scale(1) translateY(0) translateX(0) rotateZ(0);
  }
  60% {
    opacity: 0.77;
    box-shadow: 0 16px 32px #0095ff19;
    filter: blur(1.5px);
    transform: scale(.65, .70) translateY(70px) translateX(10px) rotateZ(-1deg);
  }
  100% {
    opacity: 0;
    box-shadow: 0 8px 50px #8882;
    filter: blur(4.5px);
    transform: scale(.17, .21) translateY(330px) translateX(80px) rotateZ(-8deg);
    pointer-events: none;
  }
}

.window-main.cool-minimizing {
  animation: coolMinimize 0.59s cubic-bezier(.48,-0.22,.48,1.33) forwards;
  will-change: transform, opacity, filter;
  pointer-events: none !important;
  transition: none !important;
}

@keyframes coolRestore {
  0% {
    opacity: 0;
    box-shadow: 0 8px 50px #8882;
    filter: blur(4.5px);
    transform: scale(.17, .21) translateY(330px) translateX(80px) rotateZ(-8deg);
  }
  30% {
    opacity: 0.72;
    box-shadow: 0 16px 32px #0095ff19;
    filter: blur(1.7px);
    transform: scale(.65, .70) translateY(70px) translateX(10px) rotateZ(-1deg);
  }
  100% {
    opacity: 1;
    box-shadow: 0 5px 28px #bbcbe960;
    filter: blur(0);
    transform: scale(1) translateY(0) translateX(0) rotateZ(0);
  }
}

.window-main.cool-restoring {
  animation: coolRestore 0.52s cubic-bezier(.38,1.44,.56,1) forwards;
  will-change: transform, opacity, filter;
  pointer-events: auto !important;
}
