.processes {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.process-card {
  min-width: 220px;  /* <-- Reduce el ancho mínimo */
  max-width: 240px;  /* <-- Reduce el ancho máximo */
  flex: 0 0 auto;
  background: var(--neutral-light);
  border: 1px solid var(--soft-gray);
  border-top: 4px solid var(--primary-green);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  text-align: left;
  margin-bottom: 2rem;
  scroll-snap-align: center;
  transition: transform 0.2s;
}

.process-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: 260px;
  max-height: 260px;
  object-fit: contain;
  border-radius: 18px 18px 0 0;
  display: block;
  background: var(--soft-green);
}


.process-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.process-desc {
  padding: 1.2rem 1rem 1.5rem 1rem;
}

.process-desc h3 {
  margin-bottom: 0.3em;
  font-size: 1.15rem;
  color: var(--primary-pink);
}

.process-desc ul {
  margin: 0.7em 0 0 1.1em;
  padding: 0;
  font-size: 0.98em;
}

.processes-carousel {
  position: relative;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0; /* Quita el padding aquí */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.proc-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  padding: 0 40px; /* <-- Agrega padding lateral */
  scrollbar-width: auto; /* Firefox */
  -ms-overflow-style: auto;  /* IE 10+ */
}

.proc-track::-webkit-scrollbar {
  height: 8px;
  background: #eee;
}
.proc-track::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 4px;
}


.proc-btn {
  display: none;
  background: var(--primary-pink);
}



@media (max-width: 700px) {
  .processes {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .process-card {
    width: 96vw;
    max-width: 370px;
    min-width: 92vw;
  }
  .process-card img {
    display: block;
    margin: 0 auto; /* Centra la imagen horizontalmente */
    width: auto;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--soft-green);
    border-radius: 18px 18px 0 0;
  }
  
  .processes-carousel {
    max-width: 98vw;
    padding: 0;
  }
  .proc-track {
    gap: 0.7rem;
  }
  .proc-btn {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-pink);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0.9;
    cursor: pointer;
    transition: background 0.2s;
  }
  .proc-btn:hover {
    background: var(--soft-pink);
  }
  .proc-btn.prev { left: 2px; }
  .proc-btn.next { right: 2px; }
}
