/* ============================================================================
   Sebastián Brau — sebastianbrau.com
   Sistema de diseño extraído del PDF "patron grafico web SB.pdf":
   - Fondo crema/papel (no oscuro)
   - Azul cobalto medio para títulos, botones, footer
   - Cards blancas con sombra suave grande y border-radius generoso
   - Tipografía sans humanista (system-ui), pesos diferenciados
   - Botones tipo pill (primary sólido / secondary outline)
   ============================================================================ */

:root {
    /* Paleta */
    --sb-bg:           #f4f2f1;   /* fondo gris-blanco cálido (R244 G242 B241) */
    --sb-bg-soft:      #eae7e5;   /* banda alterna un punto más oscura */
    --sb-bg-card:      #ffffff;   /* cards puramente blancas con sombra */
    --sb-blue:         #2a4d8a;   /* azul cobalto principal (títulos, KPIs, botones) */
    --sb-blue-2:       #1f3d72;   /* hover */
    --sb-blue-soft:    #5a7bb0;   /* azul claro para labels secundarios ("Voces de la industria") */
    --sb-blue-footer:  #3a5a8e;   /* azul del footer del patrón (un punto más claro) */
    --sb-text:         #1a1a1a;   /* títulos de card en negro/casi-negro */
    --sb-text-2:       #2d3748;   /* cuerpo */
    --sb-muted:        #5c6675;   /* texto secundario / fechas */
    --sb-border:       #e8e4d8;   /* bordes muy suaves armonizados con crema */
    --sb-border-2:     #d8d4c6;
    --sb-on-blue:      #ffffff;
    --sb-on-blue-mut:  #c9d6ea;

    /* Forma */
    --sb-radius-sm:    10px;
    --sb-radius:       16px;
    --sb-radius-lg:    22px;     /* cards del patrón */
    --sb-radius-pill:  999px;

    /* Sombra suave grande (la del patrón) */
    --sb-shadow-card:  0 1px 2px rgba(20,30,55,.04), 0 10px 30px rgba(20,30,55,.08);
    --sb-shadow-hover: 0 1px 2px rgba(20,30,55,.06), 0 16px 40px rgba(20,30,55,.12);

    /* Layout */
    --sb-header-h:     96px;
    --sb-maxw:         1180px;

    /* Tipografía: humanista geometric. Sin Google Fonts (mejor LCP). */
    --sb-font: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sb-font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--sb-text-2);
    background: var(--sb-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--sb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.18;
    color: var(--sb-blue);
    margin: 0 0 .55em;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin-top: 0; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.3rem); color: var(--sb-text); }
p  { margin: 0 0 1em; }

strong { font-weight: 700; color: var(--sb-text); }

/* ---------- Layout ---------- */
.sb-container { width: 100%; max-width: var(--sb-maxw); margin: 0 auto; padding: 0 22px; }

.sb-section { padding: clamp(56px, 8vw, 96px) 0; }
.sb-section--soft { background: var(--sb-bg-soft); }

.sb-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}
.sb-section__head .sb-btn--primary { margin-left: 14px; vertical-align: middle; }
.sb-section__title {
    display: inline-flex; align-items: center; gap: 16px;
    color: var(--sb-blue);
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 700;
    margin: 0 0 16px;
    flex-wrap: wrap; justify-content: center;
}
.sb-section__kicker {
    display: inline-block;
    font-size: .82rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sb-blue-soft);
    margin-bottom: 10px;
}
.sb-section__lead {
    color: var(--sb-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- Header (CLARO, sobre crema) ---------- */
.sb-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--sb-bg);
    border-bottom: 1px solid var(--sb-border);
    height: var(--sb-header-h);
}
.sb-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; gap: 16px;
}
.sb-header__actions {
    display: flex; align-items: center; gap: 16px;
}
.sb-logo { display: inline-flex; align-items: center; }
.sb-logo img {
    height: 76px;
    width: auto;
    /* El logo es PNG con alpha real — no necesita mix-blend-mode. */
}
.sb-nav { display: flex; align-items: center; gap: 28px; }
.sb-nav a {
    color: var(--sb-blue);
    font-weight: 600;
    font-size: .96rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sb-nav a:hover { color: var(--sb-blue-2); text-decoration: none; }

.sb-langswitch {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--sb-blue);
    border-radius: var(--sb-radius-pill);
    padding: 3px;
    background: transparent;
}
.sb-langswitch a {
    color: var(--sb-blue);
    font-size: .82rem; font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--sb-radius-pill);
    line-height: 1;
}
.sb-langswitch a[aria-current="true"] {
    background: var(--sb-blue);
    color: #fff;
}
.sb-langswitch a:hover { text-decoration: none; }

/* ---------- Hero (CLARO, hero del patrón) ---------- */
.sb-hero {
    background: var(--sb-bg);
    padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}
/* Variante compacta: usada en /cv/ porque debajo arranca directo el carrusel de implantaciones */
.sb-hero--compact { padding-bottom: clamp(16px, 2.5vw, 32px); }
.sb-section--tight-top { padding-top: clamp(28px, 4vw, 48px); }
.sb-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}
.sb-hero__eyebrow {
    color: var(--sb-blue-soft);
    text-transform: uppercase; letter-spacing: .14em; font-size: .82rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.sb-hero__title {
    color: var(--sb-blue);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: .35em;
    letter-spacing: -0.02em;
}
.sb-hero__subtitle {
    color: var(--sb-text-2);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    margin-bottom: 28px;
    max-width: 540px;
}
.sb-hero__subtitle strong { color: var(--sb-blue); }

.sb-hero__photo {
    aspect-ratio: 4/5;
    overflow: hidden;
    /* Fade-out solo abajo y laterales — cabeza nítida arriba (convención editorial).
       Vertical: solo abajo (fade del 75% al 100%).
       Horizontal: simétrico en laterales (10% a cada lado). */
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%),
                        linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:    linear-gradient(180deg, #000 75%, transparent 100%),
                            linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
            mask-composite: intersect;
}
.sb-hero__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Iconos sociales en el hero (círculo outline azul) */
.sb-social {
    display: flex; gap: 10px; margin-top: 20px;
}
.sb-social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--sb-blue);
    color: var(--sb-blue);
    transition: background .15s ease, color .15s ease;
}
.sb-social a:hover {
    background: var(--sb-blue); color: #fff; text-decoration: none;
}
.sb-social svg { width: 18px; height: 18px; }

/* KPIs en línea (sobre crema, sin fondo oscuro) */
.sb-kpis {
    display: grid; grid-template-columns: repeat(3, auto);
    gap: clamp(24px, 5vw, 56px);
    margin-top: 36px;
    justify-content: start;
}
.sb-kpi__num {
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    font-weight: 800;
    color: var(--sb-blue);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.sb-kpi__label {
    font-size: .92rem; color: var(--sb-muted);
}

/* ---------- Buttons (pill, según patrón) ---------- */
.sb-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: .98rem; font-weight: 600;
    border-radius: var(--sb-radius-pill);
    border: 1.5px solid var(--sb-blue);
    background: #ffffff;
    color: var(--sb-blue);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20,30,55,.04);
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sb-btn:hover { transform: translateY(-1px); text-decoration: none; }

.sb-btn--primary {
    background: var(--sb-blue);
    border-color: var(--sb-blue);
    color: #fff;
}
.sb-btn--primary:hover { background: var(--sb-blue-2); border-color: var(--sb-blue-2); color: #fff; }

.sb-btn--ghost {
    border-color: var(--sb-border-2);
    color: var(--sb-text-2);
}
.sb-btn--ghost:hover { border-color: var(--sb-blue); color: var(--sb-blue); }

.sb-btn__group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Prose (texto íntegro post AI21) ---------- */
.sb-prose { max-width: 780px; margin: 0 auto; }
.sb-prose p { color: var(--sb-text-2); font-size: 1.08rem; }
.sb-prose ol { padding-left: 1.3em; }
.sb-prose ol li { margin-bottom: .9em; color: var(--sb-text-2); }
.sb-prose strong { color: var(--sb-blue); font-weight: 700; }

/* ---------- Clip cards (vídeo lazy) — estilo del patrón ----------
   Card blanca con sombra suave + radius grande. Imagen interior
   con padding y border-radius interior. */
.sb-clips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 980px) {
    .sb-clips { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
    .sb-clips { grid-template-columns: 1fr; }
}
.sb-clip {
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    box-shadow: var(--sb-shadow-card);
    display: flex; flex-direction: column;
    padding: 18px 18px 24px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sb-clip:hover { transform: translateY(-3px); box-shadow: var(--sb-shadow-hover); }
.sb-clip__media {
    position: relative;
    aspect-ratio: 16/10;
    background: #ececec;
    cursor: pointer;
    border-radius: var(--sb-radius);
    overflow: hidden;
    margin-bottom: 18px;
}
.sb-clip__media img, .sb-clip__media iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.sb-clip__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(0deg, rgba(20,30,55,.18), rgba(20,30,55,.02));
    transition: background .2s ease;
}
.sb-clip__media:hover .sb-clip__play { background: linear-gradient(0deg, rgba(20,30,55,.28), rgba(20,30,55,.08)); }
.sb-clip__play svg {
    width: 64px; height: 64px;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
}

.sb-clip__body { padding: 4px 6px 0; }
.sb-clip__cta {
    display: inline-flex;
    margin-bottom: 14px;
}
.sb-clip__index {
    display: inline-block;
    font-size: .76rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sb-blue-soft);
    margin-bottom: 6px;
}
.sb-clip__title {
    font-size: 1.1rem;
    color: var(--sb-text);
    margin-bottom: 8px;
    font-weight: 700;
}
.sb-clip__text { color: var(--sb-muted); font-size: .94rem; margin: 0; }

/* Clip: variantes para no-vídeo en el bloque "En los medios" */
.sb-clip__media--photo { cursor: default; }
.sb-clip__media--photo:hover .sb-clip__play { background: linear-gradient(0deg, rgba(20,30,55,.18), rgba(20,30,55,.02)); }
a.sb-clip__media {
    display: block; text-decoration: none; color: inherit;
}
.sb-clip__external {
    position: absolute; top: 10px; right: 10px;
    width: 36px; height: 36px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease, background .15s ease;
    z-index: 1;
}
.sb-clip__external svg { width: 16px; height: 16px; fill: #fff; }
a.sb-clip__media:hover .sb-clip__external { transform: scale(1.1); background: var(--sb-blue); }
a.sb-clip__media:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 2px; }

/* Vídeo completo */
.sb-full-video {
    max-width: 960px; margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: var(--sb-radius-lg);
    overflow: hidden;
    background: #ececec;
    box-shadow: var(--sb-shadow-card);
    position: relative;
    cursor: pointer;
}
.sb-full-video img, .sb-full-video iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}

/* ---------- Card horizontal (conferencias/entrevistas del patrón) ---------- */
.sb-hcards { display: grid; gap: 28px; }
.sb-hcard {
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-card);
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}
.sb-hcard__media {
    aspect-ratio: 4/3;
    border-radius: var(--sb-radius);
    overflow: hidden;
    background: #ececec;
    position: relative;
}
.sb-hcard__media img, .sb-hcard__media iframe {
    width: 100%; height: 100%; object-fit: cover; border: 0;
}
.sb-hcard__media .sb-clip__play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(0deg, rgba(20,30,55,.20), rgba(20,30,55,.02));
}
.sb-hcard__tag {
    display: inline-block;
    font-size: .92rem; font-weight: 600;
    color: var(--sb-blue);
    margin-bottom: 10px;
    float: right;
}
.sb-hcard__title {
    font-size: 1.3rem; font-weight: 700; color: var(--sb-text);
    margin-bottom: 12px; clear: none;
}
.sb-hcard__text { color: var(--sb-muted); margin-bottom: 18px; }

/* ---------- Galería 3 cols (implantaciones / conferencias del CV) ---------- */
.sb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.sb-gallery__item {
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-card);
    overflow: hidden;
    padding: 16px 16px 20px;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sb-gallery__item:hover { transform: translateY(-3px); box-shadow: var(--sb-shadow-hover); }
.sb-gallery__img {
    aspect-ratio: 16/9;
    background: #ececec;
    border-radius: var(--sb-radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.sb-gallery__img img,
.sb-gallery__img iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.sb-gallery__cta {
    display: inline-flex;
    margin-bottom: 14px;
}
.sb-gallery__meta {
    font-size: .82rem; font-weight: 600; color: var(--sb-muted);
    margin-bottom: 4px;
}
.sb-gallery__title { font-size: 1.05rem; font-weight: 700; color: var(--sb-text); margin: 0 0 6px; }
.sb-gallery__text { color: var(--sb-muted); font-size: .92rem; margin: 0; }
.sb-gallery__note { color: var(--sb-blue); font-weight: 600; font-style: italic; }

/* Galería: variante clicable con play overlay (conferencias con vídeo) */
.sb-gallery__img--video { cursor: pointer; position: relative; }
.sb-gallery__play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.sb-gallery__play svg { width: 56px; height: 56px; opacity: .92; transition: transform .15s ease; }
.sb-gallery__img--video:hover .sb-gallery__play svg { transform: scale(1.08); }
.sb-gallery__img--video:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 2px; }

/* Galería: variante con enlace externo (artículos de prensa) */
a.sb-gallery__img {
    display: block; position: relative; text-decoration: none; color: inherit;
}
.sb-gallery__external {
    position: absolute; top: 10px; right: 10px;
    width: 32px; height: 32px;
    background: rgba(0,0,0,.55);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease, background .15s ease;
}
.sb-gallery__external svg { width: 15px; height: 15px; fill: #fff; }
a.sb-gallery__img:hover .sb-gallery__external { transform: scale(1.1); background: var(--sb-blue); }
a.sb-gallery__img:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 2px; }

/* Roles grid */
.sb-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.sb-role {
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-card);
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sb-role:hover { transform: translateY(-3px); box-shadow: var(--sb-shadow-hover); }
/* Cuando la card es <a> (link externo) hay que normalizarla para que se comporte como tarjeta */
a.sb-role { display: block; text-decoration: none; color: inherit; }
a.sb-role:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 3px; }
.sb-role__logo {
    height: 84px; margin-bottom: 16px;
    display: flex; align-items: center;
}
.sb-role__logo img { max-height: 84px; max-width: 180px; width: auto; height: auto; }
/* Variante XL para logos con mucho detalle interno (ej. AmericanLean con tagline + sub-tagline) */
.sb-role__logo--xl { height: 96px; }
.sb-role__logo--xl img { max-height: 96px; max-width: 220px; }
.sb-role__title {
    font-size: 1.15rem;
    color: var(--sb-blue);
    font-weight: 700;
    margin-bottom: 4px;
}
.sb-role__meta {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sb-muted);
    margin: 0 0 10px;
}
.sb-role__text { color: var(--sb-muted); font-size: .94rem; margin: 0; }

/* Books: badge "Próximamente" / "Coming soon" — píldora centrada sobre la portada.
   Position:relative + overflow:visible se aplican en la regla original .sb-book__cover (abajo). */
.sb-book__badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sb-blue);
    color: #fff;
    padding: 8px 22px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(20,30,55,.32);
    z-index: 2;
    white-space: nowrap;
}
.sb-book__meta {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sb-blue);
    margin: 0 0 8px;
}

/* ---------- Logos band (marcas / convenios) ---------- */
.sb-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 28px;
    align-items: center;
    justify-items: center;
}
.sb-logos__item {
    display: flex; align-items: center; justify-content: center;
    height: 70px;
}
.sb-logos__item img {
    max-height: 56px; max-width: 130px;
    opacity: .8;
    transition: opacity .2s ease;
    filter: grayscale(20%);
}
.sb-logos__item:hover img { opacity: 1; filter: none; }

/* ---------- Libro ---------- */
.sb-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}
.sb-book {
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-card);
    padding: 36px 30px;
    text-align: left;
}
.sb-book__cover {
    position: relative;
    width: 220px; max-width: 90%;
    aspect-ratio: 2/3;
    margin: 0 auto 24px;
    overflow: visible; /* permitir que el badge "Próximamente" sobresalga por arriba */
}
.sb-book__cover img { width: 100%; height: 100%; object-fit: contain; }
.sb-book__title { color: var(--sb-blue); font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; }
.sb-book__text { color: var(--sb-muted); margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.sb-faq { max-width: 820px; margin: 0 auto; }
.sb-faq details {
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius);
    box-shadow: var(--sb-shadow-card);
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.sb-faq details[open] { box-shadow: var(--sb-shadow-hover); }
.sb-faq summary {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--sb-blue);
    padding: 20px 56px 20px 24px;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary::after {
    content: "+";
    position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    font-size: 1.6rem; color: var(--sb-blue);
    line-height: 1;
}
.sb-faq details[open] summary::after { content: "−"; }
.sb-faq__answer { padding: 0 24px 22px; color: var(--sb-text-2); font-size: 1rem; }
.sb-faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Formulario contacto ---------- */
.sb-form {
    max-width: 640px; margin: 0 auto;
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--sb-shadow-card);
}
.sb-form__row { margin-bottom: 18px; }
.sb-form__row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.sb-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--sb-text-2);
    margin-bottom: 6px;
}
.sb-form input[type="text"],
.sb-form input[type="email"],
.sb-form input[type="tel"],
.sb-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1px solid var(--sb-border-2);
    border-radius: var(--sb-radius-sm);
    background: var(--sb-bg-card);
    color: var(--sb-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.sb-form input:focus, .sb-form textarea:focus {
    outline: none;
    border-color: var(--sb-blue);
    box-shadow: 0 0 0 3px rgba(42,77,138,.15);
}
.sb-form textarea { min-height: 120px; resize: vertical; }
.sb-form__consent {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .88rem; color: var(--sb-muted);
}
.sb-form__consent input { margin-top: 4px; }
.sb-form__status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .92rem;
    display: none;
}
.sb-form__status--ok { display: block; background: #e9f5ee; color: #1d5d3b; border: 1px solid #b6dcc1; }
.sb-form__status--err { display: block; background: #fdecec; color: #8a2b2b; border: 1px solid #f3c2c2; }

/* ---------- Footer (azul cobalto medio del patrón) ---------- */
.sb-footer {
    background: var(--sb-blue-footer);
    color: var(--sb-on-blue);
    padding: 56px 0 28px;
    font-size: .96rem;
}
.sb-footer a { color: var(--sb-on-blue); }
.sb-footer a:hover { color: var(--sb-on-blue-mut); }
.sb-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}
.sb-footer__brand img {
    max-height: 64px;
    max-width: 280px;
    width: auto;
    height: auto;
    margin-bottom: 16px;
    /* En el footer usamos el banner blanco con alpha real
       (logo-sebastian-brau-white.png), pensado para fondos oscuros. */
}
.sb-footer__brand p { color: var(--sb-on-blue-mut); margin: 0 0 14px; }
.sb-footer h4 {
    color: var(--sb-on-blue);
    font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
    font-weight: 700;
    margin: 0 0 16px;
}
.sb-footer ul { list-style: none; padding: 0; margin: 0; }
.sb-footer li { margin-bottom: 10px; font-size: .94rem; }
.sb-footer__social { display: flex; gap: 10px; }
.sb-footer__social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.5);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
}
.sb-footer__social a:hover { background: #fff; color: var(--sb-blue-footer); }
.sb-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 22px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    color: var(--sb-on-blue-mut);
    font-size: .9rem;
    text-align: center;
}

/* ---------- Breadcrumb ---------- */
.sb-breadcrumb {
    font-size: .88rem; color: var(--sb-muted);
    padding: 18px 0 0;
}
.sb-breadcrumb ol {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.sb-breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--sb-border-2); }
.sb-breadcrumb li:last-child::after { content: ""; }
.sb-breadcrumb a { color: var(--sb-muted); }

/* ---------- 404 ---------- */
.sb-404 { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.sb-404__code {
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800; color: var(--sb-blue);
    line-height: 1; margin: 0 0 8px;
}
.sb-404__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 16px; color: var(--sb-blue); }
.sb-404__text { color: var(--sb-muted); margin-bottom: 28px; }
.sb-404__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- CTA bar (banda destacada, ahora clara con acento) ---------- */
.sb-ctabar {
    background: var(--sb-bg-soft);
    color: var(--sb-text);
    text-align: center;
    padding: clamp(48px, 7vw, 80px) 0;
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid var(--sb-border);
}
.sb-ctabar h2 { color: var(--sb-blue); margin-bottom: 14px; }
.sb-ctabar p { color: var(--sb-muted); max-width: 620px; margin: 0 auto 26px; }

/* ---------- Card "wide" (envoltorio grande tipo seccion-en-card) ---------- */
.sb-card--wide {
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-card);
    padding: clamp(28px, 4.5vw, 56px);
}

/* ---------- Carrusel implantaciones ----------
   Foto activa centrada + slides prev/next como preview lateral.
   Markup: ver es/cv y en/cv. */
.sb-carousel { width: 100%; }

.sb-carousel__viewport {
    position: relative;
    width: 100%;
    height: clamp(260px, 38vw, 440px);
    overflow: hidden;
}

.sb-carousel__track {
    position: relative; width: 100%; height: 100%;
    margin: 0; padding: 0; list-style: none;
}

.sb-carousel__slide {
    position: absolute;
    top: 50%; left: 50%;
    width: clamp(260px, 56%, 600px);
    aspect-ratio: 4/3;
    margin: 0;
    transform: translate(-50%, -50%) scale(.6);
    transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .5s ease;
    opacity: 0;
    pointer-events: none;
    border-radius: var(--sb-radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(20,30,55,.18);
    background: #ececec;
}
.sb-carousel__slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.sb-carousel__slide.is-active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 3;
}
.sb-carousel__slide.is-prev {
    transform: translate(calc(-50% - 62%), -50%) scale(.62);
    opacity: .35;
    z-index: 2;
}
.sb-carousel__slide.is-next {
    transform: translate(calc(-50% + 62%), -50%) scale(.62);
    opacity: .35;
    z-index: 2;
}

/* Dots */
.sb-carousel__dots {
    display: flex; justify-content: center; gap: 14px;
    margin: 26px 0 32px;
}
.sb-carousel__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--sb-blue);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, transform .15s ease;
}
.sb-carousel__dot:hover { background: var(--sb-blue-soft); }
.sb-carousel__dot[aria-selected="true"] {
    background: var(--sb-blue);
    transform: scale(1.15);
}

/* Banda de logos clicables (navegación por marca) — una sola línea con tiles cuadrados.
   Con 15 marcas, los tiles son pequeños y se distribuyen uniformemente.
   Diseñado para caber SIEMPRE en desktop, incluso con scrollbar vertical del navegador. */
.sb-carousel__logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    border-top: 1px solid var(--sb-border);
    padding-top: 26px;
    overflow: visible;
}

.sb-carousel__logo {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: .55;
    transition: opacity .18s ease, transform .15s ease;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}
.sb-carousel__logo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.sb-carousel__logo:hover { opacity: .85; transform: scale(1.05); }
.sb-carousel__logo[aria-selected="true"] {
    opacity: 1;
    transform: scale(1.08);
}
.sb-carousel__logo:focus-visible {
    outline: 2px solid var(--sb-gold);
    outline-offset: 3px;
}

/* ---------- Cita testimonial (bloque inferior del patrón) ---------- */
.sb-quote {
    margin: 36px 0 0;
    padding-top: 32px;
    border-top: 1px solid var(--sb-border);
}
.sb-quote__attr {
    font-size: 1.1rem;
    color: var(--sb-blue);
    margin: 0 0 18px;
    font-weight: 400;
}
.sb-quote__attr strong { font-weight: 700; }
.sb-quote__text {
    position: relative;
    color: var(--sb-text);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
    padding: 0 8px;
}
.sb-quote__mark {
    color: var(--sb-blue);
    font-size: 2.4em;
    line-height: 0;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", serif;
}
.sb-quote__mark--open  { vertical-align: -.35em; margin-right: .12em; }
.sb-quote__mark--close { vertical-align: -.5em;  margin-left: .08em; }
.sb-quote__text strong { color: var(--sb-text); font-weight: 700; }

/* ---------- Testimonio destacado del cliente (Nivel 1) ----------
   Bloque con: antetítulo + titular + pull-quote grande + atribución estructurada + vídeo destacado. */
.sb-testimonio {
    max-width: 900px;
    margin: 0 auto;
}
.sb-testimonio__head { text-align: center; margin-bottom: 32px; }

.sb-pullquote {
    position: relative;
    background: var(--sb-bg-card);
    border-radius: var(--sb-radius-lg);
    box-shadow: var(--sb-shadow-card);
    padding: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 52px);
    margin: 0 0 28px;
}
.sb-pullquote__text {
    position: relative;
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    line-height: 1.55;
    color: var(--sb-text);
    font-style: italic;
    margin: 0 0 24px;
    padding: 0 8px;
}
.sb-pullquote__mark {
    color: var(--sb-blue);
    font-size: 2.8em;
    line-height: 0;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", serif;
}
.sb-pullquote__mark--open  { vertical-align: -.35em; margin-right: .12em; }
.sb-pullquote__mark--close { vertical-align: -.5em;  margin-left: .08em; }

.sb-pullquote__attr {
    border-top: 1px solid var(--sb-border);
    padding-top: 18px;
    margin-top: 8px;
}
.sb-pullquote__attr-name {
    font-weight: 700;
    color: var(--sb-blue);
    font-size: 1.05rem;
    margin: 0 0 4px;
}
.sb-pullquote__attr-role {
    color: var(--sb-text-2);
    font-size: .98rem;
    margin: 0 0 6px;
}
.sb-pullquote__attr-context {
    color: var(--sb-muted);
    font-size: .9rem;
    margin: 0;
}
.sb-pullquote__attr-source {
    color: var(--sb-blue);
    font-weight: 600;
    font-size: .92rem;
    margin: 10px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .sb-hero__grid { grid-template-columns: 1fr; }
    .sb-hero__photo {
        max-width: 360px;
        margin: 24px auto 0;
        -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
    }
    .sb-footer__grid { grid-template-columns: 1fr 1fr; }
    .sb-hcard { grid-template-columns: 1fr; }
    .sb-hcard__media { max-width: 480px; }
    /* Carrusel: por debajo de ~820px la banda de 15 logos a 48px hace overflow
       horizontal (15×48 + 14×4 = 776px, más el padding del container). Ocultamos
       dots (redundantes con la banda) y permitimos wrap; el slide pasa a casi-
       fullwidth con los previews ocultos para que respire en tablets y móviles. */
    .sb-carousel__slide { width: 88%; }
    .sb-carousel__slide.is-prev,
    .sb-carousel__slide.is-next { opacity: 0; }
    .sb-carousel__dots { display: none; }
    .sb-carousel__logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        row-gap: 8px;
    }
    .sb-carousel__logo { width: 42px; height: 42px; }
}
@media (max-width: 560px) {
    .sb-kpis { grid-template-columns: 1fr 1fr; gap: 24px; }
    .sb-form__row--two { grid-template-columns: 1fr; }
    .sb-nav { display: none; }
    .sb-logo img { height: 48px; }
    .sb-footer__grid { grid-template-columns: 1fr; }
    :root { --sb-header-h: 72px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* Scroll offset global: cualquier anchor de la página deja sitio para el header sticky */
[id] { scroll-margin-top: calc(var(--sb-header-h) + 16px); }

/* Header CTA: botón "Hablemos" / "Let's talk" persistente en el header sticky */
.sb-header__cta {
    display: inline-flex; align-items: center;
    background: var(--sb-blue);
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.sb-header__cta:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20,30,55,.22); }
.sb-header__cta:focus-visible { outline: 2px solid var(--sb-gold); outline-offset: 2px; }
@media (max-width: 540px) {
    /* En móvil: padding más compacto pero CTA siempre visible */
    .sb-header__cta { padding: 7px 14px; font-size: .84rem; }
}
