.cb-workshop-profile {
    --cb-workshop-ink: #0d172c;
    --cb-workshop-muted: #667085;
    --cb-workshop-line: #d8dee8;
    --cb-workshop-surface: #f5f7fa;
    min-height: 70vh;
    background: var(--cb-workshop-surface);
    color: #111827;
    font-family: Nunito, sans-serif;
}

.cb-workshop-shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.cb-workshop-hero {
    min-height: 310px;
    display: flex;
    align-items: center;
    background-color: var(--cb-workshop-ink);
    background-position: center;
    background-size: cover;
    color: #fff;
}

/* La portada certificada se conserva íntegra: sin velo, opacidad ni filtro azul. */
.cb-workshop-profile--certified .cb-workshop-hero.has-cover {
    background-color: #111;
    background-blend-mode: normal;
}

.cb-workshop-hero__inner {
    padding-block: 54px;
}

.cb-workshop-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cb-workshop-profile--certified .cb-workshop-badge {
    background: #fff2c7;
    color: #3e3211;
}

.cb-workshop-business-types-public {
    width: fit-content;
    margin: 10px 0 0;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .03em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.cb-workshop-identity {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 20px 0;
    width: fit-content;
    max-width: 760px;
}

.cb-workshop-logo {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 13px;
    background: #fff;
}

.cb-workshop-identity h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .46);
}

.cb-workshop-identity p {
    max-width: 650px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.cb-workshop-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease;
}

.cb-workshop-button i {
    margin-right: 8px;
}

.cb-workshop-button:hover {
    transform: translateY(-1px);
}

.cb-workshop-button--light {
    border-color: #fff;
    background: #fff;
    color: #111827;
}

.cb-workshop-button--light:hover,
.cb-workshop-button--light:visited {
    color: #111827;
}

.cb-workshop-button--ghost {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(0, 0, 0, .2);
    color: #fff;
    backdrop-filter: blur(5px);
}

.cb-workshop-button--ghost:hover,
.cb-workshop-button--ghost:visited {
    border-color: #fff;
    background: rgba(0, 0, 0, .38);
    color: #fff;
}

.cb-workshop-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 760px;
    margin: -5px 0 22px;
}

.cb-workshop-specialties span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(5px);
}

.cb-workshop-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cb-workshop-icon-link {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 10px;
    background: rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: transform .16s ease, background .16s ease;
}

.cb-workshop-icon-link:hover,
.cb-workshop-icon-link:visited {
    color: #fff;
}

.cb-workshop-icon-link:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, .38);
}

.cb-workshop-contact-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 32px;
}

.cb-workshop-contact-panel > a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 17px 18px;
    border: 1px solid var(--cb-workshop-line);
    border-radius: 12px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.cb-workshop-contact-panel > a:hover {
    transform: translateY(-1px);
    border-color: #1e3a78;
    color: #111827;
}

.cb-workshop-contact-panel i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    background: #edf3ff;
    color: #1e3a78;
    font-size: 18px;
}

.cb-workshop-contact-panel span,
.cb-workshop-contact-panel small,
.cb-workshop-contact-panel strong {
    display: block;
    min-width: 0;
}

.cb-workshop-contact-panel small {
    margin-bottom: 3px;
    color: var(--cb-workshop-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cb-workshop-contact-panel strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cb-workshop-contact-panel + .cb-workshop-branches {
    padding-top: 38px;
}

.cb-workshop-branches {
    padding-block: 88px 44px;
}

.cb-workshop-branch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.cb-workshop-branch-tabs button {
    padding: 9px 16px;
    border: 1px solid var(--cb-workshop-line);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-weight: 800;
}

.cb-workshop-branch-tabs button[aria-selected="true"] {
    border-color: #1e3a78;
    background: #1e3a78;
    color: #fff;
}

.cb-workshop-branch-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.cb-workshop-branch-panel[hidden] {
    display: none;
}

.cb-workshop-info-card {
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--cb-workshop-line);
    border-radius: 10px;
    background: #fff;
}

.cb-workshop-card-kicker {
    display: block;
    margin-bottom: 13px;
    color: #535d70;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cb-workshop-info-card h2 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 20px;
    font-size: 23px;
    font-weight: 850;
}

.cb-workshop-info-card h2 i,
.cb-workshop-hours > i {
    font-size: 24px;
}

.cb-workshop-map {
    width: 100%;
    height: 190px;
    border: 0;
    border-radius: 6px;
    background: #e5e7eb;
}

.cb-workshop-hours {
    display: flex;
    gap: 16px;
}

.cb-workshop-hours ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.85;
}

.cb-workshop-section {
    padding-block: 64px;
}

.cb-workshop-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 38px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cb-workshop-line);
}

.cb-workshop-section__header h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 900;
}

.cb-workshop-section__header span,
.cb-workshop-section__header a {
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cb-workshop-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cb-workshop-service-card,
.cb-workshop-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--cb-workshop-line);
    border-radius: 10px;
    background: #fff;
}

.cb-workshop-card-image,
.cb-workshop-card-icon {
    display: flex;
    width: 100%;
    height: 205px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e9edf2;
}

.cb-workshop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.cb-workshop-card-image:hover img {
    transform: scale(1.025);
}

.cb-workshop-card-image span,
.cb-workshop-card-icon i {
    color: #64748b;
    font-size: 46px;
}

.cb-workshop-card-body {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    padding: 22px;
}

.cb-workshop-card-body h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.18;
}

.cb-workshop-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.cb-workshop-card-body p {
    margin: 0 0 18px;
    color: #5d6471;
    line-height: 1.55;
}

.cb-workshop-price {
    display: block;
    margin: auto 0 15px;
    font-size: 22px;
    font-weight: 900;
}

.cb-workshop-card-action {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 8px 14px;
    border: 1px solid #111827;
    border-radius: 6px;
    background: transparent;
    color: #111827;
    font-weight: 850;
    text-decoration: none;
    transition: .16s ease;
}

.cb-workshop-card-action:hover {
    background: #111827;
    color: #fff;
}

.cb-workshop-card-action--dark {
    background: #050505;
    color: #fff;
}

.cb-workshop-card-action--dark:hover,
.cb-workshop-card-action--dark:visited {
    color: #fff;
}

.cb-workshop-section-nav {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 20;
    margin-top: 30px;
    background: #101a30;
    color: #fff;
}

.cb-workshop-section-nav .cb-workshop-shell {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cb-workshop-section-nav .cb-workshop-shell > div {
    display: flex;
    gap: 30px;
}

.cb-workshop-section-nav a:not(.cb-workshop-button) {
    padding-block: 23px;
    border-bottom: 2px solid transparent;
    color: #98a2b8;
    font-weight: 800;
    text-decoration: none;
}

.cb-workshop-section-nav a:hover,
.cb-workshop-section-nav a:first-child {
    border-bottom-color: #fff;
    color: #fff;
}

@media (max-width: 850px) {
    .cb-workshop-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cb-workshop-contact-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cb-workshop-section-nav .cb-workshop-shell > div {
        gap: 16px;
        overflow-x: auto;
    }
}

@media (max-width: 680px) {
    .cb-workshop-shell {
        width: min(100% - 28px, 1120px);
    }

    .cb-workshop-hero {
        min-height: 330px;
    }

    .cb-workshop-identity {
        align-items: flex-start;
    }

    .cb-workshop-logo {
        width: 68px;
        height: 68px;
    }

    .cb-workshop-branch-panel,
    .cb-workshop-card-grid,
    .cb-workshop-contact-panel {
        grid-template-columns: 1fr;
    }

    .cb-workshop-branches {
        padding-top: 45px;
    }

    .cb-workshop-info-card {
        min-height: 0;
        padding: 21px;
    }

    .cb-workshop-section {
        padding-block: 45px;
    }

    .cb-workshop-section-nav .cb-workshop-button {
        display: none;
    }

    .cb-workshop-section-nav .cb-workshop-shell {
        width: 100%;
        padding-inline: 14px;
    }
}
