/* Sección 6 · Cerámica aprobada. El recorrido se lee completo sin JavaScript. */
.process-section {
  --process-paper: #f7f3eb;
  --process-wine: #72182c;
  background: var(--process-paper);
  color: var(--process-wine);
  scroll-margin-top: 64px;
  padding-top: clamp(76px, 8vw, 112px);
  padding-bottom: clamp(68px, 8vw, 112px);
}
.process-section .wrap { max-width: 1080px; }
.process-heading { text-align: center; }
.process-heading .eyebrow { margin: 0 auto 28px; }
.process-heading h2 {
  max-width: none;
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .98;
}
.process-heading h2 span {
  display: block;
  margin-top: 22px;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.process-path { list-style: none; margin: 50px 0 0; padding: 0; }
.process-step {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
  align-items: center;
  min-height: 460px;
  padding: 24px 0 36px;
}
/* El trazo cruza el centro de cada número y continúa entre los pasos. */
.process-step::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 40px);
  width: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 340' preserveAspectRatio='none'%3E%3Cpath d='M40 0 C110 75 -30 265 40 340' fill='none' stroke='%2372182c' stroke-opacity='.3' stroke-width='1.5' stroke-dasharray='3 7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.process-step:first-child::before { clip-path: inset(50% 0 0); }
.process-step:last-of-type::before { clip-path: inset(0 0 50%); }
.process-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--process-wine);
  border-radius: 50%;
  background: var(--process-paper);
  box-shadow: 0 0 0 9px var(--process-paper);
  font-size: .9rem;
  font-family: Arial, sans-serif;
  font-weight: 500;
  letter-spacing: .03em;
  z-index: 1;
  transition: transform .22s ease, background-color .22s ease, color .22s ease;
}
.process-step.is-active .process-number {
  background: var(--process-wine);
  color: var(--process-paper);
  font-weight: 900;
  transform: translate(-50%, -50%) scale(2);
}
.process-content {
  grid-column: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  min-width: 0;
  width: 100%;
}
.process-step:nth-child(even) .process-content { grid-column: 3; }
.process-art {
  width: min(100%, 320px);
}
.process-art img { display: block; width: 100%; height: auto; }
.process-copy { width: min(100%, 380px); text-align: center; }
.process-copy h3 {
  max-width: 23ch;
  margin: 0 auto;
  font: 400 clamp(1.8rem, 3vw, 2.7rem)/1.14 BloomSerif, Georgia, serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .process-section { padding-left: 20px; padding-right: 20px; }
  .process-heading h2 { font-size: clamp(3.5rem, 14vw, 5.5rem); }
  .process-heading h2 span { font-size: clamp(2.2rem, 9.4vw, 3.4rem); margin-top: 20px; }
  .process-path { margin-top: 40px; }
  .process-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 19px;
    min-height: 0;
    padding: 18px 0 40px;
  }
  .process-step::before {
    left: 21px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, #72182c55 0 3px, transparent 3px 10px);
  }
  .process-step:first-child::before { clip-path: inset(45px 0 0); }
  .process-step:last-of-type::before { clip-path: inset(0 0 calc(100% - 45px)); }
  .process-number { top: 45px; left: 22px; width: 38px; height: 38px; font-size: .78rem; box-shadow: 0 0 0 7px var(--process-paper); }
  .process-content, .process-step:nth-child(even) .process-content { grid-column: 2; gap: 20px; }
  .process-art { width: min(100%, 300px); }
  .process-copy { width: min(100%, 330px); }
  .process-copy h3 { max-width: 20ch; font-size: clamp(1.65rem, 6.2vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .process-section { scroll-behavior: auto; }
  .process-number { transition: none; }
}
