/* Shell institucional aislado. No modifica el contenido de las páginas. */
#hd.ig-header{position:fixed!important;top:0;left:0;right:0;bottom:auto;z-index:1000!important;background:rgba(7,27,48,.90)!important;color:#fff!important;box-shadow:0 8px 28px rgba(0,0,0,.12);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
#hd.ig-header.solid{background:rgba(7,27,48,.98)!important;box-shadow:0 8px 32px rgba(0,0,0,.22)}
#hd.ig-header .ig-header-bar{display:flex!important;align-items:center;justify-content:space-between;gap:2rem;min-height:80px;padding:10px 0;max-width:1220px}
#hd.ig-header .ig-brand{display:inline-flex;align-items:center;gap:12px;min-width:0;text-decoration:none;color:white;line-height:1.13;flex-shrink:0}
#hd.ig-header .ig-brand img{height:52px;width:52px;flex-shrink:0;object-fit:contain}
#hd.ig-header .ig-brand strong{display:block;color:#fff;font-size:1.18rem;font-weight:700;letter-spacing:.015em}
#hd.ig-header .ig-brand small{display:block;color:#c9e0f1;font-size:.78rem;font-weight:500;margin-top:3px}
#hd.ig-header .ig-nav{position:static!important;inset:auto!important;display:flex!important;align-items:center;justify-content:flex-end;flex-direction:row;gap:clamp(9px,1.5vw,22px);padding:0!important;margin:0!important;background:transparent!important;transform:none!important;transition:none!important;box-shadow:none!important;max-height:none!important;overflow:visible!important;width:auto;flex:1}
#hd.ig-header .ig-nav>a,#hd.ig-header .ig-nav-group>a{display:inline-flex;align-items:center;color:#e6f1fa;text-decoration:none;white-space:nowrap;font-weight:600;font-size:.93rem;line-height:1.4;padding:9px 2px;border-radius:6px}
#hd.ig-header .ig-nav>a:hover,#hd.ig-header .ig-nav>a.is-active,#hd.ig-header .ig-nav-group.is-active>a,#hd.ig-header .ig-nav-group>a:hover{color:#fff}
#hd.ig-header .ig-nav>a::after,#hd.ig-header .ig-nav-group>a::after{background:#6ccbff;bottom:3px}
#hd.ig-header .ig-nav-group{position:relative;display:flex;align-items:center;gap:3px}
#hd.ig-header .ig-sub-toggle{border:0;background:transparent;color:#c9e0f1;cursor:pointer;padding:6px 4px;font-size:1rem}
#hd.ig-header .ig-sub{display:none;position:absolute;top:100%;left:0;min-width:190px;background:#0b2a4a;border:1px solid #ffffff30;border-radius:14px;padding:8px;box-shadow:0 20px 44px #0004;z-index:1002}
#hd.ig-header .ig-nav-group.ig-expanded .ig-sub,#hd.ig-header .ig-nav-group:focus-within .ig-sub,#hd.ig-header .ig-nav-group:hover .ig-sub{display:block}
#hd.ig-header .ig-sub a{display:block;color:#e8f4ff;text-decoration:none;padding:9px 12px;border-radius:8px;white-space:nowrap;font-size:.9rem}
#hd.ig-header .ig-sub a:hover{background:#ffffff15;color:white}
#hd.ig-header .ig-menu-button{display:none;appearance:none;border:1px solid #ffffff40;background:#ffffff10;color:#fff;width:44px;height:44px;border-radius:12px;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;padding:8px;flex-shrink:0}
#hd.ig-header .ig-menu-button span{display:block;width:22px;height:2px;border-radius:2px;background:#fff;transition:transform .2s,opacity .2s}
#ft.ig-footer{position:relative!important;background:#071b30!important;color:#d0e0ed!important;padding:3.8rem 0 1.3rem!important;overflow:hidden}
#ft.ig-footer::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#8d1827,#49a7eb,#8d1827)}
#ft.ig-footer .ig-footer-grid{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(120px,.75fr)) minmax(210px,1.1fr);gap:clamp(20px,3vw,46px);padding-bottom:2.6rem}
#ft.ig-footer .ig-footer-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;padding:0 0 .8rem}
#ft.ig-footer .ig-footer-brand img{width:58px;height:58px;object-fit:contain}
#ft.ig-footer .ig-footer-brand span{display:block;font-family:'Cormorant Garamond',Georgia,serif;font-size:1.55rem;line-height:1.05;font-weight:700}
#ft.ig-footer .ig-footer-brand small{display:block;font-family:Outfit,sans-serif;font-size:.75rem;font-weight:500;margin-top:6px;color:#b8d8ef}
#ft.ig-footer h3{font-family:Outfit,sans-serif;font-size:1rem;letter-spacing:.04em;color:#fff;margin:0 0 1rem}
#ft.ig-footer p{line-height:1.7;color:#b6cede;font-size:.9rem;margin:.4rem 0 1rem}
#ft.ig-footer .ig-footer-links{display:grid;gap:.45rem}
#ft.ig-footer .ig-footer-links a,#ft.ig-footer .ig-footer-extras a{color:#c6dceb;text-decoration:none;padding:2px 0;font-size:.91rem;display:block;transition:color .2s,transform .2s}
#ft.ig-footer .ig-footer-links a:hover,#ft.ig-footer .ig-footer-extras a:hover{color:#fff;transform:translateX(3px)}
#ft.ig-footer .ig-footer-cta{display:inline-flex;gap:.55rem;align-items:center;color:#fff;background:#9b2635;border-radius:12px;text-decoration:none;font-weight:700;font-size:.9rem;padding:.72rem 1rem;margin:.2rem 0 1rem}
#ft.ig-footer .ig-footer-cta:hover{background:#bc3546}
#ft.ig-footer .ig-footer-extras{display:grid;gap:.3rem}
#ft.ig-footer .ig-footer-bottom{border-top:1px solid #ffffff25;padding-top:1.2rem;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.79rem;color:#a4c0d5}
@media(max-width:1020px){
 #hd.ig-header .ig-header-bar{min-height:76px}
 #hd.ig-header .ig-menu-button{display:inline-flex!important;position:relative;z-index:1004}
 #hd.ig-header .ig-menu-button[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
 #hd.ig-header .ig-menu-button[aria-expanded="true"] span:nth-child(2){opacity:0}
 #hd.ig-header .ig-menu-button[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
 #hd.ig-header .ig-nav{position:fixed!important;top:76px!important;left:0!important;right:0!important;width:100%!important;display:none!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:2px!important;background:#071b30!important;padding:15px max(4vw,16px) 26px!important;box-shadow:0 25px 38px #0005!important;max-height:calc(100dvh - 76px)!important;overflow-y:auto!important;transform:none!important;z-index:1003!important}
 #hd.ig-header .ig-nav.ig-open{display:flex!important}
 #hd.ig-header .ig-nav>a,#hd.ig-header .ig-nav-group>a{display:flex!important;padding:12px 13px!important;font-size:1rem!important;white-space:normal!important}
 #hd.ig-header .ig-nav-group{display:grid!important;grid-template-columns:1fr 45px;gap:0}
 #hd.ig-header .ig-sub-toggle{font-size:1.2rem;min-height:45px}
 #hd.ig-header .ig-sub{display:none;position:static!important;grid-column:1/-1;width:100%;box-shadow:none;background:#ffffff0d;border-color:#ffffff12;margin-bottom:4px}
 #hd.ig-header .ig-nav-group.ig-expanded .ig-sub{display:block}
 #hd.ig-header .ig-nav-group:hover .ig-sub,#hd.ig-header .ig-nav-group:focus-within .ig-sub{display:none}
 #hd.ig-header .ig-nav-group.ig-expanded:hover .ig-sub,#hd.ig-header .ig-nav-group.ig-expanded:focus-within .ig-sub{display:block}
 #ft.ig-footer .ig-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.2rem}
}
@media(max-width:600px){
 #hd.ig-header .ig-brand img{width:45px;height:45px}
 #hd.ig-header .ig-brand strong{font-size:1rem}
 #hd.ig-header .ig-brand small{font-size:.7rem}
 #ft.ig-footer .ig-footer-grid{grid-template-columns:1fr;gap:1.9rem}
 #ft.ig-footer .ig-footer-bottom{display:grid;text-align:center;justify-content:center}
}
@media(prefers-reduced-motion:reduce){#ft.ig-footer *,#hd.ig-header *{transition:none!important;animation:none!important}}

/* Refuerzo puntual: evite el desbordamiento del encabezado en pantallas angostas. */
#hd.ig-header .ig-nav-group>a::after{pointer-events:none}
#hd.ig-header .ig-brand span{min-width:0}
@media(max-width:1020px){
 #hd.ig-header .ig-header-bar{gap:.65rem!important}
 #hd.ig-header .ig-nav-group{width:100%}
 #hd.ig-header .ig-nav .ig-nav-group .ig-sub{min-width:0}
}
@media(max-width:380px){#hd.ig-header .ig-brand strong{font-size:.92rem}#hd.ig-header .ig-brand small{font-size:.64rem}}

/* Redes sociales: estilos aislados y sin dependencias extra */
#ft .ig-social-links{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
#ft .ig-social-link,#hd .ig-social-link{display:inline-flex;align-items:center;gap:.52rem;text-decoration:none;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:.48rem .8rem;color:#fff;font-size:.85rem;font-weight:600;transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
#ft .ig-social-icon,#hd .ig-social-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:rgba(255,255,255,.1);flex:0 0 30px}
#ft .ig-social-link:hover,#hd .ig-social-link:hover{background:rgba(255,255,255,.14);transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.15)}
#ft .ig-social-link svg,#hd .ig-social-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#ft .ig-social-text,#hd .ig-social-text{display:inline-block}
#ft .ig-social-link:first-child svg{fill:currentColor;stroke:none}
#hd .ig-nav-social{display:none}
@media(max-width:1020px){#hd .ig-nav-social{display:flex;flex-wrap:wrap;gap:.5rem;padding:.85rem 0 .25rem;border-top:1px solid #ffffff24;margin-top:.6rem}#hd .ig-nav-social .ig-social-link{font-size:.83rem;padding:.5rem .65rem}}

/* Las tres redes usan iconos acotados tanto en footer como en menú móvil. */
#hd.ig-header .ig-nav-social .ig-social-link svg,
#ft.ig-footer .ig-social-links .ig-social-link svg{display:block;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;flex:none}
#hd.ig-header .ig-nav-social .ig-social-link .ig-social-icon,
#ft.ig-footer .ig-social-links .ig-social-link .ig-social-icon{width:30px;height:30px;flex:0 0 30px}
