/* Banner de consentimiento GDPR - Memoviaje */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(22, 18, 15, 0.95);
  color: #fff;
  padding: 20px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  z-index: 9999;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-consent-text {
  flex: 1;
  min-width: 250px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.cookie-consent-text a {
  color: #C9922E;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 146, 46, 0.5);
  transition: border-color 0.2s;
}

.cookie-consent-text a:hover {
  border-bottom-color: #C9922E;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.cookie-consent-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  flex-shrink: 0;
}

.cookie-consent-btn-accept {
  /* #C9922E con texto blanco daba 2.75:1 (WCAG AA exige 4.5:1 en texto normal) —
     detectado en la auditoría visual del 28/08/2026. Este tono, más oscuro, da ~5:1. */
  background: #96661C;
  color: #fff;
}

.cookie-consent-btn-accept:hover {
  background: #7d5517;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(150, 102, 28, 0.3);
}

.cookie-consent-btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-reject:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.cookie-consent-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* En pantallas pequeñas */
@media (max-width: 640px) {
  .cookie-consent {
    padding: 16px;
  }

  .cookie-consent-container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .cookie-consent-text {
    min-width: auto;
  }

  .cookie-consent-buttons {
    justify-content: stretch;
    gap: 8px;
  }

  .cookie-consent-btn {
    flex: 1;
    padding: 14px 12px;
    font-size: 0.85rem;
  }
}
