/* Cartel de cookies — ATELIER HAUS
   Rechazar y Aceptar tienen el mismo tamaño y el mismo peso visual: la AEPD
   exige que rechazar no sea más costoso que aceptar. */

.ck_fons {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  padding: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
.ck_fons.ck_obert { opacity: 1; transform: none; }

.ck_caixa {
  pointer-events: auto;
  background: #fff;
  color: #11130F;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  border: 1px solid rgba(17, 19, 15, .12);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  padding: 22px 24px 20px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.ck_titol {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}

.ck_text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
  color: #3F4441;
}

.ck_enllac {
  font-size: 14px;
  color: #45B96A;
  text-decoration: underline;
}

/* ── Detalle por categorías ─────────────────────────────────────────────── */

.ck_panell {
  margin: 16px 0 4px;
  border-top: 1px solid rgba(17, 19, 15, .12);
  padding-top: 14px;
}
.ck_panell[hidden] { display: none; }

.ck_fila { margin-bottom: 14px; }
.ck_fila:last-child { margin-bottom: 0; }

.ck_fila_cap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.ck_fila_cap input { width: 17px; height: 17px; accent-color: #45B96A; cursor: pointer; }
.ck_fila_cap input:disabled { cursor: default; opacity: .6; }

.ck_fila_nom { font-size: 14px; font-weight: 600; }

.ck_fila_desc {
  font-size: 13px;
  line-height: 1.5;
  color: #6B7280;
  margin: 5px 0 0 27px;
}

/* ── Botones ────────────────────────────────────────────────────────────── */

.ck_botons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ck_boto {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(17, 19, 15, .16);
  background: #fff;
  color: #11130F;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ck_boto:hover { border-color: #45B96A; }
.ck_boto[hidden] { display: none; }

/* Rechazar y Aceptar, idénticos en tamaño */
.ck_boto_igual { flex: 1 1 0; min-width: 120px; text-align: center; }

.ck_boto_si {
  background: #45B96A;
  border-color: #45B96A;
  color: #fff;
}
.ck_boto_si:hover { background: #3BA75D; border-color: #3BA75D; }

/* Configurar es secundario: no compite con las dos decisiones */
.ck_boto_text {
  border-color: transparent;
  background: transparent;
  color: #6B7280;
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: underline;
  flex: 0 0 auto;
}
.ck_boto_text:hover { border-color: transparent; color: #11130F; }

@media (max-width: 520px) {
  .ck_caixa { padding: 18px 18px 16px; border-radius: 16px; }
  .ck_botons { gap: 8px; }
  .ck_boto_text { order: 3; width: 100%; text-align: center; margin-top: 2px; }
}

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

/* Franja legal de agent.html */
.at_legal {
  font-size: 12px;
  line-height: 1.6;
  color: #6B7280;
  text-align: center;
  padding: 14px 20px;
  margin: 0;
  border-top: 1px solid rgba(17, 19, 15, .12);
}
.at_legal a { color: #6B7280; }
.at_legal a:hover { color: #11130F; }
