/* ===============================
   Estructura básica y layout
   =============================== */

.back {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  min-height: 100vh;
  background: #000; /* Fondo oscuro para contraste */
  color: #3eff5a;
}

.content.console-style {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===============================
   Tabs y botones
   =============================== */

.button-tabs,
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 700px;
}

.social-buttons {
  margin-top: 2rem;
}

.tab-btn,
.neon-button {
  background: #001100;
  border: 2px solid #3eff5a;
  color: #3eff5a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: "Bebas Neue", sans-serif;
  cursor: pointer;
  box-shadow: 0 0 10px #3eff5a88;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

.tab-btn:hover,
.tab-btn.active,
.neon-button:hover {
  background-color: #a8ff60; /* Verde pistacho */
  color: #111;
  border-color: #a8ff60;
  box-shadow:
    0 0 10px #a8ff60,
    0 0 20px #a8ff60,
    0 0 40px #a8ff60;
  animation: pulsar 1.2s infinite alternate;
}

/* Botón power con estilo distinto */
.neon-button.power {
  border-color: #ff0040;
  color: #ff0040;
  box-shadow: 0 0 10px #ff0040;
}

.neon-button.power:hover {
  background-color: #ff004055;
  box-shadow: 0 0 20px #ff0040, 0 0 40px #ff0040;
  color: #000;
}

/* Iconos en botones */
.icon {
  opacity: 0.7;
  font-size: 1.2rem;
}

/* ===============================
   Contenedor consola y scroll
   =============================== */

.console-container {
  background: #001100;
  border: 1px solid #3eff5a;
  border-radius: 8px;
  box-shadow: inset 0 0 15px #3eff5a88;
  padding: 1rem;
  color: #3eff5a;
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.4;
  max-height: 50vh;
  overflow-y: auto;
}

.hidden {
  display: none;
}

/* ===============================
   Overlay matrix (back) */
.back .matrix-overlay {
  z-index: 0;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
}

/* ===============================
   Scrollbars personalizados
   =============================== */

/* WebKit */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #5eff00;
  border-radius: 10px;
  border: 2px solid #111;
  box-shadow: 0 0 5px #15ff00;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00ff00f5;
  box-shadow: 0 0 10px #73ff00, 0 0 20px #15ff00;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #15ff00 #111;
}

/* ===============================
   Animaciones
   =============================== */

@keyframes pulsar {
  0% {
    box-shadow:
      0 0 5px #a8ff60,
      0 0 10px #a8ff60,
      0 0 20px #a8ff60;
  }
  100% {
    box-shadow:
      0 0 15px #a8ff60,
      0 0 30px #a8ff60,
      0 0 60px #a8ff60;
  }
}

.typewriter {
  white-space: pre-wrap;
  overflow: hidden;
  border-right: 2px solid #3eff5a;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.typewriter.animate {
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  50% { border-color: transparent; }
  100% { border-color: #3eff5a; }
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 768px) {
  .button-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .tab-btn,
  .neon-button {
    width: 90%;
    font-size: 18px;
    padding: 0.75rem 1rem;
  }

  .console-container {
    font-size: 14px;
    padding: 1rem;
    max-height: 60vh;
  }

  .social-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .content.console-style {
    padding: 0 1rem;
    gap: 0.75rem;
  }
}
