/* =========================================================
   Cookie consent banner — AJ Creative Studios
   Paleta del sitio: --dark #232225 / --orange #F36C30 / --cream #E6E3DC
   Escritorio: caja fija de 800 x 100 px centrada abajo.
   ========================================================= */

.aj_cookie {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 9998;

    box-sizing: border-box;
    width: 800px;
    height: 100px;
    max-width: calc(100vw - 32px);

    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;

    background: var(--dark, #232225);
    color: var(--cream, #E6E3DC);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(35, 34, 37, .28);
}

.aj_cookie[hidden] {
    display: none;
}

/* ---------- Texto ---------- */
.aj_cookie .aj_cookie_text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: .1px;
}

.aj_cookie .aj_cookie_text strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .2px;
    margin-bottom: 5px;
    color: #fff;
}

.aj_cookie .aj_cookie_text a {
    display: inline;
    color: var(--orange, #F36C30);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aj_cookie .aj_cookie_text a:hover {
    color: #fff;
}

/* ---------- Botones (mismo peso visual: simetría de consentimiento) ---------- */
.aj_cookie .aj_cookie_actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 175px);
    gap: 6px 10px;
    align-items: center;
}

.aj_cookie .aj_cookie_btn {
    box-sizing: border-box;
    width: 175px;
    white-space: nowrap;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 50vw;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: .25s;
}

.aj_cookie .aj_cookie_btn:hover {
    transform: scale(.97);
}

.aj_cookie .aj_cookie_btn:focus-visible {
    outline: 2px solid var(--orange, #F36C30);
    outline-offset: 3px;
}

.aj_cookie .aj_accept {
    background: var(--orange, #F36C30);
    color: #fff;
}

.aj_cookie .aj_accept:hover {
    background: #ff7d43;
}

.aj_cookie .aj_reject {
    background: transparent;
    border-color: var(--cream, #E6E3DC);
    color: var(--cream, #E6E3DC);
}

.aj_cookie .aj_reject:hover {
    background: var(--cream, #E6E3DC);
    color: var(--dark, #232225);
}

.aj_cookie .aj_cookie_settings {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-block;
    font-size: 9px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #b9b6b1;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aj_cookie .aj_cookie_settings:hover {
    color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .aj_cookie {
        animation: aj_cookie_up .35s ease-out;
    }

    @keyframes aj_cookie_up {
        from {
            transform: translate(-50%, 16px);
            opacity: 0;
        }

        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }
}

/* ---------- Tablet / móvil: se reorganiza, ya no mide 800x100 ---------- */
@media (max-width: 860px) {
    .aj_cookie {
        left: 16px;
        right: 16px;
        bottom: 16px;
        transform: none;
        width: auto;
        max-width: none;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
        border-radius: 16px;
    }

    .aj_cookie .aj_cookie_text {
        font-size: 12px;
    }

    .aj_cookie .aj_cookie_text strong {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .aj_cookie .aj_cookie_actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .aj_cookie .aj_cookie_btn {
        width: 100%;
        height: auto;
        min-height: 44px;
        padding: 8px 10px;
        line-height: 1.25;
        white-space: normal;
        font-size: 11px;
    }

    .aj_cookie .aj_cookie_settings {
        font-size: 11px;
    }

    @keyframes aj_cookie_up {
        from {
            transform: translateY(16px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

@media (max-width: 420px) {
    .aj_cookie .aj_cookie_actions {
        grid-template-columns: 1fr;
    }
}
