
/* =========================================
   AXOMYR — CÓMO TRABAJAMOS
   ========================================= */

.process-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.6rem, 5vw, 4.4rem);
  background: #f8f1e5;
}

/* Decoración */

.process-section::before,
.process-section::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.process-section::before {
  width: 31rem;
  height: 14rem;
  top: -9rem;
  left: -12rem;
  border: 1px solid rgba(181, 138, 66, .28);
  box-shadow: 0 0 0 2.4rem rgba(181, 138, 66, .035);
  transform: rotate(18deg);
}

.process-section::after {
  width: 24rem;
  height: 18rem;
  right: -12rem;
  bottom: -11rem;
  border: 1px solid rgba(29, 74, 59, .18);
  box-shadow: 0 0 0 3rem rgba(29, 74, 59, .025);
  transform: rotate(-24deg);
}

.process-section .container {
  position: relative;
}

/* Encabezado */

.process-heading {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.process-heading h2 {
  margin: 0;
  color: var(--color-forest);
  font-size: clamp(2rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.process-heading > p:last-child {
  max-width: 31rem;
  margin: .65rem auto 0;
  color: var(--color-muted);
  font-size: .94rem;
  line-height: 1.5;
}

/* Grid y tarjetas */

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  min-width: 0;
  min-height: 11.5rem;
  padding: 1.15rem;
  border: 1px solid #e4d6bc;
  border-radius: 1.15rem;
  background: #fffdf8;
  box-shadow: 0 .65rem 1.35rem rgba(85, 65, 33, .09);
  transition: transform .2s ease, box-shadow .2s ease;
}

.process-list li:hover {
  box-shadow: 0 .9rem 1.65rem rgba(85, 65, 33, .14);
  transform: translateY(-.2rem);
}

/* Encabezado de tarjetas */

.process-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}

/* Selector específico para evitar home-v3.css */

.process-list .process-icon {
  display: grid;
  flex: 0 0 3.65rem;
  width: 3.65rem;
  height: 3.65rem;
  place-items: center;
  border: 1px solid #ead6a7;
  border-radius: 50%;
  background: #f7ebd2;
  color: var(--color-forest);
  font-size: inherit;
  letter-spacing: normal;
}

.process-icon img {
  display: block;
  width: 2.85rem;
  height: 2.85rem;
  object-fit: contain;
}

/* Números realmente centrados */

.process-list .process-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 1.5px solid #cfa85b;
  border-radius: 50%;
  background: #fffaf0;
  color: #9b7029;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

/* Textos */

.process-list h3 {
  margin: 1rem 0 .45rem;
  color: var(--color-forest);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.2;
}

.process-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: .78rem;
  line-height: 1.4;
}

/* =========================================
   FLECHAS — DISEÑO BASE
   ========================================= */

.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 5;
  display: none;
  width: 1.5rem;
  height: 1.5rem;
  box-sizing: border-box;
  border: 1.5px solid #cfa85b;
  border-radius: 50%;
  background-color: #fffdf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='%23A47729' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  box-shadow: 0 2px 5px rgba(85, 65, 33, .08);
}

/* =========================================
   DESKTOP — 4 TARJETAS EN FILA
   ========================================= */

@media (min-width: 75rem) {

  .process-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .process-list li {
    z-index: 1;
    min-height: 12rem;
    padding: 1.25rem;
  }

  .process-list li:not(:last-child)::after {
    display: block;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
  }
}

/* =========================================
   AJUSTES MÓVIL Y TABLET
   ========================================= */

@media (max-width: 52rem) {

  .process-section {
    padding-block: 2.25rem;
  }

  .process-heading {
    margin-bottom: 1.35rem;
  }

  .process-heading h2 {
    font-size: 1.9rem;
  }

  .process-heading > p:last-child {
    font-size: .88rem;
  }

  .process-list li {
    min-height: 11rem;
    padding: .9rem;
  }

  .process-list .process-icon {
    flex-basis: 3rem;
    width: 3rem;
    height: 3rem;
  }

  .process-icon img {
    width: 2.35rem;
    height: 2.35rem;
  }

  .process-list h3 {
    margin-top: .8rem;
    font-size: .9rem;
  }

  .process-list p {
    font-size: .74rem;
  }
}

/* =========================================
   RECORRIDO 2x2

      01 → 02
       ↙───┘
      03 → 04
   ========================================= */

@media (min-width: 18.75rem) and (max-width: 74.9375rem) {

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    column-gap: 1.5rem;
    row-gap: 4.25rem;
  }

  .process-list li {
    z-index: 1;
  }

  /* Flechas entre 01-02 y 03-04 */

  .process-list li:nth-child(1)::after,
  .process-list li:nth-child(3)::after {
    display: block;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
  }

  /* Curva entre 02 y 03 */

  
/* Flecha curva del paso 02 al 03 */


/* Conexión 02 → 03: curva uniforme */

.process-list::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(50% - 2.125rem);
  left: 0;
  width: 100%;
  height: 4.25rem;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M750 0 V12 Q750 52 660 52 H340 Q250 52 250 88 V96' fill='none' stroke='%23B58A42' stroke-width='2.5' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M238 83 L250 97 L262 83' fill='none' stroke='%23B58A42' stroke-width='2.5' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}


}

/* =========================================
   PANTALLAS MUY ESTRECHAS
   ========================================= */

@media (max-width: 18.6875rem) {

  .process-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-list li {
    min-height: 0;
  }

  .process-list li:not(:last-child)::after {
    display: block;
    bottom: -1.75rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
}

/* =========================================
   ACCESIBILIDAD
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  .process-list li {
    transition: none;
  }
}
