/* === TechDock IZQUIERDA, CENTRADO VERTICAL === */
#techdock {
  position: fixed;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 220px;
  /* Ancho FIJO del Dock para alinear paneles e ítems */
  max-width: 220px;
  min-width: 220px;
  z-index: 1500;
  text-align: left;
  font-family: 'Arial Bold', sans-serif;
  pointer-events: none;
}

#techdock-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* CLAVE: ítems ocupan todo el ancho */
  gap: 0;
  background: rgba(10, 22, 28, 0.25);
  backdrop-filter: blur(10px) saturate(180%);
  border-radius: 18px;
  padding: 10px 0;
  /* Ajusta para dejar el color hasta los bordes */
  border: 1px solid rgba(0, 255, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(0, 255, 255, 0.05);
  pointer-events: auto;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#techdock-bar:hover {
  background: rgba(10, 22, 28, 0.35);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.08);
}

/* Solo muestra un menú activo */
.techdock-bar-menus {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.techdock-bar-menus-mobile {
  display: none;
}

@media(max-width: 800px) {
  .techdock-bar-menus {
    display: none;
  }

  .techdock-bar-menus-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}

/* === Ítems del Dock: ocúpalo todo === */
.techdock-item {
  position: relative;
  color: #bffeff;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.35s ease, background 0.35s, transform 0.3s ease;
  opacity: 0.85;
  background: rgba(12, 28, 38, 0.6);
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(0, 255, 255, 0.06);
}

.techdock-item:last-child {
  border-bottom: none;
}

.techdock-item span {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  width: 100%;
}

.techdock-item:hover {
  color: #e6ffff;
  opacity: 1;
  background: rgba(28, 60, 77, 0.9);
  transform: translateX(2px);
}

/* Línea de enfoque lateral */
.techdock-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, transparent, #00ffff, transparent);
  transform: translateY(-50%);
  transition: height 0.4s ease;
  border-radius: 2px;
}

.techdock-item:hover::after {
  height: 80%;
}

/* === Panel desplegable: alineado y separado === */
.techdock-panel {
  position: absolute;
  top: 0;
  left: 236px;
  width: 380px;
  height: 210px;
  overflow: hidden;
  background: rgba(4, 10, 16, 0.91);
  border-radius: 16px;
  border: 1px solid #65a0b3a3;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  backdrop-filter: blur(18px);
  transition: all 0.45s cubic-bezier(.22, .68, 0, 1.18);
}

.techdock-item.open .techdock-panel {
  opacity: 1;
  pointer-events: auto;
  padding: 18px;
  max-height: 1000px;
}

/* Animación interna */
.techdock-panel>* {
  transform: translateY(-8px);
  transition: transform 0.4s ease, opacity 0.35s ease;
  opacity: 0;
}

.techdock-item.open .techdock-panel>* {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll interno */
.techdock-panel::-webkit-scrollbar {
  width: 6px;
}

.techdock-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.25);
  border-radius: 3px;
}

/* Flecha decorativa */
.techdock-panel::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -16px;
  right: auto;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid rgba(4, 10, 16, 0.9);
  filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.3));
}

.close-button-panel {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #00ffff;
  background: transparent;
  border: none;
  z-index: 10000;
}

.styled-card-with-border {
  background: linear-gradient(135deg, rgba(15, 32, 39, 0.93), rgba(32, 58, 67, 0.93), rgba(44, 83, 100, 0.95));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  border: 1px solid #70dad2cc;
  border-bottom: 4px solid #70dad2cc;
  padding: 20px;
  color: white;
  text-align: center;
}