/* ==========================================================================
   AVISO DE COOKIES — Banner minimo, no bloqueante.
   ========================================================================== */

.cookie-note {
  position: fixed;
  z-index: 120;
  left: clamp(0.75rem, 3vw, 2rem);
  bottom: clamp(0.75rem, 3vw, 2rem);
  width: min(420px, calc(100% - 1.5rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(200, 173, 131, 0.3);
  border-radius: 12px;
  background: rgba(8, 10, 12, 0.94);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-note[hidden] { display: none; }

.cookie-note__text {
  flex: 1 1 220px;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #aeb5ba;
}

.cookie-note__text a { color: #c8ad83; text-decoration: underline; }

.cookie-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-note__btn {
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(200, 173, 131, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #c8ad83;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.cookie-note__btn--accept { background: #c8ad83; color: #080a0c; }
.cookie-note__btn:hover { background: rgba(200, 173, 131, 0.2); }
.cookie-note__btn--accept:hover { background: #d8bd93; }
.cookie-note__btn:focus-visible { outline: 2px solid #c8ad83; outline-offset: 2px; }

/* En móvil el aviso ocupa todo el ancho y se compacta para no tapar el CTA
   del HERO (el bloque del HERO reserva espacio cuando el aviso está visible). */
@media (max-width: 767px) {
  .cookie-note {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    gap: 0.5rem 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
  }

  .cookie-note__text {
    flex: 1 1 100%;
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .cookie-note__actions {
    width: 100%;
    flex-wrap: nowrap;
  }

  .cookie-note__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* De 768 px en adelante el aviso pasa a barra inferior de una sola fila. En
   portatiles el HERO ocupa casi todo el alto, asi que una tarjeta flotante de
   142 px tapaba los botones: la barra fina los deja siempre libres. */
@media (min-width: 768px) {
  .cookie-note {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    flex-wrap: nowrap;
    gap: 0.5rem 1.25rem;
    padding: 0.7rem clamp(1.25rem, 3vw, 2.25rem);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
  }

  .cookie-note__text {
    flex: 1 1 auto;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .cookie-note__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .cookie-note__btn {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-note__btn { transition: none; }
}
