.seccion-problemas {
  position: relative;
  padding: 76px 0 62px;
  overflow: hidden;
  background: #fff;
}

.problemas-contenedor { position: relative; z-index: 2; }

.problemas-cabecera {
  max-width: 1050px;
  margin: 0 auto 32px;
  text-align: center;
}

.problemas-cabecera h2 {
  margin: 15px 0 17px;
  color: #061f1c;
  font: 800 clamp(40px, 4vw, 61px)/1.04 "Montserrat", sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.problemas-cabecera h2 em { color: #08723d; font-style: normal; }
.problemas-cabecera > p:last-child { margin: 0; color: #40514d; font-size: 19px; line-height: 1.48; }
.problemas-cabecera strong { position: relative; color: var(--verde-oscuro); }
.problemas-cabecera strong::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--amarillo); }

.problemas-escenario {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(410px, 1.16fr) minmax(300px, .92fr);
  gap: 16px;
  align-items: stretch;
}

.problemas-columna {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.problema-tarjeta {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 14px 15px;
  border: 1px solid #e2e9e7;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 60px 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  overflow: hidden;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 28px rgba(5, 45, 41, .13);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.problema-tarjeta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 62px;
  height: 8px;
  border-radius: 0 0 9px 0;
  background: var(--amarillo);
}

.problema-tarjeta:hover { border-color: rgba(255, 195, 35, .72); transform: translateY(-4px); box-shadow: 0 17px 35px rgba(5, 45, 41, .18); }

.problema-icono {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 195, 35, .7);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #07594c, #03463e);
  color: #fff;
  box-shadow: 0 8px 17px rgba(3, 58, 53, .2);
}

.problema-icono svg { width: 33px; height: 33px; stroke-width: 1.65; }
.problema-numero { color: var(--amarillo-hover); font: 800 23px/1 "Montserrat", sans-serif; }
.problema-texto { min-width: 0; }
.problema-texto h3 { margin: 0; color: #071f1c; font: 800 15px/1.25 "Montserrat", sans-serif; text-wrap: balance; }
.problema-texto > p { min-height: 31px; margin: 6px 0; color: #475854; font-size: 11px; line-height: 1.38; }
.problema-texto button { width: 100%; min-height: 29px; padding: 3px 9px 3px 12px; border: 0; border-radius: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 17px; align-items: center; gap: 8px; background: #f0f5f2; color: #145847; cursor: pointer; font: 800 10px "Montserrat", sans-serif; text-align: left; box-shadow: 0 3px 8px rgba(5,45,41,.1); transition: color .22s ease, background-color .22s ease, transform .22s ease; }
.problema-texto button span { min-width: 0; }
.problema-texto button svg { width: 17px; height: 17px; margin: 0; justify-self: end; }
.problema-texto button:hover { background: var(--amarillo); color: var(--verde-oscuro); transform: translateX(2px); }

.problemas-imagen {
  position: relative;
  min-height: 438px;
  overflow: hidden;
  background: #eef2f0;
}

.problemas-imagen::after { content: none; }
.problemas-imagen img {
  position: absolute;
  top: -54%;
  left: 50%;
  width: auto;
  max-width: none;
  height: 194%;
  transform: translateX(-50%);
}

.evaluacion-franja {
  position: relative;
  z-index: 3;
  width: calc(100% - 80px);
  min-height: 132px;
  margin: 14px auto 0;
  padding: 16px 24px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(420px, 1.35fr) minmax(230px, .75fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  background: linear-gradient(105deg, #075145, #034c42);
  color: #fff;
  box-shadow: 0 14px 34px rgba(3, 58, 53, .22);
}

.evaluacion-franja::before { content: ""; position: absolute; inset: 0; opacity: .11; background: repeating-linear-gradient(135deg, transparent 0 15px, rgba(255,255,255,.16) 15px 16px); pointer-events: none; }
.evaluacion-franja > * { position: relative; z-index: 1; }
.evaluacion-mensaje h3 { margin: 0; font: 800 19px/1.22 "Montserrat", sans-serif; }
.evaluacion-mensaje h3 em { color: var(--amarillo); font-style: normal; }
.evaluacion-mensaje p { margin: 6px 0 0; color: rgba(255,255,255,.87); font-size: 13px; line-height: 1.42; }

.proceso-evaluacion { padding: 0 20px; border-inline: 1px solid rgba(255, 195, 35, .7); }
.proceso-evaluacion > h3 { margin: 0 0 9px; font: 800 14px "Montserrat", sans-serif; }
.proceso-pasos { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; }
.proceso-pasos li { position: relative; opacity: 0; transform: translateY(30px); text-align: center; }
.proceso-pasos li:not(:last-child)::after { content: "···➜"; position: absolute; top: 26px; left: calc(100% + 16px); color: var(--amarillo); font: 800 15px/1 "Montserrat", sans-serif; white-space: nowrap; transform: translate(-50%, -50%); }
.proceso-pasos li > span { position: relative; width: 52px; height: 52px; margin: 0 auto 6px; border: 2px solid rgba(255,195,35,.62); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--verde-oscuro); box-shadow: 0 7px 15px rgba(0,25,22,.2), inset 0 0 0 4px rgba(255,195,35,.08); }
.proceso-pasos li > span::after { content: ""; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--amarillo); }
.proceso-pasos li svg { width: 29px; height: 29px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.proceso-pasos .icono-trazo { fill: none; stroke: #07594c; stroke-width: 2; }
.proceso-pasos .icono-acento { fill: none; stroke: #e9ad00; stroke-width: 2.3; }
.proceso-pasos li p { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.28; }
.proceso-pasos.visible li { animation: subir-paso .66s cubic-bezier(.2,.75,.25,1) forwards; }
.proceso-pasos.visible li:nth-child(2) { animation-delay: .5s; }
.proceso-pasos.visible li:nth-child(3) { animation-delay: 1s; }

.evaluacion-accion { display: flex; flex-direction: column; align-items: center; text-align: center; }
.boton-evaluacion { width: min(100%, 255px); }
.evaluacion-accion > p { margin: 9px 0 0; display: flex; justify-content: center; align-items: center; gap: 7px; color: rgba(255,255,255,.86); font-size: 12px; }
.evaluacion-accion > p svg { width: 18px; height: 18px; }

.particulas-problemas { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.particulas-problemas span { position: absolute; width: 9px; height: 9px; min-width: 7px; min-height: 7px; border-radius: 50%; background: var(--amarillo); opacity: .62; animation: flotar-problema 6.4s ease-in-out infinite; }
.particulas-problemas span:nth-child(1) { left: 2%; top: 7%; background: #16823b; }
.particulas-problemas span:nth-child(2) { left: 5%; top: 14%; width: 5px; height: 5px; animation-delay: -1s; }
.particulas-problemas span:nth-child(3) { right: 3%; top: 9%; background: #16823b; animation-delay: -2.2s; }
.particulas-problemas span:nth-child(4) { right: 7%; top: 20%; width: 5px; height: 5px; animation-delay: -3.5s; }
.particulas-problemas span:nth-child(5) { left: 1%; top: 33%; animation-delay: -4.7s; }
.particulas-problemas span:nth-child(6) { right: 1.5%; top: 39%; background: #16823b; animation-delay: -.6s; }
.particulas-problemas span:nth-child(7) { left: 4%; top: 51%; width: 5px; height: 5px; background: #16823b; animation-delay: -2.8s; }
.particulas-problemas span:nth-child(8) { right: 4%; top: 55%; animation-delay: -1.6s; }
.particulas-problemas span:nth-child(9) { left: 31%; top: 25%; width: 5px; height: 5px; animation-delay: -3.9s; }
.particulas-problemas span:nth-child(10) { right: 31%; top: 28%; background: #16823b; animation-delay: -5s; }
.particulas-problemas span:nth-child(11) { left: 32%; top: 64%; animation-delay: -.9s; }
.particulas-problemas span:nth-child(12) { right: 32%; top: 68%; width: 5px; height: 5px; animation-delay: -2s; }
.particulas-problemas span:nth-child(13) { left: 2%; bottom: 12%; background: #fff; animation-delay: -4.2s; }
.particulas-problemas span:nth-child(14) { right: 2%; bottom: 10%; animation-delay: -1.3s; }
.particulas-problemas span:nth-child(15) { left: 18%; bottom: 3%; width: 5px; height: 5px; animation-delay: -3.1s; }
.particulas-problemas span:nth-child(16) { right: 18%; bottom: 4%; background: #16823b; animation-delay: -.3s; }
.particulas-problemas span:nth-child(17) { left: 48%; bottom: 2%; animation-delay: -2.5s; }
.particulas-problemas span:nth-child(18) { right: 47%; top: 19%; width: 5px; height: 5px; background: #16823b; animation-delay: -4.5s; }

@keyframes subir-paso { to { opacity: 1; transform: translateY(0); } }
@keyframes flotar-problema { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(8px,-17px,0); } }
@keyframes agitar-evaluacion {
  0%, 60%, 100% { transform: translateX(0) rotate(0) scale(1); box-shadow: none; }
  66% { transform: translateX(-7px) rotate(-1.7deg) scale(1.01); }
  71% { transform: translateX(8px) rotate(1.8deg) scale(1.025); box-shadow: 0 0 0 8px rgba(255,195,35,.17), 0 0 26px rgba(255,195,35,.65), 0 9px 20px rgba(0,24,21,.24); }
  76% { transform: translateX(-6px) rotate(-1.2deg); }
  82% { transform: translateX(4px) rotate(.8deg); }
  90% { transform: translateX(0) rotate(0); box-shadow: none; }
}

@media (max-width: 1320px) {
  .problemas-escenario { grid-template-columns: minmax(275px, .9fr) minmax(350px, 1.2fr) minmax(275px, .9fr); gap: 11px; }
  .problema-tarjeta { min-height: 136px; padding: 13px 11px; grid-template-columns: 56px 33px minmax(0,1fr); gap: 7px; }
  .problema-icono { width: 56px; height: 56px; }
  .problema-icono svg { width: 30px; height: 30px; }
  .problema-numero { font-size: 22px; }
  .problema-texto h3 { font-size: 13px; }
  .problema-texto > p { font-size: 11px; }
  .evaluacion-franja { grid-template-columns: minmax(235px, 1fr) minmax(370px, 1.35fr) minmax(205px, .75fr); gap: 16px; padding-inline: 20px; }
  .evaluacion-mensaje h3 { font-size: 18px; }
  .proceso-evaluacion { padding-inline: 17px; }
  .boton-evaluacion { width: 220px; font-size: 12px; }
}

@media (max-width: 1000px) {
  .problemas-escenario { grid-template-columns: 1fr; }
  .problemas-imagen { order: 1; min-height: 430px; aspect-ratio: 1.21; }
  .problemas-columna-izquierda { order: 2; }
  .problemas-columna-derecha { order: 3; }
  .problemas-columna { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: none; }
  .problema-tarjeta { min-height: 176px; }
  .evaluacion-franja { width: calc(100% - 48px); grid-template-columns: 1fr 1.25fr; }
  .evaluacion-accion { grid-column: 1 / -1; }
  .boton-evaluacion { width: 255px; }
}

@media (max-width: 720px) {
  .seccion-problemas { padding: 54px 0 42px; }
  .problemas-cabecera { margin-bottom: 25px; }
  .problemas-cabecera h2 { margin-top: 18px; font-size: 33px; line-height: 1.1; }
  .problemas-cabecera h2 br { display: none; }
  .problemas-cabecera > p:last-child { font-size: 16px; line-height: 1.5; }
  .problemas-cabecera > p:last-child br { display: none; }
  .problemas-imagen { min-height: 290px; max-height: 320px; }
  .problemas-columna { grid-template-columns: 1fr; gap: 12px; }
  .problema-tarjeta { min-height: 0; padding: 16px 13px; grid-template-columns: 58px 34px minmax(0,1fr); border-radius: 11px; }
  .problema-icono { width: 58px; height: 58px; }
  .problema-icono svg { width: 31px; height: 31px; }
  .problema-numero { font-size: 21px; }
  .problema-texto h3 { font-size: 15px; }
  .problema-texto > p { min-height: 0; font-size: 14px; line-height: 1.45; }
  .problema-texto button { width: min(100%, 210px); min-height: 35px; font-size: 12px; }
  .evaluacion-franja { width: calc(100% - 16px); min-height: 0; margin: 14px auto 0; padding: 18px 16px; border-radius: 14px; grid-template-columns: 1fr; gap: 18px; }
  .evaluacion-mensaje h3 { font-size: 21px; }
  .evaluacion-mensaje p { font-size: 15px; }
  .proceso-evaluacion { padding: 15px 0; border-inline: 0; border-block: 1px solid rgba(255,195,35,.55); }
  .proceso-evaluacion > h3 { font-size: 16px; }
  .proceso-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .proceso-pasos li { min-height: 0; padding-left: 0; display: block; text-align: center; }
  .proceso-pasos li:not(:last-child)::after { content: "··➜"; top: 25px; bottom: auto; left: calc(100% + 6px); transform: translate(-50%, -50%); }
  .proceso-pasos li > span { position: relative; left: auto; width: 50px; height: 50px; margin: 0 auto 7px; }
  .proceso-pasos li p { font-size: 12px; }
  .evaluacion-accion { text-align: center; }
  .boton-evaluacion { width: min(100%, 245px); min-height: 48px; padding-inline: 10px; margin-inline: auto; grid-template-columns: 18px minmax(0, 1fr) 18px; gap: 6px; font-size: 13px; }
  
.evaluacion-accion > p { justify-content: center; font-size: 13px; }
  .particulas-problemas span:nth-child(9), .particulas-problemas span:nth-child(10), .particulas-problemas span:nth-child(11), .particulas-problemas span:nth-child(12) { display: none; }
}

@media (max-width: 390px) {
  .problemas-cabecera h2 { font-size: 30px; }
  .problemas-imagen { min-height: 260px; max-height: 275px; }
  .problema-tarjeta { grid-template-columns: 52px 29px minmax(0,1fr); padding-inline: 10px; gap: 7px; }
  .problema-icono { width: 52px; height: 52px; }
  .problema-icono svg { width: 28px; height: 28px; }
  .problema-numero { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .particulas-problemas span, .boton-evaluacion { animation: none; }
  .proceso-pasos li { opacity: 1; transform: none; animation: none !important; }
}


/* V48 · icono de planillas suministrado por el usuario */
.problema-icono--imagen{overflow:visible!important;background:#fff!important}
.problema-icono--imagen img{width:48px;height:48px;object-fit:contain;display:block;image-rendering:auto}
@media(max-width:1024px){.problema-icono--imagen img{width:46px;height:46px}}
@media(max-width:600px){.problema-icono--imagen img{width:44px;height:44px}}

/* V49 · icono Planillas: el recurso fue recortado para ocupar realmente su caja */
.problema-icono--imagen img{width:54px!important;height:54px!important;padding:0!important}
@media(max-width:1024px){.problema-icono--imagen img{width:52px!important;height:52px!important}}
@media(max-width:600px){.problema-icono--imagen img{width:50px!important;height:50px!important}}

/* V53 · Restablecer iconografía original verde del problema laboral. */
.problema-icono{
  width:var(--gael-icono-estandar)!important;
  height:var(--gael-icono-estandar)!important;
  flex:0 0 var(--gael-icono-estandar)!important;
}
@media (max-width:1024px){.problema-icono{width:var(--gael-icono-estandar-tablet)!important;height:var(--gael-icono-estandar-tablet)!important;flex-basis:var(--gael-icono-estandar-tablet)!important}}
@media (max-width:600px){.problema-icono{width:var(--gael-icono-estandar-movil)!important;height:var(--gael-icono-estandar-movil)!important;flex-basis:var(--gael-icono-estandar-movil)!important}}
