
/* =============================
   ESTILOS GERAIS
============================= */
body {
  background: #fff;
  color: #333;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* =============================
   SEÇÃO PRINCIPAL DO ERRO 404
============================= */
.section-404 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 100px 40px 180px 40px;
  max-width: 1300px;
  margin: 0 auto;
  min-height: 80vh;
  z-index: 1;
}

/* Fundo ilustrado com ondas suaves */
.section-404::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 380px;
  background-size: cover;
  z-index: 0;
  opacity: 0.9;
}

/* Imagem da boneca */
.section-404 .img-wrapper {
  order: 1;
  position: relative;
  z-index: 2;
}

.section-404 img {
  width: 480px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Texto à direita */
.section-404 .text-content {
  flex: 1;
  min-width: 320px;
  padding: 20px 40px;
  position: relative;
  z-index: 2;
  order: 2;
}

.section-404 h1 {
  font-size: 42px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-404 h1 span {
  color: #7245e5;
}

.section-404 p {
  color: #4b5563;
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 520px;
}

/* Botão voltar */
.section-404 .btn-voltar {
  display: inline-block;
  background: #7245e5;
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(114, 69, 229, 0.25);
}

.section-404 .btn-voltar:hover {
  background: #5c34cb;
  transform: translateY(-2px);
}

.section-404 { margin-top:40px !important;}

/* =============================
   RESPONSIVIDADE
============================= */
@media (max-width: 991px) {
  .section-404 {
    flex-direction: column;
    text-align: center;
    padding: 80px 20px 160px 20px;
  }
.section-404 { margin-top:0px !important;}
  /* texto vem primeiro no mobile */
  .section-404 .text-content {
    order: 1;
    padding: 0 0 40px 0;
  }

  .section-404 .img-wrapper {
    order: 2;
  }

  .section-404 h1 {
    font-size: 32px;
  }

  .section-404 p {
    font-size: 15px;
    margin: 0 auto 35px;
  }

  .section-404 img {
    width: 330px;
  }
}