/* Overlay gris oscuro para el modal */
#modalCookies {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 34, 34, 0.92);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}

/* Panel principal con fondo oscuro y letra blanca */
#modalCookies .modal-content {
  background-color: #222;
  color: #fff;
  padding: 28px 16px 18px 16px;
  border-radius: 8px;
  min-width: 320px; 
  width: 95%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Icono cerrar: blanco */
#modalCookies .close {
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px; right: 20px;
  background: none;
  border: none;
  outline: none;
}

/* Fieldset y leyenda, fondo y letra */
#cookiesForm fieldset {
  background: #282828;
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  margin-bottom: 15px;
  padding: 10px;
}
#cookiesForm legend {
  color: #fff;
  font-weight: bold;
}

/* Botón guardar en gris claro */
#cookiesForm button {
  background: #bbb;
  color: #222;
  border: none;
  border-radius: 5px;
  padding: 10px 18px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 7px;
  transition: background 0.25s;
}
#cookiesForm button:disabled,
#cookiesForm button[disabled] {
  background: #e1e1e1;
  color: #888;
  cursor: not-allowed;
}

/* Inputs radio en azul */
#cookiesForm input[type="radio"] {
  color: #9fc9f5;
}
/* Labels con texto blanco */
#cookiesForm label {
  color: #fff;
}

/* Fuentes uniformes */
#modalCookies, #modalCookies input, #modalCookies label {
  font-family: inherit;
}
