/* ════════════════════════════════════════════════════════════
   CORPORATE BASE — shared Vercel x Figma layer (see DESIGN-corporate.md)
   Loaded last on every migrated page; scoped to body.hz-corp (added in
   functions.php). Overrides the design tokens that onboarding-v2.css defines,
   so every page stylesheet that reads var(--v2-*) is recoloured, and restyles
   the shared header. Native CSS nesting; `&` = body.hz-corp.hz-corp.
═════════════════════════════════════════════════════════════ */
body.hz-corp.hz-corp {
    font-family: var(--hz-sans);
    /* tokens: the cartoony layer reads these, so overriding them recolours most of it */
    --v2-ink: #0a0a0a;
    --v2-paper: #ffffff;
    --v2-cream: #fafafa;
    --v2-line: #ebebeb;
    --v2-muted: #666666;
    --v2-radius: 12px;
    --v2-radius-lg: 16px;
    --v2-sticker: none;
    --v2-green-50: #eefaf4;
    --v2-purple-50: #f5eefe;
    --v2-blue-50: #e9f6fd;
    --v2-coral-50: #fff0ed;
    --v2-yellow-50: #fff8e1;
    --ob-green: #0a0a0a;
    --ob-text: #0a0a0a;
    --ob-muted: #666666;
    --ob-border: #ebebeb;
    --ob-surface: #fafafa;
    --hz-gray-400: #a1a1a1;
    --hz-gray-500: #8f8f8f;
    --hz-ring: 0 0 0 1px rgba(0, 0, 0, 0.07);
    --hz-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 2px 2px rgba(0, 0, 0, 0.03), 0 8px 16px -8px rgba(0, 0, 0, 0.08);
    --hz-shadow-lg: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04), 0 24px 48px -16px rgba(0, 0, 0, 0.16);
    --hz-sans: "Geist", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hz-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    background: #fff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* ── header ── */
    .site-header {
        background: rgba(255, 255, 255, 0.82) !important;
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        border-bottom: 1px solid var(--v2-line) !important;
    }

    .site-header > .col-full {
        min-height: 64px;
        max-width: 1200px;
    }

    .secondary-navigation ul.menu a {
        padding: 0.5rem 0.75rem !important;
        border: 0;
        border-radius: 8px;
        font-family: var(--hz-sans) !important;
        font-size: 0.875rem !important;
        font-weight: 500;
        color: var(--v2-muted) !important;
        -webkit-text-fill-color: var(--v2-muted) !important;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .secondary-navigation ul.menu a:hover,
    .secondary-navigation ul.menu .current-menu-item > a {
        background: #f5f5f5;
        border-color: transparent;
        color: var(--v2-ink) !important;
        -webkit-text-fill-color: var(--v2-ink) !important;
    }

    .secondary-navigation ul.menu a:focus-visible {
        outline: 2px solid var(--v2-ink);
        outline-offset: 2px;
    }

    .secondary-navigation ul.menu .menu-item-llms a {
        border: 1px solid var(--v2-line);
        font-size: 0.8rem !important;
    }

    .secondary-navigation ul.menu a[href$="#ob-contact"] {
        background: var(--v2-ink);
        border: 1px solid var(--v2-ink);
        box-shadow: none;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    .secondary-navigation ul.menu a[href$="#ob-contact"]:hover {
        background: #333;
        border-color: #333;
        transform: none;
        box-shadow: none;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    /* "Servicios" dropdown */
    .hz-sub {
        border: 0 !important;
        border-radius: 12px !important;
        box-shadow: var(--hz-shadow-lg) !important;
    }

    /* Contact Form 7 (contact page, onboarding, services) */
    .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]) {
        border: 0;
        border-radius: 8px;
        background: #fff !important;
        box-shadow: inset 0 0 0 1px #e0e0e0;
        font-family: var(--hz-sans) !important;
        font-size: 0.95rem;
    }

    .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):hover {
        box-shadow: inset 0 0 0 1px #bdbdbd;
    }

    .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):focus {
        border: 0;
        outline: none;
        box-shadow: inset 0 0 0 1px var(--v2-ink), 0 0 0 3px rgba(0, 0, 0, 0.08);
        transform: none;
    }

    .wpcf7-form-control.wpcf7-not-valid {
        box-shadow: inset 0 0 0 1px var(--v2-orange);
        background: #fff !important;
    }

    .wpcf7-submit {
        padding: 0.8rem 1.6rem;
        border: 1px solid var(--v2-ink);
        border-radius: 8px;
        background: var(--v2-ink);
        font-family: var(--hz-sans) !important;
        font-size: 0.92rem;
        font-weight: 500;
        box-shadow: none;
    }

    .wpcf7-submit:hover {
        background: #333;
        transform: none;
        box-shadow: none;
    }

    .wpcf7-response-output {
        border: 0 !important;
        border-radius: 8px;
        box-shadow: inset 0 0 0 1px var(--v2-line) !important;
    }

    /* headings: Geist sans, tight tracking (the old style set them in mono) */
    :is(h1, h2, h3, h4, h5):not(#hz-x) {
        font-family: var(--hz-sans) !important;
        font-weight: 600;
        letter-spacing: -0.035em;
    }

    /* cartoon stickers from the previous style are retired */
    .hza-shape,
    .hzc-shape,
    .hzs-shape,
    .hza-product__sticker,
    .ob-shape {
        display: none !important;
    }
}
