/* ============================================================
   Italmed 5.2 — Encabezado y marca (todo el sitio)
   Marca: busto del logo + "ITALMED" en Inter. Encabezado en 2 niveles.
   ============================================================ */
/* Marca */
.ih-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#0b1f33;flex:0 0 auto}
.ih-brand__mark{width:50px;height:50px;object-fit:contain;display:block;background:none;border-radius:0;box-shadow:none;padding:0}
.ih-brand__txt{display:flex;flex-direction:column;line-height:1.1}
.ih-brand__txt strong{font:800 21px/1 Inter,system-ui,sans-serif;letter-spacing:.06em;color:#0a69bd}
.ih-brand__txt small{font:500 12.5px/1.2 Inter,system-ui,sans-serif;color:#4d6079;margin-top:5px;letter-spacing:.01em}
.ih-brand--light .ih-brand__txt strong{color:#fff}
.ih-brand--light .ih-brand__txt small{color:#b9cde1}
.ih-brand--light .ih-brand__mark{background:none;box-shadow:none}

/* Encabezado */
.itm4-header.ih-hd{background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:none}
.itm4-header.ih-hd.is-scrolled{background:rgba(255,255,255,.94);box-shadow:0 6px 20px rgba(11,31,51,.08)}
.ih-hd__main{max-width:1160px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;gap:20px;min-height:72px}
.ih-hd__search{flex:1 1 auto;max-width:440px;margin-left:auto;display:flex;align-items:center;gap:10px;height:46px;padding:0 16px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:12px;transition:border-color .15s,background .15s,box-shadow .15s}
.ih-hd__search:focus-within{background:#fff;border-color:#0a69bd;box-shadow:0 0 0 3px rgba(10,105,189,.15)}
.ih-hd__search svg{width:20px;height:20px;color:#4d6079;flex:none}
.ih-hd__search input{flex:1;min-width:0;border:0;background:transparent;outline:0;box-shadow:none;font:400 15px/1 Inter,system-ui,sans-serif;color:#0b1f33;padding:0;height:100%}
.ih-hd__search input::placeholder{color:#6b7a90}
.ih-hd__actions{display:flex;align-items:center;gap:6px;margin-left:0}
.ih-hd__link{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:10px;font:500 15px/1 Inter,system-ui,sans-serif;color:#0b1f33;text-decoration:none;white-space:nowrap}
.ih-hd__link:hover{background:#eaf3fb;color:#0a69bd}
.ih-hd__cta{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;margin-left:6px;border-radius:12px;background:#0a69bd;color:#fff!important;font:600 15px/1 Inter,system-ui,sans-serif;text-decoration:none;white-space:nowrap;transition:background .15s}
.ih-hd__cta:hover{background:#084f8f}
.ih-hd__pro{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid #e2e8f0;color:#4d6079;text-decoration:none}
.ih-hd__pro:hover{color:#0a69bd;border-color:#bcd3ea}
.ih-hd__pro svg{width:20px;height:20px}
.ih-hd .itm4-menu-btn{display:none}

/* Nivel 2: navegación */
.itm4-header.ih-hd .ih-hd__nav{display:block;margin:0;border-top:1px solid #edf2f7;background:#fff}
.ih-hd__navin{max-width:1160px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:4px}
.ih-hd .itm4-nav__link{position:relative;display:inline-flex;align-items:center;gap:6px;min-height:50px;padding:0 14px;border-radius:0;background:none;font:500 15px/1 Inter,system-ui,sans-serif;color:#0b1f33;text-decoration:none}
.ih-hd .itm4-nav__link::after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#0a69bd;transform:scaleX(0);transition:transform .18s}
.ih-hd .itm4-nav__link:hover,.ih-hd .itm4-nav__link.active,.ih-hd .itm4-nav__drop:focus-within>.itm4-nav__link{background:none;color:#0a69bd}
.ih-hd .itm4-nav__link:hover::after,.ih-hd .itm4-nav__link.active::after,.ih-hd .itm4-nav__drop:hover>.itm4-nav__link::after{transform:scaleX(1)}
.ih-hd .itm4-nav__trigger{font-weight:600}
.ih-hd .itm4-nav__trigger svg{width:14px;height:14px}
.ih-hd .itm4-nav__drop{display:flex}
.ih-hd .itm4-nav__panel{top:100%;left:0;width:560px;border-radius:0 0 16px 16px;border-top:0;box-shadow:0 18px 40px rgba(11,31,51,.14)}

/* Celular / tablet */
@media (max-width:980px){
  .ih-hd__main{padding:10px 16px;gap:10px;min-height:64px}
  .ih-hd__main>.ih-hd__search,.ih-hd__link,.ih-hd__pro{display:none}
  .ih-hd__actions{margin-left:auto}
  .ih-hd__cta{min-height:42px;padding:0 16px;font-size:14px}
  .ih-hd .itm4-menu-btn{display:inline-flex}
  .itm4-header.ih-hd .ih-hd__nav{display:none}
  .ih-brand__mark{width:44px;height:44px}
  .ih-brand__txt strong{font-size:18px}
  .ih-brand__txt small{font-size:11.5px}
}
@media (max-width:380px){.ih-hd__cta{display:none}}
/* Buscador dentro del cajón del celular */
.ih-hd__search--drawer{display:flex!important;max-width:none;margin:0 0 14px;flex:none}
.itm4-drawer .ih-hd__search--drawer{margin:12px 16px 0}

/* 5.2.1: campo de búsqueda sin doble borde (gana a los estilos de input del sitio) */
html body .ih-hd .ih-hd__search input[type="search"],html body .ih-hd .ih-hd__search input[type="search"]:focus,html body .itm4-drawer .ih-hd__search input[type="search"],html body .itm4-drawer .ih-hd__search input[type="search"]:focus{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;padding:0!important;height:100%!important;margin:0!important;-webkit-appearance:none;appearance:none}
.ih-hd__search input::-webkit-search-cancel-button{display:none}
a.ih-brand,a.ih-brand:hover,a.ih-brand:focus{text-decoration:none!important}
.ih-brand--light .ih-brand__txt strong{color:#fff!important}
.ih-brand--light .ih-brand__txt small{color:#b9cde1!important}
/* 5.2.6: barra superior azul sólida (gana al degradado de v42-polish) */
html body .itm4-topbar{background:#0a69bd!important;background-image:none!important}

html body .ih-brand .ih-brand__mark{background:none!important;box-shadow:none!important;padding:0!important;border-radius:0!important}

/* Nombre con degradado mate en los colores del logo */
html body .ih-brand .ih-brand__txt strong{background:linear-gradient(100deg,#1c93d2 0%,#0aa3b4 55%,#07a39a 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important}
html body .ih-brand--light .ih-brand__txt strong{background:linear-gradient(100deg,#4cc3ee 0%,#25c1cc 55%,#1fd0b8 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;color:transparent!important}
