/* Navegacion global mobile-first. El header y la navegacion desktop conservan su sistema original. */
:root {
    --hvt-mobile-nav-height: 72px;
    --hvt-mobile-ink: #111415;
    --hvt-mobile-muted: #657071;
    --hvt-mobile-green: #009f91;
    --hvt-mobile-soft: #e8f5f3;
    --hvt-mobile-line: #d9e0df;
}

.hvt-mobile-nav-shell,
.hvt-mobile-language-button,
.hvt-mobile-hero-cta,
.hvt-mobile-home-access {
    display: none;
}

@media screen and (max-width: 1100px) {
    html {
        scroll-padding-top: 72px;
    }

    body.hvt-mobile-navigation-enabled:not(.doe-poster) {
        padding-bottom: calc(var(--hvt-mobile-nav-height) + env(safe-area-inset-bottom));
    }

    body.hvt-mobile-overlay-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .ss-go-top,
    .language-suggestion {
        display: none !important;
    }

    .hvt-mobile-nav-shell {
        display: block;
        font-family: var(--font-1, "Roboto", sans-serif);
        color: var(--hvt-mobile-ink);
    }

    /* Corporate header: language at left, undistorted logo at the true center. */
    .s-header {
        --header-height: 64px;
    }

    .s-header .row {
        width: 100%;
        min-height: var(--header-height);
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    }

    .s-header__logo {
        --logo-width: 110px;
        grid-column: 2;
        grid-row: 1;
        width: var(--logo-width);
        height: var(--header-height);
        margin: 0 !important;
        justify-self: center;
    }

    .s-header__logo a {
        right: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .s-header__logo img {
        width: auto;
        max-width: 110px;
        height: 48px;
        object-fit: contain;
    }

    .s-header__language {
        grid-column: 1;
        grid-row: 1;
        position: static !important;
        width: max-content;
        height: var(--header-height);
        margin: 0;
        justify-self: start;
        z-index: auto;
    }

    .s-header .hvt-mobile-language-button {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .s-header__language-toggle,
    .hvt-mobile-language-button {
        width: auto;
        min-width: 56px;
        min-height: 46px;
        height: 46px;
        margin: 0;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 0;
        border-radius: 8px;
        color: rgba(255, 255, 255, .82);
        background: transparent;
        font: inherit;
        font-size: 12px;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
    }

    .s-header__language-toggle:hover,
    .s-header__language-toggle:focus-visible,
    .hvt-mobile-language-button:hover,
    .hvt-mobile-language-button:focus-visible,
    .s-header__language-toggle[aria-expanded="true"],
    .hvt-mobile-language-button[aria-expanded="true"] {
        color: #fff;
        background: rgba(0, 159, 145, .2);
        outline: 2px solid rgba(101, 230, 217, .72);
        outline-offset: 1px;
    }

    .s-header__language-current,
    .hvt-mobile-language-button__current {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .06em;
    }

    .s-header__language-toggle i:last-child {
        transform: none !important;
    }

    .s-header__language-menu,
    .s-header__menu-toggle,
    .s-header__nav {
        display: none !important;
    }

    /* Public Laboratory pages receive the same compact header. */
    .lab-site-header__inner {
        min-height: 64px;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .lab-site-header__brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .lab-site-header__brand img {
        width: 100px;
        max-width: 100%;
        height: 50px;
        object-fit: contain;
    }

    .lab-site-header .hvt-mobile-language-button {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .lab-site-header__toggle,
    .lab-global-nav {
        display: none !important;
    }

    .lab-tool-nav {
        position: relative;
        z-index: 1;
    }

    .s-home__slider h1,
    .s-home__slider h2 {
        font-size: clamp(30px, 8.5vw, 46px);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .s-home__slider p {
        font-size: 16px;
        line-height: 1.5;
    }

    .s-home__nav-arrows {
        display: none;
    }

    .hvt-mobile-hero-cta {
        width: max-content;
        min-width: 180px;
        min-height: 48px;
        margin-top: 20px;
        padding: 12px 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--hvt-mobile-green);
        color: #fff;
        background: var(--hvt-mobile-green);
        font-family: var(--font-2, "Manrope", sans-serif);
        font-size: 11.5px;
        font-weight: 850;
        letter-spacing: .08em;
        line-height: 1.2;
        text-decoration: none;
        text-transform: uppercase;
    }

    .hvt-mobile-hero-cta:hover,
    .hvt-mobile-hero-cta:focus-visible {
        color: var(--hvt-mobile-ink);
        background: #fff;
        outline: 3px solid rgba(0, 159, 145, .38);
        outline-offset: 3px;
    }

    .hvt-mobile-home-access {
        padding: 32px 0 34px;
        display: block;
        border-top: 3px solid var(--hvt-mobile-green);
        color: #fff;
        background:
            linear-gradient(180deg, rgba(0, 159, 145, .07), transparent 150px),
            #111516;
    }

    .hvt-mobile-home-access__inner {
        width: min(calc(100% - 32px), 720px);
        margin: 0 auto;
    }

    .hvt-mobile-home-access__eyebrow {
        margin: 0 0 4px;
        color: #63ded3;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .2em;
        text-transform: uppercase;
    }

    .hvt-mobile-home-access h2 {
        margin: 0 0 16px;
        color: #fff;
        font-family: var(--font-2, "Manrope", sans-serif);
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.1;
    }

    .hvt-mobile-home-access__list {
        border-top: 1px solid #364142;
        border-bottom: 1px solid #364142;
        background: rgba(255, 255, 255, .015);
    }

    .hvt-mobile-home-access__item {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 78px;
        margin: 0;
        padding: 12px 12px 12px 14px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 18px;
        align-items: center;
        gap: 12px;
        border: 0;
        border-bottom: 1px solid #293233;
        border-radius: 0;
        color: #fff;
        background: transparent;
        font: inherit;
        font-family: var(--font-2, "Manrope", sans-serif);
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        appearance: none;
    }

    .hvt-mobile-home-access__item:last-child {
        border-bottom: 0;
    }

    .hvt-mobile-home-access__item::before {
        content: "";
        position: absolute;
        top: 14px;
        bottom: 14px;
        left: 0;
        width: 2px;
        background: var(--hvt-mobile-green);
        opacity: .45;
        transform: scaleY(.45);
        transition: opacity .18s ease, transform .18s ease;
    }

    .hvt-mobile-home-access__icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 1px solid #3d4b4c;
        border-radius: 50%;
        background: rgba(0, 159, 145, .06);
    }

    .hvt-mobile-home-access__icon svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: #63ded3;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .hvt-mobile-home-access__content {
        min-width: 0;
        display: grid;
        gap: 3px;
    }

    .hvt-mobile-home-access__content strong {
        color: #fff;
        font-size: 14.5px;
        font-weight: 850;
        line-height: 1.2;
    }

    .hvt-mobile-home-access__description {
        color: #aebabb;
        font-size: 12.5px;
        font-weight: 500;
        line-height: 1.38;
        overflow-wrap: anywhere;
    }

    .hvt-mobile-home-access__action {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 7px;
        color: #63ded3;
        font-size: 10.5px;
        font-weight: 850;
        letter-spacing: .06em;
        line-height: 1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .hvt-mobile-home-access__action > span {
        display: none;
    }

    .hvt-mobile-home-access__action .hvt-mobile-home-access__arrow {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .18s ease;
    }

    .hvt-mobile-home-access__item:hover,
    .hvt-mobile-home-access__item:focus-visible {
        color: #fff;
        background: rgba(0, 159, 145, .08);
        outline: 2px solid #63ded3;
        outline-offset: -2px;
    }

    .hvt-mobile-home-access__item:hover::before,
    .hvt-mobile-home-access__item:focus-visible::before {
        opacity: 1;
        transform: scaleY(1);
    }

    .hvt-mobile-home-access__item:hover .hvt-mobile-home-access__arrow,
    .hvt-mobile-home-access__item:focus-visible .hvt-mobile-home-access__arrow {
        transform: translateX(2px);
    }

    .hvt-mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9400;
        height: calc(var(--hvt-mobile-nav-height) + env(safe-area-inset-bottom));
        padding: 5px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-top: 1px solid rgba(17, 20, 21, .14);
        background: rgba(250, 252, 252, .97);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .13);
        -webkit-backdrop-filter: blur(18px) saturate(145%);
        backdrop-filter: blur(18px) saturate(145%);
    }

    .hvt-mobile-nav__item {
        min-width: 0;
        min-height: 62px;
        margin: 0;
        padding: 4.5px 2px 3.5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5px;
        position: relative;
        border: 0;
        border-radius: 9px;
        color: #515b5c;
        background: transparent;
        font: inherit;
        font-size: 10px;
        font-weight: 750;
        line-height: 1.1;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .hvt-mobile-nav__item svg {
        width: 23.5px;
        height: 23.5px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .hvt-mobile-nav__item::before {
        content: "";
        width: 24px;
        height: 3px;
        position: absolute;
        top: -5px;
        left: 50%;
        border-radius: 0 0 10px 10px;
        background: transparent;
        transform: translateX(-50%);
    }

    .hvt-mobile-nav__item:hover,
    .hvt-mobile-nav__item:focus-visible {
        color: #006f66;
        background: var(--hvt-mobile-soft);
        outline: 2px solid rgba(0, 159, 145, .42);
        outline-offset: -2px;
    }

    .hvt-mobile-nav__item[aria-current="page"],
    .hvt-mobile-nav__item[aria-expanded="true"] {
        color: #006f66;
        background: var(--hvt-mobile-soft);
    }

    .hvt-mobile-nav__item[aria-current="page"]::before,
    .hvt-mobile-nav__item[aria-expanded="true"]::before {
        background: var(--hvt-mobile-green);
    }

    .hvt-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9300;
        background: rgba(5, 8, 8, .56);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }

    .hvt-mobile-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hvt-mobile-sheet {
        position: fixed;
        right: 0;
        bottom: calc(var(--hvt-mobile-nav-height) + env(safe-area-inset-bottom));
        left: 0;
        z-index: 9500;
        max-height: min(78dvh, 680px);
        display: flex;
        flex-direction: column;
        border-top: 4px solid var(--hvt-mobile-green);
        border-radius: 18px 18px 0 0;
        background: #fff;
        box-shadow: 0 -20px 50px rgba(0, 0, 0, .23);
        transform: translateY(calc(100% + 20px));
        visibility: hidden;
        pointer-events: none;
        transition: transform .22s ease, visibility .22s ease;
    }

    .hvt-mobile-sheet[hidden] {
        display: none;
    }

    .hvt-mobile-sheet.is-open {
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hvt-mobile-sheet__handle {
        width: 42px;
        height: 4px;
        margin: 9px auto 2px;
        border-radius: 990px;
        background: #c5cecd;
    }

    .hvt-mobile-sheet__header {
        min-height: 60px;
        padding: 7px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid var(--hvt-mobile-line);
    }

    .hvt-mobile-sheet__header div {
        min-width: 0;
        flex: 1;
    }

    .hvt-mobile-sheet__eyebrow {
        display: block;
        margin-bottom: 2.5px;
        color: var(--hvt-mobile-green);
        font-size: 9.5px;
        font-weight: 900;
        letter-spacing: .14em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .hvt-mobile-sheet__title {
        margin: 0;
        color: var(--hvt-mobile-ink);
        font-family: var(--font-2, "Manrope", sans-serif);
        font-size: 20px;
        line-height: 1.15;
    }

    .hvt-mobile-sheet__close {
        width: 46px;
        height: 46px;
        min-height: 46px;
        flex: 0 0 46px;
        margin: 0;
        padding: 0;
        display: grid;
        place-items: center;
        border: 1px solid var(--hvt-mobile-line);
        border-radius: 50%;
        color: var(--hvt-mobile-ink);
        background: #f5f7f7;
        font: inherit;
        font-size: 25px;
        line-height: 1;
        cursor: pointer;
    }

    .hvt-mobile-sheet__close:hover,
    .hvt-mobile-sheet__close:focus-visible {
        color: #fff;
        border-color: var(--hvt-mobile-green);
        background: var(--hvt-mobile-green);
        outline: 2px solid rgba(0, 159, 145, .35);
        outline-offset: 2px;
    }

    .hvt-mobile-sheet__body {
        min-height: 0;
        padding: 14px max(18px, env(safe-area-inset-right)) 20px max(18px, env(safe-area-inset-left));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .hvt-mobile-sheet__groups {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hvt-mobile-sheet__group {
        min-width: 0;
        padding: 12px;
        border: 1px solid var(--hvt-mobile-line);
        border-left: 3px solid var(--hvt-mobile-green);
        background: #f8fafa;
    }

    .hvt-mobile-sheet__group h3 {
        margin: 0 0 7px;
        color: var(--hvt-mobile-ink);
        font-family: var(--font-2, "Manrope", sans-serif);
        font-size: 12.5px;
        line-height: 1.2;
    }

    .hvt-mobile-sheet__group a {
        min-height: 44px;
        padding: 8px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-top: 1px solid #e2e7e7;
        color: #374142;
        font-size: 12.5px;
        font-weight: 650;
        line-height: 1.25;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .hvt-mobile-sheet__group a::after {
        content: "\2192";
        flex: 0 0 auto;
        color: var(--hvt-mobile-green);
        font-size: 15px;
    }

    .hvt-mobile-sheet__group a:hover,
    .hvt-mobile-sheet__group a:focus-visible {
        color: #006f66;
        outline: 2px solid rgba(0, 159, 145, .42);
        outline-offset: 2px;
    }

    .hvt-mobile-sheet__group--contact {
        grid-column: 1 / -1;
        padding: 0 12px;
        border-left-width: 3px;
    }

    .hvt-mobile-sheet__group--contact a {
        border-top: 0;
        color: var(--hvt-mobile-ink);
        font-family: var(--font-2, "Manrope", sans-serif);
        font-weight: 800;
    }

    .hvt-language-options {
        display: grid;
        gap: 8px;
    }

    .hvt-language-option {
        width: 100%;
        min-height: 56px;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        border: 1px solid var(--hvt-mobile-line);
        border-radius: 8px;
        color: #354041;
        background: #fff;
        font-size: 14.5px;
        font-weight: 700;
        text-decoration: none;
    }

    .hvt-language-option__code {
        width: 42px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 5px;
        color: #fff;
        background: var(--hvt-mobile-ink);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
    }

    .hvt-language-option__check {
        color: var(--hvt-mobile-green);
        font-size: 20px;
        font-weight: 900;
        opacity: 0;
    }

    .hvt-language-option[aria-current="page"] {
        border-color: var(--hvt-mobile-green);
        color: #006f66;
        background: var(--hvt-mobile-soft);
        box-shadow: inset 0 0 0 1px var(--hvt-mobile-green);
    }

    .hvt-language-option[aria-current="page"] .hvt-language-option__code {
        background: var(--hvt-mobile-green);
    }

    .hvt-language-option[aria-current="page"] .hvt-language-option__check {
        opacity: 1;
    }

    .hvt-language-option:hover,
    .hvt-language-option:focus-visible {
        border-color: var(--hvt-mobile-green);
        outline: 2px solid rgba(0, 159, 145, .35);
        outline-offset: 2px;
    }
}

@media screen and (max-width: 560px) {
    .s-home__slider .row {
        padding: 104px 24px 96px;
    }

    .hvt-mobile-sheet__groups {
        grid-template-columns: 1fr;
    }

    .hvt-mobile-sheet__group--contact {
        grid-column: auto;
    }
}

@media screen and (min-width: 600px) and (max-width: 1100px) {
    .hvt-mobile-home-access__item {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        padding-right: 16px;
    }

    .hvt-mobile-home-access__action > span {
        display: inline;
    }
}

@media screen and (max-width: 360px) {
    .hvt-mobile-nav {
        padding-right: max(4px, env(safe-area-inset-right));
        padding-left: max(4px, env(safe-area-inset-left));
    }

    .hvt-mobile-nav__item {
        font-size: 9px;
    }

    .hvt-mobile-nav__item svg {
        width: 22px;
        height: 22px;
    }

    .s-header .row,
    .lab-site-header__inner {
        padding-right: max(8px, env(safe-area-inset-right));
        padding-left: max(8px, env(safe-area-inset-left));
    }

    .s-header__logo,
    .s-header__logo img {
        --logo-width: 96px;
        max-width: 96px;
    }

    .lab-site-header__brand img {
        width: 92px;
    }

    .hvt-mobile-home-access__inner {
        width: calc(100% - 24px);
    }

    .hvt-mobile-home-access__item {
        min-height: 76px;
        padding-right: 10px;
        padding-left: 10px;
        grid-template-columns: 32px minmax(0, 1fr) 18px;
        gap: 10px;
    }

    .hvt-mobile-home-access__icon {
        width: 32px;
        height: 32px;
    }

    .hvt-mobile-home-access__description {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hvt-mobile-backdrop,
    .hvt-mobile-sheet {
        transition: none;
    }
}

@media print {
    .hvt-mobile-nav-shell,
    .hvt-mobile-language-button {
        display: none !important;
    }
}
