/* cookie-consent.css — v2 */

/* ─── Banner principal ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #f0f0f0;
  padding: 1.25rem 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
  /* Empieza oculto debajo */
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-sizing: border-box;
}

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

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(240,240,240,0.88);
}

.cookie-banner a {
  color: #7ec8cb;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner a:hover {
  color: #fff;
}

/* ─── Botones ────────────────────────────────────────────────── */
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #f0f0f0;
  color: #111;
  border-color: #f0f0f0;
}

.cookie-btn-accept:hover {
  background: #fff;
  border-color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(240,240,240,0.7);
  border-color: rgba(240,240,240,0.3);
}

.cookie-btn-reject:hover {
  background: rgba(255,255,255,0.08);
  color: #f0f0f0;
  border-color: rgba(240,240,240,0.6);
}

/* ─── Layout horizontal en escritorio ───────────────────────── */
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2.5rem;
    gap: 2rem;
  }

  .cookie-banner p {
    flex: 1;
    max-width: 780px;
    font-size: 0.88rem;
  }
}

/* ─── Enlace en el footer ────────────────────────────────────── */
.cookie-manage-link {
  font-size: 0.82rem !important;
  opacity: 0.65;
  text-decoration: none !important;
  font-weight: 400 !important;
  color: inherit !important;
  transition: opacity 0.2s;
  border-bottom: none !important;
}

.cookie-manage-link:hover {
  opacity: 1 !important;
}

/* ─── Placeholder de mapa bloqueado ─────────────────────────── */
.cookie-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2rem;
  background: #f3f3f3;
  border: 2px dashed #d0d0d0;
  border-radius: 10px;
  color: #555;
  width: 100%;
  min-height: 350px;
  box-sizing: border-box;
  font-family: inherit;
}

.cookie-map-placeholder p {
  margin: 0;
  font-size: 1rem;
  max-width: 360px;
  line-height: 1.5;
  color: #444;
}

.cookie-map-placeholder button {
  padding: 0.65rem 1.4rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.cookie-map-placeholder button:hover {
  opacity: 0.85;
}
