/* 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 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: #292929 !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,
    #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: #9caec0 !important;
    }

    #header .wpnm-button.style-5 .wpnm-button-toggle {
        border-color: rgba(156, 174, 192, .27);
    }

    #header .wpnm-button.style-5 .wpnm-button-toggle::after {
        background: rgba(156, 174, 192, .27);
    }

    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) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #site-header,
    #header {
        width: 100%;
        max-width: 100%;
        min-height: 72px;
        background: #fff !important;
        border-top: 3px solid #aa1801;
        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-right: 12px;
        padding-left: 12px;
        align-items: center;
        box-sizing: border-box;
    }

    .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: 20px;
        line-height: 1;
        transform: translateY(-50%);
    }

    .logo-wrap {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        order: 2 !important;
        display: block !important;
        width: auto;
        margin: 0 !important;
        flex: 0 0 auto;
        float: none;
        transform: translate(-50%, -50%);
    }

    #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 {
        position: relative;
        z-index: 5;
        top: 0;
        order: 3 !important;
        display: block !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        margin: 0 0 0 auto;
        align-self: center;
        flex: 0 0 36px !important;
        float: none !important;
    }

    #header #searchform {
        position: relative;
        display: block !important;
        min-width: 36px !important;
        width: 36px !important;
        max-width: 36px !important;
        height: 36px;
        background: #fff;
        border: 1px solid #dcdcdc;
        border-radius: 20px;
        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: #292929;
        font-size: 14px;
        line-height: 20px;
        opacity: 0;
        pointer-events: none;
    }

    #header #buscar-img {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        display: flex !important;
        width: 34px;
        height: 34px;
        padding: 0;
        align-items: center;
        justify-content: center;
        color: #292929;
    }

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

    #site-header #searchform .fa-search {
        position: static;
        left: auto;
        top: auto;
    }

    #search-6.pdmh-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.pdmh-search-open #searchform {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

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

    #header .da-md {
        order: 4 !important;
        display: none !important;
        width: 0 !important;
        margin: 0 !important;
        flex: 0 0 0 !important;
    }

    #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;
        visibility: visible;
        opacity: 1;
        fill: #5f6368 !important;
    }

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

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

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

    body.single-post nav.pd-share-buttons,
    body.archive nav.pd-archive-share-buttons {
        display: none !important;
    }

    body.single-post nav.pd-share-buttons svg,
    body.archive nav.pd-archive-share-buttons svg {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !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;
    }

    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;
    }
}

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

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