.cookie-consent {
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  left: 24px;
  width: auto;
  max-width: none;
  margin: 0 auto;
  padding: 20px;
  color: #28232f;
  background: #ffffff;
  border: 1px solid rgba(40, 35, 47, 0.10);
  border-radius: 18px;
  box-shadow:
    0 12px 28px rgba(40, 35, 47, 0.16),
    0 0 0 1px rgba(40, 35, 47, 0.05);
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent__copy {
  text-align: left;
}

.cookie-consent__copy h2 {
  margin: 0 0 6px;
  color: #28232f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
}

.cookie-consent__copy p {
  margin: 0;
  color: #28232f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent__copy a {
  color: #234d8d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-consent__button {
  min-height: 44px;
  padding: 10px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  border-radius: 999px;
}

.cookie-consent__button--primary {
  color: #ffffff;
  background: #28232f;
  border: 2px solid #28232f;
}

.cookie-consent__button--secondary {
  color: #28232f;
  background: #ffffff;
  border: 2px solid #28232f;
}

.cookie-consent__button:focus-visible {
  outline: 3px solid #3e6fb3;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .cookie-consent {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 18px;
  }

  .cookie-consent__content,
  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__content {
    gap: 16px;
  }

  .cookie-consent__actions {
    gap: 8px;
  }
}

/* ---- Corazón de despedida al cerrar el aviso de cookies ----
   Aparece exactamente donde estaba el popup (misma posición y tamaño,
   calculados en JS con getBoundingClientRect), con un pequeño "puff"
   de chispas alrededor. Dura ~2.4s y se auto-elimina del DOM. */
.consent-heart-poof {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.consent-heart-poof__icon {
  width: 56px;
  height: 56px;
  color: #e8536f;
  animation: consentHeartPoof 2.4s ease forwards;
}

.consent-heart-poof__spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #f6c15c;
  opacity: 0;
  animation: consentSparkPoof 1.4s ease-out forwards;
}
.consent-heart-poof__spark--1 {
  --tx: -34px;
  --ty: -30px;
  animation-delay: 0.15s;
}
.consent-heart-poof__spark--2 {
  --tx: 34px;
  --ty: -30px;
  animation-delay: 0.22s;
}
.consent-heart-poof__spark--3 {
  --tx: -30px;
  --ty: 28px;
  animation-delay: 0.3s;
}
.consent-heart-poof__spark--4 {
  --tx: 30px;
  --ty: 26px;
  animation-delay: 0.38s;
}

@keyframes consentHeartPoof {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  15% {
    transform: scale(1.15);
    opacity: 1;
  }
  30% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes consentSparkPoof {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 0;
  }
  25% {
    transform: translate(calc(var(--tx) * 0.4), calc(var(--ty) * 0.4)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.3);
    opacity: 0;
  }
}
