/* Final overrides loaded after Tuturn and TutorConnect. */

/* Native carousel layout: keeps homepage shortcodes usable even when the
   TutorConnect public stylesheet is not enqueued by the active template. */
.buscaprofe-site .bp-homepage-v2 :is(.tc-profesores-carrusel, .tc-materias-carrusel) {
    position: relative;
    width: 100%;
    padding: 8px 52px;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-ventana {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-ventana::-webkit-scrollbar {
    display: none;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-pista {
    display: flex !important;
    align-items: stretch;
    gap: 16px;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-slide {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-card,
.buscaprofe-site .bp-homepage-v2 .tc-carrusel-profesor-card {
    display: flex !important;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-card {
    min-height: 270px;
    text-decoration: none;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-icono {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #dff7f3;
    color: #087f72;
    font-size: 27px;
    font-weight: 700;
    line-height: 64px;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-nivel {
    display: block;
    margin-bottom: 7px;
    color: var(--bp-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-card h3 {
    width: 100%;
    margin: 0 0 8px;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-total {
    display: block;
    margin-bottom: 16px;
    color: var(--bp-muted);
    font-size: 14px;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-boton,
.buscaprofe-site .bp-homepage-v2 .tc-carrusel-agendar {
    margin-top: auto;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0 !important;
    transform: translateY(-50%);
    border: 1px solid var(--bp-border);
    border-radius: 50%;
    background: var(--bp-white);
    color: var(--bp-primary);
    box-shadow: var(--bp-shadow);
    font-size: 28px !important;
    line-height: 34px;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-control:disabled {
    opacity: 0.3;
    cursor: default;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-anterior {
    left: 2px;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-siguiente {
    right: 2px;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-slide {
    flex-basis: calc((100% - 60px) / 4) !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-profesor-card {
    width: 100%;
    max-width: 280px;
    min-height: 330px !important;
    margin-inline: auto;
    padding: 20px !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-perfil-link {
    display: block !important;
    width: 150px;
    margin: 0 auto 16px;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers :is(.tc-carrusel-profesor-foto, .tc-carrusel-profesor-placeholder) {
    width: 150px !important;
    height: 170px !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center top;
    border-radius: 6px;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-profesor-nombre {
    min-height: 24px;
    margin-bottom: 6px;
    font-size: 17px !important;
    line-height: 1.35 !important;
    text-align: center;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers :is(.tc-carrusel-rating, .tc-carrusel-sin-resenas) {
    min-height: 26px;
    margin-bottom: 14px;
    text-align: center;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-icono img {
    display: block;
    width: 36px;
    height: 36px;
    margin: 11px auto;
    object-fit: contain;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-icono.tiene-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.buscaprofe-site .bp-homepage-v2 .tc-carrusel-materia-icono.tiene-imagen img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.bp-home-help {
    display: flex;
    margin-top: 44px;
    padding: 24px 28px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ecfbf9;
    border: 1px solid #cfeeea;
    border-radius: 8px;
}

.bp-home-help h3 {
    margin: 0 0 5px;
    color: var(--bp-ink);
    font-size: 20px;
}

.bp-home-help p {
    margin: 0;
    color: #64748b;
}

.bp-home-whatsapp {
    display: inline-flex;
    min-height: 46px;
    padding: 11px 20px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    background: #128c7e;
    border-radius: 6px;
}

.bp-home-whatsapp:hover {
    color: #ffffff !important;
    background: #0d7469;
}

/* One WhatsApp component for every public page. */
body.buscaprofe-site a:is(.bp-whatsapp-button, .bp-home-whatsapp, .bp-btn-whatsapp-info) {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100%;
    min-height: 46px !important;
    padding: 11px 20px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    color: #ffffff !important;
    font-family: Inter, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: normal;
    background: #128c7e !important;
    border: 1px solid #128c7e !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.buscaprofe-site a:is(.bp-whatsapp-button, .bp-home-whatsapp, .bp-btn-whatsapp-info):is(:hover, :focus-visible) {
    color: #ffffff !important;
    background: #0d7469 !important;
    border-color: #0d7469 !important;
    box-shadow: 0 7px 18px rgba(18, 140, 126, 0.2) !important;
    transform: translateY(-1px);
}

body.buscaprofe-site a:is(.bp-whatsapp-button, .bp-home-whatsapp, .bp-btn-whatsapp-info) :is(i, svg) {
    flex: 0 0 auto;
    color: currentColor !important;
    font-size: 18px !important;
    fill: currentColor !important;
}

body.buscaprofe-site a:is(.bp-whatsapp-button, .bp-home-whatsapp, .bp-btn-whatsapp-info) .elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

html body.buscaprofe-site .elementor a.elementor-button.bp-whatsapp-button {
    color: #ffffff !important;
    background-color: #128c7e !important;
    background-image: none !important;
    border-color: #128c7e !important;
}

html body.buscaprofe-site .elementor a.elementor-button.bp-whatsapp-button:is(:hover, :focus-visible) {
    background-color: #0d7469 !important;
    border-color: #0d7469 !important;
}

.buscaprofe-site a.bp-whatsapp-button {
    color: #ffffff !important;
    background-color: #128c7e !important;
    background-image: none !important;
    border-color: #128c7e !important;
}

.buscaprofe-site a.bp-whatsapp-button:hover,
.buscaprofe-site a.bp-whatsapp-button:focus-visible {
    background-color: #0d7469 !important;
    border-color: #0d7469 !important;
}

.buscaprofe-site footer .tu-footerwrap {
    padding: 32px 0 24px !important;
}

.buscaprofe-site footer .tu-footerwrap > .container > .row {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.25fr;
    align-items: start;
    gap: 36px;
}

.buscaprofe-site footer .tu-footerwrap > .container > .row > .col-12:first-child,
.buscaprofe-site footer .tu-footerapp,
.buscaprofe-site footer .tu-footerapp > .row {
    display: contents;
}

.buscaprofe-site footer .tu-footerapp .col-lg-7,
.buscaprofe-site footer .tu-footerapp .col-lg-5,
.buscaprofe-site footer .tu-seperator {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.buscaprofe-site footer .tu-footerlogo img {
    width: auto;
    max-width: 190px;
    max-height: 54px;
    filter: brightness(0) invert(1);
}

.buscaprofe-site footer .tu-footerdescription {
    margin: 10px 0;
    font-size: 14px;
}

.buscaprofe-site footer .tu-socialmedia {
    margin: 0;
}

.buscaprofe-site footer .tu-socialmedia a {
    width: 40px;
    min-height: 40px !important;
    height: 40px;
}

.buscaprofe-site footer :is(.tu-footertitle, .tu-sidetitle h5) {
    margin: 0 0 12px !important;
    color: #ffffff !important;
    font-size: 17px !important;
}

.buscaprofe-site footer .tu-footerlist {
    margin: 0;
}

.buscaprofe-site footer .tu-footerlist li + li {
    margin-top: 7px;
}

.buscaprofe-site footer .tu-footerlist a {
    min-height: 34px !important;
    font-size: 13px !important;
}

.buscaprofe-site footer .tu-seperator {
    height: auto !important;
    min-height: 0 !important;
    border: 0 !important;
}

.buscaprofe-site footer .tu-seperator > .row,
.buscaprofe-site footer .tu-seperator .tuturn-sidebar-f3 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.buscaprofe-site footer #menu-enlaces-de-interes {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 18px !important;
}

.buscaprofe-site footer #menu-enlaces-de-interes a {
    min-height: 30px !important;
    padding: 3px 0;
    font-size: 13px !important;
}

.buscaprofe-site footer .tu-footercopyright {
    min-height: 60px !important;
    padding: 12px 0 !important;
}

@media (max-width: 900px) {
    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--subjects .tc-carrusel-slide {
        flex-basis: calc((100% - 16px) / 2);
    }

    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-slide {
        flex-basis: calc((100% - 20px) / 2) !important;
    }

    .buscaprofe-site footer .tu-footerwrap > .container > .row {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .buscaprofe-site footer .tu-seperator {
        grid-column: 1 / -1;
        padding-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
}

@media (max-width: 640px) {
    .buscaprofe-site .bp-homepage-v2 :is(.tc-profesores-carrusel, .tc-materias-carrusel) {
        padding-inline: 0;
    }

    .buscaprofe-site .bp-homepage-v2 .tc-carrusel-control {
        display: none;
    }

    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--subjects .tc-carrusel-slide {
        flex-basis: 78%;
    }

    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-slide {
        flex-basis: 78% !important;
    }

    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-profesor-card {
        max-width: 260px;
    }

    .bp-home-help {
        padding: 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .bp-home-whatsapp {
        width: 100%;
    }

    .buscaprofe-site footer .tu-footerwrap > .container > .row {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .buscaprofe-site footer .tu-footerwrap > .container > .row > .col-12:first-child,
    .buscaprofe-site footer .tu-footerapp,
    .buscaprofe-site footer .tu-footerapp > .row {
        display: block;
        width: 100%;
    }

    .buscaprofe-site footer .tu-footerapp .col-lg-5 {
        margin-top: 24px !important;
    }

    .buscaprofe-site footer .tu-seperator {
        padding-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .buscaprofe-site footer #menu-enlaces-de-interes {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   Public UX system 1.5.0
   Keeps Elementor editable while unifying the active public pages.
   ================================================================ */

/* Header: seven clear destinations without crowding the account CTAs. */
@media (min-width: 1200px) {
    .buscaprofe-site #primary-menu {
        gap: 2px;
    }

    .buscaprofe-site #primary-menu > li > a:not(.tu-btn) {
        padding-inline: 9px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    .buscaprofe-site #primary-menu > li.menu-boton-celeste > a,
    .buscaprofe-site #primary-menu > li.menu-boton > a {
        padding-inline: 14px !important;
    }
}

/* The compact hero benefits use the same editable images as the trust block. */
.buscaprofe-site .bp-home-trust li::before {
    display: none !important;
}

.buscaprofe-site .bp-home-trust__icon,
.buscaprofe-site .bp-home-trust__fallback {
    display: inline-flex;
    width: 22px !important;
    min-width: 22px;
    height: 22px !important;
    margin: 0;
    align-items: center;
    justify-content: center;
    object-fit: contain;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    background: var(--bp-secondary);
    border-radius: 50%;
}

/* Professor carousel: denser cards and native-sized photos stay sharp. */
.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-pista {
    gap: 16px !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-slide {
    flex-basis: calc((100% - 64px) / 5) !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-profesor-card {
    max-width: 228px;
    min-height: 292px !important;
    padding: 16px !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-perfil-link {
    width: 128px;
    margin-bottom: 12px;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers :is(.tc-carrusel-profesor-foto, .tc-carrusel-profesor-placeholder) {
    width: 128px !important;
    height: 146px !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-profesor-nombre {
    min-height: 42px !important;
    font-size: 16px !important;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers :is(.tc-carrusel-rating, .tc-carrusel-sin-resenas) {
    min-height: 22px;
    margin-bottom: 10px;
    font-size: 14px;
}

.buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-agendar {
    min-height: 42px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
}

/* Shared public-page rhythm. */
.buscaprofe-site.bp-public-page {
    color: var(--bp-ink);
    background: #ffffff;
}

.buscaprofe-site.bp-public-page :is(.elementor-section-wrap, .elementor) > .elementor-top-section:first-child {
    padding-top: 48px !important;
}

.buscaprofe-site.bp-public-page .elementor-top-section > .elementor-container {
    width: min(100% - 40px, 1160px);
}

.buscaprofe-site.bp-public-page .elementor-widget-heading h1.elementor-heading-title {
    max-width: 900px;
    margin-inline: auto;
    color: var(--bp-ink) !important;
    font-size: clamp(32px, 4vw, 46px) !important;
    line-height: 1.14 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

.buscaprofe-site.bp-public-page .elementor-widget-heading h2.elementor-heading-title {
    color: var(--bp-ink) !important;
    font-size: clamp(25px, 3vw, 34px) !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

.buscaprofe-site.bp-public-page .elementor-widget-text-editor,
.buscaprofe-site.bp-public-page .elementor-widget-text-editor p {
    color: var(--bp-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* FAQ: a readable question list with a single strong page hierarchy. */
.buscaprofe-site.bp-public-faq .elementor-widget-heading :is(h5, h6).elementor-heading-title {
    max-width: 760px;
    margin-inline: auto;
    color: var(--bp-muted) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    text-align: center;
}

.buscaprofe-site.bp-public-faq .bp-faq-list,
.buscaprofe-site.bp-public-faq :is(.elementor-toggle, .elementor-accordion) {
    width: min(100%, 900px);
    margin: 28px auto 64px;
}

.buscaprofe-site.bp-public-faq .elementor-toggle-item,
.buscaprofe-site.bp-public-faq .elementor-accordion-item {
    margin-bottom: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--bp-border) !important;
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(23, 32, 51, 0.04);
}

.buscaprofe-site.bp-public-faq :is(.elementor-tab-title, .elementor-accordion-title) {
    min-height: 58px;
    padding: 17px 20px !important;
    background: #ffffff;
    border: 0 !important;
}

.buscaprofe-site.bp-public-faq .elementor-tab-content {
    padding: 4px 20px 20px !important;
    color: var(--bp-muted);
    font-size: 16px;
    line-height: 1.65;
    border: 0 !important;
}

/* How it works: scan-friendly steps and reassurance blocks. */
.buscaprofe-site.bp-public-how .bp-how-step-card > .elementor-widget-wrap,
.buscaprofe-site.bp-public-how .bp-how-step-card {
    height: 100%;
    padding: 24px !important;
    background: #ffffff;
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    box-shadow: var(--bp-shadow);
}

.buscaprofe-site.bp-public-how .bp-how-step-card :is(h3, h4, h5, h6) {
    color: var(--bp-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

.buscaprofe-site.bp-public-how .bp-how-assurance-card > .elementor-widget-wrap,
.buscaprofe-site.bp-public-how .bp-how-assurance-card {
    height: 100%;
    padding: 28px !important;
    background: #f7f8fc;
    border: 1px solid var(--bp-border);
    border-radius: 8px;
}

.buscaprofe-site.bp-public-how .elementor-widget-button {
    margin: 24px 0 56px;
    text-align: center;
}

/* Search and subject pages: one centered decision at a time. */
.buscaprofe-site:is(.bp-public-teachers, .bp-public-subjects) main,
.buscaprofe-site:is(.bp-public-teachers, .bp-public-subjects) .elementor {
    min-height: 480px;
}

.buscaprofe-site:is(.bp-public-teachers, .bp-public-subjects) h1 {
    max-width: 820px;
    margin: 54px auto 16px !important;
    text-align: center;
    text-wrap: balance;
}

.buscaprofe-site:is(.bp-public-teachers, .bp-public-subjects) :is(.tc-selector-nivel-publico, .tc-carrusel-materias-selector) {
    margin: 28px auto 64px;
    padding: 28px;
    background: #f7f8fc;
}

.buscaprofe-site.bp-public-teachers :is(.tc-profesor-card, .tc-carrusel-profesor-card) {
    max-width: 280px;
    margin-inline: auto;
    padding: 18px !important;
}

.buscaprofe-site.bp-public-subjects .tc-carrusel-materia-card {
    min-height: 270px;
    padding: 22px 16px !important;
}

/* Blog: turn the legacy list into a calm, readable editorial grid. */
.buscaprofe-site.bp-public-blog .tu-main {
    padding-block: 48px 64px;
    background: #f7f8fc;
}

.buscaprofe-site.bp-public-blog [id^="post-"] {
    margin-bottom: 24px;
    padding: 28px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(23, 32, 51, 0.05);
}

.buscaprofe-site.bp-public-blog [id^="post-"] h1,
.buscaprofe-site.bp-public-blog [id^="post-"] h2,
.buscaprofe-site.bp-public-blog [id^="post-"] h3 {
    margin: 10px 0 12px;
    color: var(--bp-ink) !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
}

.buscaprofe-site.bp-public-blog [id^="post-"] p,
.buscaprofe-site.bp-public-blog [id^="post-"] > div + div {
    color: var(--bp-muted);
    font-size: 15px;
    line-height: 1.7;
}

.buscaprofe-site.bp-public-blog .tu-asidewrapper {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--bp-border);
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-slide {
        flex-basis: calc((100% - 32px) / 3) !important;
    }
}

@media (max-width: 767px) {
    .buscaprofe-site.bp-public-page :is(.elementor-section-wrap, .elementor) > .elementor-top-section:first-child {
        padding-top: 30px !important;
    }

    .buscaprofe-site.bp-public-page .elementor-top-section > .elementor-container {
        width: min(100% - 28px, 1160px);
    }

    .buscaprofe-site.bp-public-page .elementor-widget-text-editor,
    .buscaprofe-site.bp-public-page .elementor-widget-text-editor p {
        font-size: 16px;
    }

    .buscaprofe-site.bp-public-faq .bp-faq-list,
    .buscaprofe-site.bp-public-faq :is(.elementor-toggle, .elementor-accordion) {
        margin-bottom: 42px;
    }

    .buscaprofe-site.bp-public-faq :is(.elementor-tab-title, .elementor-accordion-title) {
        padding: 15px 16px !important;
    }

    .buscaprofe-site:is(.bp-public-teachers, .bp-public-subjects) h1 {
        margin-top: 34px !important;
    }

    .buscaprofe-site:is(.bp-public-teachers, .bp-public-subjects) :is(.tc-selector-nivel-publico, .tc-carrusel-materias-selector) {
        margin-bottom: 42px;
        padding: 20px 14px;
    }

    .buscaprofe-site.bp-public-blog [id^="post-"] {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-slide {
        flex-basis: 72% !important;
    }

    .buscaprofe-site .bp-homepage-v2 .bp-home-shortcode--teachers .tc-carrusel-profesor-card {
        max-width: 228px;
    }
}

/* Dynamic blog grid used by the Elementor blog template. */
.buscaprofe-site .bp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.buscaprofe-site .bp-blog-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    box-shadow: 0 7px 22px rgba(23, 32, 51, 0.06);
}

.buscaprofe-site .bp-blog-card__image {
    display: block;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.buscaprofe-site .bp-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buscaprofe-site .bp-blog-card__content {
    display: flex;
    padding: 22px;
    flex: 1;
    flex-direction: column;
}

.buscaprofe-site .bp-blog-card__meta {
    display: flex;
    margin-bottom: 10px;
    gap: 8px 12px;
    flex-wrap: wrap;
    color: var(--bp-muted);
    font-size: 12px;
    font-weight: 600;
}

.buscaprofe-site .bp-blog-card__meta a {
    min-height: 0;
    color: var(--bp-primary) !important;
}

.buscaprofe-site .bp-blog-card h2 {
    margin: 0 0 10px;
    font-size: 21px !important;
    line-height: 1.3 !important;
}

.buscaprofe-site .bp-blog-card h2 a {
    min-height: 0;
    color: var(--bp-ink) !important;
}

.buscaprofe-site .bp-blog-card p {
    margin: 0 0 18px;
    color: var(--bp-muted);
    font-size: 15px;
    line-height: 1.65;
}

.buscaprofe-site .bp-blog-card__link {
    min-height: 36px;
    margin-top: auto;
    align-self: flex-start;
    color: var(--bp-primary) !important;
    font-size: 14px;
    font-weight: 700;
}

.buscaprofe-site .bp-blog-pagination {
    margin-top: 36px;
}

.buscaprofe-site .bp-blog-pagination .page-numbers {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.buscaprofe-site .bp-blog-pagination a,
.buscaprofe-site .bp-blog-pagination span {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    color: var(--bp-ink);
    background: #ffffff;
    border: 1px solid var(--bp-border);
    border-radius: 6px;
}

.buscaprofe-site .bp-blog-pagination .current {
    color: #ffffff;
    background: var(--bp-primary);
    border-color: var(--bp-primary);
}

.buscaprofe-site .bp-blog-empty {
    padding: 46px 24px;
    text-align: center;
    background: #f7f8fc;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .buscaprofe-site .bp-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .buscaprofe-site .bp-blog-grid {
        grid-template-columns: 1fr;
    }

    .buscaprofe-site .bp-blog-card__content {
        padding: 18px;
    }
}

/* Stable eyebrow labels. General paragraph rules used by the homepage and
   Elementor must not replace their brand color after page load. */
.buscaprofe-site .bp-homepage-v2 .bp-home-eyebrow,
.buscaprofe-site .bp-homepage-v2 :is(.bp-home-steps, .bp-home-support, .bp-home-final) .bp-home-eyebrow {
    color: var(--bp-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

.buscaprofe-site .bp-template-hero .elementor-widget-text-editor:first-child,
.buscaprofe-site .bp-template-hero .elementor-widget-text-editor:first-child p {
    color: var(--bp-primary) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .buscaprofe-site .bp-homepage-v2 .bp-home-eyebrow,
    .buscaprofe-site .bp-template-hero .elementor-widget-text-editor:first-child,
    .buscaprofe-site .bp-template-hero .elementor-widget-text-editor:first-child p {
        font-size: 12px !important;
    }
}
