/* ============================================================
   demokratian — espacio-errors.css
   Estilos para páginas de error (404, site error, data error).
   Carga después de components.css y espacio.css.
   ============================================================ */

/* ── Sección de error ─────────────────────────────────────── */
.error-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

/* Decoración de fondo: número grande */
.error-bg-num {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(220px, 28vw, 420px);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

/* ── Contenido ────────────────────────────────────────────── */
.error-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.error-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 28px;
}
.error-code::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--green);
}

.error-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 24px;
}
.error-title em {
  font-style: italic;
  color: var(--green-display);
}

.error-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 48ch;
  margin-bottom: 40px;
}

/* ── Acciones ─────────────────────────────────────────────── */
.error-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── Sugerencias ──────────────────────────────────────────── */
.error-suggestions {
  border-top: 1px solid var(--line-soft);
  padding-top: 36px;
}
.error-suggestions-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}
.error-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.error-suggestions-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.error-suggestions-list a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green-soft);
}
.error-suggestions-list a svg { flex-shrink: 0; color: var(--green-deep); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .error-bg-num {
    right: -5vw;
    opacity: 0.5;
  }
  .error-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Mantenimiento (Errors/mantenimiento.php) ─────────────────
   Pagina autonoma, sin nav ni pie del sitio: lleva su propia
   franja con el logo y una linea de pie. El fondo decorativo es
   un icono en vez del numero de la 404. */
.mant-top {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mant-logo {
  max-height: 40px;
  width: auto;
}
.mant-page {
  min-height: calc(100vh - 150px);
}
/* En el sitio 0 .esp-wrap no lleva margen lateral (lo pone landing.css,
   que aqui no se carga); y en .error-page, que es flex, el wrap encoge y
   se centra. Ancho completo para que logo, texto y pie queden alineados. */
.mant-top > .esp-wrap,
.mant-page > .esp-wrap,
.mant-foot > .esp-wrap {
  width: 100%;
  padding: 0 clamp(20px, 4vw, 48px);
}
.error-bg-icon {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  font-size: clamp(200px, 26vw, 380px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
}
.mant-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
}
.mant-note i {
  color: var(--green-deep);
  margin-top: 3px;
}
.mant-foot {
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--slate);
}
@media (max-width: 640px) {
  .error-bg-icon {
    right: -12vw;
    opacity: 0.5;
  }
}
