/* ==================================================
   SECCIÓN 04 · BENEFICIOS
================================================== */

.benefits-section {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(19, 131, 128, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

/* ==================================================
   GRID
================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ==================================================
   TARJETA
================================================== */

.benefit-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 35, 39, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(10, 42, 48, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  isolation: isolate;
}

.benefit-card::before {
  position: absolute;
  top: -90px;
  right: -90px;
  z-index: -1;
  width: 190px;
  height: 190px;
  content: "";
  background: radial-gradient(
    circle,
    rgba(19, 131, 128, 0.14),
    transparent 68%
  );
  border-radius: 50%;
  transition: transform 0.35s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(19, 131, 128, 0.22);
  box-shadow: 0 26px 65px rgba(10, 42, 48, 0.14);
}

.benefit-card:hover::before {
  transform: scale(1.12);
}

/* ==================================================
   ICONO
================================================== */

.benefit-card__icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
  padding: 14px;
  background: linear-gradient(
    145deg,
    rgba(19, 131, 128, 0.11),
    rgba(208, 118, 2, 0.08)
  );
  border: 1px solid rgba(19, 131, 128, 0.12);
  border-radius: 24px;
}

.benefit-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ajuste específico para el logo principal */
.benefit-card:first-child .benefit-card__icon {
  width: 110px;
  padding: 10px;
}

.benefit-card:first-child .benefit-card__icon img {
  object-fit: contain;
}

/* ==================================================
   TEXTO
================================================== */

.benefit-card h3 {
  margin: 0;
  color: var(--ink, #122327);
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.benefit-card p {
  margin: 16px 0 0;
  color: var(--muted, #5d6c70);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ==================================================
   VARIACIÓN VISUAL
================================================== */

.benefit-card:nth-child(2n) .benefit-card__icon {
  background: linear-gradient(
    145deg,
    rgba(208, 118, 2, 0.1),
    rgba(19, 131, 128, 0.08)
  );
}

.benefit-card:nth-child(3n) {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(233, 247, 246, 0.88)
    );
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 960px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card {
    min-height: 310px;
  }
}

/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .benefit-card {
    min-height: auto;
    padding: 28px 24px;
    border-radius: 22px;
  }

  .benefit-card__icon {
    width: 76px;
    height: 76px;
    margin-bottom: 22px;
    border-radius: 20px;
  }

  .benefit-card:first-child .benefit-card__icon {
    width: 96px;
  }

  .benefit-card h3 {
    font-size: 1.3rem;
  }

  .benefit-card p {
    font-size: 0.95rem;
  }
}

/* ==================================================
   ACCESIBILIDAD
================================================== */

@media (prefers-reduced-motion: reduce) {
  .benefit-card,
  .benefit-card::before {
    transition-duration: 0.01ms !important;
  }
}