/* Refinamientos de accesibilidad y responsive exclusivos del portal corporativo. */
body:not(.portal-body) {
    --hema-action-green: #3f7427;
    --radius-control: 12px;
    --radius-card: 16px;
}

body:not(.portal-body) .site-header {
    position: relative;
    z-index: 5;
}

body:not(.portal-body) .main-nav a,
body:not(.portal-body) .site-footer nav a {
    font-size: 14px;
}

body:not(.portal-body) .button {
    min-height: 48px;
    border-radius: var(--radius-control);
    font-size: 14px;
}

body:not(.portal-body) .button-small {
    min-height: 44px;
    font-size: 13px;
}

body:not(.portal-body) .button-primary {
    background: var(--hema-action-green);
}

body:not(.portal-body) .button-primary:hover {
    background: var(--hema-green-dark);
}

body:not(.portal-body) .eyebrow {
    font-size: 11px;
}

body:not(.portal-body) .hero-note,
body:not(.portal-body) .section-lead,
body:not(.portal-body) .service-card p,
body:not(.portal-body) .product-copy > p:not(.eyebrow),
body:not(.portal-body) .product-list li,
body:not(.portal-body) .about-copy > p:not(.about-highlight),
body:not(.portal-body) .contact-inner > div:first-child > p:last-child {
    font-size: 14px;
}

body:not(.portal-body) .text-link {
    font-size: 14px;
}

body:not(.portal-body) .card-index,
body:not(.portal-body) .art-node {
    font-size: 12px;
}

body:not(.portal-body) .art-caption,
body:not(.portal-body) .contact-action p {
    font-size: 11px;
}

body:not(.portal-body) .core-label {
    font-size: 9px;
}

body:not(.portal-body) .scroll-cue,
body:not(.portal-body) .about-rule {
    font-size: 11px;
}

body:not(.portal-body) .capability-label {
    font-size: 11px;
}

body:not(.portal-body) .capability-tags span {
    font-size: 12px;
}

body:not(.portal-body) .contact-pending {
    font-size: 13px;
}

body:not(.portal-body) .footer-main > p {
    font-size: 13px;
}

body:not(.portal-body) .footer-bottom {
    color: #596158;
    font-size: 11px;
}

body:not(.portal-body) .service-grid {
    gap: 14px;
    border: 0;
}

body:not(.portal-body) .service-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

body:not(.portal-body) .hero-art,
body:not(.portal-body) .product-visual {
    border-radius: var(--radius-card);
}

body:not(.portal-body) .art-node,
body:not(.portal-body) .product-chip {
    border-radius: 10px;
}

body:not(.portal-body) .contact-action {
    border-radius: var(--radius-card);
    transition: background .2s, border-color .2s, transform .2s;
}

body:not(.portal-body) .contact-action:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .1);
}

body:not(.portal-body) .card-arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
}

body:not(.portal-body) .core-symbol {
    width: 54px;
    height: 82px;
    object-fit: contain;
}

body:not(.portal-body) .about-watermark {
    width: 185px;
    height: 230px;
    object-fit: contain;
    opacity: .12;
}

body:not(.portal-body) .contact-section::after {
    content: none;
}

body:not(.portal-body) .contact-watermark {
    position: absolute;
    top: -72px;
    right: 5%;
    z-index: 0;
    width: clamp(190px, 27vw, 340px);
    height: 440px;
    object-fit: contain;
    opacity: .07;
    pointer-events: none;
}

body:not(.portal-body) .contact-inner {
    z-index: 1;
}

body:not(.portal-body) a:focus-visible,
body:not(.portal-body) button:focus-visible {
    outline: 3px solid #bd7188;
    outline-offset: 3px;
}

body:not(.portal-body) .mobile-menu-toggle {
    display: none;
}

@media (max-width: 680px) {
    body:not(.portal-body) .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px auto;
        gap: 6px;
    }

    body:not(.portal-body) .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius-control);
        background: #fff;
        color: var(--hema-green-dark);
        cursor: pointer;
    }

    body:not(.portal-body) .mobile-menu-toggle svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    body:not(.portal-body) .mobile-menu-toggle .menu-close {
        display: none;
    }

    body:not(.portal-body) .mobile-menu-toggle[aria-expanded="true"] .menu-bars {
        display: none;
    }

    body:not(.portal-body) .mobile-menu-toggle[aria-expanded="true"] .menu-close {
        display: block;
    }

    body:not(.portal-body) .main-nav {
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        z-index: 10;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 0 0 var(--radius-card) var(--radius-card);
        background: #fff;
        box-shadow: 0 16px 35px rgba(29, 47, 25, .12);
    }

    body:not(.portal-body) .main-nav.is-open {
        display: flex;
    }

    body:not(.portal-body) .main-nav a {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 0 14px;
        border-radius: 9px;
    }

    body:not(.portal-body) .main-nav a:hover {
        background: var(--hema-green-soft);
    }

    body:not(.portal-body) .site-header .button-small {
        min-height: 44px;
        font-size: 12px;
    }

    body:not(.portal-body) .service-grid {
        gap: 12px;
    }

    body:not(.portal-body) .service-card p {
        font-size: 13px;
    }

    body:not(.portal-body) .hero-note {
        font-size: 12px;
    }

    body:not(.portal-body) .footer-bottom {
        font-size: 10px;
    }
}

@media (max-width: 560px) {
    body:not(.portal-body) .service-grid {
        grid-template-columns: 1fr;
    }

    body:not(.portal-body) .service-card,
    body:not(.portal-body) .capability-card {
        grid-column: auto;
        min-height: 220px;
        padding: 22px 20px 58px;
    }

    body:not(.portal-body) .capability-label {
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.portal-body),
    body:not(.portal-body) * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}
