.bep-beneficios {
  position: relative;
  width: 100%;
  padding-top: var(--bep-section-padding-y);
  padding-right: var(--bep-container-padding);
  padding-bottom: var(--bep-section-padding-y);
  padding-left: var(--bep-container-padding);
}

.bep-beneficios-container {
  max-width: var(--bep-container-max-width);
  margin: 0 auto;
  padding: 0 var(--bep-container-padding);
}

/* Reveal resting state (contexto.js/diferencial.js/casos-de-uso.js convention) */
.bep-beneficios-title {
  font-family: var(--bep-font-tt-chocolates);
  font-weight: 500;
  font-style: normal;
  font-size: var(--bep-font-section-title-size);
  color: var(--bep-color-titulo);
  letter-spacing: 0.02em;
  margin-bottom: 0px;
  opacity: 0;
  transform: translateY(20px);
}

.bep-beneficios-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: start;
  gap: 24px;
}

/* Right column: title + 3 stacked, hover-activated accordion items */
.bep-beneficios-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 48px;
}

.bep-beneficios-item-title {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-family: var(--bep-font-tt-chocolates);
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  color: var(--bep-color-titulo-azul);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Underline as a pseudo-element instead of text-decoration: the latter is a
   discrete on/off keyword that can't be transitioned, and its skip-ink
   recalculation under descenders (g, p, y, j, q) caused a flicker while
   color was mid-transition. A plain bar can fade in/out smoothly and has no
   skip-ink logic to recompute. */
.bep-beneficios-item-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 400ms ease-in-out;
}

.bep-beneficios-item.is-active .bep-beneficios-item-title::after {
  opacity: 1;
}

.bep-beneficios-item-description-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 600ms ease-in-out;
}

.bep-beneficios-item.is-active .bep-beneficios-item-description-wrap {
  grid-template-rows: 1fr;
}

.bep-beneficios-item-description {
  min-height: 0;
  overflow: hidden;
  max-width: 360px;
  margin-top: 12px;
  font-family: var(--bep-font-tt-chocolates);
  font-weight: 400;
  font-style: normal;
  font-size: var(--bep-font-card-text-size);
  line-height: normal;
  color: var(--bep-color-texto-suave);
}

.bep-beneficios-item-description strong {
  font-weight: 600;
}

/* Left column: image, crossfades per active item */
.bep-beneficios-visual {
  display: flex;
  justify-content: flex-start;
}

/* Reveal resting state for the entrance tween (beneficios.js) — deliberately
   on the wrap, not on .bep-beneficios-image itself: that <img>'s opacity is
   already owned by the hover crossfade (crossfadeImage(), same file), which
   stays at opacity:1 by default (see .bep-beneficios-image below) and is
   untouched by this. */
.bep-beneficios-image-wrap {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.bep-beneficios-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 250ms ease-in-out;
}

/* Hangul, bottom-right — now an <img> (bep-hangul-piel.svg), not text.
   Same element/technique as .bep-breaker-hangul (same file, color, width
   clamp taper), just anchored from the bottom instead of the top. color is
   inert here — the SVG has a hardcoded fill (#4280b8) and is loaded via
   <img>, so page CSS can't reach into it regardless; left declared in case
   a future swap uses currentColor + inline <svg>.
   z-index: -1 (unlike .bep-breaker-hangul's z-index:1) — here the hangul
   was painting above .bep-beneficios-list's real content (z-index:auto,
   normal in-flow), covering part of the last item's text. A negative
   z-index still paints above the section's own background (that's always
   painted first regardless of z-index sign) but behind every normal,
   non-positioned descendant, which is exactly what's needed here. */
.bep-beneficios-hangul {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  width: 30rem;
  height: auto;
  color: #cfe0ee;
  pointer-events: none;
}

@media (max-width: 1920px) {
  .bep-beneficios-hangul {
    width: clamp(20rem, calc(-480px + 50vw), 30rem);
  }
}

@media (max-width: 1600px) {
  .bep-beneficios-hangul {
    width: clamp(15rem, calc(-80px + 25vw), 20rem);
  }
}

@media (max-width: 1280px) {
  .bep-beneficios-hangul {
    width: clamp(7.5rem, 18.75vw, 15rem);
  }
}

@media (max-width: 1024px) {
  .bep-beneficios-title {
    margin-bottom: 0px;
  }

  .bep-beneficios-content {
    gap: 16px;
  }

  .bep-beneficios-item-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .bep-beneficios-container {
    padding-left: 0;
    padding-right: 0;
  }

  .bep-beneficios-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bep-beneficios-visual {
    order: 1;
  }

  .bep-beneficios-list {
    order: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .bep-beneficios-item-description {
    max-width: 100%;
  }
}