.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  font-family: inherit;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.cookie-consent__content {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 2rem));
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  pointer-events: auto;
}

.cookie-consent.is-hidden .cookie-consent__backdrop {
  opacity: 0;
}

.cookie-consent.is-hidden .cookie-consent__content {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

/* Modo no bloqueante (p.ej. en política de privacidad) */
.cookie-consent.is-nonblocking {
  pointer-events: none;
}

.cookie-consent.is-nonblocking .cookie-consent__backdrop {
  display: none;
}

.cookie-consent.is-nonblocking .cookie-consent__content {
  position: fixed;
  inset: auto;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  pointer-events: auto;
}

.cookie-consent__text {
  flex: 1 1 320px;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 0.35rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.cookie-consent__description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2937;
}

.cookie-consent__link {
  color: #0f62fe;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus {
  color: #0844b2;
}

.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-consent__button {
  min-width: 120px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.cookie-consent__button:focus {
  outline: 3px solid rgba(15, 98, 254, 0.35);
  outline-offset: 2px;
}

.cookie-consent__button--primary {
  background: #0f62fe;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 98, 254, 0.24);
}

.cookie-consent__button--primary:hover {
  background: #0c4ecc;
  transform: translateY(-1px);
}

.cookie-consent__button--secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.cookie-consent__button--secondary:hover {
  background: #f8fafc;
  border-color: #0f62fe;
  color: #0f62fe;
}

body.cookie-consent-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .cookie-consent__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
