/* ===== Banner de cookies - Macías Rubiales Abogados ===== */
.cmp-banner,
.cmp-modal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1F3A2E;
  box-sizing: border-box;
}
.cmp-banner *,
.cmp-modal * { box-sizing: border-box; }

/* Banner inferior */
.cmp-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  background: #FFFFFF;
  border: 1px solid rgba(184,153,98,.35);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(23,40,31,.18);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  animation: cmp-fade-in .28s ease;
}
@keyframes cmp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.cmp-banner__text {
  flex: 1 1 320px;
  min-width: 280px;
  font-size: 14px;
  line-height: 1.55;
  color: #2A3D33;
}
.cmp-banner__text strong { color: #1F3A2E; font-weight: 600; }
.cmp-banner__text a {
  color: #1F3A2E;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cmp-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cmp-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1;
}
.cmp-btn--primary {
  background: #1F3A2E;
  color: #FFFFFF;
}
.cmp-btn--primary:hover { background: #17281F; }
.cmp-btn--secondary {
  background: #FFFFFF;
  color: #1F3A2E;
  border-color: rgba(31,58,46,.25);
}
.cmp-btn--secondary:hover {
  background: #F5F0E4;
  border-color: rgba(31,58,46,.5);
}
.cmp-btn--ghost {
  background: transparent;
  color: #5A5A5A;
  padding: 11px 16px;
}
.cmp-btn--ghost:hover { color: #1F3A2E; }

/* Modal de preferencias */
.cmp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(23,40,31,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cmp-fade-in .22s ease;
}
.cmp-modal__panel {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.cmp-modal__head {
  padding: 22px 26px 14px;
  border-bottom: 1px solid rgba(31,58,46,.08);
}
.cmp-modal__head h2 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #1F3A2E;
  letter-spacing: -.01em;
}
.cmp-modal__head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5A5A5A;
}
.cmp-modal__body {
  padding: 8px 26px 12px;
  overflow-y: auto;
  flex: 1;
}
.cmp-cat {
  border-bottom: 1px solid rgba(31,58,46,.08);
  padding: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cmp-cat:last-child { border-bottom: none; }
.cmp-cat__main { flex: 1; }
.cmp-cat__title {
  font-size: 15px;
  font-weight: 600;
  color: #1F3A2E;
  margin: 0 0 4px;
}
.cmp-cat__desc {
  font-size: 13px;
  line-height: 1.5;
  color: #5A5A5A;
  margin: 0;
}
/* Toggle */
.cmp-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cmp-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.cmp-toggle__track {
  position: absolute;
  inset: 0;
  background: #D2D6D2;
  border-radius: 999px;
  transition: background .18s ease;
}
.cmp-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.cmp-toggle input:checked ~ .cmp-toggle__track { background: #1F3A2E; }
.cmp-toggle input:checked ~ .cmp-toggle__track::after { transform: translateX(18px); }
.cmp-toggle input:disabled ~ .cmp-toggle__track {
  background: #1F3A2E;
  opacity: .55;
  cursor: not-allowed;
}
.cmp-toggle input:disabled { cursor: not-allowed; }

.cmp-modal__foot {
  padding: 16px 26px 22px;
  border-top: 1px solid rgba(31,58,46,.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsive */
@media (max-width: 640px) {
  .cmp-banner {
    left: 12px; right: 12px; bottom: 12px;
    padding: 18px 18px;
    border-radius: 12px;
  }
  .cmp-banner__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .cmp-btn { width: 100%; text-align: center; }
  .cmp-modal__head h2 { font-size: 22px; }
  .cmp-modal__foot { flex-direction: column; }
  .cmp-modal__foot .cmp-btn { width: 100%; text-align: center; }
}
