/* ------------------------------------------------------------------
   GREC - Aviso de cookies
   Sin dependencias externas. Se carga en todas las paginas.
   ------------------------------------------------------------------ */

.grec-ck-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #1f1f1f;
    color: #f2f2f2;
    padding: 18px 20px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .25);
    font-size: 15px;
    line-height: 1.5;
    display: none;
}

.grec-ck-banner.is-open {
    display: block;
}

.grec-ck-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.grec-ck-text {
    flex: 1 1 360px;
    margin: 0;
}

.grec-ck-text a {
    color: #f2f2f2;
    text-decoration: underline;
}

.grec-ck-text a:hover,
.grec-ck-text a:focus {
    color: #ffffff;
}

.grec-ck-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

.grec-ck-btn {
    font: inherit;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 22px;
    cursor: pointer;
    white-space: nowrap;
}

.grec-ck-btn-accept {
    background: #c1544b;
    border-color: #c1544b;
    color: #ffffff;
}

.grec-ck-btn-accept:hover,
.grec-ck-btn-accept:focus {
    background: #a8443c;
    border-color: #a8443c;
}

.grec-ck-btn-reject {
    background: transparent;
    border-color: #8a8a8a;
    color: #f2f2f2;
}

.grec-ck-btn-reject:hover,
.grec-ck-btn-reject:focus {
    border-color: #f2f2f2;
}

.grec-ck-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ---- sustituto de los mapas mientras no hay consentimiento ---- */

.grec-ck-mapbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    width: 100%;
    min-height: 450px;
    padding: 24px;
    box-sizing: border-box;
    background: #f0efed;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.5;
}

.grec-ck-mapbox p {
    margin: 0;
    max-width: 420px;
}

@media (max-width: 575px) {
    .grec-ck-banner {
        padding: 16px;
        font-size: 14px;
    }

    .grec-ck-actions {
        width: 100%;
    }

    .grec-ck-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .grec-ck-mapbox {
        min-height: 320px;
    }
}
