/*
Theme Name: Grafimpac
Author: Grafimpac
Description: Tema corporativo configurable, preparado para Elementor.
Version: 1.0.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: grafimpac
*/
.gp-header{background-color:#fff}
:root{--gp-blue:#173fa9;--gp-gradient:linear-gradient(100deg,#183fac 0%,#07366d 66%,#00738c 100%);--gp-font:Accord,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;color:#171c28;font-family:var(--gp-font);line-height:1.5}a{color:inherit}img{max-width:100%;height:auto}.gp-wrap{width:min(1200px,88%);margin:auto}.gp-top{background:var(--gp-gradient);color:white;min-height:26px}.gp-top .gp-wrap{display:flex;justify-content:flex-end}.gp-social{display:flex;gap:7px;align-items:center;justify-content:center;padding:4px 0}.gp-social a{display:flex;width:22px;height:22px;align-items:center;justify-content:center;background:white;color:#124397;border-radius:50%;text-decoration:none;font:bold 13px Arial}.gp-social svg{width:16px;height:16px;fill:currentColor}.gp-header-inner{min-height:115px;display:flex;align-items:center;justify-content:space-between;gap:30px}.gp-brand{display:inline-flex;align-items:center;text-decoration:none;font-size:40px;font-weight:700;color:#080808}.gp-brand img{display:block;width:auto;max-width:320px;max-height:76px}.gp-menu{list-style:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;margin:0;padding:4px 18px}.gp-header nav{background:linear-gradient(#2938bf,#215daa);border-radius:9px;color:#fff}.gp-menu li{position:relative;list-style:none}.gp-menu>li+li:before{content:'/';margin:0 12px;font-weight:bold}.gp-menu a{text-decoration:none;font-weight:700;font-size:16px;display:inline-block;padding:4px 0}.gp-menu .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:190px;padding:10px 16px;background:#123c86;color:white;z-index:100;border-radius:5px}.gp-menu li:hover>.sub-menu,.gp-menu li:focus-within>.sub-menu{display:block}.gp-menu .sub-menu .sub-menu{left:100%;top:0}.gp-toggle{display:none}.gp-footer{background:var(--gp-gradient);color:white;text-align:center;padding:35px 0 15px}.gp-footer .gp-brand{color:white;font-size:36px;margin-bottom:12px}.gp-footer .gp-brand img{max-width:300px;max-height:72px}.gp-footer-text{border-top:1px solid #ffffff20;margin-top:12px;padding:12px 6%;font-size:13px;color:#e0e8ff;white-space:pre-line}.gp-main{min-height:40vh}.gp-content{padding:50px 0}.gp-content h1{line-height:1.15}.gp-skip{position:absolute;left:12px;top:-100px;background:white;color:#123c86;padding:12px;z-index:1000}.gp-skip:focus{top:10px}:focus-visible{outline:3px solid #00aacb;outline-offset:4px}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:800px){.gp-header-inner{min-height:95px;flex-wrap:wrap;padding:18px 0;gap:16px}.gp-brand{font-size:30px}.gp-brand img{max-width:225px;max-height:60px}.gp-toggle{display:block;border:1px solid #174398;border-radius:5px;padding:9px 12px;background:white;color:#174398;font:inherit}.gp-header nav{width:100%}.gp-header nav[hidden]{display:none}.gp-header .gp-menu{display:block;padding:10px 20px}.gp-header .gp-menu>li+li:before{content:none}.gp-header .gp-menu a{padding:8px 0}.gp-header .gp-menu .sub-menu{display:block;position:static;background:transparent;padding:0 0 0 18px}.gp-footer .gp-menu>li+li:before{margin:0 7px}.gp-footer .gp-menu a{font-size:14px}.gp-footer .sub-menu{position:static;display:block}.gp-footer .gp-menu .sub-menu .sub-menu{position:static}.gp-footer-text{font-size:12px}}
/* Menú original con separadores y línea animada. */
.gp-menu{gap:0;padding:4px 18px}
.gp-menu > li + li::before{content:'/';margin:0 12px;font-weight:bold}
.gp-header .gp-menu a,.gp-footer .gp-menu a{
  position:relative;display:inline-block;padding:4px 0;
  border:0;border-radius:0;background:transparent;color:inherit;
  box-shadow:none;text-decoration:none;transition:none;
}
.gp-menu a:hover,.gp-menu a:focus-visible,
.gp-menu .current-menu-item > a,.gp-menu a[aria-current="page"]{
  background:transparent;color:inherit;box-shadow:none;text-decoration:none;
}
.gp-menu a::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:2px;
  background:currentColor;transform:scaleX(0);transform-origin:left center;
  transition:transform .25s ease;pointer-events:none;
}
.gp-menu a:hover::after,.gp-menu a:focus-visible::after,
.gp-menu .current-menu-item > a::after,.gp-menu a[aria-current="page"]::after{
  transform:scaleX(1);
}
.gp-menu a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:800px){
  .gp-header .gp-menu{padding:10px 20px}
  .gp-header .gp-menu > li + li::before{content:none}
  .gp-header .gp-menu li{margin:0}
  .gp-header .gp-menu a{display:inline-block;padding:8px 0}
  .gp-footer .gp-menu > li + li::before{margin:0 7px}
}
@media(prefers-reduced-motion:reduce){.gp-menu a::after{transition:none}}
/* Navegación suave a anclas, respetando movimiento reducido. */
html{scroll-behavior:smooth;scroll-padding-top:24px}
html:has(body.admin-bar){scroll-padding-top:56px}
@media(max-width:782px){html:has(body.admin-bar){scroll-padding-top:70px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Menú sin subrayados, conservando los separadores. */
.gp-header .gp-menu a,.gp-footer .gp-menu a,
.gp-header .gp-menu a:hover,.gp-footer .gp-menu a:hover,
.gp-header .gp-menu a:focus-visible,.gp-footer .gp-menu a:focus-visible{text-decoration:none}
.gp-header .gp-menu a::after,.gp-footer .gp-menu a::after{content:none;display:none}

/* Cabecera persistente y anclas visibles debajo de ella. */
.gp-header{position:sticky;top:var(--gp-admin-offset,0px);z-index:9990;background:#fff}
body.admin-bar .gp-header{--gp-admin-offset:32px}
html{scroll-padding-top:calc(var(--gp-header-height,145px) + var(--gp-anchor-admin,0px) + 16px)}
html:has(body.admin-bar){--gp-anchor-admin:32px;scroll-padding-top:calc(var(--gp-header-height,145px) + var(--gp-anchor-admin) + 16px)}
@media(max-width:782px){body.admin-bar .gp-header{--gp-admin-offset:46px}html:has(body.admin-bar){--gp-anchor-admin:46px}}
@media(max-width:600px){body.admin-bar .gp-header{--gp-admin-offset:0px}html:has(body.admin-bar){--gp-anchor-admin:0px}}
@media(max-width:800px){.gp-header #gp-primary{max-height:60vh;overflow-y:auto}}