/* Aviso de cookies: se adapta a los colores de cada versión de la página
   (usa sus variables y, si no existen, valores propios). */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 95;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  width: min(440px, calc(100vw - 32px));
  padding: 18px;
  border: 2px solid #3a2340;
  border-radius: 22px;
  background: var(--surface-solid, var(--surface, #fff));
  color: var(--ink, #3a2340);
  font-family: inherit;
  font-size: .9375rem;
  line-height: 1.5;
  box-shadow: 5px 5px 0 #ff8fb8, 0 20px 50px -20px rgb(0 0 0 / .45);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}

.consent.is-visible {
  opacity: 1;
  transform: none;
}

.consent-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.consent-title {
  margin: 0 0 4px;
  font-weight: 800;
}

.consent-text p {
  margin: 0;
}

.consent-text a {
  color: inherit;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.consent-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Aceptar y Rechazar con el mismo peso visual (sin empujar a aceptar). */
.consent-btn {
  flex: 1 1 120px;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid #3a2340;
  border-radius: 999px;
  background: #ff8fb8;
  color: #3a2340;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 #3a2340;
  transition: transform .15s ease, box-shadow .15s ease;
}

.consent-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #3a2340;
}

.consent-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #3a2340;
}

.consent-btn:focus-visible {
  outline: 3px solid #b02a66;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .consent {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    gap: 10px 12px;
    padding: 14px;
    font-size: .8125rem;
    line-height: 1.45;
  }
  .consent-icon { font-size: 1.375rem; }
  .consent-title { font-size: .9375rem; }
}

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