:root {
    --tlq-brand: #005c8a;
    --tlq-text: #292929;
    --tlq-muted: #737373;
    --tlq-border: #d8dde3;
}

#logo .tlqmh-wordmark {
    display: inline-flex;
    align-items: baseline;
    color: var(--tlq-text);
    font-family: "Rubik", Arial, sans-serif;
    font-style: normal;
    line-height: 1;
    letter-spacing: -.5px;
    white-space: nowrap;
}

#logo .tlqmh-wordmark__tp {
    color: var(--tlq-brand);
    font-size: 24px;
    font-weight: 700;
}

#logo .tlqmh-wordmark__name {
    margin-left: 7px;
    color: var(--tlq-text);
    font-size: 23px;
    font-weight: 300;
}

#logo .tlqmh-wordmark + img {
    display: none !important;
}

#searchform .fa-search {
    position: static !important;
    color: currentColor;
    font-size: 16px;
}

.tlq-wide-header {
    clear: both;
    width: 1110px;
    max-width: calc(100% - 40px);
    margin: 0 auto 30px;
    box-sizing: border-box;
}

body.single-post .ads-superior-2 {
    min-height: 130px !important;
    padding-bottom: 30px !important;
}

.tlq-wide-header__section {
    margin: 0 0 22px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tlq-wide-header__section a {
    color: var(--tlq-muted) !important;
    border: 0 !important;
    text-decoration: none !important;
}

body.single-post .tlq-wide-header > h1.tlq-title--wide {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 22px !important;
    color: #373737;
    font-size: 46.41px !important;
    font-weight: 600;
    line-height: 1.1 !important;
    letter-spacing: -.6px;
}

.tlq-wide-header__subtitle {
    width: 100%;
    max-width: 1110px;
    margin: 0;
    color: var(--tlq-muted);
    font-size: 23px;
    font-weight: 300;
    line-height: 1.5;
}

.tlq-share-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 28px 0 0;
}

.tlq-share-button {
    display: inline-flex;
    width: 64px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 2px;
    color: #fff !important;
    text-decoration: none !important;
}

.tlq-share-button--facebook {
    background: #3b5998;
}

.tlq-share-button--x {
    background: #55acee;
}

.tlq-share-button svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

body.single-post .tlq-below-featured-meta {
    clear: both;
    width: 100%;
    margin: 0 0 26px;
    padding: 18px 0 20px;
    box-sizing: border-box;
    color: var(--tlq-muted);
    border-bottom: 1px solid var(--tlq-border);
}

body.single-post .tlq-below-featured-meta .post-info {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
}

/* Alineación editorial: imagen, metadatos y contenido usan todo el ancho de la columna. */
body.single-post .single_post,
body.single-post .single_post > header,
body.single-post .cn-im,
body.single-post .post-single-content,
body.single-post .post-single-content .thecontent {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
}

body.single-post .single_post > header,
body.single-post .cn-im,
body.single-post .cn-im .im-principal {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.single-post .cn-im .im-principal {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}

body.single-post .post-single-content .thecontent p,
body.single-post .post-single-content .thecontent li,
body.single-post .post-single-content .thecontent td,
body.single-post .post-single-content .thecontent th,
body.single-post .post-single-content .thecontent blockquote,
body.single-post .post-single-content .thecontent figcaption {
    font-size: 21px !important;
    font-weight: 300;
    line-height: 1.6 !important;
}

@media screen and (min-width: 865px) {
    #header {
        min-height: 66px;
        background: #fff !important;
        border-top: 2px solid var(--tlq-brand);
        border-bottom: 1px solid rgba(16, 24, 40, .1);
        box-sizing: border-box;
        box-shadow: 6px 1px 3px rgba(16, 24, 40, .1) !important;
    }

    #header > .container {
        display: flex;
        min-height: 66px;
        align-items: center;
    }

    #primary-navigation {
        order: 1;
        width: 36px;
        height: 36px;
        margin: 0 12px 0 0;
        flex: 0 0 36px;
        float: none;
    }

    #primary-navigation a#pull {
        display: block;
        width: 36px;
        height: 36px;
        padding: 0;
        color: var(--tlq-text) !important;
    }

    #primary-navigation a#pull::after {
        top: 50%;
        right: auto;
        left: 8px;
        margin: 0;
        color: currentColor;
        font-size: 20px;
        line-height: 1;
        transform: translateY(-50%);
    }

    .logo-wrap {
        order: 2;
        min-width: 0;
        margin: 0 0 0 12px !important;
        align-self: center;
        flex: 0 0 auto;
        float: none;
    }

    #logo,
    #logo a {
        display: block;
        float: none;
    }

    #logo.image-logo {
        margin-top: 0;
    }

    .tlqmh-date {
        order: 3;
        display: flex;
        min-height: 24px;
        margin: 0 0 0 16px;
        padding: 0 0 0 16px;
        border-left: 1px solid var(--tlq-border);
        align-items: center;
        color: #748095;
        font-size: 13px;
        font-weight: 300;
        line-height: 1;
        white-space: nowrap;
    }

    #search-6.widget_search {
        order: 5;
        display: block !important;
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        margin: 0 0 0 auto;
        flex: 0 0 36px;
        float: none;
        transition: width .2s ease, min-width .2s ease, max-width .2s ease, flex-basis .2s ease;
    }

    #header #searchform {
        position: relative;
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        height: 36px;
        margin: 0;
        background: #fff;
        border: 0;
        border-radius: 20px;
        box-shadow: none;
        overflow: hidden;
        transition: width .2s ease, min-width .2s ease, max-width .2s ease;
    }

    #header #searchform fieldset,
    #header #s {
        height: 34px;
    }

    #header #s {
        width: 100%;
        padding: 0 10px 0 38px;
        color: var(--tlq-text);
        font-size: 15px;
        line-height: 20px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease;
    }

    #header #search-image,
    #header #buscar-img {
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        display: flex !important;
        width: 34px;
        height: 34px;
        padding: 0;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        border: 0 !important;
        color: var(--tlq-text);
    }

    #header #search-image i,
    #header #buscar-img i {
        position: static !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: var(--tlq-text) !important;
    }

    #search-6.tlqmh-search-open {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        flex-basis: 220px;
    }

    #header #search-6.tlqmh-search-open #searchform {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
        border: 1px solid var(--tlq-border);
    }

    #header #search-6.tlqmh-search-open #s {
        opacity: 1;
        pointer-events: auto;
    }

    #header .logo-movil {
        display: none !important;
    }
}

@media screen and (max-width: 864px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip !important;
    }

    #site-header,
    #header {
        width: 100%;
        max-width: 100%;
        min-height: 72px;
        background: #fff !important;
        border-top: 1px solid var(--tlq-brand);
        border-bottom: 1px solid rgba(16, 24, 40, .1);
        box-sizing: border-box;
        box-shadow: 6px 1px 3px rgba(16, 24, 40, .1) !important;
    }

    #header > .container {
        position: relative;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 69px;
        padding: 0 12px;
        align-items: center;
        box-sizing: border-box;
    }

    .tlqmh-date {
        display: none !important;
    }

    #primary-navigation {
        order: 1 !important;
        width: 32px;
        height: 32px;
        margin: 0;
        flex: 0 0 32px;
        float: none;
    }

    #primary-navigation a#pull {
        display: block;
        width: 32px;
        height: 32px;
        padding: 0;
        color: var(--tlq-text) !important;
    }

    #primary-navigation a#pull::after {
        top: 50%;
        right: auto;
        left: 6px;
        margin: 0;
        color: currentColor;
        font-size: 20px;
        line-height: 1;
        transform: translateY(-50%);
    }

    #header > .container > .logo-wrap {
        position: absolute !important;
        z-index: 2;
        inset: 0 48px !important;
        display: flex !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        float: none !important;
        pointer-events: none;
    }

    #header > .container > .logo-wrap #logo {
        pointer-events: auto;
    }

    #logo .tlqmh-wordmark__tp {
        font-size: 20px;
    }

    #logo .tlqmh-wordmark__name {
        margin-left: 6px;
        font-size: 19px;
    }

    #search-6.widget_search {
        position: relative;
        z-index: 5;
        order: 3 !important;
        display: block !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        margin: 0 0 0 auto;
        flex: 0 0 36px !important;
        float: none !important;
    }

    #header #searchform {
        position: relative;
        display: block !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px;
        margin: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    #header #searchform fieldset {
        position: relative;
        width: 100%;
        height: 34px;
        margin: 0;
        padding: 0;
    }

    #header #s {
        position: absolute;
        inset: 0;
        display: block !important;
        width: 100% !important;
        height: 34px;
        padding: 0 40px 0 15px;
        color: var(--tlq-text);
        font-size: 14px;
        opacity: 0;
        pointer-events: none;
    }

    #header #search-image,
    #header #buscar-img {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0 !important;
        left: auto !important;
        display: flex !important;
        width: 34px;
        height: 34px;
        padding: 0;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        border: 0 !important;
        color: var(--tlq-text);
    }

    #header #search-image i,
    #header #buscar-img i {
        position: static !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: var(--tlq-text) !important;
    }

    #search-6.tlqmh-search-open {
        position: absolute !important;
        z-index: 20;
        top: 50%;
        right: 12px;
        left: 12px;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        transform: translateY(-50%);
    }

    #header #search-6.tlqmh-search-open #searchform {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        background: #fff;
        border: 1px solid var(--tlq-border);
        border-radius: 20px;
    }

    #header #search-6.tlqmh-search-open #s {
        padding-right: 14px;
        padding-left: 44px;
        opacity: 1;
        pointer-events: auto;
    }

    #header #search-6.tlqmh-search-open #search-image,
    #header #search-6.tlqmh-search-open #buscar-img {
        right: auto !important;
        left: 1px !important;
    }

    #header .logo-movil {
        display: none !important;
    }

    .tlq-wide-header {
        width: auto;
        max-width: none;
        margin: 42px 20px 24px;
    }

    .tlq-wide-header__section {
        margin-bottom: 18px;
    }

    body.single-post .tlq-wide-header > h1.tlq-title--wide {
        margin-bottom: 18px !important;
        font-size: clamp(31px, 9vw, 40px) !important;
        line-height: 1.14 !important;
        letter-spacing: -.35px;
    }

    .tlq-wide-header__subtitle {
        font-size: 18px;
        line-height: 1.6;
    }

    .tlq-share-buttons {
        margin-top: 22px;
    }

    .tlq-share-button {
        width: 52px;
        height: 34px;
    }

    body.single-post .tlq-below-featured-meta {
        margin-bottom: 24px;
        padding: 16px 20px 18px;
    }

    body.single-post .post-single-content .thecontent p,
    body.single-post .post-single-content .thecontent li,
    body.single-post .post-single-content .thecontent td,
    body.single-post .post-single-content .thecontent th,
    body.single-post .post-single-content .thecontent blockquote,
    body.single-post .post-single-content .thecontent figcaption {
        font-size: 18px !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    #primary-navigation a#pull:hover,
    #header #search-image:hover,
    #header #search-image:hover i,
    #header #buscar-img:hover,
    #header #buscar-img:hover i {
        color: var(--tlq-brand) !important;
    }
}

@media screen and (max-width: 360px) {
    #logo .tlqmh-wordmark__tp {
        font-size: 18px;
    }

    #logo .tlqmh-wordmark__name {
        margin-left: 5px;
        font-size: 16px;
    }

    #header > .container {
        padding-right: 6px;
        padding-left: 6px;
    }

    #search-6.tlqmh-search-open {
        right: 6px;
        left: 6px;
    }
}

#primary-navigation .navigation.mobile-menu-wrapper {
    background-color: var(--tlq-brand) !important;
}
