/* Correcciones globales */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* evita que algo se desborde horizontalmente */
  box-sizing: border-box;
}

/* Aplica box-sizing global */
*, *::before, *::after {
  box-sizing: inherit;
}

/* Estilos del banner */
.cookie-banner {
  position: fixed;
  bottom: 15px;
  left: 0;
  width: 100%;
  max-width: 100vw; /* evita desbordes horizontales */
  background: #000; /* Fondo negro */
  color: #fff; /* Texto blanco */
  border-top: 1px solid #333;
  padding: 15px 20px;

  display: flex;
  flex-direction: column; /* texto arriba, botones debajo */
  justify-content: center;
  align-items: center;

  font-family: Arial, sans-serif;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

/* Texto del banner */
.cookie-banner p {
  margin: 0 0 15px 0;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  max-width: 95vw; /* evita que se desborde en pantallas pequeñas */
}

/* Contenedor de botones */
.cookie-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* por si en móviles no cabe en una sola línea */
}

/* Botones */
.cookie-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  background-color: #007bff; /* Azul */
  color: white;
  transition: background 0.3s ease;
}

/* Hover */
.cookie-buttons button:hover {
  background-color: #0056b3;
}

/* Ocultar banner */
.cookie-banner.hidden {
  display: none;
}