:root {
    --bp-navy: #0b2d55;
    --bp-navy-2: #123f73;
    --bp-orange: #f59e0b;
    --bp-green: #119447;
    --bp-text: #172033;
    --bp-muted: #667085;
    --bp-border: #e4e7ec;
    --bp-surface: #f7f9fc;
    --bp-white: #fff;
    --bp-radius: 18px;
    --bp-shadow: 0 12px 35px rgba(11, 45, 85, .10);
}

.bp-classificados-page #secondary,
.bp-classificados-page #cm-secondary,
.bp-classificados-page .widget-area,
body:has(.bp-classificados-app) #secondary,
body:has(.bp-classificados-app) #cm-secondary,
body:has(.bp-classificados-app) .cm-secondary,
body:has(.bp-classificados-app) .main-content-section > .tg-one-third,
body:has(.bp-classificados-app) .main-content-section > aside,
body:has(.bp-classificados-app) .right-sidebar {
    display: none !important;
}

.bp-classificados-page #primary,
.bp-classificados-page #cm-primary,
.bp-classificados-page .content-area,
body:has(.bp-classificados-app) #primary,
body:has(.bp-classificados-app) #cm-primary,
body:has(.bp-classificados-app) .cm-primary,
body:has(.bp-classificados-app) .main-content-section > .tg-two-thirds,
body:has(.bp-classificados-app) .main-content-section > main {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

body:has(.bp-classificados-app) .entry-header,
body:has(.bp-classificados-app) .entry-title,
body:has(.bp-classificados-app) .cm-entry-header,
body:has(.bp-classificados-app) .cm-entry-title {
    display: none !important;
}

body:has(.bp-classificados-app) .entry-content {
    margin-top: 0 !important;
}

.bp-classificados-page .site-content,
.bp-classificados-page #main {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.bp-classificados-app,
.bp-company-page {
    color: var(--bp-text);
    font-family: inherit;
    width: 100%;
}

.bp-classificados-app *,
.bp-company-page * {
    box-sizing: border-box;
}

.bp-directory-hero {
    background: linear-gradient(135deg, var(--bp-navy) 0%, var(--bp-navy-2) 68%, #1960a8 100%);
    border-radius: 24px;
    color: var(--bp-white);
    overflow: hidden;
    padding: 54px clamp(22px, 5vw, 66px);
    position: relative;
    text-align: center;
}

.bp-directory-hero::after {
    background: var(--bp-orange);
    border-radius: 999px;
    content: '';
    height: 190px;
    opacity: .15;
    position: absolute;
    right: -45px;
    top: -80px;
    width: 190px;
}

.bp-eyebrow {
    color: var(--bp-orange);
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.bp-directory-hero h1,
.bp-company-hero h1 {
    color: inherit;
    font-size: clamp(31px, 5vw, 54px);
    line-height: 1.08;
    margin: 0 0 12px;
}

.bp-directory-hero p {
    font-size: clamp(16px, 2vw, 20px);
    margin: 0 auto 28px;
    max-width: 680px;
    opacity: .92;
}

.bp-search {
    align-items: center;
    background: var(--bp-white);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    display: flex;
    gap: 10px;
    margin: 0 auto;
    max-width: 680px;
    padding: 0 18px;
    position: relative;
    z-index: 1;
}

.bp-search .dashicons {
    color: var(--bp-navy);
}

.bp-search input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--bp-text) !important;
    font-size: 17px;
    height: 58px;
    margin: 0 !important;
    outline: none;
    padding: 0 !important;
    width: 100%;
}

.bp-category-bar {
    display: flex;
    gap: 10px;
    margin: 26px 0 38px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
}

.bp-category {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    color: var(--bp-text);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 18px;
    transition: .2s ease;
}

.bp-category:hover,
.bp-category.is-active {
    background: var(--bp-navy);
    border-color: var(--bp-navy);
    color: var(--bp-white);
}

.bp-directory-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.bp-directory-heading h2,
.bp-company-page h2 {
    color: var(--bp-navy);
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.15;
    margin: 0;
}

.bp-result-count {
    color: var(--bp-muted);
    font-size: 14px;
    font-weight: 600;
}

.bp-company-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bp-company-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    box-shadow: 0 5px 18px rgba(16, 24, 40, .05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bp-company-card:hover {
    box-shadow: var(--bp-shadow);
    transform: translateY(-4px);
}

.bp-company-logo {
    align-items: center;
    background: var(--bp-surface);
    display: flex;
    height: 180px;
    justify-content: center;
    padding: 24px;
    transition: background-color .2s ease;
}

.bp-company-logo img,
.bp-company-hero-logo img {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.bp-logo-placeholder {
    align-items: center;
    background: var(--bp-navy);
    border-radius: 50%;
    color: var(--bp-white);
    display: inline-flex;
    font-size: 48px;
    font-weight: 900;
    height: 105px;
    justify-content: center;
    width: 105px;
}

.bp-company-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.bp-card-category {
    color: var(--bp-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bp-company-card h3 {
    font-size: 20px;
    line-height: 1.25;
    margin: 6px 0 8px;
    min-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.bp-company-card h3 a {
    color: var(--bp-navy);
    text-decoration: none;
}

.bp-company-card p {
    color: var(--bp-muted);
    flex: 1;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 18px;
    min-height: 6.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.bp-card-actions,
.bp-company-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.bp-btn {
    align-items: center;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    max-width: 100%;
    padding: 11px 15px;
    text-decoration: none !important;
    transition: filter .2s ease, transform .2s ease;
    white-space: normal;
}

.bp-btn:hover {
    filter: brightness(.94);
    transform: translateY(-1px);
}

.bp-btn-primary {
    background: var(--bp-navy);
    color: var(--bp-white) !important;
    flex: 1 1 100%;
}

.bp-btn-whatsapp {
    background: var(--bp-green);
    color: var(--bp-white) !important;
    flex: 1;
}

.bp-btn-outline {
    background: transparent;
    border: 2px solid currentColor;
    color: var(--bp-navy) !important;
}

.bp-btn-light {
    background: var(--bp-white);
    color: var(--bp-navy) !important;
    flex: 0 0 auto;
}

.bp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 34px 0;
}

.bp-pagination button {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: 9px;
    color: var(--bp-navy);
    cursor: pointer;
    font-weight: 800;
    height: 42px;
    width: 42px;
}

.bp-pagination button.is-active {
    background: var(--bp-navy);
    color: var(--bp-white);
}

.bp-no-results,
.bp-empty-state {
    background: var(--bp-surface);
    border-radius: var(--bp-radius);
    grid-column: 1 / -1;
    padding: 40px 24px;
    text-align: center;
}

.bp-advertise-cta,
.bp-company-bottom-cta {
    align-items: center;
    background: linear-gradient(135deg, var(--bp-navy), var(--bp-navy-2));
    border-radius: 22px;
    color: var(--bp-white);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-top: 46px;
    padding: 38px clamp(22px, 5vw, 54px);
}

.bp-advertise-cta h2,
.bp-company-bottom-cta h2 {
    color: var(--bp-white);
    margin: 0 0 8px;
}

.bp-advertise-cta p {
    margin: 0;
    opacity: .9;
}

/* Landing page */
.bp-company-page {
    padding-bottom: 48px;
}

.bp-company-hero {
    align-items: center;
    background: linear-gradient(135deg, #f8fbff, #eef5fc);
    border: 1px solid #dce8f5;
    border-radius: 24px;
    display: grid;
    gap: clamp(26px, 5vw, 58px);
    grid-template-columns: minmax(230px, .8fr) 1.5fr;
    margin-bottom: 28px;
    padding: clamp(24px, 5vw, 60px);
}

.bp-company-hero-logo {
    align-items: center;
    background: var(--bp-white);
    border-radius: 20px;
    box-shadow: var(--bp-shadow);
    display: flex;
    height: 280px;
    justify-content: center;
    padding: 32px;
    transition: background-color .2s ease;
}

.bp-company-slogan {
    color: var(--bp-muted);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.5;
    margin: 12px 0;
}

.bp-company-city {
    color: var(--bp-muted);
    margin-bottom: 24px;
}

.bp-company-offer {
    align-items: center;
    background: #fff8e7;
    border: 1px solid #ffd77a;
    border-radius: 16px;
    display: flex;
    gap: 22px;
    margin: 0 0 30px;
    padding: 22px 28px;
}

.bp-company-offer span {
    color: #8a5400;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.bp-company-offer strong {
    color: #4e3500;
    font-size: 18px;
}

.bp-company-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
    margin: 38px 0;
}

.bp-company-content,
.bp-company-contact-card {
    background: var(--bp-white);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    padding: clamp(24px, 4vw, 42px);
}

.bp-prose {
    font-size: 17px;
    line-height: 1.75;
    margin-top: 18px;
}

.bp-company-contact-card {
    box-shadow: var(--bp-shadow);
    height: fit-content;
}

.bp-company-contact-card h2 {
    font-size: 24px;
}

.bp-company-contact-card p {
    border-bottom: 1px solid var(--bp-border);
    color: var(--bp-muted);
    line-height: 1.55;
    margin: 0;
    padding: 18px 0;
}

.bp-company-map {
    margin: 42px 0;
}

.bp-company-gallery-section {
    margin: 42px 0;
}

.bp-company-video-section {
    margin: 42px 0;
}

.bp-company-video {
    aspect-ratio: 16 / 9;
    background: #081c35;
    border-radius: 18px;
    box-shadow: var(--bp-shadow);
    margin-top: 20px;
    overflow: hidden;
    width: 100%;
}

.bp-company-video iframe,
.bp-company-video video {
    border: 0;
    height: 100%;
    width: 100%;
}

.bp-company-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.bp-gallery-photo {
    background: var(--bp-surface);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .08);
    display: block;
    height: 230px;
    overflow: hidden;
}

.bp-gallery-photo img {
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.bp-gallery-photo:hover img { transform: scale(1.035); }

.bp-lightbox[hidden] { display: none !important; }
.bp-lightbox {
    align-items: center;
    background: rgba(3, 12, 24, .92);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 999999;
}

.bp-lightbox img {
    max-height: 90vh;
    max-width: min(1100px, 94vw);
    object-fit: contain;
}

.bp-lightbox-close {
    background: var(--bp-white);
    border: 0;
    border-radius: 50%;
    color: var(--bp-navy);
    cursor: pointer;
    font-size: 30px;
    height: 44px;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 44px;
}

body.bp-lightbox-open { overflow: hidden; }

.bp-company-map iframe {
    border: 0;
    border-radius: 18px;
    height: 390px;
    margin-top: 18px;
    width: 100%;
}

@media (max-width: 1000px) {
    .bp-company-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .bp-company-grid { grid-template-columns: 1fr; }
    .bp-card-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .bp-card-actions .bp-btn {
        box-sizing: border-box;
        display: flex !important;
        flex: none;
        min-height: 44px;
        overflow: visible;
        width: 100% !important;
    }
    .bp-advertise-cta,
    .bp-company-bottom-cta {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        padding: 28px 22px;
    }
    .bp-advertise-cta h2,
    .bp-company-bottom-cta h2 {
        font-size: 26px !important;
        line-height: 1.15;
        overflow-wrap: normal;
        word-break: normal;
    }
    .bp-advertise-cta .bp-btn,
    .bp-company-bottom-cta .bp-btn { width: 100%; }
    .bp-company-hero { grid-template-columns: 1fr; }
    .bp-company-hero-logo { height: 240px; }
    .bp-company-layout { grid-template-columns: 1fr; }
    .bp-company-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .bp-directory-hero { border-radius: 18px; padding: 38px 18px; }
    .bp-directory-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .bp-company-grid { grid-template-columns: 1fr; }
    .bp-company-logo { height: 200px; }
    .bp-company-card-body { padding: 20px; }
    .bp-btn { width: 100%; }
    .bp-advertise-cta,
    .bp-company-bottom-cta { border-radius: 18px; margin-top: 32px; padding: 24px 18px; }
    .bp-advertise-cta h2,
    .bp-company-bottom-cta { text-align: left; }
    .bp-advertise-cta h2,
    .bp-company-bottom-cta h2 { font-size: 22px !important; line-height: 1.2; }
    .bp-company-hero { border-radius: 18px; padding: 22px; }
    .bp-company-hero-logo { height: 210px; }
    .bp-company-offer { align-items: flex-start; flex-direction: column; gap: 8px; }
    .bp-company-primary-actions { flex-direction: column; }
    .bp-company-gallery { gap: 10px; }
    .bp-gallery-photo { height: 165px; }
}

