/* Aviso de cookies (Partials/cookie_consent). Todo bajo .cookie-consent: no toca el resto de la web
   (la versión anterior cambiaba body, p y main de todas las páginas). */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080; /* por encima del header y de los modales de Bootstrap (1055) */
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__inner {
    pointer-events: auto;
    width: 100%;
    max-width: 760px;
    background: #fff;
    color: #222;
    border-radius: 10px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .18);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.cookie-consent__body {
    flex: 1 1 320px;
}

.cookie-consent__title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 .35rem;
}

.cookie-consent__text {
    font-size: .875rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent__text a {
    color: #ed1a24;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: .75rem;
    flex: 0 0 auto;
}

/* Rechazar y Aceptar con el mismo tamaño y peso visual (criterio de la AEPD) */
.cookie-consent__btn {
    min-width: 120px;
    padding: .65rem 1.25rem;
    border-radius: 6px;
    border: 2px solid #ed1a24;
    font-weight: 700;
    font-size: .875rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.cookie-consent__btn--reject {
    background: #fff;
    color: #ed1a24;
}

.cookie-consent__btn--accept {
    background: #ed1a24;
    color: #fff;
}

.cookie-consent__btn:hover,
.cookie-consent__btn:focus-visible {
    background: #c3121b;
    border-color: #c3121b;
    color: #fff;
}

@media (max-width: 575.98px) {
    .cookie-consent {
        left: .5rem;
        right: .5rem;
        bottom: .5rem;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1 1 0;
        min-width: 0;
    }
}
