/* Cabecera solo del Comparador IA. Copia el menú de goenergia.es. */
.cia-header {
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 20;
    font-family: "DM Sans", sans-serif;
}

.cia-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cia-header__brand {
    flex-shrink: 0;
    line-height: 0;
}

.cia-header__brand img {
    width: 220px;
    height: auto;
    display: block;
}

.cia-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #00587a;
    border-radius: 2px;
    background: #00587a;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cia-header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
}

.cia-header__menu,
.cia-header__sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cia-header__menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cia-header__menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.cia-header__menu > li > a {
    color: #134b61;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px;
    white-space: nowrap;
}

.cia-header__menu > li > a:hover,
.cia-header__item:hover > a {
    color: rgba(0, 0, 0, 0.65);
}

.cia-header__caret {
    display: none;
    width: 28px;
    height: 28px;
    margin-left: -6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.cia-header__caret::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #134b61;
}

.cia-header__item > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    vertical-align: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.cia-header__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1);
    z-index: 30;
}

.cia-header__sub a {
    display: block;
    padding: 12px 20px;
    color: #134b61;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.cia-header__sub a:hover {
    color: rgba(0, 0, 0, 0.65);
}

.cia-header__item:hover > .cia-header__sub,
.cia-header__item:focus-within > .cia-header__sub {
    display: block;
}

@media (max-width: 1100px) {
    .cia-header__toggle {
        display: flex;
    }

    .cia-header__brand img {
        width: 160px;
    }

    .cia-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1);
        padding: 8px 0 16px;
    }

    .cia-header__nav.is-open {
        display: block;
    }

    .cia-header__inner {
        position: relative;
    }

    .cia-header__menu {
        flex-direction: column;
        align-items: stretch;
    }

    .cia-header__menu > li {
        flex-wrap: wrap;
    }

    .cia-header__menu > li > a {
        flex: 1;
    }

    .cia-header__caret {
        display: block;
    }

    .cia-header__item > a::after {
        display: none;
    }

    .cia-header__item:hover > .cia-header__sub,
    .cia-header__item:focus-within > .cia-header__sub {
        display: none;
    }

    .cia-header__item.is-open > .cia-header__sub {
        display: block;
    }

    .cia-header__sub {
        position: static;
        min-width: 0;
        box-shadow: none;
        padding: 0 0 8px 12px;
    }
}
