/* =========================================================
   YAMILE ESTILISTAS
   COOKIE CONSENT
   ========================================================= */

.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none !important;
}


/* =========================================================
   BANNER
   ========================================================= */

.cookie-banner {
    position: fixed;
    z-index: 999999;
    left: 20px;
    right: 20px;
    bottom: 20px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(15px);

    font-family: inherit;
}


.cookie-banner__inner {
    max-width: 1180px;
    margin: 0 auto;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.cookie-banner__content {
    flex: 1;
}


.cookie-banner__eyebrow {
    display: block;

    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--red, #9f1d35);
}


.cookie-banner h2,
.cookie-modal h2 {
    margin: 0 0 10px;

    font-size: 24px;
    line-height: 1.2;
}


.cookie-banner p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: #555;
}


.cookie-banner__links {
    margin-top: 10px !important;
}


.cookie-banner__links a {
    color: var(--red, #9f1d35);
    font-weight: 600;
    text-decoration: none;
}


.cookie-banner__links a:hover {
    text-decoration: underline;
}


/* =========================================================
   BOTONES
   ========================================================= */

.cookie-banner__actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    flex-shrink: 0;
}


.cookie-btn {
    border: 0;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 999px;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        opacity .2s ease,
        background .2s ease;
}


.cookie-btn:hover {
    transform: translateY(-2px);
}


.cookie-btn--primary {
    background: var(--red, #9f1d35);
    color: #fff;
}


.cookie-btn--secondary {
    background: #f3f3f3;
    color: #222;
}


.cookie-btn:focus-visible {
    outline: 3px solid rgba(159, 29, 53, .25);
    outline-offset: 3px;
}


/* =========================================================
   MODAL
   ========================================================= */

.cookie-modal {
    position: fixed;

    inset: 0;

    z-index: 1000000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;
}


.cookie-modal__overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .55);

    backdrop-filter: blur(5px);
}


.cookie-modal__box {
    position: relative;

    z-index: 2;

    width: min(680px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 32px;

    background: #fff;

    border-radius: 22px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .3);
}


.cookie-modal__box > p {
    margin-top: 0;

    color: #555;

    line-height: 1.6;
}


.cookie-modal__close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 40px;
    height: 40px;

    border: 0;

    background: transparent;

    font-size: 30px;

    cursor: pointer;

    color: #555;
}


/* =========================================================
   OPCIONES
   ========================================================= */

.cookie-option {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid #eee;
}


.cookie-option h3 {
    margin: 0 0 6px;

    font-size: 16px;
}


.cookie-option p {
    margin: 0;

    color: #666;

    font-size: 13px;

    line-height: 1.5;
}


.cookie-option__text {
    flex: 1;
}


/* =========================================================
   SWITCH
   ========================================================= */

.cookie-switch {
    position: relative;

    width: 50px;
    height: 28px;

    flex-shrink: 0;
}


.cookie-switch input {
    opacity: 0;

    width: 0;
    height: 0;
}


.cookie-switch span {
    position: absolute;

    inset: 0;

    background: #ccc;

    border-radius: 999px;

    cursor: pointer;

    transition: .25s;
}


.cookie-switch span::before {
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    left: 3px;
    top: 3px;

    background: white;

    border-radius: 50%;

    transition: .25s;

    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}


.cookie-switch input:checked + span {
    background: var(--red, #9f1d35);
}


.cookie-switch input:checked + span::before {
    transform: translateX(22px);
}


.cookie-switch input:disabled + span {
    opacity: .7;

    cursor: not-allowed;
}


/* =========================================================
   ACCIONES MODAL
   ========================================================= */

.cookie-modal__actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 25px;
}


/* =========================================================
   BOTÓN FLOTANTE
   ========================================================= */

.cookie-settings-floating {
    position: fixed;

    z-index: 999998;

    left: 18px;
    bottom: 18px;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(0,0,0,.1);

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0,0,0,.15);

    cursor: pointer;

    font-size: 18px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .cookie-banner__inner {
        flex-direction: column;

        align-items: stretch;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

}


@media (max-width: 500px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;

        border-radius: 15px;
    }

    .cookie-banner__inner {
        padding: 20px;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-modal__box {
        padding: 25px 20px;
    }

}