/* ==========================================================================
   EmpowerLink · Consentimiento de cookies
   Banner de aviso + panel corto de preferencias. El detalle legal completo
   vive en /politicadecookies.html, que es lo que abre "Saber mas".
   ========================================================================== */

.elck, .elck * { box-sizing: border-box; }

/* --------------------------------------------------------- Banner ------- */
.elck-bar {
  position: fixed;
  left: 22px; right: 22px; bottom: 22px;
  z-index: 400;
  max-width: 540px;
  margin: 0 auto;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #E4E2EE);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 30px 70px -22px rgba(20, 22, 58, .34);
  font-family: var(--font-b, "Inter Tight", system-ui, sans-serif);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.elck-bar.is-in { transform: none; opacity: 1; }
.elck-bar[hidden] { display: none; }

.elck-bar h2 {
  font-family: var(--font-b, system-ui, sans-serif);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.32;
  color: var(--ink, #14163A);
  margin: 0 0 11px;
  letter-spacing: -.005em;
}
.elck-bar > p {
  font-size: 14px;
  line-height: 1.6;
  color: #55576f;
  margin: 0 0 20px;
}

.elck-acts { display: flex; gap: 10px; align-items: stretch; }
.elck-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--ink, #14163A);
  background: transparent;
  color: var(--ink, #14163A);
  cursor: pointer;
  flex: 1 1 0;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.elck-btn:hover { background: rgba(20, 22, 58, .05); }
.elck-btn.is-main {
  background: var(--accent, #E08C40);
  border-color: var(--accent, #E08C40);
  color: #fff;
  font-weight: 700;
}
.elck-btn.is-main:hover { background: var(--accent-em, #BD6C24); border-color: var(--accent-em, #BD6C24); transform: translateY(-1px); }

.elck-more {
  display: block;
  text-align: center;
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--soft, #54579B);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.elck-more:hover { color: var(--ink, #14163A); }

@media (max-width: 560px) {
  .elck-bar { left: 12px; right: 12px; bottom: 12px; padding: 22px 20px; }
  .elck-acts { flex-direction: column; }
}

/* ------------------------------------------ Panel de preferencias ------- */
.elck-modal {
  position: fixed; inset: 0; z-index: 420;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  font-family: var(--font-b, "Inter Tight", system-ui, sans-serif);
}
.elck-modal[hidden] { display: none; }
.elck-veil { position: absolute; inset: 0; background: rgba(20, 22, 58, .55); }

.elck-panel {
  position: relative;
  background: var(--paper, #fff);
  border-radius: 18px;
  width: min(600px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 32px 26px;
  box-shadow: 0 40px 90px -28px rgba(20, 22, 58, .55);
}
.elck-panel h2 {
  font-family: var(--font-b, system-ui, sans-serif);
  font-weight: 700; font-size: 21px; line-height: 1.25;
  color: var(--ink, #14163A); margin: 0 0 8px; padding-right: 36px;
  letter-spacing: -.01em;
}
.elck-sub { font-size: 14px; line-height: 1.55; color: #55576f; margin: 0 0 22px; }

.elck-x {
  position: absolute; top: 22px; right: 24px;
  width: 30px; height: 30px; border: 0; background: none;
  color: var(--soft, #54579B); font-size: 22px; line-height: 1; cursor: pointer;
}
.elck-x:hover { color: var(--ink, #14163A); }

.elck-card {
  border: 1px solid var(--line, #E4E2EE);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.elck-card-h {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 9px;
}
.elck-card-h b { font-size: 15px; font-weight: 700; color: var(--ink, #14163A); line-height: 1.3; }
.elck-always { font-size: 13px; font-weight: 600; color: #2E8B57; flex: 0 0 auto; }
.elck-card > p { font-size: 13.5px; line-height: 1.6; color: #55576f; margin: 0; }
.elck-card > p + p { margin-top: 9px; }
.elck-key { font-family: var(--font-m, ui-monospace, monospace); font-size: 12.5px; color: var(--brand, #4A4FA0); font-weight: 600; }

/* interruptor */
.elck-sw { flex: 0 0 auto; display: inline-flex; align-items: center; cursor: pointer; }
.elck-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.elck-sw .track {
  width: 46px; height: 26px; border-radius: 999px;
  background: #d7d7e2; position: relative; transition: background .24s;
}
.elck-sw .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .24s; box-shadow: 0 1px 4px rgba(0, 0, 0, .26);
}
.elck-sw input:checked + .track { background: var(--accent, #E08C40); }
.elck-sw input:checked + .track::after { transform: translateX(20px); }
.elck-sw input:focus-visible + .track { outline: 2.5px solid var(--accent-em, #BD6C24); outline-offset: 3px; }

.elck-note { font-size: 13px; line-height: 1.55; color: var(--soft, #54579B); margin: 18px 0 0; }
.elck-panel .elck-more { text-align: left; margin: 12px 0 20px; }
.elck-panel .elck-acts { gap: 12px; }

@media (max-width: 560px) {
  .elck-panel { padding: 24px 20px 22px; }
  .elck-panel .elck-acts { flex-direction: column; }
}

/* --------------------------- Aviso al enviar sin haber decidido --------- */
.elck-need {
  background: rgba(224, 140, 64, .1);
  border: 1px solid rgba(224, 140, 64, .38);
  border-radius: 12px;
  padding: 13px 15px;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a4c66;
}
.elck-need b { color: var(--ink, #14163A); }
.elck-need button {
  display: inline; background: none; border: 0; padding: 0;
  font: inherit; color: var(--accent-deep, #9C612C);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .elck-bar { transition: none; transform: none; opacity: 1; }
  .elck-sw .track, .elck-sw .track::after { transition: none; }
}

/* ------------------------------- Ventana de detalle ("Saber mas") ------- */
.elck-panel-wide { width: min(1060px, 100%); padding: 32px 36px 26px; }
.elck-panel-wide > h2 {
  font-family: var(--font-b, system-ui, sans-serif);
  font-weight: 700; font-size: 22px; line-height: 1.25;
  color: var(--ink, #14163A); margin: 0 0 8px; padding-right: 40px;
}

.elck-det { display: grid; grid-template-columns: 1.45fr 1fr; gap: 30px; align-items: start; margin-top: 22px; }
@media (max-width: 880px) { .elck-det { grid-template-columns: 1fr; gap: 20px; } }

.elck-det-main h3 {
  font-family: var(--font-b, system-ui, sans-serif);
  font-weight: 700; font-size: 16px; color: var(--ink, #14163A);
  margin: 26px 0 8px; line-height: 1.35;
}
.elck-det-main h3:first-child { margin-top: 0; }
.elck-det-main h4 {
  font-family: var(--font-b, system-ui, sans-serif);
  font-weight: 700; font-size: 14.5px; color: var(--ink, #14163A);
  margin: 16px 0 5px;
}
.elck-det-main p { font-size: 14px; line-height: 1.65; color: #55576f; margin: 0 0 10px; }
.elck-tag { font-size: 12.5px; font-weight: 600; }
.elck-tag.on { color: #2E8B57; }
.elck-tag.opt { color: var(--accent-em, #BD6C24); }
.elck-what {
  background: var(--porcelain, #F4F3F7);
  border: 1px solid var(--line, #E4E2EE);
  border-radius: 12px; padding: 14px 16px; margin: 12px 0;
}
.elck-what b { display: block; font-size: 13px; font-weight: 700; color: var(--ink, #14163A); margin-bottom: 5px; }
.elck-what p { font-size: 13.5px; margin: 0; }

.elck-det-side { display: flex; flex-direction: column; gap: 12px; }
.elck-det-side div { background: #ECEBF4; border-radius: 13px; padding: 15px 17px; }
.elck-det-side b { display: block; font-size: 13px; font-weight: 700; color: var(--ink, #14163A); margin-bottom: 5px; }
.elck-det-side p { font-size: 13px; line-height: 1.6; color: #55576f; margin: 0; }
.elck-det-side a { color: var(--accent-deep, #9C612C); }

.elck-det-foot {
  border-top: 1px solid var(--line, #E4E2EE);
  margin-top: 24px; padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--soft, #54579B);
}
.elck-det-foot a { color: var(--soft, #54579B); text-decoration: underline; text-underline-offset: 3px; }
.elck-det-foot a:hover { color: var(--ink, #14163A); }
.elck-det-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.elck-det-acts .elck-btn { flex: 0 0 auto; }

@media (max-width: 620px) {
  .elck-panel-wide { padding: 24px 20px 22px; }
  .elck-det-acts { width: 100%; }
  .elck-det-acts .elck-btn { flex: 1 1 auto; }
}

/* La pagina /politicadecookies.html reutiliza el mismo bloque */
.elck-page .elck-panel-wide { box-shadow: none; background: transparent; padding: 0; width: 100%; max-height: none; }
/* En la pagina, el titulo ya esta en la cabecera: no repetirlo */
.elck-page .elck-panel-wide > h2,
.elck-page .elck-panel-wide > .elck-sub { display: none; }
.elck-page .elck-det { margin-top: 0; }

/* --------------------------------------------------------------------------
   Telefono: el banner ocupaba mas de media pantalla. Se compacta a una fila
   de decision justa: Rechazar y Aceptar lado a lado al mismo tamano, y
   Personalizar como enlace subrayado debajo. Nada cambia en la logica.
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .elck.elck-bar { padding: 16px 16px 14px; }
  .elck.elck-bar h2 { font-size: 15px; margin: 0 0 6px; }
  .elck.elck-bar > p { font-size: 12.5px; line-height: 1.5; margin: 0 0 12px; }
  .elck.elck-bar .elck-acts { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .elck.elck-bar .elck-btn { min-height: 44px; padding: 10px 8px; font-size: 13px; }
  .elck.elck-bar [data-ck="prefs"] { order: 3; flex: 1 1 100%; border: 0; background: none; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--soft, #54579B); font-weight: 600; }
  .elck.elck-bar .elck-more { margin-top: 8px; font-size: 12.5px; }
}
