/* ═══════════════════════════════════════════════════════════════════
   B2B Hub Solutions — estilos web corporativa
   Patrón Cero Líos: variables día/noche, Montserrat + Open Sans, legal.
   Colores de marca B2B (verde corporativo del logo).
═══════════════════════════════════════════════════════════════════ */

:root {
    --b2b-navy: #092b17;
    --b2b-green-dark: #14532d;
    --b2b-green: #15803d;
    --b2b-green-light: #22c55e;
    --b2b-green-joy-light: #239640;
    --b2b-green-joy: #4ade80;
    --b2b-green-muted: #3d8f5a;

    --b2b-bg: #f0f4f2;
    --b2b-surface: #ffffff;
    --b2b-border: #cbd5e1;
    --b2b-text: #0f172a;
    --b2b-muted: #334155;

    --b2b-bg-dark: #0d1f14;
    --b2b-surface-dark: #132a1c;
    --b2b-border-dark: rgba(255, 255, 255, 0.1);
    --b2b-text-dark: #e8f0ea;
    --b2b-muted-dark: #a8c4b0;

    --b2b-bg-current: var(--b2b-bg);
    --b2b-surface-current: var(--b2b-surface);
    --b2b-border-current: var(--b2b-border);
    --b2b-text-current: var(--b2b-text);
    --b2b-muted-current: var(--b2b-muted);

    --b2b-radius: 14px;
    --b2b-shadow: 0 18px 50px -24px rgba(9, 43, 23, 0.28);
    --b2b-nav-h: 3.65rem;
    --b2b-footer-h: 2.85rem;
    --b2b-scroll-anchor-offset: calc(var(--b2b-nav-h) + 0.5rem);

    --font-body: "Open Sans", system-ui, sans-serif;
    --font-display: "Montserrat", system-ui, sans-serif;
}

html.dark {
    --b2b-bg-current: var(--b2b-bg-dark);
    --b2b-surface-current: var(--b2b-surface-dark);
    --b2b-border-current: var(--b2b-border-dark);
    --b2b-text-current: var(--b2b-text-dark);
    --b2b-muted-current: var(--b2b-muted-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--b2b-scroll-anchor-offset);
    scroll-padding-bottom: calc(var(--b2b-footer-h) + 0.5rem);
}

body.b2b-site {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--b2b-muted-current);
    background-color: var(--b2b-bg-current);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body.b2b-has-fixed-footer {
    padding-bottom: calc(var(--b2b-footer-h) + env(safe-area-inset-bottom, 0px));
}

.b2b-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.b2b-values__icon .b2b-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.b2b-card__icon .b2b-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.b2b-historia-card__icon .b2b-icon,
.b2b-historia-card__check .b2b-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.b2b-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    padding: 0.65rem 1rem;
    border-radius: var(--b2b-radius);
    background: var(--b2b-green-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.b2b-skip-link:focus {
    left: 0.75rem;
    top: 0.75rem;
    width: auto;
    height: auto;
    overflow: visible;
}

h1, h2, h3, h4, .b2b-font-heading {
    font-family: var(--font-display);
    color: var(--b2b-text-current);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    transition: color 0.35s ease;
}

h1 { font-weight: 900; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.b2b-container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

/* Logo día / noche (SVG distintos: verde↔blanco intercambiados en modo oscuro) */
.b2b-brandmark {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.b2b-brandmark .b2b-logo-img {
    display: block;
    height: auto;
    width: auto;
    max-height: 3rem;
    max-width: min(11rem, 42vw);
    filter: none;
}
html:not(.dark) .b2b-brandmark .logo-night { display: none; }
html.dark .b2b-brandmark .logo-day { display: none; }
html.dark .b2b-brandmark .logo-night,
html:not(.dark) .b2b-brandmark .logo-day {
    filter: none !important;
}

/* ── Nav (patrón cerolios-nav-site) ─────────────────────────────────── */
.b2b-nav-site {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: color-mix(in srgb, var(--b2b-surface-current) 62%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--b2b-border-current) 65%, transparent);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

html.dark .b2b-nav-site {
    background: color-mix(in srgb, var(--b2b-surface-dark) 68%, transparent);
}

.b2b-nav-site__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--b2b-nav-h);
    padding: 0.28rem 0;
}

.b2b-nav-site__brand .b2b-brandmark .b2b-logo-img {
    max-height: 2rem;
    max-width: min(9rem, 38vw);
}

.b2b-nav-site__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex-shrink: 0;
}

.b2b-nav-site__legal-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.b2b-nav-site__legal-tag .b2b-nav-site__sep {
    width: 1px;
    height: 1rem;
    background: var(--b2b-border-current);
}

.b2b-nav-site__legal-tag span {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--b2b-muted-current);
}

.b2b-nav-site__menu {
    display: none;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--b2b-text-current);
}

.b2b-nav-site__menu a:not(.b2b-btn):hover {
    color: var(--b2b-green);
}

html.dark .b2b-nav-site__menu a:not(.b2b-btn):hover {
    color: var(--b2b-green-light);
}

.b2b-nav-site__toggle {
    display: flex;
    margin-right: -0.35rem;
}

.b2b-nav-site__toggle button {
    border: 1px solid var(--b2b-border-current);
    background: color-mix(in srgb, var(--b2b-surface-current) 80%, transparent);
    color: var(--b2b-green-dark);
    border-radius: 0.65rem;
    padding: 0.45rem 0.65rem;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

html.dark .b2b-nav-site__toggle button {
    color: var(--b2b-green-light);
}

.b2b-nav-site__panel {
    display: none;
    border-top: 1px solid var(--b2b-border-current);
    background: var(--b2b-surface-current);
}

.b2b-nav-site__panel.is-open {
    display: block;
}

.b2b-nav-site__panel a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-weight: 600;
    color: var(--b2b-text-current);
    border-bottom: 1px solid var(--b2b-border-current);
}

.b2b-nav-site__panel a:last-of-type {
    border-bottom: 1px solid var(--b2b-border-current);
}

.b2b-nav-site__panel-contact {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.85rem 0.25rem;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-align: left;
    color: var(--b2b-text-current);
    background: none;
    border: none;
    border-bottom: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.b2b-nav-site__panel-contact:hover {
    color: var(--b2b-green-dark);
}

html.dark .b2b-nav-site__panel-contact:hover {
    color: var(--b2b-green-light);
}

.b2b-main-under-nav {
    flex: 1 0 auto;
    padding-top: calc(var(--b2b-nav-h) + 1.5rem);
}

@media (min-width: 1024px) {
    .b2b-nav-site__menu { display: flex; }
    .b2b-nav-site__toggle { display: none; }
    .b2b-nav-site__panel { display: none !important; }
}

/* ── Botones ─────────────────────────────────────────────────────────── */
.b2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.b2b-btn--primary {
    background: linear-gradient(135deg, var(--b2b-green-light), var(--b2b-green-dark));
    color: #fff;
    box-shadow: 0 10px 30px -12px rgba(21, 128, 61, 0.55);
}

.b2b-btn--primary:hover { transform: translateY(-1px); }

.b2b-btn--sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.8125rem;
    background: var(--b2b-green-dark);
    color: #fff;
}

html.dark .b2b-btn--sm {
    background: var(--b2b-green);
}

.b2b-btn--ghost {
    background: transparent;
    color: var(--b2b-green-dark);
    border: 1px solid var(--b2b-border-current);
}

html.dark .b2b-btn--ghost {
    color: var(--b2b-green-light);
}

/* ── Hero y secciones ────────────────────────────────────────────────── */
.b2b-hero {
    padding: 2rem 0 4.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(34, 197, 94, 0.14), transparent),
        linear-gradient(180deg, color-mix(in srgb, var(--b2b-green-light) 8%, var(--b2b-bg-current)) 0%, var(--b2b-bg-current) 55%);
    transition: background 0.35s ease;
}

html.dark .b2b-hero {
    background:
        radial-gradient(ellipse 70% 50% at 80% -5%, rgba(34, 197, 94, 0.12), transparent),
        linear-gradient(180deg, var(--b2b-surface-dark) 0%, var(--b2b-bg-dark) 60%);
}

.b2b-hero--splash {
    padding: 1.5rem 0 4rem;
    text-align: center;
}

.b2b-hero__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.b2b-hero__logo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 28rem);
    aspect-ratio: 2.8 / 1;
    margin-inline: auto;
}

.b2b-hero__logo-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    line-height: 0;
}

.b2b-brandmark--hero .b2b-logo-img {
    max-width: min(22rem, 88vw);
    max-height: 7.5rem;
    width: auto;
    height: auto;
}

.b2b-hero__body {
    max-width: 44rem;
    text-align: center;
}

.b2b-hero__body h1 {
    margin-bottom: 1rem;
}

.b2b-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.b2b-eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--b2b-green);
    margin-bottom: 0.75rem;
}

html.dark .b2b-eyebrow { color: var(--b2b-green-light); }

.b2b-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.15rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.b2b-hero h1 em {
    font-style: normal;
    color: var(--b2b-green-dark);
}

html.dark .b2b-hero h1 em { color: var(--b2b-green-light); }

.b2b-hero__lead {
    font-size: 1.125rem;
    max-width: 42rem;
    margin-bottom: 1rem;
}

.b2b-hero__lead--sub {
    font-size: 1rem;
    color: var(--b2b-muted-current);
    margin-bottom: 1.75rem;
}

.b2b-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.b2b-hero__product-logo {
    max-width: min(260px, 100%);
    width: 100%;
    height: auto;
    margin: 0 auto 0.75rem;
    display: block;
}

.b2b-hero__panel-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--b2b-green);
    margin: 0 0 0.35rem;
}

html.dark .b2b-hero__panel-tag {
    color: var(--b2b-green-light);
}

.b2b-hero__panel-name {
    margin: 0 0 1rem;
    line-height: 1.2;
}

.b2b-hero__panel-note {
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
    color: var(--b2b-muted-current);
}

.b2b-hero__panel {
    background: var(--b2b-surface-current);
    border: 1px solid var(--b2b-border-current);
    border-radius: var(--b2b-radius);
    padding: 2rem;
    box-shadow: var(--b2b-shadow);
    text-align: center;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.b2b-hero__panel img {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.25rem;
    display: block;
}

.b2b-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--b2b-green-dark);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    animation: b2b-pulse 2s infinite;
}

.b2b-badge:hover {
    background: var(--b2b-green);
    transform: scale(1.02);
}

@keyframes b2b-pulse {
    0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(21, 128, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

.b2b-section {
    padding: 4.5rem 0;
    text-align: left;
}

.b2b-section--alt {
    background: color-mix(in srgb, var(--b2b-surface-current) 88%, var(--b2b-green-light) 12%);
}

html.dark .b2b-section--alt {
    background: color-mix(in srgb, var(--b2b-surface-dark) 92%, var(--b2b-green-dark) 8%);
}

.b2b-section__head {
    max-width: 38rem;
    margin-bottom: 2.5rem;
}

.b2b-section__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.b2b-section__head--center {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.b2b-section__intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--b2b-muted-current);
    margin: 0;
}

.b2b-section__head--center .b2b-section__intro {
    margin-top: 0.75rem;
}

/* Valores (verde = liberación, esperanza, calma) */
.b2b-values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-values__item {
    background: var(--b2b-surface-current);
    border: 1px solid var(--b2b-border-current);
    border-radius: var(--b2b-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px -14px rgba(9, 43, 23, 0.15);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
    .b2b-values__item:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--b2b-green) 35%, var(--b2b-border-current));
    }
}

.b2b-values__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--b2b-green-light) 18%, transparent);
    color: var(--b2b-green);
    font-size: 1.2rem;
}

html.dark .b2b-values__icon {
    color: var(--b2b-green-light);
}

.b2b-values__item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.b2b-values__item p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* Producto Cero Líos */
.b2b-product__intro {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.b2b-product__title {
    --b2b-wm-xh-ratio: 0.5;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em 0.5em;
    font-size: clamp(1.6rem, 3.5vw, 2.15rem);
    margin-bottom: 0.75rem;
}

/* Misma escala ex que el PNG del wordmark (minúsculas ≈ 1ex del h2) */
.b2b-product__title-pre {
    font-weight: 600;
    color: var(--b2b-muted-current);
    font-size: calc(1ex / var(--b2b-wm-xh-ratio));
    line-height: 1;
}

.b2b-cards--product {
    margin-bottom: 2rem;
}

.b2b-card--feature h3 {
    font-size: 1.15rem;
}

.b2b-product__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Roadmap + meta 500 */
.b2b-roadmap__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.b2b-card--stat {
    text-align: center;
    border-color: color-mix(in srgb, var(--b2b-green) 40%, var(--b2b-border-current));
    background: color-mix(in srgb, var(--b2b-green-light) 6%, var(--b2b-surface-current));
}

.b2b-stat__number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    color: var(--b2b-green-dark);
    margin: 0.25rem 0;
}

html.dark .b2b-stat__number {
    color: var(--b2b-green-light);
}

.b2b-stat__label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8125rem;
    color: var(--b2b-green);
    margin: 0 0 1rem;
}

html.dark .b2b-stat__label {
    color: var(--b2b-green-light);
}

.b2b-stat__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    text-align: left;
}

.b2b-partners-teaser {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem 1.5rem;
    align-items: center;
    margin-top: 2.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--b2b-radius);
    border: 1px solid color-mix(in srgb, var(--b2b-green) 35%, var(--b2b-border-current));
    background: color-mix(in srgb, var(--b2b-green-light) 5%, var(--b2b-surface-current));
    box-shadow: var(--b2b-shadow);
}

.b2b-partners-teaser__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.35rem;
    color: var(--b2b-green-dark);
    background: color-mix(in srgb, var(--b2b-green-light) 18%, transparent);
}

html.dark .b2b-partners-teaser__icon {
    color: var(--b2b-green-light);
}

.b2b-partners-teaser__body {
    min-width: 0;
}

.b2b-partners-teaser__body h3 {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    margin: 0 0 0.5rem;
}

.b2b-partners-teaser__body p {
    margin: 0 0 0.65rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.b2b-partners-teaser__body p:last-child {
    margin-bottom: 0;
}

.b2b-partners-teaser__cta {
    display: flex;
    flex-shrink: 0;
}

.b2b-partners-teaser__cta .b2b-btn {
    white-space: nowrap;
}

/* Escuchamos / contigo */
.b2b-listen__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-listen__grid h3 {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.b2b-listen__grid h3 i {
    color: var(--b2b-green);
}

html.dark .b2b-listen__grid h3 i {
    color: var(--b2b-green-light);
}

.b2b-listen__grid p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Filosofía */
.b2b-philosophy__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.b2b-philosophy__question {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--b2b-green-dark);
    margin: 1.25rem 0;
}

html.dark .b2b-philosophy__question {
    color: var(--b2b-green-light);
}

.b2b-philosophy__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.b2b-philosophy__quote {
    margin: 0;
    padding: 1.75rem;
    border-radius: var(--b2b-radius);
    border: 1px solid var(--b2b-border-current);
    background: color-mix(in srgb, var(--b2b-green-light) 8%, var(--b2b-surface-current));
    text-align: center;
}

.b2b-philosophy__quote p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--b2b-text-current);
    margin: 0 0 0.75rem;
    text-align: center;
}

.b2b-philosophy__quote footer {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--b2b-muted-current);
    text-align: center;
}

.b2b-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.b2b-card {
    background: var(--b2b-surface-current);
    border: 1px solid var(--b2b-border-current);
    border-radius: var(--b2b-radius);
    padding: 1.75rem;
    box-shadow: 0 4px 24px -16px rgba(9, 43, 23, 0.12);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.b2b-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--b2b-green);
    margin-bottom: 1rem;
}

html.dark .b2b-card__icon { color: var(--b2b-green-light); }

.b2b-card h3 { font-size: 1.2rem; }

.b2b-about {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
}

.b2b-about img {
    max-width: 200px;
    margin: 0 auto 1.5rem;
    display: block;
}

.scroll-mt-nav {
    scroll-margin-top: var(--b2b-scroll-anchor-offset);
}

/* Wordmark inline Cero Líos (PNG día/noche, como cerolios.com) */
html:not(.dark) .b2b-inline-wordmark > img.logo-night { display: none !important; }
html:not(.dark) .b2b-inline-wordmark > img.logo-day { display: block !important; }
html.dark .b2b-inline-wordmark > img.logo-day { display: none !important; }
html.dark .b2b-inline-wordmark > img.logo-night { display: block !important; }

.b2b-inline-wordmark {
    --b2b-wm-xh-ratio: 0.48;
    --b2b-wm-baseline-nudge: 0.03ex;
    display: inline-block;
    vertical-align: baseline;
    line-height: 0;
    font-size: inherit;
    margin-inline: 0.06em 0.12em;
    flex-shrink: 0;
    max-width: 100%;
}

.b2b-inline-wordmark > img.logo-day,
.b2b-inline-wordmark > img.logo-night {
    display: block;
    width: auto;
    height: calc(1ex / var(--b2b-wm-xh-ratio));
    max-height: none;
    object-fit: contain;
    object-position: left bottom;
    transform: translateY(var(--b2b-wm-baseline-nudge));
}

.b2b-inline-wordmark--title {
    --b2b-wm-xh-ratio: 0.5;
    --b2b-wm-baseline-nudge: 0.02ex;
    margin-inline-start: 0;
}

.b2b-inline-wordmark--team {
    --b2b-wm-xh-ratio: 0.48;
    --b2b-wm-baseline-nudge: 0.01ex;
    margin-inline: 0.04em 0;
}

.b2b-inline-wordmark--badge {
    --b2b-wm-xh-ratio: 0.52;
    --b2b-wm-baseline-nudge: 0.04ex;
}

.b2b-inline-baseline-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2em 0.35em;
}

.b2b-btn--with-wordmark {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.25em 0.4em;
}

.b2b-btn--with-wordmark .b2b-inline-wordmark {
    margin-inline: 0.05em;
}

.b2b-btn--with-wordmark > i {
    align-self: center;
}

.b2b-link-accent {
    color: var(--b2b-green-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

html.dark .b2b-link-accent {
    color: var(--b2b-green-light);
}

.b2b-mark-cerolios {
    color: var(--b2b-green-dark);
    font-weight: 700;
}

html.dark .b2b-mark-cerolios {
    color: var(--b2b-green-light);
}

.b2b-text-accent {
    color: var(--b2b-green-joy-light);
    font-weight: 700;
}

html.dark .b2b-text-accent {
    color: var(--b2b-green-joy);
}

/* Imágenes promocionales */
.b2b-promo-item {
    margin: 0 0 1.5rem;
}

.b2b-promo-item--wide {
    max-width: 52rem;
    margin-inline: auto;
}

.b2b-promo-figure {
    margin: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
}

.b2b-promo-figure__media {
    display: block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.b2b-promo-figure picture {
    display: block;
    width: 100%;
}

.b2b-promo-figure__media img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Cuadrado 1:1 sin recorte (WebP generado a proporción nativa) */
.b2b-promo-figure--square .b2b-promo-figure__media img {
    width: 100%;
    height: auto;
}

/* Pie fuera del <figure>: evita recorte por border-radius del contenedor de imagen */
.b2b-promo-caption {
    margin: 0.5rem 0 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
    color: var(--b2b-muted-current);
    overflow: visible;
    border-radius: 0;
}

/* Wordmark inline: altura según 1ex (minúsculas del párrafo), igual que en el resto del sitio */
.b2b-promo-caption .b2b-inline-wordmark {
    vertical-align: baseline;
}

.b2b-promo-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.b2b-promo-duo .b2b-promo-item {
    margin-bottom: 0;
}

.b2b-promo-duo .b2b-promo-figure__media {
    border-radius: 6px;
}

/* ── Nuestra historia (teaser home + página completa) ───────────────── */
.b2b-historia-teaser__inner {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.b2b-historia-teaser__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--b2b-green-light) 18%, transparent);
    color: var(--b2b-green);
    font-size: 1.5rem;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--b2b-green-light) 28%, transparent);
}

.b2b-historia-teaser__head h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    margin-bottom: 1rem;
}

.b2b-historia-teaser__lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--b2b-muted-current);
    margin-bottom: 1rem;
}

.b2b-historia-teaser__equipo {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--b2b-border-current);
}

.b2b-historia-teaser__firma {
    margin: 1.25rem 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    align-items: baseline;
}

.b2b-equipo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 1.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-equipo__cell { flex-shrink: 0; }

.b2b-equipo__photo {
    display: block;
    width: 5.75rem;
    height: 5.75rem;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--b2b-surface-current);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    outline: 1px solid color-mix(in srgb, var(--b2b-green-light) 35%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html.dark .b2b-equipo__photo {
    border-color: var(--b2b-surface-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.b2b-equipo__photo--missing {
    opacity: 0.9;
    background: #e2e8f0;
}

html.dark .b2b-equipo__photo--missing {
    background: #1e293b;
}

@media (prefers-reduced-motion: reduce) {
    #tech-canvas {
        opacity: 0.4;
    }
}

@media (hover: hover) {
    .b2b-equipo__photo:hover {
        transform: scale(1.04);
    }
}

@media (min-width: 768px) {
    .b2b-equipo__photo {
        width: 7rem;
        height: 7rem;
    }
}

.b2b-equipo__caption {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--b2b-muted-current);
    text-align: center;
}

.b2b-historia-hero {
    position: relative;
    padding: 1rem 0 3rem;
    border-bottom: 1px solid var(--b2b-border-current);
    overflow: hidden;
}

.b2b-historia-hero::before,
.b2b-historia-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(64px);
    pointer-events: none;
}

.b2b-historia-hero::before {
    top: 0;
    right: -8%;
    width: 28rem;
    height: 28rem;
    background: color-mix(in srgb, var(--b2b-green-light) 14%, transparent);
}

.b2b-historia-hero::after {
    bottom: -2rem;
    left: -10%;
    width: 16rem;
    height: 16rem;
    background: color-mix(in srgb, var(--b2b-navy) 6%, transparent);
}

.b2b-historia-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.b2b-historia-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.b2b-historia-hero__accent {
    color: var(--b2b-green);
}

html.dark .b2b-historia-hero__accent {
    color: var(--b2b-green-light);
}

.b2b-historia-hero__lead {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--b2b-muted-current);
}

.b2b-historia-hero__lead-sub {
    display: block;
    margin-top: 0.5rem;
}

.b2b-historia-intro {
    padding: 3rem 1rem 3.5rem;
    max-width: 42rem;
}

.b2b-historia-prose {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--b2b-muted-current);
    margin: 0 0 1.25rem;
}

.b2b-historia-prose--lead {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.b2b-historia-prose-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.b2b-historia-prose-stack p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--b2b-muted-current);
}

.b2b-historia-block__head {
    max-width: 40rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.b2b-historia-block__head h2,
.b2b-historia-block--narrow h2,
.b2b-historia-block__title-center {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.b2b-historia-block__title-center {
    text-align: center;
    margin-bottom: 2rem;
}

.b2b-historia-block--narrow {
    max-width: 42rem;
    margin: 0 auto;
}

.b2b-historia-grid {
    display: grid;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-historia-grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.b2b-historia-card {
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.b2b-historia-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--b2b-green-light) 16%, transparent);
    color: var(--b2b-green);
    font-size: 1.25rem;
}

.b2b-historia-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--b2b-muted-current);
}

.b2b-historia-card--highlight {
    border-color: color-mix(in srgb, var(--b2b-green) 45%, var(--b2b-border-current));
    text-align: center;
}

.b2b-historia-card__check {
    color: var(--b2b-green);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

html.dark .b2b-historia-card__check {
    color: var(--b2b-green-light);
}

@media (hover: hover) {
    .b2b-historia-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--b2b-green) 40%, var(--b2b-border-current));
    }
}

.b2b-historia-quote {
    margin: 2.5rem auto 0;
    max-width: 40rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--b2b-radius);
    border-left: 4px solid var(--b2b-green);
    background: color-mix(in srgb, var(--b2b-green-light) 10%, var(--b2b-surface-current));
    text-align: center;
}

html.dark .b2b-historia-quote {
    background: color-mix(in srgb, var(--b2b-green-dark) 35%, var(--b2b-surface-dark));
}

.b2b-historia-quote__title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 1rem;
    color: var(--b2b-text-current);
}

.b2b-historia-quote .b2b-historia-prose {
    margin: 0;
}

.b2b-historia-equipo-section {
    padding-bottom: 3rem;
}

.b2b-historia-equipo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 36rem;
    margin: 0 auto;
}

.b2b-historia-cta {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(145deg, var(--b2b-navy), var(--b2b-green-dark));
    color: #e2e8f0;
}

.b2b-historia-cta::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--b2b-green-light) 22%, transparent);
    filter: blur(80px);
    pointer-events: none;
}

.b2b-historia-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}

.b2b-historia-cta h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.b2b-historia-cta p {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.b2b-historia-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.b2b-btn--on-dark {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.b2b-btn--on-dark:hover {
    border-color: var(--b2b-green-light);
    color: var(--b2b-green-light);
}

.b2b-page--historia .b2b-main-under-nav {
    padding-top: calc(var(--b2b-nav-h) + 0.5rem);
}

/* ── Footer home (sección empresa) — legacy, preferir b2b-footer-global ─ */
.b2b-footer {
    background: var(--b2b-green-dark);
    color: #cbd5e1;
    padding: 3.5rem 0 2rem;
    text-align: left;
}

html.dark .b2b-footer {
    background: var(--b2b-navy);
}

.b2b-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1.5rem;
}

.b2b-footer h4 {
    color: #fff;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.b2b-footer ul { list-style: none; padding: 0; margin: 0; }
.b2b-footer li { margin-bottom: 0.4rem; }
.b2b-footer a:hover { color: #fff; }
.b2b-footer__copy { font-size: 0.8125rem; opacity: 0.75; text-align: center; }

/* Palabras clave destacadas */
.b2b-kw {
    color: var(--b2b-green-joy-light);
    font-weight: 700;
}

html.dark .b2b-kw {
    color: var(--b2b-green-joy);
}

/* Footer fijo global (patrón cerolios-footer-global) */
.b2b-footer-global {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: auto;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--b2b-surface-current) 94%, transparent);
    border-top: 1px solid var(--b2b-border-current);
    padding: 0.28rem 0;
    box-shadow: 0 -2px 12px rgba(9, 43, 23, 0.06);
    transition: background 0.35s ease, border-color 0.35s ease;
}

html.dark .b2b-footer-global {
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.b2b-footer-global__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.35rem 0.75rem;
    min-height: calc(var(--b2b-footer-h) - 0.56rem);
}

.b2b-footer-global__brand {
    flex-shrink: 0;
}

.b2b-footer-global__brand .b2b-brandmark--footer .b2b-logo-img {
    max-height: 1.45rem;
    max-width: min(7.5rem, 28vw);
}

.b2b-footer-global__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    min-width: 0;
    flex: 1;
    padding-inline: 0.35rem;
    line-height: 1.2;
}

.b2b-footer-global__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.85rem;
    line-height: 1.15;
}

.b2b-footer-global__link {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--b2b-muted-current);
    transition: color 0.2s ease;
}

.b2b-footer-global__link:hover {
    color: var(--b2b-green-joy);
}

html.dark .b2b-footer-global__link:hover {
    color: #6ee7a8;
}

.b2b-footer-global__copy {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.15;
    color: var(--b2b-muted-current);
    text-align: center;
}

.b2b-footer-global__theme {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-self: end;
    margin-left: auto;
}

.b2b-theme-toggle {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--b2b-border-current);
    background: color-mix(in srgb, var(--b2b-bg-current) 60%, transparent);
    color: var(--b2b-muted-current);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.b2b-theme-toggle:hover {
    color: var(--b2b-muted-current);
    border-color: var(--b2b-border-current);
}

html:not(.dark) .theme-icon-dark { display: none; }
html.dark .theme-icon-light { display: none; }

/* ── Legal (patrón cerolios-legal) ───────────────────────────────────── */
.b2b-legal {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 0 3rem;
    text-align: left;
}

.b2b-legal h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.5rem;
}

.b2b-legal h1::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--b2b-green-light), var(--b2b-green-dark));
    border-radius: 2px;
}

.b2b-legal h2 {
    font-size: 1.125rem;
    margin-top: 2rem;
    color: var(--b2b-green-dark);
}

html.dark .b2b-legal h2 {
    color: var(--b2b-green-light);
}

.b2b-legal .b2b-card,
.b2b-legal .b2b-legal-box {
    background: var(--b2b-surface-current);
    border: 1px solid var(--b2b-border-current);
    border-left: 4px solid var(--b2b-green-dark);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

html.dark .b2b-legal .b2b-card,
html.dark .b2b-legal .b2b-legal-box {
    border-left-color: var(--b2b-green-light);
}

.b2b-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.b2b-legal li { margin-bottom: 0.5rem; }

.b2b-legal a {
    color: var(--b2b-green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

html.dark .b2b-legal a {
    color: var(--b2b-green-light);
}

.b2b-legal-meta {
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.b2b-legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.b2b-legal-table th,
.b2b-legal-table td {
    padding: 0.5rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--b2b-border-current);
    vertical-align: top;
}

.b2b-legal-table th {
    font-weight: 700;
    color: var(--b2b-text-current);
}

.b2b-legal-links a {
    color: var(--b2b-green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

html.dark .b2b-legal-links a {
    color: var(--b2b-green-light);
}

/* ── Modal y formularios ─────────────────────────────────────────────── */
.b2b-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(9, 43, 23, 0.55);
    backdrop-filter: blur(4px);
}

html.dark .b2b-modal {
    background: rgba(0, 0, 0, 0.65);
}

.b2b-modal.is-open { display: flex; }

.b2b-modal__dialog {
    background: var(--b2b-surface-current);
    border: 1px solid var(--b2b-border-current);
    border-radius: var(--b2b-radius);
    padding: 2rem;
    width: min(440px, 100%);
    position: relative;
    text-align: left;
    box-shadow: var(--b2b-shadow);
    color: var(--b2b-muted-current);
}

.b2b-modal__dialog h2 {
    color: var(--b2b-text-current);
}

.b2b-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--b2b-muted-current);
}

.b2b-form-group { margin-bottom: 1rem; }

.b2b-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--b2b-text-current);
    margin-bottom: 0.35rem;
}

.b2b-form-group input[type="text"],
.b2b-form-group input[type="email"],
.b2b-form-group input[type="tel"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--b2b-border-current);
    border-radius: 8px;
    font: inherit;
    background: var(--b2b-surface-current);
    color: var(--b2b-text-current);
}

.b2b-form-group--check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.8125rem;
}

.b2b-form-group--check input { margin-top: 0.25rem; width: auto; }

.b2b-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.b2b-alert--error { background: #fef2f2; color: #b91c1c; }
html.dark .b2b-alert--error { background: rgba(185, 28, 28, 0.2); color: #fecaca; }

.b2b-alert--ok { background: #ecfdf5; color: #166534; }
html.dark .b2b-alert--ok { background: rgba(22, 101, 52, 0.25); color: #bbf7d0; }

#tech-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.52;
    pointer-events: none;
    transform: translateZ(0);
}

html.dark #tech-canvas { opacity: 0.4; }

@media (max-width: 767px) {
    #tech-canvas {
        opacity: 0.58;
    }

    html.dark #tech-canvas {
        opacity: 0.46;
    }
}

/* Páginas de error HTTP (403, 404, 500) */
.b2b-error-page {
    position: relative;
    min-height: min(70vh, calc(100vh - var(--b2b-nav-h) - var(--b2b-footer-h) - 3rem));
    display: flex;
    align-items: center;
    padding: 3rem 0 4rem;
    overflow: hidden;
}

.b2b-error-page__bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 16rem);
    font-weight: 900;
    line-height: 1;
    color: color-mix(in srgb, var(--b2b-green) 12%, transparent);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

html.dark .b2b-error-page__bg {
    color: color-mix(in srgb, var(--b2b-green-light) 10%, transparent);
}

.b2b-error-page__inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    margin-inline: auto;
    text-align: center;
}

.b2b-error-page__logo {
    margin-bottom: 1.5rem;
    line-height: 0;
}

.b2b-error-page__logo img {
    max-height: 3rem;
    width: auto;
    margin-inline: auto;
}

html:not(.dark) .b2b-error-page__logo .logo-night { display: none !important; }
html.dark .b2b-error-page__logo .logo-day { display: none !important; }

.b2b-error-page h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.b2b-error-page__lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--b2b-muted-current);
    margin: 0 0 1.75rem;
}

.b2b-error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 860px) {
    .b2b-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
    .b2b-promo-duo { grid-template-columns: 1fr; }
    .b2b-roadmap__grid,
    .b2b-philosophy__inner {
        grid-template-columns: 1fr;
    }
    .b2b-philosophy__copy {
        text-align: center;
    }
    .b2b-stat__text { text-align: center; }
    .b2b-partners-teaser {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .b2b-partners-teaser__icon {
        margin: 0 auto;
    }
    .b2b-partners-teaser__cta {
        justify-content: center;
    }
    .b2b-footer-global__bar {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto;
        gap: 0.25rem 0.5rem;
    }
    .b2b-footer-global__brand {
        grid-column: 1;
        grid-row: 1;
    }
    .b2b-footer-global__center {
        grid-column: 2;
        grid-row: 1;
        width: auto;
    }
    .b2b-footer-global__theme {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }
}

@media (max-width: 1023px) {
    .b2b-nav-site__menu--desktop { display: none !important; }
}
