/* PG-K48-HEADER-TWITTER-V8 */

@media (min-width: 1025px) {

    body .pg-k48-utility-bar {
        background: rgba(25, 37, 46, .94) !important;
        color: #fff !important;
    }

    body .pg-k48-utility-inner {
        max-width: 1200px !important;
        width: calc(100% - 40px) !important;
        box-sizing: border-box;
        padding: 5px 0 !important;
        min-height: 39px;
        gap: 20px !important;
        flex-wrap: nowrap !important;
    }

    body .pg-k48-utility-navigation {
        order: 1;
        flex: 1 1 auto;
    }

    body .pg-k48-utility-search {
        order: 2;
        flex: 0 0 195px;
    }

    body .pg-k48-utility-languages {
        order: 3;
        flex: 0 0 auto;
    }

    body .pg-k48-header-social-v8 {
        order: 4;
    }

    body .pg-k48-site-header {
        background: rgba(36, 44, 51, .94) !important;
        border-bottom: 2px solid #bd2531;
    }

    body .pg-k48-site-header__main {
        max-width: 1200px !important;
        width: calc(100% - 40px) !important;
        box-sizing: border-box;
        min-height: 85px !important;
        padding: 8px 0 !important;
        gap: 32px !important;
    }

    body .pg-k48-site-header__brand img {
        width: auto !important;
        height: auto !important;
        max-width: 180px !important;
        max-height: 77px !important;
    }

    body .pg-k48-main-menu {
        gap: clamp(14px, 1.65vw, 28px) !important;
    }

    body .pg-k48-main-menu > li > a {
        font-size: clamp(14px, 1.05vw, 17px) !important;
        white-space: nowrap;
        line-height: 1.3;
        padding: 10px 0 !important;
    }

    /* Solo cuando exista un banner identificado. */
    body.pg-k48-header-overlay-v8 .pg-k48-site-header {
        margin-bottom: calc(
            -1 * var(--pg-k48-v8-overlay-height, 0px)
        ) !important;
        background: rgba(24, 31, 37, .77) !important;
    }

    body.pg-k48-header-overlay-v8 .pg-k48-utility-bar {
        background: rgba(24, 31, 37, .67) !important;
    }
}

/* Buscador integrado en la barra superior. */

body .pg-k48-utility-search form {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body .pg-k48-utility-search input[type="search"],
body .pg-k48-utility-search input[type="text"] {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.5) !important;
    color: #fff !important;
    min-width: 0;
    min-height: 31px;
    padding: 4px 6px !important;
}

body .pg-k48-utility-search input::placeholder {
    color: rgba(255,255,255,.8) !important;
}

body .pg-k48-utility-search button[type="submit"],
body .pg-k48-utility-search input[type="submit"] {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer !important;
}

body .pg-k48-utility-search button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-image: none !important;
}

body .pg-k48-utility-search button[type="submit"] svg {
    width: 22px;
    height: 22px;
    display: block;
}

body .pg-k48-utility-search input[type="submit"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.7'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 22px 22px !important;
    font-size: 0 !important;
}

/* Iconos sociales de la cabecera. */

.pg-k48-header-social-v8 {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.pg-k48-header-social-v8 a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.27);
    color: #fff !important;
    text-decoration: none !important;
}

.pg-k48-header-social-v8 a:hover,
.pg-k48-header-social-v8 a:focus-visible {
    background: rgba(255,255,255,.48);
}

.pg-k48-header-social-v8 svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: currentColor;
}

/* Silueta corregida de Twitter. */

footer#footer #text-5 a.pg-k48-twitter-fixed-v8 > svg {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
    color: #fff !important;
    fill: currentColor !important;
    opacity: 1 !important;
}

@media (max-width: 1200px) {
    .pg-k48-header-social-v8 {
        display: none !important;
    }
}

@media (max-width: 1024px) {

    body .pg-k48-site-header {
        border-bottom: 2px solid #bd2531;
    }

    body .pg-k48-utility-search input[type="search"],
    body .pg-k48-utility-search input[type="text"] {
        background: #fff !important;
        color: #17242f !important;
        border: 1px solid #ccd5db !important;
    }

    body .pg-k48-utility-search input::placeholder {
        color: #5b6771 !important;
    }
}
