#funciones {
  background: #fbf4e9;
  padding: 30px 0 24px;
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 80px;
  font-family: RestoredSans, "Nunito Sans", Arial, sans-serif;
}

#funciones .wrap {
  width: min(calc(100% - 48px), 1420px);
  max-width: 1420px;
}

#funciones .capabilities-layout {
  display: grid;
  grid-template-columns: 32% 65%;
  gap: 3%;
  align-items: center;
}

#funciones .capabilities-intro h2 {
  font-size: clamp(44px, 4.2vw, 68px);
  line-height: 1.04;
}

#funciones .capabilities-intro .eyebrow {
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 20px;
}

#funciones .capabilities-intro > p:last-of-type {
  font-size: 19px;
  line-height: 1.5;
  margin-top: 20px;
  max-width: 340px;
}

#funciones .capabilities-list {
  gap: 16px 22px;
}

#funciones .capability {
  padding: 16px 10px 16px 0;
  gap: 14px;
  border-bottom: 1px solid #dfd1ba;
  align-items: center;
  min-height: 150px;
}

#funciones .capability img {
  width: 116px;
  height: 116px;
  filter: drop-shadow(0 9px 7px #493c2110);
}

#funciones .capability h3 {
  font-size: 25px;
  line-height: 1.15;
  margin: 0 0 9px;
  text-wrap: balance;
}

#funciones .capability p {
  font-size: 17px;
  line-height: 1.4;
  text-wrap: pretty;
}

#funciones .capabilities-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dfd1ba;
  gap: 12px;
}

#funciones .capabilities-trust img {
  width: 72px;
  height: 72px;
}

#funciones .capabilities-trust strong {
  font-size: 17px;
}

#funciones .capabilities-bottom {
  margin-top: 22px;
  padding-top: 18px;
  font-size: 26px;
}

#funciones .capability.peach img {
  animation: heart-beat 2.6s ease-in-out infinite;
  transform-origin: 50% 60%;
}

@keyframes heart-beat {
  0%, 28%, 100% { transform: scale(1); }
  10% { transform: scale(1.09); }
  18% { transform: scale(1.02); }
  23% { transform: scale(1.065); }
}

@media (min-width: 1000px) and (max-height: 800px) {
  #funciones { padding: 18px 0 16px; }
  #funciones .capability { min-height: 132px; padding-block: 12px; }
  #funciones .capability img { width: 105px; height: 105px; }
  #funciones .capability h3 { font-size: 23px; }
  #funciones .capability p { font-size: 16px; }
  #funciones .capabilities-intro h2 { font-size: 48px; }
  #funciones .capabilities-bottom { margin-top: 16px; padding-top: 13px; }
}

@media (max-width: 999px) {
  #funciones { min-height: 0; padding-block: 36px; }
  #funciones .capabilities-layout { grid-template-columns: 1fr; gap: 22px; }
  #funciones .capabilities-intro h2 br { display: none; }
  #funciones .capabilities-intro h2 { max-width: 620px; }
  #funciones .capabilities-intro > p:last-of-type { max-width: 600px; }
  #funciones .capabilities-trust { max-width: 600px; }
}

@media (max-width: 600px) {
  #funciones .wrap { width: calc(100% - 36px); }
  #funciones .capabilities-list { grid-template-columns: 1fr; gap: 0; }
  #funciones .capability { min-height: 125px; }
  #funciones .capability img { width: 105px; height: 105px; }
  #funciones .capability h3 { font-size: 24px; }
  #funciones .capability p { font-size: 17px; }
  #funciones .capabilities-intro h2 { font-size: 43px; }
  #funciones .capabilities-bottom { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  #funciones .capability.peach img { animation: none; }
}
