/* ================================================================
   GARANTÍA
   ================================================================ */
.garantia {
  background: var(--color-primary);
  padding-block: var(--section-gap);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.garantia__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Mismo velo navy que el hero (.hero__slider-overlay): la foto se ve
   como textura de fondo sin competir con el texto ni con el "1 AÑO". */
.garantia::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 8, 80, 0.65);
}

.garantia__bg-text {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent), var(--color-accent-alt));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.22;
}

.garantia__inner { position: relative; z-index: 1; }

.garantia__copy {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
  text-align: center;
}
.garantia__copy h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-lg);
}
.garantia__body {
  color: rgba(255,255,255,0.75);
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

.garantia__proceso {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.garantia__paso {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 80px;
}
.garantia__paso span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-align: center;
  letter-spacing: 0.03em;
}

.garantia__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  background: var(--color-accent-alt);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.garantia__icon svg { width: 40px; height: 40px; }

/* Los pasos son hijos 1,3,5,7,9 de .garantia__proceso (alternan con
   .garantia__linea) — se cicla el color de marca entre ellos */
.garantia__paso:nth-child(1) .garantia__icon { background: var(--color-secondary); }
.garantia__paso:nth-child(3) .garantia__icon { background: var(--color-accent); }
.garantia__paso:nth-child(5) .garantia__icon { background: var(--color-accent-alt); }
.garantia__paso:nth-child(7) .garantia__icon { background: var(--color-secondary); }
.garantia__paso:nth-child(9) .garantia__icon { background: var(--color-accent); }

.garantia__linea {
  flex: 1;
  height: 0;
  border-top: 1.5px dashed var(--color-accent-alt);
  opacity: 0.6;
  min-width: 20px;
  margin-top: 40px;
  align-self: flex-start;
}

@media (max-width: 959px) {
  .garantia__proceso { gap: var(--space-sm); }
  .garantia__paso span { font-size: 11px; }
}

@media (max-width: 719px) {
  /* Fila de 5 íconos (80px) no cabe en tablet/móvil — grid de 2 */
  .garantia__proceso {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-md);
  }
  .garantia__linea { display: none; }
  .garantia__icon { width: 56px; height: 56px; }
  .garantia__icon svg { width: 28px; height: 28px; }

  /* "1 AÑO" de fondo: el tamaño mínimo del clamp() lo hace desproporcionado en pantallas angostas */
  .garantia__bg-text { display: none; }
}
