/* ============================================================
   Gestor de cookies — banner + centro de preferencias
   Marca: negro #0D0D0D, rojo #FF2D2D, Inter. Sin dependencias.
   ============================================================ */

.tc-cc, .tc-cc * { box-sizing: border-box; }
.tc-cc button { font-family: inherit; }

/* ---- Banner / aviso (barra inferior, no bloquea scroll) ---- */
.tc-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 2147483000;
    max-width: 920px; margin: 0 auto;
    background: #0D0D0D; color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
    padding: 20px 22px;
    display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
    font-size: .92rem; line-height: 1.5;
    animation: tc-up .28s ease both;
}
@keyframes tc-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tc-banner { animation: none; } }

.tc-banner__text { flex: 1 1 380px; min-width: 260px; }
.tc-banner__text strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.tc-banner__text a { color: #FF6B6B; text-decoration: underline; }
.tc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.tc-btn {
    border: 0; border-radius: 10px; cursor: pointer;
    padding: 11px 18px; font-size: .9rem; font-weight: 600;
    transition: filter .15s ease, background .15s ease;
}
.tc-btn:focus-visible { outline: 3px solid #FF2D2D; outline-offset: 2px; }
.tc-btn--primary { background: #FF2D2D; color: #fff; }
.tc-btn--primary:hover { filter: brightness(1.08); }
.tc-btn--ghost { background: rgba(255,255,255,.10); color: #fff; }
.tc-btn--ghost:hover { background: rgba(255,255,255,.18); }
.tc-btn--link { background: transparent; color: #cfcfcf; text-decoration: underline; padding: 11px 8px; }
.tc-btn--link:hover { color: #fff; }

/* ---- Modal / centro de preferencias ---- */
.tc-modal {
    position: fixed; inset: 0; z-index: 2147483600;
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.55);
    animation: tc-fade .2s ease both;
}
@keyframes tc-fade { from { opacity: 0; } to { opacity: 1; } }
.tc-modal__box {
    width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
    background: #fff; color: #0D0D0D;
    border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.4);
}
.tc-modal__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px 10px;
}
.tc-modal__head h2 { margin: 0; font-size: 1.2rem; }
.tc-modal__close {
    border: 0; background: transparent; cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: #888; padding: 4px 8px;
}
.tc-modal__close:hover { color: #0D0D0D; }
.tc-modal__body { padding: 6px 22px 8px; }
.tc-modal__intro { color: #555; font-size: .92rem; margin: 0 0 14px; }
.tc-modal__body a { color: #FF2D2D; text-decoration: underline; }

.tc-cat {
    border: 1px solid #E8ECF0; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 12px;
    display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
}
.tc-cat__info h3 { margin: 0 0 4px; font-size: .98rem; }
.tc-cat__info p { margin: 0; color: #555; font-size: .86rem; line-height: 1.5; }
.tc-cat__tag { display: inline-block; margin-top: 6px; font-size: .72rem; color: #888; }

/* Interruptor */
.tc-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.tc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tc-switch__slider {
    position: absolute; inset: 0; background: #cfd6dd; border-radius: 999px;
    transition: background .18s ease;
}
.tc-switch__slider::before {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; background: #fff; border-radius: 50%;
    transition: transform .18s ease; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.tc-switch input:checked + .tc-switch__slider { background: #FF2D2D; }
.tc-switch input:checked + .tc-switch__slider::before { transform: translateX(20px); }
.tc-switch input:focus-visible + .tc-switch__slider { outline: 3px solid #FF2D2D; outline-offset: 2px; }
.tc-switch input:disabled + .tc-switch__slider { background: #0D0D0D; opacity: .35; cursor: not-allowed; }

.tc-modal__foot {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
    padding: 12px 22px 22px;
}
.tc-modal__foot .tc-btn--primary,
.tc-modal__foot .tc-btn--ghost { color: #fff; }
.tc-modal__foot .tc-btn--ghost { background: #0D0D0D; }
.tc-modal__foot .tc-btn--ghost:hover { background: #333; }

@media (max-width: 560px) {
    .tc-banner { padding: 16px; }
    .tc-banner__actions { width: 100%; }
    .tc-banner__actions .tc-btn { flex: 1 1 auto; }
    .tc-modal__foot { flex-direction: column-reverse; }
    .tc-modal__foot .tc-btn { width: 100%; }
}
