/* ========================================
   SISTEMA DE COOKIES - ESTILOS
   ======================================== */

/* Banner principal de cookies */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  transform: translateY(20px);
  max-width: 420px;
  background: #fff;
  border: 2px solid #FFC107;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-direction: column;
  gap: 16px;
}

#cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.cookie-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.cookie-banner-text {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

.cookie-banner-text a {
  color: #FFC107;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-text a:hover {
  color: #000;
}

.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.cookie-banner-buttons-main {
  display: flex;
  gap: 8px;
  flex: 1;
}

.cookie-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  white-space: nowrap;
  flex: 1;
}

.cookie-btn-icon {
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cookie-btn-primary {
  background: #FFC107;
  color: #000;
}

.cookie-btn-primary:hover {
  background: #000;
  color: #FFC107;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.cookie-btn-secondary {
  background: transparent;
  color: #000;
  border: 2px solid #000;
}

.cookie-btn-secondary:hover {
  background: #000;
  color: #fff;
}

.cookie-btn-link {
  background: transparent;
  color: #333;
  border: none;
  padding: 8px;
}

.cookie-btn-link:hover {
  color: #FFC107;
  transform: scale(1.1);
}

.cookie-btn-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Botón flotante de galleta */
#cookie-float-button {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #FFC107;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99998;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

#cookie-float-button.show {
  opacity: 1;
  transform: scale(1);
}

#cookie-float-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.4);
}

#cookie-float-button img {
  width: 28px;
  height: 28px;
  display: block;
}

/* Modal de configuración */
#cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#cookie-settings-modal.show {
  opacity: 1;
}

.cookie-settings-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#cookie-settings-modal.show .cookie-settings-content {
  transform: scale(1);
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #FFC107;
}

.cookie-settings-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.cookie-close-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.cookie-close-btn:hover {
  color: #FFC107;
}

.cookie-category {
  margin-bottom: 24px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #FFC107;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-category-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.cookie-category-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #FFC107;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cookie-settings-actions .cookie-btn {
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  #cookie-banner {
    max-width: calc(100% - 40px);
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-buttons-main {
    flex-direction: column;
  }

  #cookie-float-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .cookie-settings-content {
    padding: 24px;
    width: 95%;
  }

  .cookie-settings-title {
    font-size: 20px;
  }

  .cookie-settings-actions {
    flex-direction: column;
  }
}

