body.view-404 .rr-launch,
body.view-404 .mg-consent,
body.view-404 footer,
body.view-404 header {
  display: none !important;
}

body.view-404 .site-main {
  min-height: 100vh;
  padding: 0;
}

html[data-theme="light"] body.view-404,
html[data-theme="light"] body.view-404 .site-main {
  background: #fff;
}

html[data-theme="dark"] body.view-404,
html[data-theme="dark"] body.view-404 .site-main {
  background: #000;
}

#error-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.error-404__content {
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

.error-404__image {
  display: block;
  width: min(100%, 720px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 50% 85%;
  animation:
    error-404-entrada 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    error-404-flotar 7s ease-in-out 0.7s infinite;
}

@keyframes error-404-entrada {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

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

@keyframes error-404-flotar {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(-0.6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-404__image {
    animation: none;
  }
}

.error-404__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.error-404__title-line {
  display: block;
}

.error-404__title strong,
strong.error-404__title-line {
  font-weight: 700;
}

.error-404__title-accent {
  color: var(--color-action-primary);
}

.error-404__cta {
  margin-top: 8px;
}

@media (max-width: 575.98px) {
  .error-404__content {
    gap: 16px;
  }

  .error-404__cta {
    max-width: 100%;
  }
}
