/* =====================================================
   BANNER DE COOKIES — estética de Operación Reset
   ===================================================== */

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

.ck {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;               /* por encima del pop-up de registro (100) y del gate (60) */
  display: flex;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.ck-card {
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid rgba(237, 227, 199, 0.35);
  border-radius: 14px;
  background: #11150F;        /* opaco: con transparencia el botón de debajo se intuía y se tocaba por error */
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  font-family: 'Cabin', sans-serif;
  color: #EDE3C7;
}

.ck-texto {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(237, 227, 199, 0.92);
}

.ck a { color: #F5EEDF; text-decoration: underline; text-underline-offset: 2px; }

.ck-inline {
  display: inline-block;
  padding: 10px 2px;          /* zona táctil de 44 px sin descolocar la línea */
  margin: -10px 0;
  border: 0;
  background: none;
  font: inherit;
  color: #F5EEDF;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Aceptar y Rechazar: MISMO tamaño, MISMO color, MISMA fila (criterio AEPD). */
.ck-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.ck-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #EDE3C7;
  border-radius: 10px;
  background: #EDE3C7;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #141812;
  cursor: pointer;
}

.ck-btn:hover { background: #F5EEDF; }

.ck-btn--sec {
  background: transparent;
  color: #EDE3C7;
}

.ck-btn--sec:hover { background: rgba(237, 227, 199, 0.12); }

.ck-guardar { width: 100%; margin-top: 8px; }

/* --- segunda capa --- */

.ck-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ck-titulo {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5EEDF;
}

.ck-volver { font-size: 14px; }

.ck-alcance {
  margin: 4px 0 6px;
  font-size: 13px;
  color: rgba(237, 227, 199, 0.72);
}

.ck-opcion {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(237, 227, 199, 0.14);
}

label.ck-opcion { cursor: pointer; }   /* toda la fila activa el interruptor */

.ck-opcion-txt { display: block; }

.ck-opcion-nombre {
  display: block;
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: #F5EEDF;
}

.ck-siempre {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(237, 227, 199, 0.65);
}

.ck-opcion-desc {
  display: block;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(237, 227, 199, 0.8);
}

.ck-switch {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 42px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(237, 227, 199, 0.22);
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.ck-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EDE3C7;
  transition: transform 0.18s ease;
}

.ck-switch:checked { background: #6E8458; }
.ck-switch:checked::after { transform: translateX(18px); }
.ck-switch:disabled { opacity: 0.55; cursor: default; }
.ck-switch:focus-visible { outline: 2px solid #F5EEDF; outline-offset: 2px; }

.ck-legal {
  margin: 10px 0 2px;
  font-size: 13px;
  text-align: center;
  color: rgba(237, 227, 199, 0.7);
}

/* --- Hueco para que el banner no tape formularios: alto medido en vivo (--ck-h) --- */

html.ck-visible .wrap { padding-bottom: calc(var(--ck-h, 200px) + 24px); }
html.ck-visible .gate { padding-bottom: calc(var(--ck-h, 200px) + 24px); }
html.ck-visible .lp-scroll { padding-bottom: calc(var(--ck-h, 200px) + 24px); }

/* Página de registro: el banner va abajo (decisión de Alex, 16-sep). Se alarga el hero lo que mide el
   banner para que el botón principal y los enlaces legales se puedan subir por encima de él. */
html.ck-visible .hero { padding-bottom: calc(var(--ck-h, 200px) + 44px); }
html.ck-visible .legal-foot { bottom: calc(var(--ck-h, 200px) + 14px); }
