.terminal-wrapper {
  background-color: #1e1e2e;
  border-radius: var(--radius-small);
  border: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-card);
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: var(--font-mono);
  max-width: 100%;
  margin: 0 auto;
}
.terminal-header {
  background-color: #181825;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-line);
}
.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-btn.close { background-color: #f38ba8; }
.terminal-btn.min { background-color: #f9e2af; }
.terminal-btn.max { background-color: #a6e3a1; }
.terminal-title {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: auto;
  padding-right: 3rem;
}
.terminal-body {
  padding: 1.25rem 1.25rem 0;
  max-height: 400px;
  min-height: 250px;
  overflow-y: auto;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.6;
}
.terminal-input-line {
  display: flex;
  align-items: center;
  padding: 0 1.25rem 1.25rem;
  gap: 0.75rem;
  background-color: #1e1e2e;
}
.prompt-text {
  color: #a6e3a1;
  font-weight: 700;
}
.terminal-input {
  background: transparent;
  border: none;
  color: #cdd6f4;
  font-family: inherit;
  font-size: 16px; /* 16px evita zoom automático en iOS */
  flex: 1;
  outline: none;
  caret-color: #cdd6f4;
}
.terminal-input:focus-visible {
  outline: none;
}
.term-text-green { color: #a6e3a1; }
.term-text-blue { color: #89b4fa; }
.term-text-yellow { color: #f9e2af; }
.term-text-red { color: #f38ba8; }
.term-ascii { 
  font-size: 0.75rem; 
  white-space: pre; 
  line-height: 1.2; 
  color: var(--color-text-muted); 
  overflow-x: auto;
}
.term-table { 
  width: 100%; 
  text-align: left; 
  border-collapse: collapse; 
  margin-bottom: 0.5rem; 
}
.term-table th, .term-table td { 
  padding: 0.25rem 0.5rem 0.25rem 0; 
  vertical-align: top;
}
@media (max-width: 600px) {
  .term-table th, .term-table td { display: block; padding-right: 0; }
  .term-table tr { margin-bottom: 0.75rem; display: block; }
  .term-table th { display: none; }
}
