/* Domain Logic — Banner de consentimiento */
.dl-cb {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #0b1a23;
  color: #cfe0eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  font-family: 'Kanit', sans-serif;
  font-weight: 300;
}
.dl-cb__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.dl-cb__text {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #cfe0eb;
  margin: 0;
}
.dl-cb__text a {
  color: #57cc99;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dl-cb__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* T6.6: los tres botones del banner y los dos del modal comparten el mismo
   estilo visual — mismo fondo, borde, tipografía, peso y tamaño.
   Criterio conservador AEPD: rechazar/configurar/aceptar sin jerarquía
   visual que empuje al usuario hacia una opción. */
.dl-cb__btn {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #dce7ee;
  color: #0b1a23;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.dl-cb__btn:hover,
.dl-cb__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 26, 35, 0.28);
  background: #cfd9e2;
}
.dl-cb__btn:focus-visible {
  outline: 2px solid #22577a;
  outline-offset: 2px;
}

/* ---- Modal de preferencias ---- */
.dl-cb-prefs {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 18, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: 'Kanit', sans-serif;
}
.dl-cb__modal {
  width: 100%;
  max-width: 560px;
}
.dl-cb__modal-inner {
  background: #fff;
  color: #0b1a23;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.dl-cb__modal h2 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 10px;
  color: #0b1a23;
}
.dl-cb__modal-lead {
  color: #5a6b78;
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 300;
  margin: 0 0 22px;
}
.dl-cb__cat {
  padding: 16px 18px;
  border: 1px solid #e3eaf0;
  border-radius: 10px;
  margin-bottom: 12px;
}
.dl-cb__cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.dl-cb__cat-head strong {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  color: #0b1a23;
}
.dl-cb__cat-tag {
  font-size: 0.72rem;
  background: #f4f7fa;
  color: #22577a;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.dl-cb__cat-desc {
  color: #5a6b78;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}
.dl-cb__switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}
.dl-cb__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.dl-cb__switch span {
  position: absolute;
  inset: 0;
  background: #d8e0e6;
  border-radius: 999px;
  transition: background 0.2s;
}
.dl-cb__switch span::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.dl-cb__switch input:checked + span {
  background: #57cc99;
}
.dl-cb__switch input:checked + span::before {
  transform: translateX(20px);
}
.dl-cb__switch input:focus-visible + span {
  outline: 2px solid #22577a;
  outline-offset: 2px;
}
.dl-cb__modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
/* T6.36: pie del modal con enlace a la Política de Cookies (AEPD). */
.dl-cb__modal-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eef2f5;
  text-align: center;
  font-size: .88rem;
  color: #5a6b78;
}
.dl-cb__modal-foot a {
  color: #22577A;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 87, 122, 0.35);
}

@media (max-width: 720px) {
  .dl-cb__inner {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }
  .dl-cb__actions {
    justify-content: stretch;
  }
  .dl-cb__btn {
    flex: 1;
    text-align: center;
  }
  .dl-cb__modal-inner {
    padding: 24px 20px;
  }
}
