/* ===== BANNER DE COOKIES ===== */
/* ===== BANNER DE COOKIES ===== */
#cookie-banner,
#gdpr-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 30px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 25px;
  align-items: center;
}

.cookie-icon {
  width: 50px;
  height: 50px;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-icon svg {
  width: 28px;
  height: 28px;
  color: #E85D04;
}

.cookie-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.cookie-text p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

.cookie-link {
  margin-top: 8px !important;
}

.cookie-link a {
  color: #E85D04;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-link a:hover {
  color: #F48C06;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-accept {
  background: #E85D04;
  color: #FFFFFF;
}

.btn-accept:hover {
  background: #F48C06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.3);
}

.btn-config {
  background: transparent;
  color: #1A1A1A;
  border: 2px solid #E5E7EB;
}

.btn-config:hover {
  border-color: #E85D04;
  color: #E85D04;
}

.btn-reject {
  background: transparent;
  color: #6B7280;
  border: 2px solid #E5E7EB;
}

.btn-reject:hover {
  border-color: #6B7280;
  color: #1A1A1A;
}

/* ===== MODAL DE CONFIGURACIÓN ===== */
#cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.cookie-modal-content {
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  color: #1A1A1A;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6B7280;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #1A1A1A;
}

.cookie-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #E5E7EB;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.cookie-category-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.cookie-category-header p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E5E7EB;
  transition: 0.3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #E85D04;
}

input:checked+.slider:before {
  transform: translateX(24px);
}

.switch.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch.disabled .slider {
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== BOTÓN FLOTANTE DE CONFIGURACIÓN ===== */
#cookie-config-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: #E85D04;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  transition: all 0.3s ease;
}

#cookie-config-float svg {
  width: 24px;
  height: 24px;
  color: #FFFFFF;
}

#cookie-config-float:hover {
  background: #F48C06;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cookie-banner-content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .cookie-icon {
    margin: 0 auto;
  }

  .cookie-buttons {
    justify-content: center;
  }

  .btn-cookie {
    flex: 1;
    min-width: 120px;
  }

  .cookie-modal-content {
    margin: 0 10px;
  }

  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 20px;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .switch {
    align-self: flex-start;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .btn-cookie {
    width: 100%;
  }

  #cookie-config-float {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
  }

  #cookie-config-float svg {
    width: 20px;
    height: 20px;
  }
}