/* shared-header-v265.css */

/* V2.65: ÚNICA cabecera corporativa, misma retícula de 1200px en TODAS las URLs.
   La franja azul ocupa el viewport, pero el contenido se alinea a la Home. */
@media(min-width:961px){
 html body nav.nav{
  box-sizing:border-box!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;
  padding:30px max(28px,calc((100% - 1200px)/2)) 0!important;
  height:90px!important;min-height:90px!important;max-height:90px!important;
  flex-wrap:nowrap!important;gap:16px!important;
  position:relative!important;top:auto!important;
  background:#fff!important;
 }
 html body nav.nav::before{
  content:""!important;display:block!important;
  position:absolute!important;inset:0 0 auto 0!important;
  height:30px!important;background:#123467!important;z-index:0!important;
 }
 html body nav.nav>.brand{flex:0 0 auto!important;order:0!important;margin:0!important;padding:0!important}
 html body nav.nav>.brand img{width:150px!important;max-width:150px!important;height:auto!important;max-height:52px!important;object-fit:contain!important}
 html body nav.nav>.links{
  order:1!important;display:flex!important;flex:0 1 auto!important;
  flex-wrap:nowrap!important;justify-content:flex-end!important;
  align-items:center!important;gap:clamp(9px,1.25vw,22px)!important;
  margin:0 0 0 auto!important;padding:0!important;
  border:0!important;overflow:visible!important;max-width:none!important;
 }
 html body nav.nav>.links a,html body nav.nav>.links button{white-space:nowrap!important}
 html body nav.nav>.wibaes-top-left,
 html body nav.nav>.wibaes-top-right{
  position:absolute!important;top:0!important;height:30px!important;
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  transform:none!important;z-index:3!important;
 }
 html body nav.nav>.wibaes-top-left{left:var(--wb-top-left, max(28px,calc((100% - 1200px)/2)))!important;right:auto!important}
 html body nav.nav>.wibaes-top-right{right:var(--wb-top-right, max(28px,calc((100% - 1200px)/2)))!important;left:auto!important}
}
@media(max-width:960px){
 html body nav.nav{box-sizing:border-box!important;width:100%!important;max-width:none!important}
}


/* shared-header-v266.css */
/* V2.66: el menú de soluciones e historias se alinea con los .wrap reales. */
@media(min-width:961px){
 html body nav.nav.wb-v266-content-aligned{
  padding-left:var(--wb-v266-left,28px)!important;
  padding-right:var(--wb-v266-right,28px)!important;
 }
 html body nav.nav.wb-v266-content-aligned>.wibaes-top-left{
  left:var(--wb-v266-left,28px)!important;
 }
 html body nav.nav.wb-v266-content-aligned>.wibaes-top-right{
  right:var(--wb-v266-right,28px)!important;
 }
}


/* home-width-v267.css */
/* V2.67: misma reticula interior que las paginas de soluciones. */
@media(min-width:961px){
/* La portada es la unica vista con hero.wb-v69-hero. No cambiar secciones de detalle. */
body:has(header.hero.wb-v69-hero) #app > section .wrap,
body:has(header.hero.wb-v69-hero) #app > header.hero.wb-v69-hero .wrap,
body:has(header.hero.wb-v69-hero) #app > .wrap,
body:has(header.hero.wb-v69-hero) #app > main .wrap,
body:has(header.hero.wb-v69-hero) #app > section .container{
 width:calc(100% - clamp(30px,6vw,112px))!important;
 max-width:1440px!important;
 margin-inline:auto!important;
}
/* Alineacion del menu de la Home con su contenido real. */
html body nav.nav.wb-v267-home-aligned{
 padding-left:var(--wb-v267-left,28px)!important;
 padding-right:var(--wb-v267-right,28px)!important;
}
html body nav.nav.wb-v267-home-aligned>.wibaes-top-left{left:var(--wb-v267-left,28px)!important}
html body nav.nav.wb-v267-home-aligned>.wibaes-top-right{right:var(--wb-v267-right,28px)!important}
}


/* home-grid-v268.css */
/* V2.68: retícula horizontal única para TODAS las secciones de la portada.
   Conserva fondos a sangre y las anchuras de columnas de lectura. */
@media(min-width:961px){
 body:has(header.hero.wb-v69-hero) #app > header.hero .wrap,
 body:has(header.hero.wb-v69-hero) #app > section .wrap,
 body:has(header.hero.wb-v69-hero) #app > footer .wrap,
 body:has(header.hero.wb-v69-hero) #app > nav.nav{
  box-sizing:border-box!important;
  width:calc(100% - clamp(30px,6vw,112px))!important;
  max-width:1440px!important;
  margin-left:auto!important;margin-right:auto!important;
 }
 /* La cabecera tiene fondo y franja a ancho completo; solo sus márgenes interiores se alinean. */
 body:has(header.hero.wb-v69-hero) #app > nav.nav{
  width:100%!important;max-width:none!important;
  padding-left:max(calc((100% - 1440px)/2),clamp(15px,3vw,56px))!important;
  padding-right:max(calc((100% - 1440px)/2),clamp(15px,3vw,56px))!important;
 }
 body:has(header.hero.wb-v69-hero) #app > nav.nav>.wibaes-top-left{
  left:var(--wb-top-left,max(calc((100% - 1440px)/2),clamp(15px,3vw,56px)))!important;
 }
 body:has(header.hero.wb-v69-hero) #app > nav.nav>.wibaes-top-right{
  right:var(--wb-top-right,max(calc((100% - 1440px)/2),clamp(15px,3vw,56px)))!important;
 }
}
@media(max-width:960px){
 body:has(header.hero.wb-v69-hero) #app > header.hero .wrap,
 body:has(header.hero.wb-v69-hero) #app > section .wrap,
 body:has(header.hero.wb-v69-hero) #app > footer .wrap{
  box-sizing:border-box!important;
  width:calc(100% - 36px)!important;max-width:1440px!important;
  margin-left:auto!important;margin-right:auto!important;
 }
}


/* home-grid-v269.css */
/* V2.69 - Una referencia horizontal: borde izquierdo del logotipo Wibaes.
   Los fondos de cada sección siguen siendo de ancho completo. */
@media(min-width:961px){
 #app:has(> header.hero.wb-v69-hero) > header.hero > .wrap,
 #app:has(> header.hero.wb-v69-hero) > section > .wrap,
 #app:has(> header.hero.wb-v69-hero) > footer > .wrap{
  box-sizing:border-box!important;
  width:calc(100% - 2 * var(--wb-home-grid-gutter, max(28px, calc((100vw - 1440px) / 2))))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
 }
 #app:has(> header.hero.wb-v69-hero) > header.hero > .wrap.herocontent{
  padding-left:0!important;padding-right:0!important;
 }
 #app:has(> header.hero.wb-v69-hero) > section#por-que-wibaes > .wrap,
 #app:has(> header.hero.wb-v69-hero) > section#descubre-tu-estructura > .wrap,
 #app:has(> header.hero.wb-v69-hero) > section#it-ecosystem-score > .wrap{
  min-width:0!important;
 }
 /* Impide que grids, textos largos y botones amplíen la sección más allá de la retícula. */
 #app:has(> header.hero.wb-v69-hero) > section > .wrap > *{min-width:0}
 #app:has(> header.hero.wb-v69-hero) > section > .wrap img{max-width:100%}
}
@media(max-width:960px){
 #app:has(> header.hero.wb-v69-hero) > header.hero > .wrap,
 #app:has(> header.hero.wb-v69-hero) > section > .wrap,
 #app:has(> header.hero.wb-v69-hero) > footer > .wrap{
  box-sizing:border-box!important;
  width:calc(100% - 36px)!important;
  max-width:none!important;
  margin-left:auto!important;margin-right:auto!important;
 }
}

