/* Vacantes MaxeApps — solo la portada; compatible con tema base y plugins de bloques. */
body.home .vm-featured-guides .vm-guide-tile {
  aspect-ratio: 7 / 4 !important;
  min-height: 0 !important;
  height: auto !important;
  position: relative;
  background: #eff5fb;
  isolation: isolate;
  overflow: hidden;
}
body.home .vm-featured-guides .vm-guide-tile > a {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 7 / 4;
  position: relative;
  display: block !important;
}
body.home .vm-featured-guides .vm-guide-tile img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  border: 0 !important;
}
/* Capa blanca SOBRE la fotografía, DEBAJO del título, conservando la visibilidad de la imagen. */
body.home .vm-featured-guides .vm-guide-overlay {
  position: absolute !important;
  inset: auto 0 0 !important;
  min-height: 38%;
  padding: 15px 14px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  background: linear-gradient(180deg,rgba(255,255,255,.06) 0%,rgba(255,255,255,.76) 32%,rgba(255,255,255,.94) 100%) !important;
  backdrop-filter: blur(1.4px);
  -webkit-backdrop-filter: blur(1.4px);
  color: #092550 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  z-index: 2;
}
body.home .vm-featured-guides .vm-guide-overlay strong {
  font-size: clamp(12px,1vw,15px) !important;
  line-height: 1.25 !important;
  color: #071d44 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}
body.home .vm-featured-guides .vm-guide-overlay small {
  font-size: 11px !important;
  color: #008b70 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

/* En tabletas se conserva la figura sin cortar la cabeza. */
@media (min-width: 701px) and (max-width: 950px) {
  body.home .vm-hero {
    background-position: right center !important;
  }
}

/* Composición vertical exclusiva para móviles: retrato arriba y contenido abajo. */
@media (max-width: 700px) {
  body.home .vm-main .vm-hero {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 475px !important;
    height: auto !important;
    background-color: #071b3a !important;
    background-image:
      linear-gradient(180deg,rgba(7,27,58,.02) 0%,rgba(7,27,58,.03) 36%,rgba(7,27,58,.91) 52%,#071b3a 65%),
      url('hero-vacantes.webp') !important;
    background-size: 100% 100%, auto 54% !important;
    background-position: center center, right top !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
  }
  body.home .vm-main .vm-hero::after {
    content: none !important;
    display: none !important;
  }
  body.home .vm-main .vm-hero-copy {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 19px 22px !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: auto !important;
  }
  body.home .vm-main .vm-hero h1 {
    font-size: clamp(27px,7.9vw,36px) !important;
    line-height: 1.09 !important;
    margin: 9px 0 !important;
    letter-spacing: -1px !important;
  }
  body.home .vm-main .vm-hero p {
    font-size: 12.5px !important;
    line-height: 1.48 !important;
    max-width: none !important;
    margin-bottom: 13px !important;
  }
  body.home .vm-main .vm-hero .vm-eyebrow {
    font-size: 9px !important;
    letter-spacing: .035em !important;
  }
  body.home .vm-main .vm-hero .vm-hero-button {
    padding: 11px 17px !important;
  }
  body.home .vm-featured-guides .vm-guide-tile,
  body.home .vm-featured-guides .vm-guide-tile > a {
    aspect-ratio: 7 / 4 !important;
  }
  body.home .vm-featured-guides .vm-guide-overlay {
    min-height: 35%;
    padding: 13px 14px 11px !important;
  }
  body.home .vm-featured-guides .vm-guide-overlay strong {
    font-size: 13px !important;
  }
}
@media (max-width: 380px) {
  body.home .vm-main .vm-hero { min-height: 445px !important; background-size:100% 100%, auto 53% !important; }
  body.home .vm-main .vm-hero-copy { padding: 0 15px 18px !important; }
  body.home .vm-main .vm-hero h1 { font-size: 27px !important; }
  body.home .vm-main .vm-hero p { font-size: 11.7px !important; }
}


/* Pie de página: logo sin fondo blanco, con resplandor, y mejor legibilidad. */
body .vm-footer .vm-footer-brand img,
body .vm-footer img[alt*="Vacantes MaxeApps"],
body footer img[alt*="Vacantes MaxeApps"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 4px rgba(255,255,255,.18))
    drop-shadow(0 0 9px rgba(255,255,255,.16))
    drop-shadow(0 0 16px rgba(112,76,255,.14)) !important;
}
body .vm-footer .vm-footer-brand,
body footer .vm-footer-brand {
  background: transparent !important;
}

/* Mantener el pie ordenado en escritorio. */
body .vm-footer .vm-footer-bottom {
  gap: 10px;
}

/* Pie de página centrado en móvil. */
@media (max-width: 700px) {
  body .vm-footer,
  body footer.vm-footer,
  body footer {
    text-align: center !important;
  }
  body .vm-footer .vm-footer-top,
  body .vm-footer .vm-footer-grid,
  body .vm-footer .vm-footer-bottom,
  body footer .vm-footer-top,
  body footer .vm-footer-grid,
  body footer .vm-footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 14px !important;
  }
  body .vm-footer .vm-footer-brand,
  body footer .vm-footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-inline: auto !important;
  }
  body .vm-footer .vm-footer-brand img,
  body footer .vm-footer-brand img,
  body footer img[alt*="Vacantes MaxeApps"] {
    margin-inline: auto !important;
    display: block !important;
    max-width: 210px !important;
    height: auto !important;
  }
  body .vm-footer .vm-footer-grid > *,
  body .vm-footer .vm-footer-top > *,
  body .vm-footer .vm-footer-bottom > *,
  body footer .vm-footer-grid > *,
  body footer .vm-footer-top > *,
  body footer .vm-footer-bottom > * {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  body .vm-footer ul,
  body footer ul {
    padding-left: 0 !important;
    list-style-position: inside !important;
  }
  body .vm-footer .social-links,
  body .vm-footer .vm-footer-social,
  body footer .social-links,
  body footer .vm-footer-social {
    justify-content: center !important;
    margin-inline: auto !important;
  }
}
