/* ===== Banner de cookies SFM - Opción A (inferior) ===== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(29, 44, 91, 0.98); /* azul corporativo casi opaco */
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner--hide {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-banner__inner {
  max-width: 1100px;
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 260px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-banner__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.cookie-banner__link {
  color: #7ebc42; /* verde acento */
  font-weight: 500;
  text-decoration: underline;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus {
  text-decoration: none;
}

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn--primary {
  background: #7ebc42;
  color: #1d2c5b;
}

.cookie-btn--primary:hover {
  background: #93cf59;
}

.cookie-btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Versión móvil: todo en columna centrada */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 0.9rem 0.8rem 1.1rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__buttons {
    width: 100%;
    justify-content: flex-start;
  }
}
