/* BigBullDesign - Estilos aislados. El hero nunca reserva espacio para la cabecera. */
#bbdvn-header,#bbdvn-spacer{display:none}
body.bbdvn-ready{--bbdvn-top:14px;--bbdvn-admin:0px;--bbdvn-clearance:112px;--bbdvn-blue:#005ee9;--bbdvn-navy:#102139}
body.bbdvn-ready #bbdvn-header{display:block;position:fixed;z-index:9990;top:calc(var(--bbdvn-admin) + var(--bbdvn-top) + env(safe-area-inset-top,0px));left:0;right:0;width:100%;padding:0 20px;pointer-events:none;font:500 15px/1.4 'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:var(--bbdvn-navy);box-sizing:border-box}
#bbdvn-header *,#bbdvn-header *::before,#bbdvn-header *::after{box-sizing:border-box}
#bbdvn-header [hidden]{display:none!important}
#bbdvn-header .bbdvn-bar{display:flex;align-items:center;gap:20px;justify-content:space-between;position:relative;max-width:1500px;width:100%;min-height:76px;margin:0 auto;padding:12px 22px;background:#fff;border:1px solid #e2e9f2;border-radius:14px;box-shadow:0 12px 36px #07182b26;pointer-events:auto;transition:box-shadow .2s ease}
body.bbdvn-scrolled #bbdvn-header .bbdvn-bar{box-shadow:0 9px 32px #07182b38}
#bbdvn-header a{text-decoration:none!important;color:inherit;box-shadow:none!important}
#bbdvn-header a:focus-visible,#bbdvn-header button:focus-visible{outline:3px solid #78aeff!important;outline-offset:3px}
#bbdvn-header .bbdvn-brand{display:flex;align-items:center;flex:0 1 330px;gap:12px;min-width:0;line-height:1.1;color:var(--bbdvn-navy)!important}
#bbdvn-header .bbdvn-logo{display:block;flex:0 0 auto;width:auto;max-width:88px;max-height:48px;height:auto;object-fit:contain;object-position:left center}
#bbdvn-header .bbdvn-brand-text{display:flex;flex-direction:column;gap:5px;min-width:0}
#bbdvn-header .bbdvn-brand-text strong{font-size:22px;line-height:1.12;letter-spacing:.045em;font-weight:750;white-space:nowrap;color:var(--bbdvn-navy)}
#bbdvn-header .bbdvn-brand-text small{font-size:10.5px;line-height:1.25;letter-spacing:.035em;font-weight:650;color:#506078}
#bbdvn-header .bbdvn-nav{margin:0;min-width:0;flex:1;display:flex;justify-content:center}
#bbdvn-header .bbdvn-list{display:flex;align-items:center;gap:clamp(3px,1vw,16px);list-style:none;margin:0!important;padding:0!important}
#bbdvn-header .bbdvn-list>li{position:relative;margin:0;padding:0;list-style:none}
#bbdvn-header .bbdvn-link{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border-radius:8px;white-space:nowrap;font-size:15px;font-weight:650;line-height:1.25;color:#27354a!important;transition:background .2s,color .2s}
#bbdvn-header .bbdvn-link:hover,#bbdvn-header .bbdvn-link.bbdvn-current,#bbdvn-header .bbdvn-sub-link.bbdvn-current{color:var(--bbdvn-blue)!important;background:#edf4ff}
#bbdvn-header .bbdvn-split{display:flex;align-items:center;gap:0}
#bbdvn-header .bbdvn-split .bbdvn-link{padding-right:4px}
#bbdvn-header button{font:inherit;display:grid;place-items:center;padding:0;margin:0;border:0;background:transparent;color:var(--bbdvn-navy);box-shadow:none!important;cursor:pointer;line-height:1;border-radius:8px;min-width:0;min-height:0}
#bbdvn-header .bbdvn-service-toggle{width:36px;height:44px;flex:0 0 36px}
#bbdvn-header .bbdvn-service-toggle:hover,#bbdvn-header .bbdvn-mobile-toggle:hover{background:#edf4ff;color:var(--bbdvn-blue)}
#bbdvn-header svg{display:block;width:20px;height:20px;flex-shrink:0}
#bbdvn-header .bbdvn-service-toggle svg{width:17px;height:17px;transition:transform .2s}
#bbdvn-header .bbdvn-service-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
#bbdvn-header .bbdvn-services{position:absolute;top:calc(100% + 15px);left:50%;transform:translateX(-50%);width:510px;padding:22px;background:#fff;border:1px solid #e0e8f1;border-radius:14px;box-shadow:0 18px 50px #10213926}
#bbdvn-header .bbdvn-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--bbdvn-blue);margin:0 0 13px}
#bbdvn-header .bbdvn-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#bbdvn-header .bbdvn-sub-link{display:flex;align-items:center;min-height:46px;font-weight:600;font-size:14px;line-height:1.3;padding:9px 11px;border-radius:7px;color:#27354a!important;white-space:normal}
#bbdvn-header .bbdvn-sub-link:hover{background:#edf4ff;color:var(--bbdvn-blue)!important}
#bbdvn-header .bbdvn-all{display:block;border-top:1px solid #e2e8f0;margin-top:13px;padding:13px 4px 0;color:var(--bbdvn-blue)!important;font-weight:750;font-size:14px}
#bbdvn-header .bbdvn-actions{display:flex;gap:10px;align-items:center;flex:0 0 auto}
#bbdvn-header .bbdvn-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:11px 19px;border-radius:9px;background:var(--bbdvn-blue);color:#fff!important;font-size:14px;font-weight:750;line-height:1.2;white-space:nowrap;transition:background .2s,transform .2s}
#bbdvn-header .bbdvn-cta:hover{background:#0046b5;transform:translateY(-1px)}
#bbdvn-header .bbdvn-cta-short,#bbdvn-header .bbdvn-mobile-toggle,#bbdvn-header .bbdvn-close-icon{display:none}
/* Solo reemplazar la cabecera de Astra cuando el nuevo menu este operativo. */
body.bbdvn-ready #masthead,body.bbdvn-ready #ast-fixed-header,body.bbdvn-ready #ast-sticky-header,body.bbdvn-ready #ast-mobile-popup-wrapper{display:none!important}
body.bbdvn-ready:not(.bbdvn-hero) #bbdvn-spacer{display:block;background:#102139;height:var(--bbdvn-clearance);width:100%;margin:0;padding:0;pointer-events:none}
body.bbdvn-ready.bbdvn-hero #bbdvn-spacer{display:none!important;height:0!important}
/* Quitar rellenos superiores del tema y permitir el hero a todo el ancho en las paginas con el nuevo codigo. */
body.bbdvn-ready.bbdvn-hero #page,body.bbdvn-ready.bbdvn-hero #content,body.bbdvn-ready.bbdvn-hero #content>.ast-container,body.bbdvn-ready.bbdvn-hero #primary,body.bbdvn-ready.bbdvn-hero #main,body.bbdvn-ready.bbdvn-hero #primary .ast-article-single,body.bbdvn-ready.bbdvn-hero #primary .entry-content{margin-top:0!important;padding-top:0!important}
body.bbdvn-ready.bbdvn-hero #content>.ast-container{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
body.bbdvn-ready.bbdvn-modern #primary{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;float:none!important}
body.bbdvn-ready.bbdvn-modern #primary .ast-article-single,body.bbdvn-ready.bbdvn-modern #primary .entry-content{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;max-width:none!important}
body.bbdvn-ready.bbdvn-modern #primary>.site-main>article>.entry-header,body.bbdvn-ready.bbdvn-modern #primary>.site-main>.ast-article-single>.entry-header{display:none!important}
body.bbdvn-ready.bbdvn-modern #primary .entry-content>.bbdvigo,body.bbdvn-ready.bbdvn-modern #primary .entry-content>.wp-block-group:has(>.bbdvigo){margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
body.bbdvn-ready.bbdvn-hero .bbdvn-hero-target{margin-top:0!important;padding-top:max(var(--bbdvn-hero-original,0px),calc(var(--bbdvn-clearance) + 28px))!important}
body.bbdvn-ready.bbdvn-hero.bbdvn-modern .bbdvn-hero-target{padding-top:max(clamp(88px,9vw,155px),calc(var(--bbdvn-clearance) + 28px))!important}
body.bbdvn-ready.bbdvn-hero.bbdvn-legacy .bbdvn-hero-target{margin-left:0!important;margin-right:0!important;width:100%!important;max-width:none!important}
body.bbdvn-ready.bbdvn-legacy #primary .ast-article-single,body.bbdvn-ready.bbdvn-legacy #primary .entry-content{padding-left:0!important;padding-right:0!important}
body.bbdvn-ready .bbdvigo [id],body.bbdvn-ready #content [id].bbdvn-hero-target{scroll-margin-top:calc(var(--bbdvn-clearance) + var(--bbdvn-admin) + 10px)}
@media(max-width:1120px){
 body.bbdvn-ready{--bbdvn-top:10px;--bbdvn-clearance:94px}
 body.bbdvn-ready #bbdvn-header{padding:0 12px}
 #bbdvn-header .bbdvn-bar{gap:10px;padding:9px 13px;min-height:65px;border-radius:12px}
 #bbdvn-header .bbdvn-brand{flex:0 1 330px;gap:10px}
 #bbdvn-header .bbdvn-logo{max-width:72px;max-height:40px}
 #bbdvn-header .bbdvn-mobile-toggle{display:grid;flex:0 0 43px;width:43px;height:43px;border:1px solid #e0e8f1}
 #bbdvn-header .bbdvn-mobile-toggle svg{width:22px;height:22px}
 #bbdvn-header .bbdvn-mobile-toggle[aria-expanded=true] .bbdvn-menu-icon{display:none}
 #bbdvn-header .bbdvn-mobile-toggle[aria-expanded=true] .bbdvn-close-icon{display:block}
 #bbdvn-header .bbdvn-cta{min-height:43px;padding:10px 14px}
 #bbdvn-header .bbdvn-nav{position:absolute;top:calc(100% + 9px);left:0;right:0;display:block;background:#fff;border:1px solid #e0e8f1;border-radius:12px;padding:12px;box-shadow:0 18px 40px #10213930;max-height:calc(100vh - var(--bbdvn-clearance) - var(--bbdvn-admin) - 20px);max-height:calc(100dvh - var(--bbdvn-clearance) - var(--bbdvn-admin) - 20px);overflow:auto;overscroll-behavior:contain}
 #bbdvn-header .bbdvn-list{display:block}
 #bbdvn-header .bbdvn-link{justify-content:flex-start;min-height:48px;padding:12px 14px}
 #bbdvn-header .bbdvn-split .bbdvn-link{flex:1;padding-right:14px}
 #bbdvn-header .bbdvn-service-toggle{height:48px;flex:0 0 48px;width:48px;border:1px solid #e4ebf3}
 #bbdvn-header .bbdvn-services{position:static;transform:none;width:100%;box-shadow:none;background:#f5f8fc;margin:7px 0 9px;padding:14px;border-radius:9px}
}
@media(max-width:480px){
 body.bbdvn-ready #bbdvn-header{padding:0 9px}
 #bbdvn-header .bbdvn-bar{padding:9px 10px;gap:8px}
 #bbdvn-header .bbdvn-brand{gap:7px;flex:1 1 auto}
 #bbdvn-header .bbdvn-logo{max-width:40px;max-height:36px}
 #bbdvn-header .bbdvn-brand-text{gap:3px}
 #bbdvn-header .bbdvn-brand-text strong{font-size:17px;letter-spacing:.025em}
 #bbdvn-header .bbdvn-brand-text small{font-size:9px;letter-spacing:0}
 #bbdvn-header .bbdvn-actions{gap:6px}
 #bbdvn-header .bbdvn-cta{gap:5px;padding:9px 10px}
 #bbdvn-header .bbdvn-cta svg{width:17px;height:17px}
 #bbdvn-header .bbdvn-cta-long{display:none}
 #bbdvn-header .bbdvn-cta-short{display:inline}
 #bbdvn-header .bbdvn-services-grid{grid-template-columns:1fr}
}
@media(max-width:350px){
 #bbdvn-header .bbdvn-brand{gap:5px}
 #bbdvn-header .bbdvn-logo{max-width:31px;max-height:31px}
 #bbdvn-header .bbdvn-brand-text strong{font-size:15px;letter-spacing:.015em}
 #bbdvn-header .bbdvn-brand-text small{font-size:8.5px}
 #bbdvn-header .bbdvn-cta{padding:9px 8px}
}
@media(prefers-reduced-motion:reduce){#bbdvn-header *,#bbdvn-header *::before,#bbdvn-header *::after{transition:none!important;animation:none!important}}
/* Astra puede insertar una segunda cabecera de titulo/imagen antes del contenido.
   Las paginas renovadas ya tienen H1, imagen y migas de pan dentro del hero. */
body.bbdvn-ready.bbdvn-modern .ast-single-entry-banner,body.bbdvn-ready.bbdvn-modern #primary .ast-single-post-featured-section,body.bbdvn-ready.bbdvn-modern #primary .ast-breadcrumbs-wrapper,body.bbdvn-ready.bbdvn-modern #primary .ast-article-single>.post-thumb{display:none!important}
body.bbdvn-ready.bbdvn-modern #content>.ast-container>#secondary{display:none!important}
body.bbdvn-ready.bbdvn-modern #content>.ast-container{display:block!important}
