/* --- Variables y Fondo de la Sección --- */

.process-section {
  position: relative;
  width: 100%;
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Resplandores suaves para dar profundidad al fondo claro */

.glow-orb-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(74, 144, 226, 0.15);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(150, 120, 255, 0.1);
  bottom: -50px;
  right: -50px;
}

.process-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* --- Tipografía --- */

.pre-title-process {
  display: inline-block;
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-title-process {
  color: #1a1a1a;
  font-size: 2.8rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

/* --- Estructura del Timeline --- */

.timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 30px;
}

/* Línea vertical conectora */

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 45px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.4), rgba(37, 99, 235, 0.1));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 30px;
}

/* --- Círculo con el Número --- */

.timeline-dot {
  position: absolute;
  left: 0;
  top: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #7ca317;
  color: #9cc62d;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: #7ca317;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* --- Tarjeta de Cristal Claro (Glassmorphism) --- */

.timeline-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(37, 99, 235, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

/* --- Cabecera del Paso (Clickable) --- */

.step-header {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  gap: 15px;
  user-select: none;
}

/* Espacio para el Icono */

.step-icon-box {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px dashed rgba(37, 99, 235, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Estilo para cuando insertes tu imagen real */

.step-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Placeholder temporal (puedes borrar esto al poner tu imagen) */

.icon-placeholder {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.3);
}

.timeline-item:hover .step-icon-box {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.5);
}

/* Título del Paso */

.step-title {
  color: #1a1a1a;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.timeline-item:hover .step-title {
  color: #7ca317;
}

/* Flecha indicadora (Chevron) */

.step-chevron {
  color: #8898aa;
  transition: transform 0.4s ease, color 0.3s ease;
  display: flex;
  align-items: center;
}

/* --- Cuerpo del Paso (Descripción) --- */

.step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
  padding: 0 25px;
}

.step-description {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
}

/* --- Estado Activo (Acordeón abierto) --- */

.timeline-item.active .step-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.timeline-item.active .step-body {
  max-height: 200px;
}

.timeline-item.active .timeline-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), 0 0 30px rgba(37, 99, 235, 0.1);
}

/* --- Animaciones de Entrada (Scroll Reveal) --- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

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

@media (max-width: 768px) {
  .section-title-process {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .timeline {
    padding-left: 15px;
  }
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
}

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

@media (max-width: 768px) {
  .timeline-dot {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .step-header {
    padding: 15px;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .step-icon-box {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  .step-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .step-body {
    padding: 0 15px;
  }
}

