/**
 * Lafer Enterprise · navegación maestra V12.
 * Única capa final de geometría para el menú compartido con todas las páginas.
 * El estado .compact modifica el cristal, nunca el tamaño del logo ni los botones.
 * El ancho editorial del Home se resuelve aquí; no se simula zoom del navegador.
 */
body.lafer-enterprise {
  --lf-nav-top: 12px;
  --lf-nav-h: 94px;
  --lf-nav-mobile-h: 70px;
  --lf-nav-bg: rgba(252,253,255,.86);
  --lf-page-gutter: clamp(34px,2.4vw,52px);
  --lf-page-max: 1670px;
}
body.admin-bar.lafer-enterprise {--lf-nav-admin:32px;}
body.lafer-enterprise:not(.admin-bar) {--lf-nav-admin:0px;}
@media(max-width:782px){
  body.admin-bar.lafer-enterprise{--lf-nav-admin:46px;}
}
body.lafer-enterprise .lf-header .site-nav,
body.lafer-enterprise .lf-header .site-nav.compact {
  position:fixed!important;
  z-index:1150!important;
  left:50%!important;
  right:auto!important;
  top:calc(var(--lf-nav-top) + var(--lf-nav-admin))!important;
  transform:translateX(-50%)!important;
  width:min(1680px,calc(100vw - 2 * clamp(14px,2vw,54px)))!important;
  max-width:1680px!important;
  height:var(--lf-nav-h)!important;
  min-height:var(--lf-nav-h)!important;
  padding:12px 22px 12px 30px!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:clamp(160px,12vw,205px) minmax(0,1fr) max-content!important;
  align-items:center!important;
  justify-content:stretch!important;
  column-gap:clamp(12px,1.35vw,27px)!important;
  flex-wrap:nowrap!important;
  border:1px solid rgba(255,255,255,.96)!important;
  border-radius:999px!important;
  background:var(--lf-nav-bg)!important;
  backdrop-filter:blur(26px) saturate(160%)!important;
  -webkit-backdrop-filter:blur(26px) saturate(160%)!important;
  box-shadow:0 16px 44px rgba(5,33,94,.125),inset 0 1px rgba(255,255,255,.98)!important;
  overflow:visible!important;
  transition:background-color .23s ease,box-shadow .23s ease!important;
}
body.lafer-enterprise .lf-header .site-nav.compact{
  background:rgba(251,253,255,.94)!important;
  box-shadow:0 21px 55px rgba(5,30,86,.18),inset 0 1px rgba(255,255,255,.98)!important;
}
body.lafer-enterprise .lf-header .site-nav .brand,
body.lafer-enterprise .lf-header .site-nav.compact .brand{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  justify-self:start!important;align-self:center!important;
  width:100%!important;min-width:0!important;height:auto!important;
  margin:0!important;padding:0!important;
  transform:none!important;line-height:1!important;
}
body.lafer-enterprise .lf-header .site-nav .brand img,
body.lafer-enterprise .lf-header .site-nav.compact .brand img {
  display:block!important;
  width:170px!important;max-width:100%!important;height:auto!important;
  max-height:62px!important;min-height:0!important;
  object-fit:contain!important;object-position:left center!important;
  margin:0!important;padding:0!important;
  transform:none!important;transition:none!important;
}
body.lafer-enterprise .lf-header .site-nav .primary-links,
body.lafer-enterprise .lf-header .site-nav.compact .primary-links {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:stretch!important;
  align-self:center!important;
  width:100%!important;min-width:0!important;
  height:100%!important;flex:unset!important;
  margin:0!important;padding:0!important;
}
body.lafer-enterprise .lf-header .site-nav .lf-main-menu,
body.lafer-enterprise .lf-header .site-nav.compact .lf-main-menu {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:clamp(12px,1.45vw,25px)!important;
  margin:0!important;padding:0!important;
  height:auto!important;min-width:0!important;width:100%!important;
}
body.lafer-enterprise .lf-header .site-nav .lf-main-menu>li{
  position:relative!important;flex:0 0 auto!important;
  list-style:none!important;margin:0!important;padding:0!important;
}
body.lafer-enterprise .lf-header .site-nav .lf-main-menu>li>a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:46px!important;
  padding:8px 1px!important;
  font-size:clamp(13px,.86vw,15px)!important;font-weight:760!important;
  color:#142350!important;white-space:nowrap!important;line-height:1.2!important;
}
body.lafer-enterprise .lf-header .site-nav .lf-main-menu>li>a:hover,
body.lafer-enterprise .lf-header .site-nav .lf-main-menu>li>a:focus-visible{
  color:#074fb9!important;
}
body.lafer-enterprise .lf-header .site-nav .nav-actions,
body.lafer-enterprise .lf-header .site-nav.compact .nav-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  justify-self:end!important;align-self:center!important;
  flex-wrap:nowrap!important;flex:unset!important;
  width:max-content!important;max-width:100%!important;min-width:0!important;
  gap:clamp(8px,.6vw,13px)!important;
  margin:0!important;padding:0!important;
  transform:none!important;
}
body.lafer-enterprise .lf-header .site-nav .nav-actions>a.btn,
body.lafer-enterprise .lf-header .site-nav.compact .nav-actions>a.btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;align-self:center!important;
  width:auto!important;height:56px!important;min-height:56px!important;max-height:56px!important;
  padding:0 clamp(15px,1.15vw,22px)!important;
  border-radius:999px!important;
  font-size:clamp(12.5px,.88vw,14.5px)!important;
  font-weight:820!important;line-height:1.2!important;
  white-space:nowrap!important;text-align:center!important;
  gap:9px!important;margin:0!important;
  transform:none;
}
body.lafer-enterprise .lf-header .site-nav .nav-actions>a.btn:hover{transform:translateY(-1px);}
body.lafer-enterprise .lf-header .site-nav .nav-actions>a.btn svg{
  width:17px!important;height:17px!important;min-width:17px!important;
  stroke:currentColor!important;stroke-width:1.8!important;fill:none!important;
}
body.lafer-enterprise .lf-header .site-nav .nav-actions .nav-pse{
  color:#fff!important;
  background:linear-gradient(110deg,#1677ef,#0643b6)!important;
  box-shadow:0 11px 25px rgba(6,65,187,.22)!important;
}
body.lafer-enterprise .lf-header .site-nav .nav-actions .nav-chat{
  color:#fff!important;
  background:linear-gradient(110deg,#eb4c25,#a73540 48%,#52233e)!important;
  box-shadow:0 11px 25px rgba(142,41,64,.22)!important;
}
/* Menú secundario no puede tomar el ancho de los botones ni mover el grid. */
body.lafer-enterprise .lf-header .site-nav .lf-main-menu .sub-menu{
  top:calc(100% + 8px);
}
body.lafer-enterprise .lf-header .site-nav .nav-toggle{
  display:none!important;
  width:50px!important;height:50px!important;
  min-width:50px!important;min-height:50px!important;
  border-radius:50%!important;
  place-items:center!important;
  background:#eaf2ff!important;color:#063db0!important;
  margin:0!important;padding:0!important;
}
body.lafer-enterprise .lf-header .site-nav .nav-toggle svg{
  width:24px!important;height:24px!important;
}
/* Plantillas interiores: el header se reutiliza sin Elementor Canvas. */
body.lafer-enterprise #main > .lf-landing-root,
body.lafer-enterprise #main > .lf-page-root{
  display:block;
  position:relative;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-height:68vh;
  background:linear-gradient(180deg,#eef3fb 0%,#f7f9fc 37%,#f3f7fb 100%);
  padding-top:calc(var(--lf-nav-h) + 62px);
}
body.lafer-enterprise #main > .lf-landing-root .lf-landing-content,
body.lafer-enterprise #main > .lf-page-root .lf-page-editor-content{
  width:100%!important;max-width:none!important;
  margin-inline:auto!important;
}
body.lafer-enterprise .lf-page-heading{
  padding:22px 0 42px;
}
body.lafer-enterprise .lf-page-heading h1{
  font-family:Montserrat,Outfit,sans-serif;
  font-size:clamp(42px,4.5vw,74px);
  line-height:1.09;letter-spacing:-.055em;
  font-weight:900;color:#0a1950;margin:0;
  text-wrap:balance;
}
body.lafer-enterprise .lf-page-featured{
  overflow:hidden;border-radius:28px;margin-bottom:37px;
}
body.lafer-enterprise .lf-page-featured img{
  width:100%;max-height:570px;object-fit:cover;
}
@media(max-width:1199px){
  body.lafer-enterprise #main > .lf-landing-root,
  body.lafer-enterprise #main > .lf-page-root{
    padding-top:calc(var(--lf-nav-h) + 48px);
  }
}
@media(max-width:740px){
  body.lafer-enterprise #main > .lf-landing-root,
  body.lafer-enterprise #main > .lf-page-root{
    padding-top:calc(var(--lf-nav-mobile-h) + 32px);
  }
  body.lafer-enterprise .lf-page-heading h1{font-size:clamp(32px,8.2vw,45px);}
}
/* Las páginas nuevas comparten exactamente este mismo ancho y cabecera. */
body.lafer-enterprise #main .container,
body.lafer-enterprise #main .full-container,
body.lafer-enterprise .lf-footer .container,
body.lafer-enterprise .footer .container{
  width:min(var(--lf-page-max),calc(100% - 2 * var(--lf-page-gutter)))!important;
  max-width:var(--lf-page-max)!important;
  margin-inline:auto!important;
}
/* Bloques protagonistas: crecen horizontalmente sin sacrificar proporciones. */
body.lafer-enterprise #main .solve-v2 .problems-grid,
body.lafer-enterprise #main .portfolio-v2 .service-grid-v2,
body.lafer-enterprise #main .team-v2 .team-grid-v2,
body.lafer-enterprise #main .cases-v2 .reviews-row,
body.lafer-enterprise #main .resources-v2 .resources-grid-v2{
  width:100%!important;max-width:none!important;
}
body.lafer-enterprise #main .solve-v2 .problems-grid{gap:clamp(13px,1.25vw,23px)!important;}
body.lafer-enterprise #main .service-grid-v2{gap:clamp(15px,1.3vw,24px)!important;}
body.lafer-enterprise #main .reviews-row{gap:clamp(16px,1.3vw,24px)!important;}
body.lafer-enterprise #main .team-grid-v2{gap:clamp(16px,1.3vw,24px)!important;}
/* Capa hover de necesidades: hereda exactamente el radio del contenedor.
   clip-path evita esquinas cuadradas al finalizar la transformación GPU. */
body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2,
body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2:hover,
body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2:focus-visible {
  --lf-problem-radius:28px;
  position:relative!important;
  border-radius:var(--lf-problem-radius)!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2 .problem-hover{
  inset:0!important;
  border-radius:var(--lf-problem-radius)!important;
  clip-path:inset(0 round var(--lf-problem-radius))!important;
  -webkit-clip-path:inset(0 round var(--lf-problem-radius))!important;
  overflow:hidden!important;
  will-change:transform;
}
body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2:hover .problem-hover,
body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2:focus-visible .problem-hover{
  border-radius:var(--lf-problem-radius)!important;
  clip-path:inset(0 round var(--lf-problem-radius))!important;
  -webkit-clip-path:inset(0 round var(--lf-problem-radius))!important;
}
@media(max-width:1480px) and (min-width:1200px){
  body.lafer-enterprise .lf-header .site-nav,
  body.lafer-enterprise .lf-header .site-nav.compact{
    grid-template-columns:clamp(146px,11vw,170px) minmax(0,1fr) max-content!important;
    column-gap:clamp(10px,1vw,17px)!important;
    padding-left:21px!important;padding-right:17px!important;
  }
  body.lafer-enterprise .lf-header .site-nav .brand img,
  body.lafer-enterprise .lf-header .site-nav.compact .brand img{
    width:152px!important;max-height:60px!important;
  }
  body.lafer-enterprise .lf-header .site-nav .lf-main-menu{gap:clamp(8px,1vw,17px)!important;}
  body.lafer-enterprise .lf-header .site-nav .lf-main-menu>li>a{font-size:13px!important;}
  body.lafer-enterprise .lf-header .site-nav .nav-actions>a.btn,
  body.lafer-enterprise .lf-header .site-nav.compact .nav-actions>a.btn{
    height:53px!important;min-height:53px!important;max-height:53px!important;
    padding:0 15px!important;font-size:12.2px!important;
  }
}
@media(max-width:1199px){
  body.lafer-enterprise .lf-header .site-nav,
  body.lafer-enterprise .lf-header .site-nav.compact{
    width:calc(100vw - 32px)!important;
    grid-template-columns:minmax(0,1fr) max-content!important;
    column-gap:14px!important;
    padding:10px 15px 10px 23px!important;
    height:82px!important;min-height:82px!important;
  }
  body.lafer-enterprise .lf-header .site-nav .primary-links,
  body.lafer-enterprise .lf-header .site-nav.compact .primary-links{display:none!important;}
  body.lafer-enterprise .lf-header .site-nav .nav-toggle{display:grid!important;}
  body.lafer-enterprise .lf-header .site-nav .brand img,
  body.lafer-enterprise .lf-header .site-nav.compact .brand img{width:153px!important;max-height:59px!important;}
  body.lafer-enterprise .lf-header .site-nav .nav-actions>a.btn,
  body.lafer-enterprise .lf-header .site-nav.compact .nav-actions>a.btn{
    height:50px!important;min-height:50px!important;max-height:50px!important;
    font-size:12px!important;padding:0 15px!important;
  }
}
@media(max-width:850px){
  body.lafer-enterprise .lf-header .site-nav .nav-actions>a.btn,
  body.lafer-enterprise .lf-header .site-nav.compact .nav-actions>a.btn{display:none!important;}
}
@media(max-width:740px){
  body.lafer-enterprise{--lf-page-gutter:16px;--lf-nav-top:9px;}
  body.lafer-enterprise .lf-header .site-nav,
  body.lafer-enterprise .lf-header .site-nav.compact{
    width:calc(100vw - 24px)!important;
    height:var(--lf-nav-mobile-h)!important;min-height:var(--lf-nav-mobile-h)!important;
    padding:8px 11px 8px 19px!important;
  }
  body.lafer-enterprise .lf-header .site-nav .brand img,
  body.lafer-enterprise .lf-header .site-nav.compact .brand img{
    width:135px!important;max-height:49px!important;
  }
  body.lafer-enterprise .lf-header .site-nav .nav-toggle{
    width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  }
  body.lafer-enterprise #main .solve-v2 .problems-grid{gap:10px!important;}
  body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2{--lf-problem-radius:23px;}
}
@media(prefers-reduced-motion:reduce){
 body.lafer-enterprise .lf-header .site-nav,
 body.lafer-enterprise .lf-header .site-nav *{transition:none!important;}
 body.lafer-enterprise #main .problem-card .problem-hover{will-change:auto;}
}
