/* Estilo general del sitio */
body {
  font-family: monospace;
  margin: 0;
  background: #111;
  color: #eee;
}

/* Encabezado */
header {
  background: #222;
  padding: 1em;
  text-align: center;
}

/* Menú de categorías */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1em;
  background: #1a1a1a;
}

nav button {
  margin: 0.2em;
  padding: 0.5em 1em;
  border: none;
  background: #333;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

nav button:hover {
  background: #555;
}

/* Contenedor de tarjetas */
main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1em;
}

/* Tarjeta de recurso */
.card {
  background: #1a1a1a;
  border-radius: 10px;
  margin: 1em;
  width: 300px;
  padding: 1em;
  border: 2px solid #333;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 0.5em;
}

.card h2 {
  color: #0ff;
  margin-top: 0;
}

.card p {
  font-size: 0.95em;
}

/* Colores por categoría */
.electronicos {
  border-color: #00ffff;
}

.mecanicos {
  border-color: #ff9800;
}

.software {
  border-color: #8bc34a;
}

/* CLI - Línea de comandos estilo terminal */
.cli {
  background: #000;
  color: #0f0;
  padding: 1em;
  font-family: monospace;
  border-top: 2px solid #222;
}

/* Salida de comandos */
#terminal-output {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 0.5em;
  padding: 0.5em;
  background: #111;
  border: 1px solid #333;
  border-radius: 5px;
}

#terminal-output div {
  white-space: pre-wrap;
  line-height: 1.4em;
  margin: 2px 0;
}

/* Línea de entrada de comandos */
.prompt {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.prompt span {
  color: #0f0;
}

.prompt input {
  background: #000;
  border: none;
  color: #0f0;
  font-family: monospace;
  width: 100%;
  padding: 0.3em;
  outline: none;
  font-size: 1em;
}
