:root {
    --switcher-height: 88px;
    --ink: #25211d;
    --paper: #fffdf9;
    --tech: #c8553d;
    --tech-soft: #f8d7c4;
    --rh: #1d6fa5;
    --rh-soft: #d9ecf7;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", system-ui, sans-serif;
}

.brand-switcher {
    position: relative;
    z-index: 10;
    height: var(--switcher-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid rgba(44, 38, 32, 0.12);
    background:
        radial-gradient(circle at 15% 0%, rgba(248, 215, 196, 0.42), transparent 42%),
        radial-gradient(circle at 85% 100%, rgba(217, 236, 247, 0.58), transparent 44%),
        rgba(255, 253, 249, 0.97);
    box-shadow: 0 8px 28px rgba(35, 31, 27, 0.08);
}

.master-brand {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.master-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(44, 38, 32, 0.18);
}

.master-brand strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 1;
}

.master-brand small,
.brand-tab small {
    display: block;
    margin-top: 4px;
    color: #6d655e;
    font-size: 11px;
    font-weight: 500;
}

.brand-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    width: min(650px, 70vw);
}

.brand-tab {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(44, 38, 32, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.brand-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(35, 31, 27, 0.09);
}

.brand-tab:focus-visible {
    outline: 3px solid rgba(29, 111, 165, 0.28);
    outline-offset: 2px;
}

.brand-tab strong {
    display: block;
    font-size: 14px;
}

.brand-tab[data-brand="tecnologia"].is-active {
    border-color: rgba(200, 85, 61, 0.5);
    background: linear-gradient(135deg, #fff, var(--tech-soft));
    box-shadow: inset 4px 0 0 var(--tech), 0 7px 18px rgba(200, 85, 61, 0.12);
}

.brand-tab[data-brand="rh"].is-active {
    border-color: rgba(29, 111, 165, 0.5);
    background: linear-gradient(135deg, #fff, var(--rh-soft));
    box-shadow: inset 4px 0 0 var(--rh), 0 7px 18px rgba(29, 111, 165, 0.12);
}

.tab-icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    font-size: 17px;
    box-shadow: 0 2px 9px rgba(35, 31, 27, 0.1);
}

.brand-tab[data-brand="tecnologia"] .tab-icon {
    color: var(--tech);
}

.brand-tab[data-brand="rh"] .tab-icon {
    color: var(--rh);
}

.site-panels {
    height: calc(100% - var(--switcher-height));
}

.site-panel {
    width: 100%;
    height: 100%;
}

.site-panel iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.no-script {
    position: fixed;
    inset: var(--switcher-height) 0 auto;
    z-index: 20;
    padding: 16px;
    background: #fff3cd;
    text-align: center;
}

@media (max-width: 760px) {
    :root {
        --switcher-height: 142px;
    }

    .brand-switcher {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 9px 12px;
    }

    .master-brand {
        min-width: 0;
    }

    .master-logo {
        width: 34px;
        height: 34px;
    }

    .master-brand strong {
        font-size: 18px;
    }

    .master-brand small {
        margin-top: 2px;
        font-size: 10px;
    }

    .brand-tabs {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .brand-tab {
        min-height: 70px;
        padding: 7px 9px;
        align-items: flex-start;
    }

    .brand-tab strong {
        font-size: 12px;
        line-height: 1.2;
    }

    .brand-tab small {
        font-size: 9px;
        line-height: 1.25;
    }

    .tab-icon {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}
