/* LicenciasHub: one native header, its existing colours and stable flow space. */
html[data-lh-motion] header[data-header-pill] {
    --lh-reserve: 68px;
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--lh-reserve) !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1) !important;
    translate: none !important;
    transform: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
    transition: none !important;
}
html[data-lh-motion] header[data-header-pill] > div {
    box-sizing: border-box;
    height: 100%;
    padding-block: 10px;
    transition: none;
}
html[data-lh-motion][data-lh-compact="true"] header[data-header-pill] {
    top: 20px !important;
    width: min(850px, calc(100% - 40px)) !important;
    height: 70px !important;
    margin-bottom: calc(var(--lh-reserve) - 70px) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 30px -14px rgba(0,0,0,.22) !important;
}
html[data-lh-motion][data-lh-compact="true"] header[data-header-pill] > div { padding-inline: 20px; }
html[data-lh-motion][data-lh-ready] header[data-header-pill] {
    transition: width 1s cubic-bezier(.16,1,.3,1), height 1s cubic-bezier(.16,1,.3,1), top 1s cubic-bezier(.16,1,.3,1), margin-bottom 1s cubic-bezier(.16,1,.3,1), border-radius 1s cubic-bezier(.16,1,.3,1), background-color 700ms, border-color 700ms, box-shadow 700ms !important;
}
html[data-lh-motion][data-lh-ready] header[data-header-pill] > div { transition: padding 1s cubic-bezier(.16,1,.3,1), gap 1s cubic-bezier(.16,1,.3,1); }
html[data-lh-motion] header[data-header-pill] > div > div:last-child > :is(button,a),
html[data-lh-motion] header[data-header-pill] form > button {
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
}
html[data-lh-motion] header[data-header-pill] form input { min-height: 44px; }
html[data-lh-motion] header[data-header-pill] form { min-width: 0; }
html[data-lh-motion] header[data-header-pill] > div > a:first-child { min-height:44px; }
/* Keep the published edge alignment of native floating controls. */
html[data-lh-motion] .lh-edge-action { right:max(8px,env(safe-area-inset-right)) !important; left:auto !important; }
html[data-lh-motion] header[data-header-pill] :focus-visible { outline-offset: 3px; }
html[data-lh-motion] [role="listbox"][id$="-suggestions"] { max-height: var(--lh-list-height, 288px); overflow-y: auto; overscroll-behavior: contain; }
/* Measured mobile card CTAs previously had negative horizontal text gutters. */
html[data-lh-motion] main .mt-auto.admin-ui-button {
    white-space: normal;
    overflow-wrap: anywhere;
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
    text-align: center;
    line-height: 1.35;
}
html[data-lh-motion] [aria-label="Buscar productos"][role="dialog"] button {
    min-height: 44px;
    min-width: 44px;
}
html[data-lh-motion] [aria-label="Buscar productos"][role="dialog"] > div { max-height: calc(100dvh - 100px); overflow: visible; }
@media(max-width:639px) {
    html[data-lh-motion] header[data-header-pill] { --lh-reserve:64px; }
    html[data-lh-motion][data-lh-compact="true"] header[data-header-pill] { width:calc(100% - 28px) !important; height:64px !important; margin-bottom:calc(var(--lh-reserve) - 64px) !important; top:12px !important; }
    html[data-lh-motion] header[data-header-pill] > div { padding-inline:12px; }
    html[data-lh-motion][data-lh-compact="true"] header[data-header-pill] > div { padding-inline:14px; }
    html[data-lh-motion][data-lh-route="cart"] main > div > .mt-8 > ul > li { display:grid; grid-template-columns:80px minmax(0,1fr); }
    html[data-lh-motion][data-lh-route="cart"] main > div > .mt-8 > ul > li > div:last-child { grid-column:2; }
    html[data-lh-motion][data-lh-route="cart"] main > div > .mt-8 > ul > li .mt-2 { flex-wrap:wrap; }
}
/* Five 44px native controls and the full wordmark cannot share a 292px row. */
@media(max-width:479px) {
    html[data-lh-motion] header[data-header-pill] { --lh-reserve:108px; }
    html[data-lh-motion] header[data-header-pill] > div { flex-wrap:wrap; justify-content:center; gap:2px; padding-block:8px; }
    html[data-lh-motion] header[data-header-pill] > div > a:first-child { flex-shrink:0; }
    html[data-lh-motion] header[data-header-pill] > div > a:first-child > span { overflow:visible; text-overflow:clip; }
    html[data-lh-motion] header[data-header-pill] > div > div:last-child { width:100%; justify-content:center; margin-left:0; gap:4px; }
    html[data-lh-motion][data-lh-compact="true"] header[data-header-pill] { height:108px !important; margin-bottom:0 !important; border-radius:28px !important; }
}
/* Standalone notices keep their two native text links and their own material. */
html[data-lh-motion] body[data-lh-legal-page] { display:flex; flex-direction:column; }
html[data-lh-motion] body[data-lh-legal-page] > :is(main,footer) { width:100%; }
html[data-lh-motion] header[data-lh-legal] {
    --lh-reserve:92px;
    width:min(58rem,100%) !important;
    padding:24px clamp(1rem,4vw,2.5rem);
    z-index:40;
    background:var(--brand-bg,#fafaf8);
    box-shadow:none !important;
}
html[data-lh-motion] header[data-lh-legal] a { display:inline-flex; align-items:center; min-height:44px; min-width:44px; }
html[data-lh-motion][data-lh-compact="true"] header[data-lh-legal] { padding:0 20px; box-shadow:0 8px 30px -14px rgba(0,0,0,.22) !important; }
html[data-lh-motion][data-lh-ready] header[data-lh-legal] { transition:width 1s cubic-bezier(.16,1,.3,1),height 1s cubic-bezier(.16,1,.3,1),top 1s cubic-bezier(.16,1,.3,1),margin-bottom 1s cubic-bezier(.16,1,.3,1),border-radius 1s cubic-bezier(.16,1,.3,1),padding 1s cubic-bezier(.16,1,.3,1),background-color 700ms,border-color 700ms,box-shadow 700ms !important; }
@media(max-width:639px) {
    html[data-lh-motion][data-lh-compact="true"] header[data-lh-legal] { width:calc(100% - 28px) !important; height:64px !important; margin-bottom:28px !important; top:12px !important; border-radius:32px !important; padding-inline:14px; }
}
@media(prefers-reduced-motion:reduce) {
    html[data-lh-motion][data-lh-ready] header[data-header-pill], html[data-lh-motion][data-lh-ready] header[data-header-pill] > div { transition:none !important; }
}
@media print {
    html[data-lh-motion] header[data-header-pill] { position:static !important; width:100% !important; top:0 !important; height:var(--lh-reserve) !important; margin-bottom:0 !important; }
}
