/* public/css/error-404.css */
/* --- Estilos de la Sección 404 --- */
.error-404-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1.5rem;
  text-align: center;
  background-color: var(--body-color);
  color: var(--text-color);
}

.error-404-content {
  max-width: 700px;
  width: 100%;
}

/* --- Estilos de la Imagen/Ilustración --- */
.error-404-image {
  margin-bottom: 2rem;
}

.error-404-image img {
  max-width: 300px;
  width: 80%;
  height: auto;
  opacity: 0.8;
}

/* --- Estilos del Texto del Error --- */
.error-404-text h1 {
  font-size: var(--h1-font-size, 1.75rem);
  color: var(--title-color);
  margin-bottom: 0.8rem;
}

.error-404-text .error-message {
  font-size: var(--normal-font-size, 0.938rem);
  color: var(--text-color-light);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.error-404-text .error-suggestion {
  font-size: var(--small-font-size, 0.813rem);
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

/* --- Estilos de la Lista de Sugerencias --- */
.error-404-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  display: inline-block;
}

.error-404-text ul li {
  margin-bottom: 0.4rem;
  font-size: var(--small-font-size, 0.813rem);
  color: var(--text-color);
}

.error-404-text ul li a {
  color: var(--first-color);
  text-decoration: underline;
  font-weight: var(--font-medium, 500);
}

.error-404-text ul li a:hover {
  text-decoration: none;
}

/* --- Estilos del Botón "Volver al Inicio" --- */
.btn-404-home {
  display: inline-block;
  padding: 0.9rem 3rem;
  border: 1px solid var(--first-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 11px;
  font-weight: var(--font-medium, 500);
  font-size: var(--normal-font-size, 0.938rem);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: color 0.3s ease 0.15s transform 0.2s ease-out;
}

.btn-404-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--first-color);
  z-index: -1;
  transition: width 0.3s ease-out;
}

.btn-404-home:hover {
  color: var(--white-color);
  transform: scale(1.05);
}

.btn-404-home:hover::before {
  width: 100%;
}

.btn-404-home:active {
  transform: scale(1.02);
}

/* --- Layout Responsivo para 2 columnas en pantallas grandes --- */
@media screen and (min-width: 768px) {
  .error-404-section {
    text-align: left;
  }
  .error-404-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
  }

  .error-404-image {
    flex: 0 0 45%;
    max-width: 45%;
    margin-bottom: 0;
    text-align: center;
  }
  .error-404-image img {
    max-width: 100%;
    width: auto;
  }

  .error-404-text {
    flex: 1 1 55%;
    text-align: left;
  }

  .error-404-text h1 {
    font-size: calc(var(--h1-font-size, 1.75rem) * 1.2);
  }

  .error-404-text ul {
    display: block;
    padding-left: 1.5rem;
    list-style-type: disc;
    text-align: left;
  }
}