/* TFC - consentimiento de cookies. Botones rectos, como el resto de la web. */

.tfc-ck,
.tfc-ckp { font-size: 14px; }

.tfc-ck[hidden],
.tfc-ckp[hidden] { display: none !important; }

/* ---------- Banner ---------- */
.tfc-ck {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000;
    width: 440px;
    max-width: calc(100vw - 24px);
}

.tfc-ck-caja {
    background: #fff;
    border-top: 4px solid var(--tfc-acento, #7da473);
    box-shadow: 0 8px 34px rgba(0, 0, 0, .22);
    padding: 24px 24px 18px;
}

.tfc-ck-iso {
    display: block;
    width: auto;
    height: 60px;
    margin: 0 0 14px;
}

.tfc-ck-titulo {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 600;
    color: #2b2b2b;
    line-height: 1.2;
}

.tfc-ck-texto {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #555;
}

.tfc-ck-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tfc-ck-botones .tfc-ck-btn-cfg { grid-column: 1 / -1; }

.tfc-ck-btn {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.tfc-ck-btn-si { background: var(--tfc-acento, #7da473); border-color: var(--tfc-acento, #7da473); color: #fff; }
.tfc-ck-btn-si:hover { background: var(--tfc-acento-oscuro, #6b9161); border-color: var(--tfc-acento-oscuro, #6b9161); }

.tfc-ck-btn-no { background: #2b2b2b; border-color: #2b2b2b; color: #fff; }
.tfc-ck-btn-no:hover { background: #111; border-color: #111; }

.tfc-ck-btn-cfg { background: #fff; border-color: #cfcfcf; color: #2b2b2b; }
.tfc-ck-btn-cfg:hover { border-color: var(--tfc-acento, #7da473); color: var(--tfc-acento-oscuro, #4b7040); }

.tfc-ck-enlaces {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #999;
}

.tfc-ck-enlaces a {
    color: #777;
    text-decoration: underline;
    margin-right: 12px;
}

.tfc-ck-enlaces a:hover { color: var(--tfc-acento, #7da473); }

/* ---------- Panel de preferencias ---------- */
.tfc-ckp {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tfc-ckp-fondo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.tfc-ckp-caja {
    position: relative;
    background: #fff;
    width: 660px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 44px rgba(0, 0, 0, .32);
}

.tfc-ckp-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #ececec;
}

.tfc-ckp-cab h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2b2b2b;
}

.tfc-ckp-x {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    border: 0;
    color: #999;
    cursor: pointer;
}

.tfc-ckp-x svg { display: block; }
.tfc-ckp-x:hover { color: #2b2b2b; }

.tfc-ckp-cuerpo {
    padding: 6px 22px 10px;
    overflow-y: auto;
}

.tfc-ckp-intro {
    margin: 14px 0 4px;
    font-size: 13.5px;
    color: #666;
    line-height: 1.5;
}

.tfc-ckp-fila {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tfc-ckp-fila:last-child { border-bottom: 0; }

.tfc-ckp-txt h3 {
    margin: 0 0 4px;
    font-size: 14.5px;
    font-weight: 600;
    color: #2b2b2b;
}

.tfc-ckp-txt p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.tfc-ckp-fijo {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--tfc-acento, #7da473);
    text-transform: uppercase;
    letter-spacing: .03em;
    padding-top: 3px;
    white-space: nowrap;
}

/* Interruptor */
.tfc-ckp-sw {
    flex: 0 0 auto;
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    margin: 2px 0 0;
    cursor: pointer;
}

.tfc-ckp-sw input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tfc-ckp-sw span {
    position: absolute;
    inset: 0;
    background: #ccc;
    transition: background .2s;
}

.tfc-ckp-sw span:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    transition: transform .2s;
}

.tfc-ckp-sw input:checked + span { background: var(--tfc-acento, #7da473); }
.tfc-ckp-sw input:checked + span:before { transform: translateX(20px); }
.tfc-ckp-sw input:focus-visible + span { outline: 2px solid #2b2b2b; outline-offset: 2px; }

.tfc-ckp-pie {
    display: flex;
    gap: 8px;
    padding: 16px 22px;
    border-top: 1px solid #ececec;
    background: #fafafa;
}

.tfc-ckp-pie .tfc-ck-btn { flex: 1 1 0; }

/* ---------- Marcador de contenido de terceros bloqueado ---------- */
.tfc-ck-bloqueado {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 26px 22px;
    background: #f4f4f2;
    border: 1px dashed #cdcdcd;
    color: #555;
    min-height: 180px;
}

.tfc-ck-bloqueado strong { font-size: 14.5px; color: #2b2b2b; }
.tfc-ck-bloqueado span { font-size: 13px; line-height: 1.5; max-width: 460px; }
.tfc-ck-bloqueado .tfc-ck-btn { width: auto; margin-top: 4px; padding: 9px 18px; }

/* ---------- Enlace del pie ---------- */
.tfc-ck-enlace-pie {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Movil ---------- */
@media (max-width: 575px) {
    .tfc-ck {
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        max-width: none;
    }

    .tfc-ck-caja { padding: 18px 16px 14px; }
    .tfc-ck-texto { font-size: 13px; }
    .tfc-ck-iso { height: 48px; margin-bottom: 10px; }

    .tfc-ckp { padding: 0; align-items: flex-end; }
    .tfc-ckp-caja { max-height: 88vh; width: 100%; }
    .tfc-ckp-pie { flex-wrap: wrap; }
    .tfc-ckp-pie .tfc-ck-btn { flex: 1 1 100%; }
}

/* El enlace del pie hereda el color del bloque de copyright (texto blanco) */
#footer-copyrights .tfc-ck-pie { margin: 6px 0 0; text-align: center; }
#footer-copyrights .tfc-ck-enlace-pie { color: #fff; font-size: 13px; opacity: .85; }
#footer-copyrights .tfc-ck-enlace-pie:hover { opacity: 1; }
