/* Fondo general */
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #f5f5f5;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* Sección principal */
.budo-produccion-section {
  min-height: 100vh;
  padding: 48px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.budo-produccion-title {
  text-align: center;
  margin: 0 0 44px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.budo-produccion-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #ff3b3b, transparent);
}

/* Contenedor tipo "célula" */
.budo-network {
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 40px;
  background: radial-gradient(
    circle at center,
    #140000 0%,
    #000 65%,
    #000 100%
  );
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.18);
  overflow: visible;
}

/* Núcleo central (logo) con aro delgado */
.budo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.4) 0, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.budo-core-inner {
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 50%;
  background: #000;
  border: 2px solid #ff4b4b; /* aro fino */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.budo-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.budo-core-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #ff7777;
}

/* Nodos / Octágonos */
.budo-node {
  position: absolute;
  width: 150px;
  height: 150px;
  text-decoration: none;
  color: #ffffff;
  background: #130000;
  border: 1px solid rgba(255, 0, 0, 0.65);
  border-radius: 16px;
  clip-path: polygon(
    30% 0,
    70% 0,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0 70%,
    0 30%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  z-index: 2;
}

.budo-node:hover {
  border-color: #ff3b3b;
  background: #1d0000;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.55);
}

/* Contenido de cada nodo: animación de entrada */
.budo-node-content {
  text-align: center;
  padding: 12px;
  opacity: 0;
  transform: scale(0.85);
}

@keyframes node-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Delays para que entren en cascada */
.node-cartelera .budo-node-content {
  animation: node-in 0.6s ease-out 0.1s forwards;
}
.node-clientes .budo-node-content {
  animation: node-in 0.6s ease-out 0.2s forwards;
}
.node-erp .budo-node-content {
  animation: node-in 0.6s ease-out 0.3s forwards;
}
.node-peleadores .budo-node-content {
  animation: node-in 0.6s ease-out 0.4s forwards;
}
.node-pesaje .budo-node-content {
  animation: node-in 0.6s ease-out 0.5s forwards;
}
.node-proveedores .budo-node-content {
  animation: node-in 0.6s ease-out 0.6s forwards;
}
.node-store .budo-node-content {
  animation: node-in 0.6s ease-out 0.7s forwards;
}
.node-mobile .budo-node-content {
  animation: node-in 0.6s ease-out 0.8s forwards;
}

.budo-node i {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
  color: #ff3b3b;
}

.budo-node-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.budo-node-subtitle {
  display: block;
  font-size: 0.74rem;
  color: #d0d0d0;
}

/* Posición de cada nodo (desktop, alrededor del núcleo) */
.node-cartelera {
  /* arriba */
  top: 4%;
  left: 50%;
  transform: translate(-50%, 0);
}

.node-clientes {
  /* arriba-derecha */
  top: 18%;
  right: 5%;
}

.node-erp {
  /* derecha */
  top: 50%;
  right: -3%;
  transform: translate(0, -50%);
}

.node-peleadores {
  /* abajo-derecha */
  bottom: 18%;
  right: 5%;
}

.node-pesaje {
  /* abajo */
  bottom: 4%;
  left: 50%;
  transform: translate(-50%, 0);
}

.node-proveedores {
  /* abajo-izquierda */
  bottom: 18%;
  left: 5%;
}

.node-store {
  /* izquierda */
  top: 50%;
  left: -3%;
  transform: translate(0, -50%);
}

.node-mobile {
  /* arriba-izquierda */
  top: 18%;
  left: 5%;
}

/* Líneas de conexión (solo desktop) */
.budo-connector {
  position: absolute;
  height: 1.5px;
  opacity: 0.7;
  background: linear-gradient(
    to right,
    rgba(255, 0, 0, 0.5),
    rgba(255, 0, 0, 0.08)
  );
  transform-origin: left center;
  z-index: 1;
}

.connector-cartelera {
  top: 21%;
  left: 25%;
  width: 50%;
}

.connector-clientes {
  top: 31%;
  left: 53%;
  width: 30%;
  transform: rotate(22deg);
}

.connector-erp {
  top: 50%;
  left: 57%;
  width: 33%;
}

.connector-peleadores {
  bottom: 31%;
  left: 53%;
  width: 30%;
  transform: rotate(-22deg);
}

.connector-pesaje {
  bottom: 21%;
  left: 25%;
  width: 50%;
}

.connector-proveedores {
  bottom: 31%;
  left: 17%;
  width: 30%;
  transform: rotate(22deg);
}

.connector-store {
  top: 50%;
  left: 10%;
  width: 33%;
}

.connector-mobile {
  top: 31%;
  left: 17%;
  width: 30%;
  transform: rotate(-22deg);
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .budo-produccion-section {
    padding-top: 32px;
  }

  .budo-produccion-title {
    margin-bottom: 28px;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
  }

  .budo-network {
    width: 100%;
    max-width: 360px;
    aspect-ratio: auto;
    padding: 32px 0 40px;
    border-radius: 24px;
    background: #050000;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.25);
  }

  /* Línea vertical que conecta todo (tipo timeline) */
  .budo-network::before {
    content: "";
    position: absolute;
    top: 120px; /* empieza debajo del logo */
    bottom: 40px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
      180deg,
      rgba(255, 0, 0, 0.7),
      rgba(255, 0, 0, 0.1)
    );
    opacity: 0.7;
    z-index: 0;
  }

  /* Logo centrado arriba, sin transform raro */
  .budo-core {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
  }

  .budo-core-inner {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }

  .budo-core-label {
    bottom: -24px;
  }

  /* Ocultamos las líneas diagonales/horizontales del desktop */
  .budo-connector {
    display: none;
  }

  /* Nodos en UNA sola columna, conectados a la línea central */
  .budo-node {
    position: relative;
    margin: 16px auto;
    width: 100%;
    max-width: 240px;
    height: auto;
    padding: 16px 0;
  }

  .budo-node-content {
    padding: 10px;
  }

  /* Quitamos posiciones absolutas de desktop */
  .node-cartelera,
  .node-clientes,
  .node-erp,
  .node-peleadores,
  .node-pesaje,
  .node-proveedores,
  .node-store,
  .node-mobile {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }
}
