* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #1a1a2e;
  overflow-y: scroll;
}

body {
  font-family: "JetBrains Mono", "Fira Code", "Ubuntu Mono", monospace;
  background: transparent;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  padding: 2rem 1rem 3rem;
}

#binary-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #1e1e1e;
  pointer-events: none;
}

.hoja {
  background: #212121;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 3rem 0.1rem;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px #00ff41,
    0 0 20px rgba(0, 255, 65, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: aparecerHoja 0.6s ease;
}

.matrix-text {
  font-family: "JetBrains Mono", monospace;
  color: #2ecc71;
  text-shadow: 0 0 10px #2ecc71;
  height: 64px;
  display: block;
  text-align: center;
  margin: 0 auto;
  margin-top: 1.5rem;
  width: fit-content;
}

.hoja-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #2ecc71;
}

.hoja-header .logo {
  width: 180px;
  height: 180px;
  margin-top: -30px;
}

.hoja-header .volver {
  display: flex;
  border: 1px solid #2ecc71;
  border-radius: 30px;
  background-color: rgba(46, 204, 113, 0.1);
  color: #fff;
  font-family: monospace;
  font-size: 1rem;
  padding: 0.5rem 0.5rem;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  margin-top: -60px;
  order: 1;
}

.hoja-header .volver:hover {
  border-color: #00ff41;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
  transform: translateY(-3px);
  color: #00ff41;
  background: rgba(46, 204, 113, 0.2);
  transition: all 0.3s ease;
}

.hoja-header #titulo {
  flex-basis: 100%;
  text-align: center;
  margin: 1rem 0 0;
  height: auto;
  white-space: nowrap;
  color: #2ecc71;
  font-size: 2.5rem;
}

footer {
  text-align: center;
  padding: 0.5rem;
  background-color: transparent;
  color: #888;
  font-size: 0.9rem;
}
