/**
 * Estilos Rediseñados de Alta Elegancia: Card de Beneficios / Servicios Kidney Care
 * Kidney Care San Martín Child Theme
 * Estética médica de vanguardia, acabados clínicos, profundidad lumínica y tipografía institucional.
 */

.kc-benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
  border-radius: 22px;
  padding: 46px 32px 42px 32px;
  background: linear-gradient(145deg, #008484 0%, #00638C 48%, #004694 100%);
  box-shadow: 0 16px 38px -6px rgba(0, 60, 120, 0.22),
              0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.4s ease,
              background 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

/* Efecto de resplandor esférico interior elegante */
.kc-benefit-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -50%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.16) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 0;
}

/* Micro-línea superior luminosa */
.kc-benefit-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  opacity: 0.8;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.kc-benefit-card:hover,
.kc-benefit-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px -8px rgba(0, 48, 100, 0.34),
              0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  outline: none;
}

.kc-benefit-card:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

.kc-benefit-card:hover::after {
  opacity: 1;
}

/* 1. Icon / Media Wrapper & Box (Insignia Circular de Lujo) */
.kc-benefit-card__icon-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 26px;
  width: 100%;
}

.kc-benefit-card__icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14), 
              0 12px 28px rgba(0, 20, 50, 0.18);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease, 
              background-color 0.4s ease;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Insignia con esquinas redondeadas cuando se selecciona 'rounded' */
.kc-benefit-card__icon-box.kc-badge--rounded {
  border-radius: 22px;
}

.kc-benefit-card:hover .kc-benefit-card__icon-box {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 0 11px rgba(255, 255, 255, 0.22), 
              0 18px 36px rgba(0, 20, 50, 0.24);
}

/* Icon */
.kc-benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  color: var(--kc-accent, #008B8B);
  transition: color 0.35s ease, transform 0.35s ease, fill 0.35s ease;
}

.kc-benefit-card__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: fill 0.35s ease, transform 0.35s ease;
  display: block;
}

.kc-benefit-card:hover .kc-benefit-card__icon {
  color: var(--kc-primary, #004B9B);
  transform: scale(1.08);
}

.kc-benefit-card:hover .kc-benefit-card__icon svg {
  fill: currentColor;
}

/* Image */
.kc-benefit-card__img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.kc-benefit-card:hover .kc-benefit-card__img {
  transform: scale(1.08);
}

/* 2. Title */
.kc-benefit-card__title {
  position: relative;
  z-index: 2;
  font-family: var(--kc-font-headings, 'Montserrat', sans-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  line-height: 1.32;
  text-shadow: 0 2px 4px rgba(0, 30, 65, 0.18);
  transition: color 0.3s ease;
}

/* Delicado divisor de acento elegante bajo el título */
.kc-benefit-card__title::after {
  content: '';
  display: block;
  width: 36px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  margin: 12px auto 14px auto;
  transition: width 0.35s ease, background 0.35s ease;
}

.kc-benefit-card:hover .kc-benefit-card__title::after {
  width: 52px;
  background: rgba(255, 255, 255, 0.85);
}

/* 3. Description */
.kc-benefit-card__desc {
  position: relative;
  z-index: 2;
  font-family: var(--kc-font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.68;
  margin: 0;
  transition: color 0.3s ease;
}

.kc-benefit-card__desc p {
  margin: 0 0 8px 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.kc-benefit-card__desc p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .kc-benefit-card {
    padding: 36px 22px 32px 22px;
    border-radius: 18px;
  }
  .kc-benefit-card__icon-wrapper {
    margin-bottom: 20px;
  }
  .kc-benefit-card__icon-box {
    width: 72px;
    height: 72px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 10px 22px rgba(0, 20, 50, 0.16);
  }
  .kc-benefit-card__icon,
  .kc-benefit-card__icon svg {
    font-size: 28px;
    width: 28px;
    height: 28px;
  }
  .kc-benefit-card__title {
    font-size: 1.2rem;
  }
  .kc-benefit-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}
