/* ============================================================
   Bloque: proceso  (código original del widget HTML de Elementor)
   ============================================================ */
:root {
  --color-primary: #19ff00;
  --color-bg-dark: #0a0a0a;
  --color-text-white: #ffffff;
  --color-text-secondary: #b0b0b0;
  --color-card-bg: rgba(20, 20, 20, 0.6);
}

/* ══════════════════════════════════════════════════════════════
   TUTTE PROCESO - ESTILOS COMPLETOS
   ══════════════════════════════════════════════════════════════ */

.tutte-proceso {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.tutte-proceso-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1.6rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tutte-proceso-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.tutte-proceso-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-white);
  margin: 0 0 4.5rem 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.tutte-proceso-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.tutte-proceso-title .tutte-proceso-light {
  font-weight: 300;
  color: var(--color-text-secondary);
  font-family: 'Inter', sans-serif;
}

.tutte-proceso-title .tutte-proceso-accent {
  color: var(--color-primary);
  font-weight: 700;
  font-family: 'Asimovian', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ── Steps row ── */
.tutte-proceso-steps {
  display: flex;
  gap: 1.6rem;
  position: relative;
  flex-wrap: wrap;
}

/* ── Connector line between circles ── */
.tutte-proceso-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 56px;
  right: 56px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(25, 255, 0, 0.25) 0,
    rgba(25, 255, 0, 0.25) 6px,
    transparent 6px,
    transparent 12px
  );
  z-index: 0;
}

/* Animated pulse traveling the connector */
.tutte-proceso-steps::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 56px;
  width: 60px;
  height: 7px;
  background: linear-gradient(90deg, transparent, rgba(25, 255, 0, 0.5), transparent);
  border-radius: 4px;
  filter: blur(2px);
  z-index: 0;
  animation: tuttePulseTravel 4s ease-in-out infinite;
}

@keyframes tuttePulseTravel {
  0% { left: 56px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 116px); opacity: 0; }
}

/* ── Single step ── */
.tutte-proceso-step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tutte-proceso-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.tutte-proceso-step:nth-child(1) { transition-delay: 0s; }
.tutte-proceso-step:nth-child(2) { transition-delay: 0.1s; }
.tutte-proceso-step:nth-child(3) { transition-delay: 0.2s; }
.tutte-proceso-step:nth-child(4) { transition-delay: 0.3s; }
.tutte-proceso-step:nth-child(5) { transition-delay: 0.4s; }

/* Number circle */
.tutte-proceso-num {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(25, 255, 0, 0.2);
  background: rgba(25, 255, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary);
  margin: 0 auto 1.8rem;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ambient pulse ring on numbers */
.tutte-proceso-num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(25, 255, 0, 0.15);
  animation: tutteRingPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.tutte-proceso-step:nth-child(1) .tutte-proceso-num::before { animation-delay: 0s; }
.tutte-proceso-step:nth-child(2) .tutte-proceso-num::before { animation-delay: 0.5s; }
.tutte-proceso-step:nth-child(3) .tutte-proceso-num::before { animation-delay: 1s; }
.tutte-proceso-step:nth-child(4) .tutte-proceso-num::before { animation-delay: 1.5s; }
.tutte-proceso-step:nth-child(5) .tutte-proceso-num::before { animation-delay: 2s; }

@keyframes tutteRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.25); opacity: 0; }
}

.tutte-proceso-step:hover .tutte-proceso-num {
  background: rgba(25, 255, 0, 0.15);
  border-color: rgba(25, 255, 0, 0.4);
  transform: scale(1.14);
  box-shadow: 0 0 24px rgba(25, 255, 0, 0.3);
}

.tutte-proceso-step:hover .tutte-proceso-num::before {
  animation: none;
  opacity: 0;
}

/* Step content box */
.tutte-proceso-content {
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(25, 255, 0, 0.1);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 140px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scanline texture on cards */
.tutte-proceso-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(25, 255, 0, 0.015) 3px,
    rgba(25, 255, 0, 0.015) 4px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Bottom accent line */
.tutte-proceso-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tutte-proceso-step:hover .tutte-proceso-content {
  background: rgba(25, 25, 25, 0.8);
  border-color: rgba(25, 255, 0, 0.2);
  box-shadow: 0 8px 32px rgba(25, 255, 0, 0.1);
}

.tutte-proceso-step:hover .tutte-proceso-content::before {
  opacity: 1;
}

.tutte-proceso-step:hover .tutte-proceso-content::after {
  transform: scaleX(1);
}

/* Step title */
.tutte-proceso-step h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-text-white);
  margin: 0 0 0.6rem 0;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.tutte-proceso-step:hover h4 {
  color: var(--color-primary);
}

/* Step text */
.tutte-proceso-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */

@media (max-width: 1200px) {
  .tutte-proceso-steps {
    gap: 1.4rem;
  }
}

@media (max-width: 900px) {
  .tutte-proceso-steps {
    flex-direction: column;
    gap: 1.8rem;
  }

  /* Connector becomes vertical */
  .tutte-proceso-steps::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(
      180deg,
      rgba(25, 255, 0, 0.25) 0,
      rgba(25, 255, 0, 0.25) 6px,
      transparent 6px,
      transparent 12px
    );
  }

  .tutte-proceso-steps::after {
    top: 0;
    left: calc(50% - 3px);
    width: 7px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(25, 255, 0, 0.5), transparent);
    animation: tuttePulseTravelV 4s ease-in-out infinite;
  }

  @keyframes tuttePulseTravelV {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 60px); opacity: 0; }
  }

  .tutte-proceso-step {
    flex-direction: column;
    align-items: center;
  }

  .tutte-proceso-num {
    flex-shrink: 0;
    margin: 0 0 1.2rem 0;
    width: 48px;
    height: 48px;
    font-size: 0.8rem;
  }

  .tutte-proceso-content {
    text-align: center;
    padding: 1.4rem;
    height: 140px;
  }

  .tutte-proceso-step h4 {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .tutte-proceso-label {
    font-size: 0.65rem;
  }

  .tutte-proceso-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .tutte-proceso-steps {
    gap: 1.4rem;
  }

  .tutte-proceso-num {
    width: 44px;
    height: 44px;
    font-size: 0.75rem;
    margin: 0 0 1rem 0;
  }

  .tutte-proceso-content {
    padding: 1.2rem;
    height: 140px;
  }

  .tutte-proceso-step h4 {
    font-size: 0.9rem;
  }

  .tutte-proceso-step p {
    font-size: 0.8rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .tutte-proceso-label,
  .tutte-proceso-title,
  .tutte-proceso-step {
    opacity: 1;
    transform: none;
  }

  .tutte-proceso-content {
    transition: border-color 0.3s ease;
  }

  .tutte-proceso-num::before {
    animation: none;
    opacity: 0;
  }

  .tutte-proceso-steps::after {
    animation: none;
    opacity: 0;
  }
}
