/* LlobregatCookies - banner y modal de consentimiento */
.llobregat-cookies-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #faf3e0;
  color: #282828;
  box-shadow: 0 -4px 24px rgba(40, 40, 40, 0.18);
  border-top: 3px solid #d83533;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 16px 20px;
}

.llobregat-cookies-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.llobregat-cookies-text {
  flex: 1 1 380px;
  min-width: 260px;
}

.llobregat-cookies-title {
  margin: 0 0 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #282828;
}

.llobregat-cookies-message {
  margin: 0;
  color: #282828;
}

.llobregat-cookies-policy-link {
  color: #279ed9;
  text-decoration: underline;
  font-weight: 600;
}

.llobregat-cookies-policy-link:hover {
  color: #d83533;
}

.llobregat-cookies-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.llobregat-cookies-btn {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.llobregat-cookies-btn-primary {
  background: #d83533;
  color: #ffffff;
}

.llobregat-cookies-btn-primary:hover {
  background: #b52a28;
}

.llobregat-cookies-btn-secondary {
  background: transparent;
  color: #282828;
  border-color: #282828;
}

.llobregat-cookies-btn-secondary:hover {
  background: #282828;
  color: #faf3e0;
}

.llobregat-cookies-btn-link {
  background: transparent;
  color: #279ed9;
  text-decoration: underline;
}

.llobregat-cookies-btn-link:hover {
  color: #d83533;
}

/* Botón flotante para reabrir la configuración */
.llobregat-cookies-footer-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #282828;
  color: #faf3e0;
  border: none;
  border-radius: 40px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(40, 40, 40, 0.3);
}

.llobregat-cookies-footer-btn:hover {
  background: #d83533;
}

.llobregat-cookies-icon {
  font-size: 16px;
  line-height: 1;
}

/* Modal de configuración */
.llobregat-cookies-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.llobregat-cookies-modal.llobregat-cookies-modal-open {
  display: flex;
}

.llobregat-cookies-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 40, 0.6);
}

.llobregat-cookies-modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: #282828;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(40, 40, 40, 0.35);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
}

.llobregat-cookies-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e9e2cd;
}

.llobregat-cookies-modal-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #282828;
}

.llobregat-cookies-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #666666;
  cursor: pointer;
  padding: 0 4px;
}

.llobregat-cookies-modal-close:hover {
  color: #d83533;
}

.llobregat-cookies-modal-body {
  padding: 18px 22px;
}

.llobregat-cookies-modal-intro {
  margin: 0 0 16px;
  color: #282828;
}

.llobregat-cookies-cat {
  border: 1px solid #e9e2cd;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.llobregat-cookies-cat-head {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.llobregat-cookies-cat-head > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.llobregat-cookies-cat-input {
  width: 18px;
  height: 18px;
  accent-color: #d83533;
  cursor: pointer;
}

.llobregat-cookies-cat-title {
  font-weight: 700;
  color: #282828;
}

.llobregat-cookies-cat-desc {
  margin: 8px 0 0 28px;
  color: #555555;
}

.llobregat-cookies-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid #e9e2cd;
  background: #faf3e0;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 640px) {
  .llobregat-cookies-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .llobregat-cookies-btn {
    text-align: center;
  }

  .llobregat-cookies-footer-btn .llobregat-cookies-footer-label {
    display: none;
  }

  .llobregat-cookies-footer-btn {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
}
