body {
  background-color: black;
  color: white;
  font-weight: bold;
  font-family: "Courier New", monospace;
  display: flex;
  align-items: flex-start; /* start from top instead of centering vertically */
  justify-content: center;
  margin: 0; /* remove default page margin so fixed console aligns to top */
  min-height: 100vh;
  min-width: 80vw;
}

@font-face {
  font-family: 'AG Stencil';
  src: local('AG Stencil'),
       url('AG-STENCIL.TTF') format('truetype'),
       url('AG-STENCIL.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

#content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

#brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#business-card-logo {
  height: 20rem;
  width: 20rem;
  border-radius: 50%;
  border: solid 4px white;
}

#name {
  font-family: "Source Sans 3", sans-serif;
  text-align: center;
}

.console {
  font-size: 1.5rem;
  text-align: left;
  width: 61rem;
  max-width: 90vw;
  word-wrap: break-word;
  border: 1px solid #404040;
  border-radius: 10px;
  background-color: #0c0c0c;
  overflow: hidden;
  position: fixed; /* keep terminal fixed on screen */
  top: 1rem; /* small top margin */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

/* Barra superior estilo macOS */
#console-header {
  background-color: #2e2e2e;
  height: 2.5rem;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center; /* center children horizontally */
  padding: 0 10px;
  border-bottom: 1px solid #404040;
  position: relative;
}

/* terminal title centered by flexbox; icons placed absolute to left */
#terminal-title {
  font-family: 'AG Stencil', 'Source Sans 3', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  pointer-events: auto;
}

#terminal-icons {
  position: absolute;
  left: 10px;
  display: flex;
  gap: 8px;
}

#terminal-icons {
  display: flex;
  gap: 8px;
  margin-right: auto; /* botones a la izquierda */
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.mac-btn.close {
  background-color: #ff5f57; /* rojo */
}

.mac-btn.minimize {
  background-color: #ffbd2e; /* amarillo */
}

.mac-btn.maximize {
  background-color: #28c940; /* verde */
}

.mac-btn:hover {
  filter: brightness(85%);
  cursor: pointer;
}

/* Contenido interno */
.console #terminal-img {
  padding: 0.5rem;
}

.console #terminal-name {
  font-size: 0.75rem;
  color: #ccc;
}

.console #banner,
.console #code {
  padding: 1rem;
}

.echo {
  color: #00FF00;
}

.cursor {
  font-size: 2rem;
  display: inline-block;
  font-weight: 100;
  width: 8px;
  animation: blink 1.5s infinite;
}

.tilde {
  color: #0000FF;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Moved from inline styles in index.html */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(255,0,128,0.35); }
  70% { box-shadow: 0 0 0 12px rgba(255,0,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,128,0); }
}
#audio-container.pulse {
  border-radius: 8px;
  animation: pulse-ring 1.6s infinite;
}
#audio-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
}
#bg-audio { width: 100%; max-width: 540px; }

@keyframes blink-color {
  0% { color: inherit; text-shadow: none; }
  50% { color: #FF00FF; text-shadow: 0 0 8px rgba(255,0,255,0.6); }
  100% { color: inherit; text-shadow: none; }
}
#terminal-title.blink { animation: blink-color 1s infinite; cursor: pointer; }
