/* =========================================================
   notfound.css — página 404
   ========================================================= */

.nf {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16, 4rem) var(--space-4, 1rem);
  overflow: hidden;
}

.nf__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* ── Glitch 404 ─────────────────────────────────────────── */
.nf__glitch {
  font-family: var(--font-display);
  font-size: clamp(7rem, 25vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--line-2, #333);
  position: relative;
  user-select: none;
  animation: nf-float 6s ease-in-out infinite;
}

.nf__glitch::before,
.nf__glitch::after {
  content: '404';
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

.nf__glitch::before {
  left: -3px;
  animation: nf-glitch-1 3.5s infinite linear;
  opacity: 0.6;
}

.nf__glitch::after {
  left: 3px;
  animation: nf-glitch-2 3.5s infinite linear;
  opacity: 0.4;
}

@keyframes nf-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes nf-glitch-1 {
  0%, 90%, 100% { clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); transform: translateX(0); }
  92%           { clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%); transform: translateX(-4px); }
  95%           { clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%); transform: translateX(4px); }
}

@keyframes nf-glitch-2 {
  0%, 85%, 100% { clip-path: polygon(0 55%, 100% 55%, 100% 70%, 0 70%); transform: translateX(0); }
  87%           { clip-path: polygon(0 70%, 100% 70%, 100% 85%, 0 85%); transform: translateX(3px); }
  91%           { clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); transform: translateX(-3px); }
}

/* ── Body ────────────────────────────────────────────────── */
.nf__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 480px;
}

.nf__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

.nf__sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ── Acciones ────────────────────────────────────────────── */
.nf__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.nf__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--dim);
  margin-top: 0.5rem;
}

.nf__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-base);
}

.nf__links a:hover {
  color: var(--text);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .nf__actions {
    flex-direction: column;
    width: 100%;
  }

  .nf__actions .btn {
    width: 100%;
    justify-content: center;
  }
}