.rd-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rd-topbar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #001f0e, #00682e, #001f0e);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-cabecera-text {
    margin: 0 !important;
    color: #fff;
    font-size: 12px;
}

.rd-header__inner {
    max-width: 1440px;
    width: calc(100% - 48px);
    height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rd-header__logo img {
    width: 80px;
    height: 80px;
    display: block;
    object-fit: contain;
}

.rd-header__nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.rd-header__nav a {
    color: #fff;
    font-family: var(--rd-font-title, "Sora", sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s ease;
}

.rd-header__nav a:hover,
.rd-header__nav a:focus {
    color: #00c853 !important;
}

.rd-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rd-icon-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0 !important;
}

.rd-icon-btn:hover,
.rd-icon-btn:focus {
    background: transparent !important;
}

.rd-icon-btn img {
    display: block;
    object-fit: contain;
}

.rd-account-btn img {
    width: 22px;
    height: 22px;
    transition: transform .25s ease, filter .25s ease;
}

.rd-account-btn:hover img {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.rd-menu-toggle {
    display: none;
    width: 38px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.rd-menu-toggle span {
    width: 24px;
    height: 2px;
    display: block;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}

.rd-mobile-menu {
    display: none;
}

@media (max-width: 1024px) {
    .rd-header__inner {
        width: calc(100% - 32px);
        height: 60px;
    }

    .rd-header__nav {
        display: none;
    }

    .rd-menu-toggle {
        display: flex;
    }

    .rd-header__actions {
        gap: 12px;
    }

    .rd-icon-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
    }

    .rd-icon-btn img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .rd-header__logo img {
        width: 63px;
        height: 63px;
    }

    .rd-header__actions {
        gap: 9px;
    }
}


/* =========================================================
   MENÚ MÓVIL
========================================================= */

@media (max-width: 1024px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.rd-menu-open {
        overflow: hidden !important;
    }

    #rdMobileMenu {
        position: fixed !important;
        inset: 0 !important;

        z-index: 999999 !important;

        display: flex;
        flex-direction: column;

        width: 100% !important;
        max-width: 100% !important;

        min-height: 100vh;
        min-height: 100svh;
        height: 100dvh !important;
        max-height: 100dvh !important;

        margin: 0;
        padding: 22px;

        box-sizing: border-box;

        background:
            radial-gradient(
                circle at 80% 90%,
                rgba(0, 200, 83, .16),
                transparent 35%
            ),
            linear-gradient(
                180deg,
                #050505 0%,
                #0b0b0b 100%
            );

        overflow-y: auto !important;
        overflow-x: hidden !important;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        transform: translate3d(100%, 0, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            transform .35s ease,
            opacity .25s ease,
            visibility 0s linear .35s;
    }

    #rdMobileMenu.is-open {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transition:
            transform .35s ease,
            opacity .25s ease,
            visibility 0s;
    }

    .rd-mobile-menu__head {
        position: relative;

        flex: 0 0 auto;

        min-height: 64px;
        padding: 0 0 18px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .rd-mobile-menu__logo {
        display: inline-flex;
        align-items: center;
    }

    .rd-mobile-menu__logo img {
        width: 65px;
        height: 65px;
        display: block;
        object-fit: contain;
    }

    .rd-mobile-close {
        position: relative;

        width: 44px !important;
        min-width: 44px;
        height: 44px !important;

        padding: 0 !important;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 1px solid rgba(255, 255, 255, .12) !important;
        border-radius: 50%;

        background: rgba(255, 255, 255, .06) !important;
        color: #fff !important;

        font-size: 30px;
        font-weight: 300;
        line-height: 1;

        cursor: pointer;
        z-index: 10;
    }

    .rd-mobile-close:hover,
    .rd-mobile-close:focus {
        background: rgba(255, 255, 255, .12) !important;
        border-color: rgba(255, 255, 255, .25) !important;
        color: #00c853 !important;
    }

    .rd-mobile-close span {
        display: block;
        line-height: 1;
        transform: translateY(-1px);
    }

    .rd-mobile-menu__nav {
        flex: 0 0 auto;

        width: 100%;
        margin-top: 15px;

        display: flex;
        flex-direction: column;
    }

    .rd-mobile-menu__nav a {
        width: 100%;
        min-height: 64px;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;

        padding: 17px 0;

        border-bottom: 1px solid rgba(255, 255, 255, .08);

        color: #fff;
        text-decoration: none;
    }

    .rd-mobile-menu__nav a span {
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .rd-mobile-menu__nav a::after {
        content: "→";
        flex-shrink: 0;
        color: #00c853;
        font-size: 20px;
    }

    .rd-mobile-menu__nav a:hover span,
    .rd-mobile-menu__nav a:focus span {
        color: #00c853;
    }

    .rd-mobile-language {
        flex: 0 0 auto;

        width: 100%;
        margin-top: auto !important;
        padding: 22px 0 8px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-direction: row-reverse;
    }

    .rd-mobile-language > span {
        color: rgba(255, 255, 255, .58);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .rd-mobile-language .gtranslate_wrapper {
        display: flex;
        align-items: center;
    }

    .rd-mobile-language select {
        min-width: 125px;
        min-height: 40px;
        padding: 0 10px;

        border: 1px solid rgba(0, 200, 83, .55);
        border-radius: 6px;

        background: #0b100d;
        color: #fff;
        font-size: 12px;
    }
}

@media (min-width: 1025px) {
    #rdMobileMenu {
        display: none !important;
    }
}

/* Header fijo en móvil */
@media (max-width: 1024px) {
    .rd-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
    }

    body {
        padding-top: 60px;
    }

    body.rd-menu-open {
        overflow: hidden !important;
    }

    #rdMobileMenu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        max-height: 100dvh !important;

        z-index: 999999 !important;

        display: flex !important;
        flex-direction: column;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;

        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    #rdMobileMenu.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .rd-mobile-menu__nav {
        flex: 0 0 auto;
    }

    .rd-mobile-language {
        flex: 0 0 auto;
        margin-top: auto !important;
    }
}