/* css/cookies.css - estilos para el banner y modal */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 50%;
  background: #f9f9f9;
  border-top: 3px solid #0078d7;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { margin: 0; font-size: 14px; color: #333; flex: 1; max-width: 80%; }
#cookie-banner a { color: #0078d7; text-decoration: none; font-weight: bold; }
.cookie-buttons { display: flex; gap: 10px; margin-left: 15px; }
.cookie-buttons button {
  padding: 10px 20px;
  border: 2px solid #0078d7;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  background: #0078d7;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}
.cookie-buttons button:hover { background: #0056b3; border-color: #0056b3; }

/* Modal */
#preferences-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 2000;
  text-align: left;
}
#modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
}
.preference-item { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; font-size: 16px; }
.preference-item label { margin-right: 10px; font-weight: bold; }
.switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; cursor: pointer; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; transition: .4s; }
.switch input:checked + .slider { background: #0078d7; }
.switch input:checked + .slider:before { transform: translateX(26px); }
#preferences-modal button { margin-top: 20px; padding: 10px 20px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; background: #0078d7; color: #fff; font-size: 14px; }
#preferences-modal button:hover { background: #0056b3; }

/* Responsive */
@media (max-width: 768px){
  #cookie-banner { width: 100%; left: 0; }
}
