/* ==================== TIMELINE V2 - FONDO NEGRO ==================== */

.timeline-section {
  background: #1f2937;
  color: #ffffff;
  padding: 120px 0;  /* Aumentado de 100px */
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .timeline-section {
    padding: 60px 0;
  }
}

/* Header */
.timeline-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.timeline-badge {
  display: inline-block;
  background: rgba(255,102,0,0.08) !important;
  color: #FF6600 !important;
  padding: 6px 16px !important;
  border-radius: 50px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 20px !important;
}

.timeline-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.timeline-header .subtitle {
  font-size: 1.25rem;
  color: #d1d5db;
  line-height: 1.6;
}

/* ==================== LÍNEA CONECTORA ==================== */

.timeline-line {
  position: absolute;
  top: 320px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #ff7700 15%, 
    #ff7700 85%, 
    transparent 100%
  );
  z-index: 1;
}

/* ==================== STEPS GRID ==================== */

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ==================== STEP CARD ==================== */

.timeline-step {
  background: #ffffff;
  border: 3px solid #ff7700;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step:hover {
  transform: translateY(-16px);
  box-shadow: 0 24px 60px rgba(255, 119, 0, 0.4);
  border-color: #ff9933;
}

/* Número del paso */
.step-numero {
  width: 80px;
  height: 80px;
  background: transparent;
  /* Gradiente azul-ámbar para el texto */
  background: linear-gradient(135deg, #38BDF8 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 4px solid;
  border-image: linear-gradient(135deg, #38BDF8 0%, #F59E0B 100%) 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin: -60px auto 24px;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

/* Timing badge - GRIS por defecto */
.step-timing {
  display: inline-block;
  background: #374151;
  color: #d1d5db;
  border: 1px solid #4b5563;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Título */
.step-titulo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Copy */
.step-copy {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Bullets */
.step-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.step-bullets li {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}

.step-bullets li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}

/* Link especial */
.step-link {
  display: inline-block;
  color: #ff7700;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid #ff7700;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.step-link:hover {
  color: #ff9933;
  border-color: #ff9933;
}

/* Badge Team - ÚNICO EN NARANJA */
.step-badge-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff7700;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 8px;
}

.team-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  flex-shrink: 0;
}

/* Success Badge */
.step-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d1fae5;
  color: #065f46;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 8px;
}

.success-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-green-dark);  /* Verde oscuro */
  flex-shrink: 0;
}

/* ==================== CTA BOTTOM ==================== */

.timeline-cta {
  text-align: center;
  margin-top: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.timeline-cta > p {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 32px;
}

.btn-timeline-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff7700 0%, #fbbf24 100%);
  color: #1f2937;
  padding: 18px 48px;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(255, 119, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-timeline-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 119, 0, 0.6);
}

.cta-nota {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: #9ca3af;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
  .timeline-section {
    padding: 80px 0;
  }

  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }

  .timeline-line {
    display: none;
  }

  .timeline-header h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .timeline-section {
    padding: 60px 0;
  }

  .timeline-header {
    margin-bottom: 50px;
  }

  .timeline-header h2 {
    font-size: 2rem;
  }

  .timeline-header .subtitle {
    font-size: 1.125rem;
  }

  .timeline-steps {
    gap: 30px;
    padding: 0 16px;
  }

  .timeline-step {
    padding: 30px 24px;
  }

  .step-numero {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin: -50px auto 20px;
  }

  .step-titulo {
    font-size: 1.25rem;
  }

  .step-copy {
    font-size: 0.875rem;
  }

  .step-bullets li {
    font-size: 0.8125rem;
  }

  .timeline-cta h3 {
    font-size: 1.75rem;
  }

  .btn-timeline-primary {
    padding: 16px 36px;
    font-size: 1.125rem;
  }
}
