/* cookie-consent.css — estilos del banner propio
   Cambia las variables de :root para adaptarlo a tu marca. */

   :root {
    --cc-bg: #1c1c1e;
    --cc-text: #f2f2f2;
    --cc-muted: #b8b8bd;
    --cc-primary: #c9484d;        /* color de acento; ajústalo a tu marca */
    --cc-primary-text: #ffffff;
    --cc-border: rgba(255, 255, 255, .15);
    --cc-radius: 10px;
  }
  
  .cc-root { position: relative; z-index: 2147483000; }
  
  /* ---------- Banner ---------- */
  .cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--cc-bg);
    color: var(--cc-text);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    font-family: inherit;
    animation: cc-up .25s ease-out;
  }
  
  @keyframes cc-up {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  
  .cc-banner__body { flex: 1 1 380px; min-width: 0; }
  .cc-banner__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.2; }
  .cc-banner__desc  { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cc-muted); }
  
  .cc-banner__actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  
  .cc-link { color: var(--cc-text); text-decoration: underline; }
  .cc-link:hover { color: #fff; }
  
  /* ---------- Botones ---------- */
  .cc-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: all .15s ease;
    font-family: inherit;
  }
  .cc-btn--primary {
    background: var(--cc-primary);
    color: var(--cc-primary-text);
  }
  .cc-btn--primary:hover { filter: brightness(1.08); }
  .cc-btn--ghost {
    background: transparent;
    color: var(--cc-text);
    border-color: var(--cc-border);
  }
  .cc-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
  
  /* ---------- Modal de preferencias ---------- */
  .cc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cc-fade .2s ease-out;
  }
  @keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
  
  .cc-modal__box {
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--cc-bg);
    color: var(--cc-text);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    padding: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  }
  .cc-modal__title { margin: 0 0 18px; font-size: 19px; font-weight: 700; }
  
  .cc-cat { padding: 14px 0; border-top: 1px solid var(--cc-border); }
  .cc-cat:first-of-type { border-top: none; }
  .cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cc-cat__name { font-size: 14.5px; font-weight: 600; }
  .cc-cat__always { font-size: 12px; color: var(--cc-muted); }
  .cc-cat__desc { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--cc-muted); }
  
  .cc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
  }
  
  /* ---------- Switch ---------- */
  .cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
  .cc-switch input { opacity: 0; width: 0; height: 0; }
  .cc-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: #555; border-radius: 24px; transition: .2s;
  }
  .cc-slider::before {
    content: ''; position: absolute; height: 18px; width: 18px;
    left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s;
  }
  .cc-switch input:checked + .cc-slider { background: var(--cc-primary); }
  .cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 640px) {
    .cc-banner { flex-direction: column; align-items: stretch; padding: 18px; }
    .cc-banner__actions { justify-content: stretch; }
    .cc-banner__actions .cc-btn { flex: 1 1 auto; text-align: center; }
  }
  