/*--------------------------------------------
  VARIABLES
--------------------------------------------*/
:root {
  --bg-light:        #090A20;
  --bg-dark:         #000000;
  --card-bg:         #ffffffb6;
  --card-bg-dark:    #333333;
  --primary:         #CF621B;
  --primary-light:   rgba(207, 98, 27, .1);
  --primary-dark:    #A14B17;
  --text-dark:       #fff;
  --text-light:      #FFFFFF;
  --text-muted:      #2f2d2d;
  --shadow-soft:     0 2px 8px rgba(0,0,0,0.1);
  --shadow-soft-dark:0 2px 8px rgba(0,0,0,0.5);
  --shadow-medium:   0 4px 16px rgba(0,0,0,0.15);
  --transition:      transform .3s ease, box-shadow .3s ease;
}

/*--------------------------------------------
  SECCIÓN PROCESO – LAYOUT Y ESTILOS
--------------------------------------------*/
.proceso-section {
  padding: 7rem 0;
  background: #090A20;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

body.dark .proceso-section {
  background: #000000;
}

.proceso-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(207, 98, 27, 0.1) 0%, transparent 50%);
  opacity: 0.3;
  z-index: 0;
  transition: opacity 0.3s ease;
}

body.dark .proceso-section::before {
  opacity: 0.2;
}

.proceso-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.proceso-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 4rem;
  color: #CF621B;
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

body.dark .proceso-title {
  color: #CF621B;
}

.proceso-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #CF621B, transparent);
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
}

.proceso-item {
  background: linear-gradient(145deg, rgba(25, 26, 58, 0.8), rgba(15, 16, 38, 0.8));
  padding: 2.5rem 1.8rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(207, 98, 27, 0.2);
  opacity: 0;
  transform: translateY(30px);
}

body.dark .proceso-item {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9), rgba(10, 10, 10, 0.9));
  border: 1px solid rgba(207, 98, 27, 0.3);
  box-shadow: 0 8px 20px rgba(207, 98, 27, 0.1);
}

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

.proceso-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(207, 98, 27, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.dark .proceso-item::before {
  background: linear-gradient(135deg, rgba(207, 98, 27, 0.15) 0%, transparent 70%);
}

.proceso-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(207, 98, 27, 0.25);
  border-color: rgba(207, 98, 27, 0.4);
}

body.dark .proceso-item:hover {
  box-shadow: 0 15px 30px rgba(207, 98, 27, 0.3);
  border-color: rgba(207, 98, 27, 0.5);
}

.proceso-item:hover::before {
  opacity: 1;
}

.proceso-icon-wrapper {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, rgba(207, 98, 27, 0.1), rgba(207, 98, 27, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.dark .proceso-icon-wrapper {
  background: linear-gradient(145deg, rgba(207, 98, 27, 0.15), rgba(207, 98, 27, 0.1));
  box-shadow: 0 5px 15px rgba(207, 98, 27, 0.1);
}

.proceso-icon {
  font-size: 2.2rem;
  color: #CF621B;
  transition: all 0.4s ease;
}

body.dark .proceso-icon {
  color: #CF621B;
}

.proceso-item:hover .proceso-icon-wrapper {
  background: linear-gradient(145deg, #CF621B, #E9722C);
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(207, 98, 27, 0.35);
}

body.dark .proceso-item:hover .proceso-icon-wrapper {
  box-shadow: 0 8px 20px rgba(207, 98, 27, 0.4);
}

.proceso-item:hover .proceso-icon {
  color: white;
  transform: scale(1.1);
}

.proceso-item h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  font-weight: 600;
  transition: color 0.3s ease;
}

body.dark .proceso-item h3 {
  color: #CF621B;
}

.proceso-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #CF621B;
  transition: width 0.4s ease;
}

.proceso-item:hover h3::after {
  width: 70px;
}

.proceso-item p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

body.dark .proceso-item p {
  color: rgba(207, 98, 27, 0.9);
}

.proceso-step {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 40px;
  height: 40px;
  background: #CF621B;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(207, 98, 27, 0.4);
  z-index: 2;
}

body.dark .proceso-step {
  box-shadow: 0 5px 15px rgba(207, 98, 27, 0.5);
}

/* Línea conectadora entre items */
.proceso-connector {
  position: absolute;
  top: 45%;
  right: -20%;
  width: 20%;
  height: 2px;
  background: linear-gradient(90deg, rgba(207, 98, 27, 0.5), transparent);
  z-index: -1;
}

body.dark .proceso-connector {
  background: linear-gradient(90deg, rgba(207, 98, 27, 0.7), transparent);
}

.proceso-item:last-child .proceso-connector {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .proceso-connector {
    display: none;
  }
}

@media (max-width: 992px) {
  .proceso-title {
    font-size: 2.4rem;
    margin-bottom: 3rem;
  }
  
  .proceso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .proceso-item {
    padding: 2.2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .proceso-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .proceso-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .proceso-item {
    padding: 2rem 1.2rem;
    width: 100%;
  }
  
  .proceso-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .proceso-icon {
    font-size: 1.8rem;
  }
}

/* Animación de aparición escalonada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de pulso al hacer hover */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(207, 98, 27, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(207, 98, 27, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(207, 98, 27, 0);
  }
}

.proceso-item:active {
  animation: pulse 0.5s;
}

body.dark .proceso-item:active {
  animation: pulse 0.5s;
}