/* Paleta actual de Punto Salitre; estructura del consentimiento conservada. */
.consent {
  --ps-ink: var(--ink, #142f36);
  --ps-muted: var(--muted, #566a6f);
  --ps-paper: var(--paper, #fffaf1);
  --ps-cream: var(--cream, #f4ede1);
  --ps-line: var(--line, rgba(20, 47, 54, 0.2));
  --ps-accent: var(--orange, #9a5236);
  --ps-font-display:
    "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --ps-font-text: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --e1: 0.25rem;
  --e2: 0.5rem;
  --e3: 1rem;
  --e4: 1.5rem;
  --e5: 2.5rem;
  --e6: 4rem;
  --radio: 18px;
  --radio-sm: 10px;
  --radio-pill: 999px;
  --t-rapida: 180ms;
  font-family: var(--ps-font-text);
  line-height: 1.6;
}
/* ---------- Banner de cookies ---------- */
/* Los dos botones conservan el mismo peso visual. */
.consent {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--e3);
  padding-bottom: max(var(--e3), env(safe-area-inset-bottom));
  pointer-events: none;
}
.consent-caja {
  pointer-events: auto;
  max-width: 44rem;
  margin: 0 auto;
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  padding: var(--e4);
  border-radius: var(--radio);
  background: var(--ps-paper);
  color: var(--ps-ink);
  border: 1px solid var(--ps-line);
  box-shadow: 0 30px 70px -20px rgba(20, 47, 54, 0.25);
}
.consent :focus-visible {
  outline-color: var(--ps-ink);
}
.consent-titulo {
  margin: 0 0 var(--e2);
  font-family: var(--ps-font-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.1;
}
.consent-titulo:focus {
  outline: none;
}
.consent-texto {
  margin: 0 0 var(--e3);
  font-size: 0.92rem;
  color: var(--ps-muted);
}
.consent-enlace {
  color: var(--ps-accent);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.consent-botones {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--e2);
}
.consent-boton {
  appearance: none;
  cursor: pointer;
  min-height: 2.9rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radio-pill);
  border: 1px solid var(--ps-accent);
  background: var(--ps-accent);
  color: var(--ps-paper);
  font-family: var(--ps-font-text);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition:
    background var(--t-rapida),
    color var(--t-rapida);
}
.consent-boton:hover {
  background: var(--ps-cream);
  color: var(--ps-accent);
}
.consent-lista {
  display: grid;
  gap: var(--e2);
  margin: 0 0 var(--e3);
}
.consent-opcion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e3);
  padding: var(--e3);
  border-radius: var(--radio-sm);
  background: var(--ps-cream);
  cursor: pointer;
}
div.consent-opcion {
  cursor: default;
}
.consent-opcion-texto {
  display: grid;
  gap: 0.15rem;
  font-size: 0.86rem;
  color: var(--ps-muted);
}
.consent-opcion-texto strong {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--ps-ink);
}
.consent-fija {
  flex: none;
  font-size: 0.78rem;
  color: var(--ps-accent);
}
.consent-interruptor {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 3rem;
  height: 1.7rem;
  margin: 0;
  border-radius: var(--radio-pill);
  background: #ddd5c8;
  border: 1px solid var(--ps-line);
  cursor: pointer;
  transition:
    background var(--t-rapida),
    border-color var(--t-rapida);
}
.consent-interruptor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--ps-paper);
  transform: translateY(-50%);
  transition: left var(--t-rapida);
}
.consent-interruptor:checked {
  background: var(--ps-accent);
  border-color: var(--ps-accent);
}
.consent-interruptor:checked::after {
  left: calc(100% - 1.35rem);
}
.consent-detalle {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem var(--e3);
  margin: calc(-1 * var(--e1)) 0 0;
  padding: var(--e3);
  border-radius: var(--radio-sm);
  background: var(--ps-cream);
  font-size: 0.84rem;
  color: var(--ps-muted);
}
.consent-detalle dt {
  font-weight: 600;
  color: var(--ps-ink);
}
.consent-detalle dd {
  margin: 0;
}
.consent-panel .consent-caja {
  padding-bottom: 0;
}
.consent-fijos {
  position: sticky;
  bottom: 0;
  margin: 0 calc(-1 * var(--e4));
  padding: var(--e3) var(--e4);
  background: var(--ps-paper);
  border-top: 1px solid var(--ps-line);
}
@media (max-width: 480px) {
  .consent {
    padding: var(--e2);
    padding-bottom: max(var(--e2), env(safe-area-inset-bottom));
  }
  .consent-caja {
    padding: var(--e3);
  }
  .consent-botones {
    grid-auto-flow: row;
  }
}
@media (max-width: 600px) {
  .consent-detalle {
    grid-template-columns: 1fr;
  }
  .consent-detalle dd {
    margin-bottom: 0.35rem;
  }
  .consent-fijos {
    margin: 0 calc(-1 * var(--e3));
    padding: var(--e2) var(--e3);
  }
}
.consent input.consent-interruptor {
  width: 3rem;
  height: 1.7rem;
  padding: 0;
}
