/* Aviso de cookies (assets/cookies.js) y botones "Configurar cookies".
   Común a todas las páginas de ynventra.com; no depende de site.css ni de legal.css. */

.ck {
  position: fixed; left: 24px; bottom: 24px; z-index: 60;
  width: min(440px, calc(100% - 32px));
  margin: 0; padding: 22px 22px 20px;
  background: #fff; color: #5b4a52;
  border: 1px solid rgba(57, 3, 26, .1); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(28, 7, 16, .45), 0 2px 6px rgba(28, 7, 16, .06);
  font: 400 13.5px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s cubic-bezier(.2, .7, .2, 1), transform .3s cubic-bezier(.2, .7, .2, 1);
}
.ck[hidden] { display: none; }
.ck.is-in { opacity: 1; transform: none; }
.ck:focus { outline: none; }

.ck-title {
  margin: 0 0 8px;
  font: 500 13px/1.3 'Jost', 'Inter', system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: #6c1134;
}
.ck-text { margin: 0; }
.ck-text a { color: #39031a; text-decoration: underline; text-underline-offset: 3px; }
.ck-current { margin: 8px 0 0; font-size: 12.5px; color: #8a7880; }

/* Aceptar y Rechazar con el mismo formato: ninguna opción destaca sobre la otra */
.ck-actions { display: flex; gap: 10px; margin-top: 16px; }
.ck-btn {
  flex: 1; margin: 0; padding: 12px 18px;
  border: 1px solid #39031a; border-radius: 999px; background: #39031a; color: #fff;
  font: 500 14px/1 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.ck-btn:hover { background: #6c1134; border-color: #6c1134; }
.ck-btn:focus-visible, .ck-text a:focus-visible { outline: 2px solid #a8285a; outline-offset: 3px; }

/* "Configurar cookies" en el pie, con el aspecto de los enlaces legales */
.f-cookies {
  margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer;
}
.f-cookies:hover { text-decoration: underline; text-underline-offset: 4px; }

/* "Configurar cookies" dentro de la política de cookies */
.btn-cookies {
  display: inline-flex; align-items: center; margin-top: 4px; padding: 12px 22px;
  border: 1px solid #39031a; border-radius: 999px; background: #fff; color: #39031a;
  font: 500 14px/1 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn-cookies:hover { background: #39031a; color: #fff; }

/* Los botones van ocultos en el HTML; cookies.js los muestra solo si el aviso está activo */
[data-cookie-settings][hidden] { display: none !important; }

@media (max-width: 640px) {
  .ck { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ck { transition: none; transform: none; }
}
