/* COOKIES.CSS - Sistema completo RGPD */
/* (Mantén el contenido original que ya proporcionaste) */

/* ================= BANNER PRINCIPAL ================= */
#cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  font-family: 'Inter', sans-serif;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cookie-banner[aria-hidden="false"] {
  display: flex;
}
.cookie-content {
  background: #0F172A;
  color: #E2E8F0;
  padding: 30px 35px;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.cookie-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.cookie-text strong {
  color: #B68B40;
}
.cookie-text a {
  color: #B68B40;
  text-decoration: underline;
  font-weight: 500;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
}
.cookie-accept {
  background: #B68B40;
  color: #0F172A;
}
.cookie-accept:hover {
  background: #8B5A2B;
  transform: translateY(-1px);
}
.cookie-reject {
  background: #1E293B;
  color: #CBD5E1;
  border: 1px solid #334155;
}
.cookie-reject:hover {
  background: #334155;
}
.cookie-configure {
  background: transparent;
  color: #94A3B8;
  border: 1px solid #475569;
}
.cookie-configure:hover {
  background: #1E293B;
  color: #E2E8F0;
}

/* ================= PANEL DE CONFIGURACIÓN ================= */
#cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: none;
  font-family: 'Inter', sans-serif;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cookie-settings[aria-hidden="false"] {
  display: flex;
}
.cookie-panel {
  background: #FFFFFF;
  color: #1E293B;
  padding: 35px 40px;
  border-radius: 16px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.cookie-panel h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  color: #0F172A;
}
.cookie-panel > p {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.5;
}
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #F8FAFC;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.cookie-option:hover {
  border-color: #B68B40;
}
.cookie-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #B68B40;
  cursor: pointer;
}
.cookie-option label {
  flex: 1;
  cursor: pointer;
}
.cookie-option strong {
  display: block;
  font-size: 15px;
  color: #0F172A;
  margin-bottom: 5px;
}
.cookie-option span {
  font-size: 13px;
  color: #64748B;
  line-height: 1.4;
}
.cookie-option.required {
  opacity: 0.7;
}
.cookie-option.required input {
  cursor: not-allowed;
}
.cookie-option.required strong::after {
  content: " (Necesaria)";
  color: #B68B40;
  font-size: 12px;
  font-weight: 500;
}
.cookie-panel-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
}
.cookie-panel-actions .cookie-btn {
  flex: 1;
}
.cookie-save {
  background: #B68B40;
  color: #0F172A;
}
.cookie-save:hover {
  background: #8B5A2B;
}
.cookie-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}
.cookie-cancel:hover {
  background: #E2E8F0;
}

/* ================= BOTÓN FLOTANTE ================= */
#cookie-floating-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #0F172A;
  color: #B68B40;
  border: 2px solid #B68B40;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}
#cookie-floating-btn:hover {
  transform: scale(1.1);
  background: #1E293B;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  #cookie-banner,
  #cookie-settings {
    padding: 10px;
    align-items: flex-end;
  }
  .cookie-content,
  .cookie-panel {
    padding: 25px 20px;
    border-radius: 12px 12px 0 0;
    max-height: 85vh;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
  }
  .cookie-panel-actions {
    flex-direction: column;
  }
  #cookie-floating-btn {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Animaciones */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-content,
.cookie-panel {
  animation: slideUp 0.3s ease;
}
#cookie-settings {
  overflow-y: auto;
}