/* QAV_COOKIE_CONSENT_V1 */
.qav-cookie[hidden],
.qav-cookie [hidden] {
    display: none !important;
}

.qav-cookie {
    position: relative;
    z-index: 2147483000;
    font-family: inherit;
}

.qav-cookie__banner,
.qav-cookie__panel {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 1120px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid rgba(22, 47, 67, .16);
    border-radius: 18px;
    background: #fff;
    color: #162f43;
    box-shadow: 0 22px 70px rgba(12, 35, 52, .24);
}

.qav-cookie__banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.qav-cookie h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
    color: #162f43;
}

.qav-cookie p {
    margin: 0;
    line-height: 1.55;
}

.qav-cookie a {
    color: #0b5db7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.qav-cookie__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.qav-cookie__actions--primary {
    min-width: 410px;
    justify-content: flex-end;
}

.qav-cookie button {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #164b74;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.qav-cookie button:focus-visible {
    outline: 3px solid #89b9e7;
    outline-offset: 2px;
}

.qav-cookie button:disabled {
    opacity: .6;
    cursor: wait;
}

/* Aceptar y rechazar: mismo nivel, tamano, peso y contraste. */
.qav-cookie__choice {
    min-width: 154px;
    background: #164b74;
    color: #fff;
}

.qav-cookie__choice:hover {
    background: #103c5e;
}

.qav-cookie__configure,
.qav-cookie__save {
    background: #fff;
    color: #164b74;
}

.qav-cookie__secondary {
    background: #fff;
    color: #164b74;
}

.qav-cookie__status {
    grid-column: 1 / -1;
    min-height: 0;
    color: #9a3412;
    font-size: 13px;
}

.qav-cookie__panel {
    max-width: 760px;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.qav-cookie__panel-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.qav-cookie__eyebrow {
    margin-bottom: 4px !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 800;
    color: #5d7283;
}

.qav-cookie__close {
    min-width: 44px;
    padding: 4px 10px !important;
    font-size: 24px !important;
    line-height: 1;
    background: #fff;
    color: #164b74;
}

.qav-cookie__categories {
    display: grid;
    gap: 10px;
    margin: 16px 0 20px;
}

.qav-cookie__category {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid #dbe4ea;
    border-radius: 12px;
    background: #fff;
}

.qav-cookie__category strong,
.qav-cookie__category small {
    display: block;
}

.qav-cookie__category small {
    margin-top: 4px;
    color: #526979;
    line-height: 1.4;
}

.qav-cookie__category input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.qav-cookie__category--locked {
    background: #f6f8fa;
}

.qav-cookie__manage {
    position: fixed;
    left: 16px;
    bottom: 16px;
    min-height: 38px !important;
    padding: 7px 12px !important;
    background: #fff;
    color: #164b74;
    box-shadow: 0 8px 28px rgba(12, 35, 52, .17);
    font-size: 13px !important;
}

.qav-cookie-policy-appendix {
    margin: 36px 0;
    padding: 24px;
    border: 1px solid #dbe4ea;
    border-radius: 14px;
    background: #f8fafb;
    color: #162f43;
}

.qav-cookie-policy-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
}

.qav-cookie-policy-table {
    width: 100%;
    border-collapse: collapse;
}

.qav-cookie-policy-table th,
.qav-cookie-policy-table td {
    padding: 10px;
    border: 1px solid #dbe4ea;
    text-align: left;
    vertical-align: top;
}

.qav-cookie-policy-open {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #164b74;
    border-radius: 10px;
    background: #fff;
    color: #164b74;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 860px) {
    .qav-cookie__banner {
        grid-template-columns: 1fr;
    }

    .qav-cookie__actions--primary {
        min-width: 0;
        justify-content: stretch;
    }

    .qav-cookie__choice,
    .qav-cookie__configure {
        flex: 1 1 150px;
    }
}

@media (max-width: 540px) {
    .qav-cookie__banner,
    .qav-cookie__panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 17px;
        border-radius: 14px;
    }

    .qav-cookie__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .qav-cookie button {
        width: 100%;
    }

    .qav-cookie__manage {
        width: auto !important;
        left: 10px;
        bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qav-cookie *,
    .qav-cookie *::before,
    .qav-cookie *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
