/* ======================= Barra de cookies Animajoc ======================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #06425c; /* Azul Animajoc */
  color: white;
  display: none; /* se activa con JS */
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  flex-wrap: wrap;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
}

/* Enlaces dentro de la barra */
.cookie-banner a {
  color: #1abc9c;
  text-decoration: underline;
}

/* Contenedor de texto flexible */
.cookie-text {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 60%;
  min-width: 180px;
}

/* Contenedor de botones: nunca se cortan */
.cookie-buttons {
  display: flex;
  gap: 6px;
  flex: 1 1 auto; /* se adapta al ancho disponible */
  justify-content: flex-end;
  margin-left: -10px; /* ligera “empujada” a la izquierda en escritorio */
  margin-right: 40px; /* mueve los botones ligeramente hacia la izquierda */
}

/* Botones de acción */
.cookie-buttons button {
  padding: 5px 14px; /* suficiente espacio para el texto */
  border: none;
  border-radius: 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  white-space: nowrap; /* evita que el texto se rompa */
  min-width: 80px; /* asegura que “Rechazar” quepa */
}

#accept-cookies {
  background-color: #1abc9c;
  color: white;
}

#reject-cookies {
  background-color: #ff6b6b;
  color: white;
}

/* Hover efecto ligero */
.cookie-buttons button:hover {
  transform: scale(1.05);
}

/* ======================= Responsive para móviles ======================= */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 8px 10px;
  }

  .cookie-buttons {
    justify-content: center;
    flex: 1 1 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
  }

  .cookie-buttons button {
    font-size: 0.75rem;
    padding: 4px 10px;
    min-width: 0; /* se adapta al contenido */
  }

  .cookie-text {
    justify-content: center; /* centra el texto en móvil */
    flex: 1 1 100%;
    margin-bottom: 6px;
  }
}
