/* Las cuatro filas informativas de WPBakery en la portada del despacho. */
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) {
  --ag-tinta: #102257;
  --ag-texto: #293650;
  --ag-espacio: clamp(.55rem, 1.1vw, .95rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin: clamp(1.1rem, 2.5vw, 2rem) 0 !important;
  padding: var(--ag-espacio) !important;
  border: 1px solid #253e701f;
  border-radius: clamp(1.25rem, 2.6vw, 2rem);
  background:
    radial-gradient(ellipse at 2% 5%, #e1efc9aa, transparent 48%),
    radial-gradient(ellipse at 97% 100%, #dce8f8b5, transparent 56%),
    linear-gradient(135deg, #fffffff5, #f8fbf8ee 58%, #fbfcfff5);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 2px #ffffffdc, 0 .45rem 1.5rem #182f5a0d;
}

/* El clearfix que incluye WPBakery no debe ocupar celdas en la cuadrícula. */
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721)::before,
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721)::after,
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .paddingextra::before,
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .paddingextra::after { display: none; }

body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) > .vc_column_container {
  display: block;
  float: none;
  width: auto;
  min-width: 0;
}
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) > .vc_column_container > .vc_column-inner {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) > .vc_column_container:not(.vc_col-has-fill) > .vc_column-inner {
  display: grid;
  align-content: center;
}
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .paddingextra {
  display: block;
  margin: 0;
  padding: clamp(1.25rem, 3.4vw, 3.1rem) !important;
}
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .paddingextra > .vc_column_container > .vc_column-inner { padding: 0; }
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .paddingextra h3 {
  margin: 0 0 .7em;
  color: var(--ag-tinta);
  font-family: inherit;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .paddingextra h3::before {
  content: "";
  display: block;
  width: 2rem;
  height: .18rem;
  margin: 0 0 .55em;
  border-radius: 1rem;
  background: linear-gradient(90deg, #78a32b, #b9d88b);
}
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .wpb_text_column { margin: 0; }
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .wpb_text_column p {
  max-width: 58ch;
  margin: 0;
  color: var(--ag-texto);
  font-family: inherit;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.6;
}
body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) > .vc_col-has-fill > .vc_column-inner {
  min-height: clamp(16rem, 24vw, 22rem);
  border-radius: clamp(.9rem, 1.8vw, 1.45rem);
  background-size: cover !important;
  box-shadow: inset 0 0 0 1px #172a4f15;
}

/* Consulta tu cuota es la fila que sigue a «Precios competitivos». */
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra > .vc_column_container > .vc_column-inner > .wpb_wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  align-items: stretch;
}
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra > .vc_column_container > .vc_column-inner > .wpb_wrapper > :is(h3, .wpb_text_column) { grid-column: 1 / -1; }
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra > .vc_column_container > .vc_column-inner > .wpb_wrapper > h3 { margin-bottom: .2em; }
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra > .vc_column_container > .vc_column-inner > .wpb_wrapper > .wpb_text_column { margin-bottom: .5rem; }
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra .vc_empty_space { display: none; }

body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra a.dt-btn {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  margin: 0 !important;
  padding: .65rem .5rem;
  border: 1px solid #172e66;
  border-radius: .72rem;
  color: #fff;
  background:
    linear-gradient(175deg, #ffffff25, #ffffff05 46%, transparent 48%),
    linear-gradient(145deg, #263d75, #102257 80%);
  box-shadow: inset 0 1px 0 #ffffff70, inset 0 -1px 0 #08133670, 0 2px 4px #172a4f20;
  font-family: inherit;
  font-size: .79rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: transform .16s ease, box-shadow .16s ease;
}
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra a.dt-btn::before { display: none; }
@media (hover: hover) {
  body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra a.dt-btn:hover {
    color: #fff;
    background:
      linear-gradient(175deg, #ffffff2e, #ffffff08 46%, transparent 48%),
      linear-gradient(145deg, #2d487f, #152e68 80%);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 #ffffff85, 0 4px 9px #172a4f2c;
  }
}
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra a.dt-btn:active {
  color: #fff;
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px #07133466, inset 0 -1px 0 #ffffff30;
}
body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra a.dt-btn:focus {
  outline: 3px solid #406a19;
  outline-offset: 3px;
  box-shadow: inset 0 1px 0 #ffffff85, 0 0 0 2px #fff;
}
@media (prefers-reduced-motion: reduce) {
  body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra a.dt-btn { transition: none; }
  body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra a.dt-btn:is(:hover, :active) { transform: none; }
}

@media (max-width: 48rem) {
  body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) { grid-template-columns: minmax(0, 1fr); }
  /* Las tres primeras filas ya tienen una versión móvil de la misma fotografía. */
  body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) > .vc_col-has-fill { display: none; }
  body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) > .vc_column_container:not(.vc_col-has-fill) > .vc_column-inner > .wpb_wrapper {
    display: flex;
    flex-direction: column;
  }
  body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .solomoviles {
    display: block;
    visibility: visible;
    order: -1;
    margin: 0;
  }
  body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .solomoviles :is(figure, .vc_single_image-wrapper) { display: block; width: 100%; margin: 0; }
  body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .solomoviles img { display: block; width: 100%; height: auto; border-radius: .9rem; }
  /* Consulta tu cuota dispone de una sola foto para ambas orientaciones. */
  body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 > .vc_col-has-fill.solopc { display: block; visibility: visible; order: -1; }
  body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 > .vc_col-has-fill > .vc_custom_1589450493648 {
    height: 0;
    min-height: 0;
    padding-top: 66.667% !important;
  }
  body.home #content .vc_row:is(.vc_custom_1590400373030, .vc_custom_1589356412042, .vc_custom_1589357389721) .paddingextra { padding: clamp(1rem, 4vw, 1.85rem) !important; }
}
/* En la tableta vertical la columna de texto comparte ancho con la foto. */
@media (max-width: 30rem), (min-width: 48.01rem) and (max-width: 64rem) {
  body.home #content .vc_custom_1589357389721 ~ .vc_row.vc_custom_1589356412042 .paddingextra > .vc_column_container > .vc_column-inner > .wpb_wrapper { grid-template-columns: minmax(0, 1fr); }
}

/* La fila de descargas de Anfix contiene dos insignias originales de 464 × 142. */
@media (max-width: 48rem), (orientation: landscape) and (max-width: 60rem) and (pointer: coarse),
       (orientation: landscape) and (max-width: 60rem) and (max-height: 32rem) and (pointer: fine) {
  body.home #content .vc_custom_1593671847983 #appsdescargar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: .6rem;
    width: 100%;
    max-width: 17.125rem !important;
    margin: .4rem auto !important;
    padding: 0;
  }
  body.home #content .vc_custom_1593671847983 #appsdescargar::before,
  body.home #content .vc_custom_1593671847983 #appsdescargar::after { display: none; }
  body.home #content .vc_custom_1593671847983 #appsdescargar > .vc_column_container {
    float: none;
    width: auto;
    min-width: 0;
  }
  body.home #content .vc_custom_1593671847983 #appsdescargar .vc_column-inner {
    margin: 0;
    padding: 0;
  }
  body.home #content .vc_custom_1593671847983 #appsdescargar .wpb_single_image,
  body.home #content .vc_custom_1593671847983 #appsdescargar figure { display: block; margin: 0; }
  body.home #content .vc_custom_1593671847983 #appsdescargar a.vc_single_image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    line-height: 1;
    border-radius: .4rem;
  }
  body.home #content .vc_custom_1593671847983 #appsdescargar a:focus-visible {
    outline: 3px solid #102257;
    outline-offset: 2px;
  }
  body.home #content .vc_custom_1593671847983 #appsdescargar img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }
}
