/* ============================================
   TRUST — Barra de confianza · sección 2
   Editorial: numeración display + hairline + ícono + título + sub
   ============================================ */

.trust {
  position: relative;
  background-color: var(--color-cream-light);
  color: var(--color-primary);
  padding: clamp(4rem, 7vw, 7rem) var(--space-gutter);
  overflow: hidden;
  isolation: isolate;
}

/* Hairline superior · marca el cambio de zona desde el hero oscuro */
.trust::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: clamp(120px, 14vw, 200px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
    transparent,
    rgba(184, 132, 47, 0.55),
    transparent);
}

.trust__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ────────── HEADER ────────── */
.trust__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.trust__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-coffee);
  margin-bottom: 0.85rem;
}
.trust__eyebrow-mark {
  font-size: 0.65em;
  color: var(--color-coffee-light);
}

.trust__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.4vw + 0.6rem, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  font-variation-settings: 'opsz' 96;
  text-wrap: balance;
  max-width: 22ch;
  margin: 0 auto;
}
.trust__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-coffee);
}

/* ────────── GRID ────────── */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ────────── PILAR ────────── */
.trust__pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(1.25rem, 2.2vw, 2.25rem);
  text-align: left;
}

/* Separadores verticales entre columnas (solo desktop) */
.trust__pillar + .trust__pillar::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 0;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(13, 36, 56, 0.10) 20%,
    rgba(13, 36, 56, 0.10) 80%,
    transparent);
}

.trust__number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.8vw + 1rem, 2.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-coffee);
  opacity: 0.65;
  font-variation-settings: 'opsz' 96;
  margin-bottom: 0.5rem;
}

.trust__rule {
  display: block;
  width: 28px;
  height: 1px;
  background-color: rgba(184, 132, 47, 0.55);
  margin-bottom: 1.4rem;
}

.trust__icon {
  width: 28px;
  height: 28px;
  color: var(--color-coffee);
  margin-bottom: 1rem;
  transition: transform 600ms var(--ease-out), color var(--dur-mid) var(--ease-out);
}

.trust__pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  font-variation-settings: 'opsz' 48;
  margin-bottom: 0.55rem;
}

.trust__pillar-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(13, 36, 56, 0.72);
  margin: 0;
  text-wrap: pretty;
  max-width: 26ch;
}

/* Hover: ícono se eleva ligeramente */
@media (hover: hover) {
  .trust__pillar:hover .trust__icon {
    transform: translateY(-3px);
    color: var(--color-coffee-light);
  }
}

/* ────────── RESPONSIVE ────────── */
@media (max-width: 980px) {
  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.75rem;
    column-gap: 0;
  }
  /* Quitar separadores verticales irregulares · re-pintar en col par */
  .trust__pillar + .trust__pillar::after { display: none; }
  .trust__pillar:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: 8%; right: 0; bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg,
      transparent,
      rgba(13, 36, 56, 0.10) 20%,
      rgba(13, 36, 56, 0.10) 80%,
      transparent);
  }
}

@media (max-width: 600px) {
  .trust__grid {
    grid-template-columns: 1fr;
    row-gap: 2.25rem;
  }
  .trust__pillar:nth-child(odd)::after { display: none; }
  .trust__pillar {
    padding: 0;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid rgba(13, 36, 56, 0.08);
  }
  .trust__pillar:last-child { border-bottom: none; padding-bottom: 0; }
  .trust__pillar-sub { max-width: 38ch; }
}
