
/* =========================================================
   ÔNIBUS — FINAL PAGE SHELL
   Theme owns shell; module owns components.
   ========================================================= */

body.page-template-page-horarios-onibus main.guia-onibus-page,
body.page-horarios-de-onibus main.guia-onibus-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

body.page-template-page-horarios-onibus .guia-core-module-page__container,
body.page-horarios-de-onibus .guia-core-module-page__container {
    width: min(1200px, calc(100% - 48px)) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body.page-template-page-horarios-onibus .guia-core-module-page__header,
body.page-horarios-de-onibus .guia-core-module-page__header {
    padding: 18px 0 28px !important;
    margin: 0 !important;
    text-align: left !important;
}

body.page-template-page-horarios-onibus .guia-core-module-page__header p,
body.page-horarios-de-onibus .guia-core-module-page__header p {
    margin: 0 0 6px !important;
    font-size:14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
}

body.page-template-page-horarios-onibus .guia-core-module-page__header h1,
body.page-horarios-de-onibus .guia-core-module-page__header h1 {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    font-size: clamp(38px, 4.2vw, 56px) !important;
    line-height: 1.05 !important;
    font-weight: 750 !important;
    letter-spacing: -.035em !important;
}

body.page-template-page-horarios-onibus .guia-onibus-page__busca,
body.page-horarios-de-onibus .guia-onibus-page__busca,
body.page-template-page-horarios-onibus .guia-onibus-page__empresas,
body.page-horarios-de-onibus .guia-onibus-page__empresas {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.page-template-page-horarios-onibus .guia-onibus-page__busca .gob-busca-premium {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 0 32px !important;
}

body.page-template-page-horarios-onibus .guia-onibus-page__empresas .gob-hub,
body.page-horarios-de-onibus .guia-onibus-page__empresas .gob-hub {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 0 64px !important;
    box-sizing: border-box !important;
}

body.page-template-page-horarios-onibus .guia-onibus-page__empresas .gob-hub__grid,
body.page-horarios-de-onibus .guia-onibus-page__empresas .gob-hub__grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-template-page-horarios-onibus .gob-company-card,
body.page-horarios-de-onibus .gob-company-card {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

body.page-template-page-horarios-onibus .gob-company-card__image,
body.page-horarios-de-onibus .gob-company-card__image {
    width: 100% !important;
    height: 190px !important;
    flex: 0 0 190px !important;
    object-fit: cover !important;
}

body.page-template-page-horarios-onibus .gob-company-card__content,
body.page-horarios-de-onibus .gob-company-card__content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

@media (max-width: 900px) {
    body.page-template-page-horarios-onibus .guia-core-module-page__container,
    body.page-horarios-de-onibus .guia-core-module-page__container {
        width: min(100% - 32px, 900px) !important;
    }

    body.page-template-page-horarios-onibus .guia-onibus-page__empresas .gob-hub__grid,
    body.page-horarios-de-onibus .guia-onibus-page__empresas .gob-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    body.page-template-page-horarios-onibus .guia-core-module-page__container,
    body.page-horarios-de-onibus .guia-core-module-page__container {
        width: calc(100% - 24px) !important;
    }

    body.page-template-page-horarios-onibus .guia-core-module-page__header h1,
    body.page-horarios-de-onibus .guia-core-module-page__header h1 {
        font-size: 34px !important;
    }

    body.page-template-page-horarios-onibus .guia-onibus-page__empresas .gob-hub__grid,
    body.page-horarios-de-onibus .guia-onibus-page__empresas .gob-hub__grid {
        grid-template-columns: 1fr !important;
    }

    body.page-template-page-horarios-onibus .gob-company-card__image,
    body.page-horarios-de-onibus .gob-company-card__image {
        height: 210px !important;
        flex-basis: 210px !important;
    }
}
