/* Cabecera minimalista de escritorio. */
@media screen and (min-width: 865px) {
    #header {
        min-height: 66px;
        background: #fff !important;
        border-top: 3px solid #aa1801;
        border-bottom: 1px solid #eceff1;
        box-sizing: border-box;
        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: 148px;
        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: 200px;
        max-width: 200px;
        margin: 0 0 0 auto;
        flex: 0 0 200px;
        float: none;
    }

    #header #searchform {
        min-width: 200px;
        height: 32px;
        background: #fff;
        border: 1px solid #dcdcdc;
        border-radius: 20px;
        box-shadow: none;
    }

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

    #header #s {
        color: #292929;
        font-size: 15px;
        line-height: 20px;
    }

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

    #header #buscar-img i {
        display: inline-block;
        color: #292929 !important;
        transform: none;
    }

    #primary-navigation a#pull:hover,
    #header #buscar-img:hover,
    #header #buscar-img:hover i {
        color: #aa1801 !important;
    }

    #site-header #searchform .fa-search {
        left: 9px;
        top: 9px;
    }

    #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) {
    #header {
        min-height: 58px;
        background: #fff !important;
        border-top: 3px solid #aa1801;
        border-bottom: 1px solid #eceff1;
        box-sizing: border-box;
        box-shadow: 0 2px 8px rgba(16, 24, 40, .06) !important;
    }

    #header > .container {
        position: relative;
        display: flex !important;
        min-height: 55px;
        padding-right: 12px;
        padding-left: 12px;
        align-items: center;
    }

    .pdmh-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: #292929 !important;
    }

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

    .logo-wrap {
        position: static;
        order: 2 !important;
        display: block !important;
        width: auto;
        margin: 0 0 0 8px !important;
        flex: 0 0 auto;
        float: none;
    }

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

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

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

    #search-6.widget_search {
        order: 3 !important;
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        margin: 0 0 0 auto;
        flex: 0 0 76px !important;
        float: none !important;
    }

    #header #searchform {
        min-width: 76px !important;
        width: 76px !important;
        max-width: 76px !important;
        height: 30px;
        background: #fff;
        border: 1px solid #dcdcdc;
        border-radius: 18px;
        box-shadow: none;
    }

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

    #header #s {
        padding-right: 5px;
        padding-left: 27px;
        color: #292929;
        font-size: 14px;
        line-height: 18px;
    }

    #header #buscar-img {
        width: 27px;
        height: 28px;
        color: #292929;
    }

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

    #site-header #searchform .fa-search {
        left: 8px;
        top: 8px;
    }

    #header .da-md {
        order: 4 !important;
        display: flex !important;
        width: 72px;
        margin: 0 0 0 5px;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 72px;
        float: none;
    }

    #header .da-md .wpnm-button {
        display: flex;
        margin: 0;
        align-items: center;
        font-size: 8px !important;
        line-height: 1;
        transform: none;
    }

    #header .wpnm-button.style-5 .wpnm-button-sun,
    #header .wpnm-button.style-5 .wpnm-button-moon {
        display: flex;
        align-items: center;
    }

    #header .wpnm-button.style-5 #dayIcon,
    #header .wpnm-button.style-5 #nightIcon {
        top: 0;
    }

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

    #primary-navigation a#pull:hover,
    #header #buscar-img:hover,
    #header #buscar-img:hover i {
        color: #aa1801 !important;
    }

    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 #s,
    body.wp-night-mode-on #header #buscar-img,
    body.wp-night-mode-on #header #buscar-img i {
        color: #f1f3f4 !important;
    }

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

@media screen and (max-width: 380px) {
    #header > .container {
        padding-right: 6px;
        padding-left: 6px;
    }

    .logo-wrap {
        margin-left: 6px !important;
    }

    #search-6.widget_search,
    #header #searchform {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        flex-basis: 52px !important;
    }

    #header .da-md {
        width: 62px;
        margin-left: 3px;
        flex-basis: 62px;
    }

    #header .da-md .wpnm-button {
        font-size: 7.25px !important;
    }
}
