/* ASOCOLOPROCTO · Encabezado y pie globales */
.asc-header,.asc-footer{--asc-navy:#0b2e6d;--asc-blue:#1f4fa3;--asc-gold:#bc8c2f;--asc-line:#e0e7ef;--asc-soft:#f4f7fb;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;box-sizing:border-box}
.asc-header *,.asc-header *::before,.asc-header *::after,.asc-footer *,.asc-footer *::before,.asc-footer *::after{box-sizing:border-box}
.asc-header ul,.asc-footer ul{list-style:none;margin:0;padding:0}
.asc-header li,.asc-footer li{margin:0;padding:0}
.asc-header a,.asc-footer a{text-decoration:none}

/* Nivel 1: logo, destacados, búsqueda */
.asc-header{position:relative;z-index:1000;width:100%;background:#fff;border-bottom:1px solid var(--asc-line);color:var(--asc-navy)}
.asc-header .asc-bar{max-width:1240px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:14px;min-height:84px}
.asc-header .asc-logo{display:block;flex:0 0 auto;width:240px;max-width:56vw;line-height:0;margin-right:auto}
.asc-header .asc-logo img{display:block;width:100%;height:auto;max-width:none;border:0}
.asc-header .asc-menu{display:flex;align-items:center;gap:4px}
.asc-header .asc-item{position:relative}
.asc-header .asc-link,.asc-header button.asc-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:var(--asc-navy);font-family:inherit;font-size:15px;font-weight:600;line-height:1.2;letter-spacing:0;text-transform:none;cursor:pointer;white-space:nowrap;box-shadow:none}
.asc-header .asc-link:hover,.asc-header .asc-link:focus-visible,.asc-header button.asc-link:hover,.asc-header button.asc-link:focus-visible,.asc-header .asc-item.is-current>.asc-link{background:var(--asc-soft);color:var(--asc-navy)}
.asc-header .asc-link:focus-visible,.asc-header .asc-sub a:focus-visible,.asc-header .asc-search:focus-visible,.asc-header .asc-toggle:focus-visible,.asc-header .asc-logo:focus-visible{outline:2px solid var(--asc-blue);outline-offset:2px}
.asc-header .asc-chev{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.asc-header .asc-sub-toggle[aria-expanded="true"] .asc-chev{transform:rotate(225deg) translate(-2px,0)}

/* Destacados */
.asc-header .asoco-featured>.asc-link{color:var(--asc-gold)}
.asc-header .asoco-featured>.asc-link:hover,.asc-header .asoco-featured>.asc-link:focus-visible,.asc-header .asoco-featured.is-current>.asc-link{color:#9a7124;background:#fbf6ec}
.asc-header .asoco-portal>.asc-link{padding:11px 18px;background:var(--asc-navy);color:#fff}
.asc-header .asoco-portal>.asc-link:hover,.asc-header .asoco-portal>.asc-link:focus-visible,.asc-header .asoco-portal.is-current>.asc-link{background:var(--asc-blue);color:#fff}

/* Nivel 2: navegación */
.asc-header .asc-nav{border-top:1px solid var(--asc-line)}
.asc-header .asc-nav>.asc-menu{max-width:1240px;margin:0 auto;padding:6px 24px;gap:6px}
.asc-header .asc-mobile-only{display:none}

/* Submenús (escritorio) */
.asc-header .asc-sub{position:absolute;top:calc(100% + 6px);left:0;min-width:260px;padding:8px;background:#fff;border:1px solid var(--asc-line);border-radius:12px;box-shadow:0 16px 36px rgba(11,46,109,.14);display:none;z-index:5}
.asc-header .asc-sub::before{content:"";position:absolute;left:0;right:0;top:-8px;height:8px}
.asc-header .asc-sub a{display:block;padding:10px 12px;border-radius:8px;color:var(--asc-navy);font-size:15px;font-weight:500;line-height:1.3}
.asc-header .asc-sub a:hover,.asc-header .asc-sub a:focus-visible,.asc-header .asc-sub a[aria-current="page"]{background:var(--asc-soft);color:var(--asc-blue)}
@media (min-width:901px){
  .asc-header .has-sub:hover>.asc-sub,.asc-header .has-sub:focus-within>.asc-sub,.asc-header .has-sub.is-open>.asc-sub{display:block}
}

/* Búsqueda y hamburguesa */
.asc-header .asc-search{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--asc-navy)}
.asc-header .asc-search:hover{background:var(--asc-soft);color:var(--asc-blue)}
.asc-header .asc-search svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.asc-header .asc-toggle,.asc-header button.asc-toggle{display:none;flex:0 0 auto;width:46px;height:46px;padding:13px 11px;border:1px solid var(--asc-line);border-radius:10px;background:#fff;cursor:pointer;flex-direction:column;justify-content:space-between;box-shadow:none}
.asc-header .asc-toggle span{display:block;height:2px;width:100%;background:var(--asc-navy);border-radius:2px;transition:transform .2s,opacity .2s}
.asc-header .asc-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.asc-header .asc-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.asc-header .asc-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

/* Celular / tableta vertical: menú hamburguesa */
@media (max-width:900px){
  .asc-header .asc-bar{gap:6px;min-height:70px;padding:10px 16px}
  .asc-header .asc-logo{width:200px}
  .asc-header .asc-featured{display:none}
  .asc-header .asc-toggle,.asc-header button.asc-toggle{display:flex}
  .asc-header .asc-nav{display:none;max-height:calc(100vh - 80px);overflow-y:auto}
  .asc-header.is-open .asc-nav{display:block}
  .asc-header .asc-nav>.asc-menu{flex-direction:column;align-items:stretch;gap:2px;padding:8px 16px 16px}
  .asc-header .asc-mobile-only{display:block}
  .asc-header .asc-link,.asc-header button.asc-link{width:100%;justify-content:space-between;font-size:16px;padding:12px}
  .asc-header .asc-sub{position:static;min-width:0;box-shadow:none;border:0;border-left:3px solid var(--asc-line);border-radius:0;margin:2px 0 6px 12px;padding:2px 0 2px 8px}
  .asc-header .asc-sub::before{display:none}
  .asc-header .has-sub.is-open>.asc-sub{display:block}
  .asc-header .asc-sub a{font-size:15px;padding:11px 12px}
  .asc-header .asoco-portal>.asc-link{margin-top:8px;justify-content:center}
}
@media (max-width:400px){.asc-header .asc-logo{width:165px}}

/* Pie */
.asc-footer{width:100%;margin:0;background:var(--asc-soft);color:var(--asc-navy);border-top:1px solid var(--asc-line);clear:both}
.asc-footer .asc-footer-main{max-width:1240px;margin:0 auto;padding:44px 24px 36px;display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px}
.asc-footer .asc-footer-brand img{display:block;width:210px;max-width:100%;height:auto}
.asc-footer .asc-footer-brand p{margin:14px 0 0;font-size:14px;line-height:1.5;color:#334766}
.asc-footer .asc-footer-contact span{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--asc-gold)}
.asc-footer .asc-footer-contact a{color:var(--asc-navy);font-weight:600}
.asc-footer h2{margin:4px 0 14px;padding:0;font-size:15px;font-weight:700;line-height:1.3;color:var(--asc-navy);letter-spacing:0;text-transform:none}
.asc-footer .asc-footer-col li+li{margin-top:9px}
.asc-footer .asc-footer-col a{color:#334766;font-size:14px;line-height:1.4}
.asc-footer a:hover,.asc-footer a:focus-visible{color:var(--asc-blue);text-decoration:underline}
.asc-footer .asoco-social-footer{margin:0}
.asc-footer .asc-footer-bottom{background:#071f43;color:#dbe4f3;text-align:center;font-size:13px;padding:14px 20px}
@media (max-width:900px){.asc-footer .asc-footer-main{grid-template-columns:1fr 1fr;gap:28px}.asc-footer .asc-footer-brand{grid-column:1 / -1}}
@media (max-width:520px){.asc-footer .asc-footer-main{grid-template-columns:1fr;padding:32px 20px 28px;gap:24px}}

/* GeneratePress: contenedor del pie vacío */
.asoco-has-chrome .site-footer:empty{display:none}

/* Actualidad y Prensa: portada */
.asoco-press-hub{max-width:1180px;margin:0 auto;padding:8px 0 24px}
.asoco-press-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.asoco-press-card{display:flex;flex-direction:column;gap:10px;min-height:200px;padding:26px 22px;background:#fff;border:1px solid #e0e7ef;border-radius:16px;box-shadow:0 10px 28px rgba(11,46,109,.07);color:#0b2e6d;text-decoration:none;transition:transform .15s,box-shadow .15s}
a.asoco-press-card:hover,a.asoco-press-card:focus-visible{transform:translateY(-2px);box-shadow:0 16px 34px rgba(11,46,109,.13)}
.asoco-press-card h2{margin:0;font-size:20px;line-height:1.25;color:#0b2e6d}
.asoco-press-card p{margin:0;font-size:15px;line-height:1.5;color:#4a5b78;flex:1}
.asoco-press-card strong{font-size:14px;color:#1f4fa3}
.asoco-press-card.is-soon strong{display:inline-block;align-self:flex-start;padding:5px 10px;border-radius:999px;background:#fbf6ec;color:#9a7124;font-size:13px}
.asoco-press-manage{margin:22px 0 0;text-align:right}
@media (max-width:980px){.asoco-press-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.asoco-press-grid{grid-template-columns:1fr}.asoco-press-card{min-height:0}}

/* Portal Core oculta header/footer en sus pantallas de acceso y afiliación; el encabezado y pie globales deben verse */
body.apc-login-screen header.asc-header{display:block!important}
body.apc-login-screen footer.asc-footer{display:block!important}
