/* ===========================================================
   IPSE · header.css  ·  Barra de navegación superior (.ih)
   =========================================================== */
.ih{--red:#CC0000;--redH:#a80000;--ink:#0f172a;--sub:#64748b;--ease:cubic-bezier(.2,.9,.2,1)}
.ih-shell{width:100%;position:sticky;top:0;z-index:9999;background:rgb(255 255 255 / .97);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgb(15 23 42 / .07);transition:box-shadow .25s ease;view-transition-name:ipse-header}
.ih-shell.scrolled{box-shadow:0 4px 28px rgb(15 23 42 / .10)}
.ih-inner{width:100%;max-width:1380px;margin:0 auto;padding:0 clamp(14px,3vw,36px);height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.ih-logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.ih-logo img{height:clamp(44px,5.5vw,62px);width:auto;display:block;transition:transform .2s var(--ease)}
.ih-logo:hover img{transform:scale(1.03)}
.ih-nav{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.ih-nav a{display:inline-flex;align-items:center;padding:8px 14px;border-radius:10px;font:600 14.5px/1 system-ui,Arial;color:var(--sub);text-decoration:none;transition:color .18s ease,background .18s ease;white-space:nowrap}
.ih-nav a:hover{color:var(--ink);background:rgb(15 23 42 / .05)}
.ih-nav a.active{color:var(--red);background:rgb(204 0 0 / .07);font-weight:700}
.ih-cta{display:inline-flex;align-items:center;gap:7px;padding:9px 20px;border-radius:999px;background:var(--red);color:#fff;font:700 13.5px/1 system-ui,Arial;text-decoration:none;white-space:nowrap;flex-shrink:0;border:none;cursor:pointer;box-shadow:0 4px 16px rgb(204 0 0 / .28);transition:background .18s ease,transform .16s var(--ease),box-shadow .16s ease}
.ih-cta:hover{background:var(--redH);transform:translateY(-1px);box-shadow:0 8px 22px rgb(204 0 0 / .36)}
.ih-cta:active{transform:scale(.98)}
.ih-burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;border-radius:10px;background:none;border:1px solid rgb(15 23 42 / .10);cursor:pointer;padding:8px;flex-shrink:0;transition:background .15s ease}
.ih-burger:hover{background:rgb(15 23 42 / .05)}
.ih-burger span{display:block;width:100%;height:2.5px;border-radius:999px;background:var(--ink);transition:transform .25s var(--ease),opacity .2s ease;transform-origin:center}
.ih-burger.is-open span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.ih-burger.is-open span:nth-child(2){opacity:0;transform:scaleX(0)}
.ih-burger.is-open span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
.ih-drawer{position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid rgb(15 23 42 / .07);box-shadow:0 20px 48px rgb(15 23 42 / .14);overflow:hidden;max-height:0;opacity:0;transition:max-height .35s var(--ease),opacity .25s ease;pointer-events:none}
.ih-drawer.is-open{max-height:400px;opacity:1;pointer-events:auto}
.ih-drawer-inner{padding:12px 16px 20px;display:flex;flex-direction:column;gap:4px}
.ih-drawer a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;font:600 15px/1 system-ui,Arial;color:var(--ink);text-decoration:none;transition:background .15s ease,color .15s ease}
.ih-drawer a:hover{background:rgb(15 23 42 / .05)}
.ih-drawer a.active{color:var(--red);background:rgb(204 0 0 / .07);font-weight:700}
.ih-drawer-divider{height:1px;background:rgb(15 23 42 / .06);margin:6px 0}
.ih-drawer-cta{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px;border-radius:999px;background:var(--red);color:#fff;font:700 14px/1 system-ui,Arial;text-decoration:none;margin-top:4px;box-shadow:0 4px 16px rgb(204 0 0 / .26)}
@media(max-width:860px){.ih-nav,.ih-cta{display:none}.ih-burger{display:flex}}
@media(min-width:861px){.ih-drawer{display:none!important}}
@media(max-width:420px){.ih-inner{height:62px}.ih-logo img{height:40px}}
