/* ---web-ing-solutions-- / INGAUTIN GLOBAL CTA SYSTEM 2.4.4 */

/* ==========================================================================
   1. ICONOGRAFÍA GLOBAL DE FLECHAS
   Cualquier glyph → ↗ ↘ dentro de un <a>/<button> es sustituido por CSS.
   El JS añade .wis-ui-arrow; este CSS no depende de cada subpágina.
   ========================================================================== */

body.wis-ing-runtime .wis-ui-arrow{
  position:relative!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:0!important;
  overflow:visible!important;
  font-style:normal!important;
  transform:none!important;
  pointer-events:none!important;
}

body.wis-ing-runtime .wis-ui-arrow::before{
  content:""!important;
  display:block!important;
  width:13px!important;
  height:13px!important;
  background:currentColor!important;
  clip-path:polygon(
    36% 4%,
    96% 4%,
    96% 64%,
    80% 64%,
    80% 31%,
    20% 91%,
    8% 79%,
    68% 19%,
    36% 19%
  )!important;
  transform:translate3d(0,0,0)!important;
  transition:transform .28s cubic-bezier(.22,.75,.18,1)!important;
}

body.wis-ing-runtime .wis-ui-arrow::after{
  content:none!important;
  display:none!important;
}

/* Anula los rotate(45deg) históricos de varios plugins. */
body.wis-ing-runtime a:hover .wis-ui-arrow,
body.wis-ing-runtime a:focus-visible .wis-ui-arrow,
body.wis-ing-runtime button:hover .wis-ui-arrow,
body.wis-ing-runtime button:focus-visible .wis-ui-arrow{
  transform:none!important;
}

body.wis-ing-runtime a:hover .wis-ui-arrow::before,
body.wis-ing-runtime a:focus-visible .wis-ui-arrow::before,
body.wis-ing-runtime button:hover .wis-ui-arrow::before,
body.wis-ing-runtime button:focus-visible .wis-ui-arrow::before{
  transform:translate3d(2px,-2px,0)!important;
}

/* Los contenedores circulares existentes siguen siendo circulares.
   Sólo sustituimos el carácter, no rediseñamos cada CTA. */
body.wis-ing-runtime :is(
  .wis-n4__cta,
  .wis-f9__cta,
  .wis-b2,
  .nx7-btn,
  .px9-btn,
  .wis-sv__cta-button,
  .wis-pj__cta-button,
  .wis-sc__cta-button,
  .wis-ct__submit
) .wis-ui-arrow{
  min-width:30px;
  min-height:30px;
}


/* ==========================================================================
   2. CONTRASTE AUTOMÁTICO
   El JS detecta CTAs/botones cuyo fondo renderizado es oscuro y añade
   .wis-cta-auto-light. La tipografía pasa a blanco sin alterar el icono.
   ========================================================================== */

body.wis-ing-runtime .wis-cta-auto-light,
body.wis-ing-runtime .wis-cta-auto-light:link,
body.wis-ing-runtime .wis-cta-auto-light:visited,
body.wis-ing-runtime .wis-cta-auto-light:hover,
body.wis-ing-runtime .wis-cta-auto-light:focus,
body.wis-ing-runtime .wis-cta-auto-light:focus-visible,
body.wis-ing-runtime .wis-cta-auto-light:active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Texto interno habitual de Elementor + plugins INGAUTIN.
   Deliberadamente NO fuerza <i> / .wis-ui-arrow para respetar círculos claros. */
body.wis-ing-runtime .wis-cta-auto-light :is(
  b,
  strong,
  em,
  .elementor-button-text,
  .px9-btn__label
):not(.wis-ui-arrow),
body.wis-ing-runtime .wis-cta-auto-light > span:not(.wis-ui-arrow){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Protección adicional frente a globals de Elementor en estados hover/focus. */
body.wis-ing-runtime :is(a,button).wis-cta-auto-light:hover :is(
  b,
  strong,
  em,
  .elementor-button-text,
  .px9-btn__label
):not(.wis-ui-arrow),
body.wis-ing-runtime :is(a,button).wis-cta-auto-light:focus-visible :is(
  b,
  strong,
  em,
  .elementor-button-text,
  .px9-btn__label
):not(.wis-ui-arrow){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
