/* CVE La Rioja: burbujas móviles separadas y sin cubrir la imagen */
@media (max-width:767px){
html body.page-id-3816 .v3-pill.one,html body.page-id-3816 .v3-pill.two{width:190px!important;min-width:0!important;height:92px!important;min-height:92px!important;padding:14px 18px!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:0 10px 24px rgba(16,43,78,.20)!important;z-index:3!important;}
html body.page-id-3816 .v3-pill.one{left:18px!important;right:auto!important;top:24px!important;bottom:auto!important;}
html body.page-id-3816 .v3-pill.two{left:auto!important;right:18px!important;top:auto!important;bottom:18px!important;}
html body.page-id-3816 .v3-pill.one strong,html body.page-id-3816 .v3-pill.two strong{display:block!important;font-size:26px!important;line-height:1.05!important;}
html body.page-id-3816 .v3-pill.one small,html body.page-id-3816 .v3-pill.two small{display:block!important;font-size:13px!important;line-height:18px!important;}
}
/* CVE La Rioja: prioridad sobre el CSS antiguo de la página */
@media (max-width:767px){
html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.one,html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.two{width:190px!important;min-width:0!important;height:92px!important;min-height:92px!important;padding:14px 18px!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:0 10px 24px rgba(16,43,78,.20)!important;z-index:3!important;}
html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.one{left:18px!important;right:auto!important;top:24px!important;bottom:auto!important;}
html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.two{left:auto!important;right:18px!important;top:auto!important;bottom:18px!important;}
html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.one strong,html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.two strong{display:block!important;font-size:26px!important;line-height:1.05!important;}
html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.one small,html body.page-id-3816.cve-madrid-page-orange-v3 .v3-pill.two small{display:block!important;font-size:13px!important;line-height:18px!important;}
}
/* CVE La Rioja: override final, clase del contenido no del body */
@media (max-width:767px){
html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.one,html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.two{width:190px!important;min-width:0!important;height:92px!important;min-height:92px!important;padding:14px 18px!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:0 10px 24px rgba(16,43,78,.20)!important;z-index:3!important;}
html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.one{left:18px!important;right:auto!important;top:24px!important;bottom:auto!important;}
html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.two{left:auto!important;right:18px!important;top:auto!important;bottom:18px!important;}
html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.one strong,html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.two strong{display:block!important;font-size:26px!important;line-height:1.05!important;}
html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.one small,html body.page-id-3816 .cve-madrid-page-orange-v3 .v3-pill.two small{display:block!important;font-size:13px!important;line-height:18px!important;}
}
/* CVE Navarra: header y burbujas móviles alineados al template provincial */
@media (max-width:767px){
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-header{height:64px!important;min-height:64px!important;position:relative!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-nav{position:absolute!important;top:0!important;right:0!important;bottom:0!important;width:76px!important;height:64px!important;display:block!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-header .v3-header-btn{width:76px!important;height:64px!important;min-height:64px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:10px 8px!important;margin:0!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-header .v3-logo{position:absolute!important;left:50%!important;right:auto!important;top:0!important;bottom:5px!important;transform:translateX(-50%)!important;margin:0!important;width:170px!important;max-width:170px!important;height:58px!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.one,html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.two{width:190px!important;min-width:0!important;height:92px!important;min-height:92px!important;padding:14px 18px!important;box-sizing:border-box!important;overflow:hidden!important;box-shadow:0 10px 24px rgba(16,43,78,.20)!important;z-index:3!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.one{left:18px!important;right:auto!important;top:24px!important;bottom:auto!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.two{left:auto!important;right:18px!important;top:auto!important;bottom:18px!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.one strong,html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.two strong{display:block!important;font-size:26px!important;line-height:1.05!important;}
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.one small,html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-pill.two small{display:block!important;font-size:13px!important;line-height:18px!important;}
}
/* CVE Navarra: eliminar espacio superior de Rank Math en vista móvil */
@media (max-width:767px){
html body.page-id-3833 #rank-math-analytics-stats-wrapper{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
}
/* CVE Navarra: eliminar párrafo vacío antes del header en móvil */
@media (max-width:767px){
html body.page-id-3833 .cve-madrid-page-orange-v3 .v3-wide > p:first-child{display:none!important;height:0!important;margin:0!important;padding:0!important;}
}
/* CVE Navarra: quitar párrafo vacío externo que desplaza el header */
@media (max-width:767px){
html body.page-id-3833 .cve-madrid-page-orange-v3 > p:first-child{display:none!important;height:0!important;margin:0!important;padding:0!important;}
}
/* CVE Navarra: quitar marcadores invisibles antes del header en móvil */
@media (max-width:767px){
html body.page-id-3833 .cve-madrid-page-orange-v3 > .mce_SELRES_start,
html body.page-id-3833 .cve-madrid-page-orange-v3 > p:first-of-type{display:none!important;height:0!important;margin:0!important;padding:0!important;line-height:0!important;}
}

/* CVE provincias · cabecera móvil final: logo centrado y CTA alineado */
@media (max-width:767px){
html body[class*="page-id-"]:has(.cve-madrid-page-orange-v3) .cve-madrid-page-orange-v3 .v3-header{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:98px!important;min-height:98px!important;padding:0!important;
  background:#fff!important;border-bottom:1px solid #f6e2d7!important;box-sizing:border-box!important;overflow:visible!important;
}
html body[class*="page-id-"]:has(.cve-madrid-page-orange-v3) .cve-madrid-page-orange-v3 .v3-logo{
  position:absolute!important;left:50%!important;right:auto!important;top:0!important;bottom:auto!important;
  transform:translateX(-50%)!important;display:block!important;flex:none!important;
  width:210px!important;max-width:210px!important;height:98px!important;max-height:98px!important;
  margin:0!important;padding:0!important;background-size:210px auto!important;background-position:center center!important;
  background-repeat:no-repeat!important;overflow:visible!important;
}
html body[class*="page-id-"]:has(.cve-madrid-page-orange-v3) .cve-madrid-page-orange-v3 .v3-nav{
  position:absolute!important;inset:0!important;width:100%!important;height:98px!important;margin:0!important;padding:0!important;
  display:block!important;min-width:0!important;gap:0!important;
}
html body[class*="page-id-"]:has(.cve-madrid-page-orange-v3) .cve-madrid-page-orange-v3 .v3-nav a:not(.v3-header-btn){display:none!important;}
html body[class*="page-id-"]:has(.cve-madrid-page-orange-v3) .cve-madrid-page-orange-v3 .v3-nav:before{
  content:"☰"!important;position:absolute!important;left:0!important;top:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:72px!important;height:98px!important;margin:0!important;padding:0!important;
  background:#ff5a1f!important;color:#fff!important;font-size:32px!important;line-height:1!important;
}
html body[class*="page-id-"]:has(.cve-madrid-page-orange-v3) .cve-madrid-page-orange-v3 .v3-nav .v3-header-btn{
  position:absolute!important;right:0!important;top:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:118px!important;min-width:118px!important;height:98px!important;min-height:98px!important;
  margin:0!important;padding:10px 8px!important;box-sizing:border-box!important;
  border-radius:0 0 0 12px!important;background:#ff5a1f!important;color:#fff!important;
  font-size:16px!important;line-height:1.35!important;text-align:center!important;white-space:normal!important;
  box-shadow:none!important;text-transform:uppercase!important;
}
html body[class*="page-id-"]:has(.cve-madrid-page-orange-v3) .cve-madrid-page-orange-v3 .v3-mobile-toggle{display:none!important;}
}