/* Cartel de cookies — Consent Mode (Google Analytics) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-text, #1a1a1a);
  color: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.5;
  color: #f0f0f0;
  margin: 0;
}

.cookie-banner__text a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

.cookie-banner__btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease;
  font-family: inherit;
}

.cookie-banner__btn--reject {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.cookie-banner__btn--reject:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cookie-banner__btn--accept {
  background: var(--color-green, #005a2f);
  color: #ffffff;
}

.cookie-banner__btn--accept:hover {
  filter: brightness(1.15);
}

@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* Link "Política de privacidad" en el footer */
.footer-privacy-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.85;
}

.footer-privacy-link:hover {
  opacity: 1;
}

/* Modal de Política de Privacidad */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.privacy-modal__panel {
  position: relative;
  background: var(--color-bg, #ffffff);
  color: var(--color-text, #1a1a1a);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 6px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.privacy-modal__panel h2 {
  margin-top: 0;
  color: var(--color-text, #1a1a1a);
}

.privacy-modal__panel h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-green, #005a2f);
  font-size: 16px;
}

.privacy-modal__panel p {
  color: var(--color-text-muted, #444444);
  line-height: 1.6;
  font-size: 14px;
}

.privacy-modal__note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #e0e0e0);
  font-style: italic;
  font-size: 12.5px;
}

.privacy-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted, #444444);
}

.privacy-modal__close:hover {
  color: var(--color-text, #1a1a1a);
}

@media (max-width: 560px) {
  .privacy-modal__panel {
    padding: 28px 20px;
  }
}
