﻿/* ==========================================================================
   MYCLOUD.UNO — END-TO-END PIPELINE HUB (HERO CONNECTION)
   ========================================================================== */

.pipeline-hub-wrapper {
  margin-top: 56px;
  position: relative;
  z-index: 10;
}

.pipeline-hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pipeline-hub:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.06);
}

/* --------------------------------------------------------------------------
   NODOS LATERALES (TOMÁS & GINÉS)
   -------------------------------------------------------------------------- */
.pipeline-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.node-software:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.node-telecom:hover {
  border-color: var(--gines-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.node-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.node-software .node-icon-box {
  background: var(--accent-soft);
  color: var(--accent);
}

.node-telecom .node-icon-box {
  background: var(--gines-soft);
  color: var(--gines-accent);
}

.node-body {
  display: flex;
  flex-direction: column;
}

.node-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.node-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-software {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-telecom {
  background: var(--gines-soft);
  color: var(--gines-accent);
}

.node-caption {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   CONECTORES DE FLUJO & HUB CENTRAL
   -------------------------------------------------------------------------- */
.pipeline-flow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 140px;
}

.flow-track {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

/* Pulso de flujo Izquierdo (Software -> Centro) */
.flow-pulse-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: streamRight 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes streamRight {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(300%); opacity: 0; }
}

/* Pulso de flujo Derecho (Telecom -> Centro) */
.flow-pulse-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gines-accent), transparent);
  animation: streamLeft 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes streamLeft {
  0% { transform: translateX(100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(-300%); opacity: 0; }
}

/* --------------------------------------------------------------------------
   HUB CENTRAL (MYCLOUD.UNO • PUNTA A PUNTA)
   -------------------------------------------------------------------------- */
.pipeline-center-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
  z-index: 2;
}

.hub-core {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition);
}

.pipeline-hub:hover .hub-core {
  transform: scale(1.04);
}

.hub-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MÓVILES)
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .pipeline-hub {
    flex-direction: column;
    padding: 20px 16px;
    gap: 12px;
  }

  .pipeline-node {
    width: 100%;
    justify-content: flex-start;
  }

  .pipeline-flow {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    min-width: auto;
  }

  .flow-track {
    width: 2px;
    height: 18px;
  }

  .flow-pulse-left, .flow-pulse-right {
    width: 100%;
    height: 40%;
  }

  @keyframes streamRight {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(300%); opacity: 0; }
  }

  @keyframes streamLeft {
    0% { transform: translateY(100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-300%); opacity: 0; }
  }
}
