/* Cabecera minimalista de escritorio. La versión móvil conserva el tema original. */
@media screen and (min-width: 865px) {
    #header {
        min-height: 66px;
        background: #fff !important;
        border-bottom: 1px solid #eceff1;
        box-shadow: 0 2px 8px rgba(16, 24, 40, .06) !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: #292929 !important;
    }

    #primary-navigation a#pull::after {
        top: 50%;
        right: auto;
        left: 8px;
        margin: 0;
        color: currentColor;
        font-size: 18px;
        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,
    #logo img {
        display: block;
        float: none;
    }

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

    #logo img {
        width: 132px;
        height: auto;
        max-width: none;
        object-fit: contain;
    }

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

    #search-6.widget_search {
        order: 4;
        width: 225px;
        max-width: 225px;
        margin: 0 0 0 auto;
        flex: 0 0 225px;
        float: none;
    }

    #header #searchform {
        min-width: 225px;
        height: 38px;
        background: #f5f6f7;
        border: 1px solid #e1e4e8;
        border-radius: 20px;
        box-shadow: none;
    }

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

    #header #s {
        color: #292929;
    }

    #header #buscar-img {
        height: 36px;
        color: #292929;
    }

    #header #buscar-img i {
        color: #292929 !important;
    }

    #header .da-md {
        display: flex;
        order: 5;
        margin: 0 0 0 20px;
        align-items: center;
        flex: 0 0 auto;
        float: none;
    }

    #header .logo-movil {
        order: 6;
        display: none;
    }

    #header .wpnm-button.style-5 #dayIcon,
    #header .wpnm-button.style-5 #nightIcon {
        fill: #5f6368 !important;
    }

    #header .wpnm-button.style-5 .wpnm-button-toggle {
        border-color: rgba(95, 99, 104, .35);
    }

    #header .wpnm-button.style-5 .wpnm-button-toggle::after {
        background: rgba(95, 99, 104, .45);
    }

    body.wp-night-mode-on #header {
        background: #202124 !important;
        border-bottom-color: #303134;
    }

    body.wp-night-mode-on #logo img {
        filter: invert(1);
    }

    body.wp-night-mode-on #primary-navigation a#pull,
    body.wp-night-mode-on #header .pdmh-date,
    body.wp-night-mode-on #header #s,
    body.wp-night-mode-on #header #buscar-img {
        color: #f1f3f4 !important;
    }

    body.wp-night-mode-on #header .pdmh-date {
        border-left-color: #4a4d52;
    }

    body.wp-night-mode-on #header #buscar-img i {
        color: #f1f3f4 !important;
    }

    body.wp-night-mode-on #header .wpnm-button.style-5 #dayIcon,
    body.wp-night-mode-on #header .wpnm-button.style-5 #nightIcon {
        fill: #f1f3f4 !important;
    }

    body.wp-night-mode-on #header #searchform {
        background: #292a2d;
        border-color: #3c4043;
    }
}

@media screen and (max-width: 864px) {
    .pdmh-date {
        display: none !important;
    }
}
