/* VISIBILIA v16.88 — Corrección estable de tarjetas y secciones de casos.
   Cargada únicamente en las tres páginas de /casos-de-exito/. */
.case-steps,.vcase-grid,.case-grid{min-width:0;}
.case-step,.vcase-card,.case-card{min-width:0;box-sizing:border-box;}
.case-step strong,.case-step p{overflow-wrap:break-word;word-break:normal;hyphens:none;}
@media (max-width: 900px){
  .case-section .case-steps,
  .case-section .case-grid,
  .case-section .vcase-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:18px!important;
  }
  .case-section .case-steps > .case-step,
  .case-section .case-grid > *,
  .case-section .vcase-grid > *{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .case-section .case-step{padding:22px!important;}
  .case-step strong{font-size:clamp(18px,4.5vw,22px)!important;line-height:1.35!important;}
  .case-step p{font-size:15px!important;line-height:1.65!important;}
}
@media (max-width:600px){
  .case-hero{padding:48px 0 36px!important;}
  .case-section{padding:42px 0!important;}
  .case-hero .container,.case-section .container{
    width:calc(100% - 32px)!important;max-width:none!important;
    margin-inline:auto!important;box-sizing:border-box!important;
  }
  .case-hero h1{font-size:clamp(30px,8vw,42px)!important;line-height:1.1!important;}
  .case-lead,.case-intro{font-size:15px!important;line-height:1.65!important;}
  .case-actions a{width:100%;min-height:44px;box-sizing:border-box;}
}
/* Mantener el modo oscuro ciruela de VISIBILIA */
html[data-theme="dark"] .case-hero{
  background:linear-gradient(125deg,#2a1c36 0%,#35213f 100%)!important;
  border-bottom-color:#594564;
}
html[data-theme="dark"] .case-step{background:#30233b!important;border-top-color:#b99ae9!important;}
html[data-theme="dark"] .case-section{color:#f7f2ff;}
html[data-theme="dark"] .case-step strong{color:#f7f2ff;}
html[data-theme="dark"] .case-step p{color:#e2d9eb;}
