:root {
  --bg: #050816;
  --bg-2: #0a1028;
  --panel: rgba(12, 18, 48, 0.76);
  --panel-2: rgba(15, 25, 69, 0.88);
  --text: #edf3ff;
  --muted: #9fb0d2;
  --cyan: #00e5ff;
  --magenta: #ff2fd6;
  --amber: #ffe66d;
  --green: #56ff9b;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 0 40px rgba(0, 229, 255, 0.18);
  --radius: 28px;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 47, 214, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 25%, rgba(0, 229, 255, 0.20), transparent 30rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 45%, #03040a);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -20vw -18vh -20vw;
  height: 52vh;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 229, 255, 0.18), rgba(255, 47, 214, 0.06)),
    repeating-linear-gradient(
      90deg,
      transparent 0 58px,
      rgba(0, 229, 255, 0.28) 59px 60px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 38px,
      rgba(0, 229, 255, 0.24) 39px 40px
    );
  transform: perspective(460px) rotateX(62deg);
  transform-origin: bottom;
  filter: drop-shadow(0 0 32px rgba(0, 229, 255, 0.45));
  opacity: 0.58;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise,
.scanlines,
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.085;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,.06), transparent 38%),
    repeating-radial-gradient(circle at 17% 23%, rgba(255,255,255,.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  z-index: 4;
}

.scanlines {
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,.05) 0,
    rgba(255,255,255,.05) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.22;
  z-index: 5;
}

.stars {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 42%, rgba(0,229,255,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(255,230,109,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 68%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 78%, rgba(255,47,214,.75) 0 1px, transparent 2px);
  opacity: .7;
  animation: drift 13s ease-in-out infinite alternate;
}

.shell {
  position: relative;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 29, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #021118;
  font-size: 1.35rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 25px rgba(0, 229, 255, .55);
}

.brand strong {
  display: block;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.navlinks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.navlinks a {
  padding: 10px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: .22s ease;
}

.navlinks a:hover {
  color: var(--text);
  border-color: rgba(0, 229, 255, .34);
  background: rgba(0, 229, 255, .08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: center;
  min-height: 720px;
  padding: 70px 0 44px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 229, 255, .65);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 4.9vw, 4.25rem);
  line-height: .98;
  letter-spacing: -0.055em;
}

.bio-card {
  max-width: 790px;
  padding: 24px;
  border: 1px solid rgba(0, 229, 255, .22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent),
    rgba(7, 11, 29, .46);
  box-shadow: 0 0 34px rgba(0, 229, 255, .12);
}

.bio-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.72;
}

.bio-card p:last-child {
  margin-bottom: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #021118;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 30px rgba(0, 229, 255, .36);
}

.btn-primary:hover {
  box-shadow: 0 0 48px rgba(0, 229, 255, .58);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.btn-ghost:hover {
  border-color: rgba(255, 47, 214, .5);
  box-shadow: 0 0 30px rgba(255, 47, 214, .18);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-strip span {
  padding: 9px 12px;
  color: #ddecff;
  font-size: .9rem;
  border: 1px solid rgba(0,229,255,.22);
  border-radius: 999px;
  background: rgba(0, 229, 255, .07);
}

.retro-panel,
.terminal,
.app-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.retro-panel {
  min-height: 520px;
  border-radius: var(--radius);
}

.retro-panel::before,
.app-card::before,
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,229,255,.55), transparent 25%, transparent 70%, rgba(255,47,214,.42));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: .08em;
}

.panel-header span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--magenta);
  box-shadow: 0 0 14px currentColor;
}

.panel-header span:nth-child(2) {
  background: var(--amber);
}

.panel-header span:nth-child(3) {
  background: var(--green);
}

.panel-header strong {
  margin-left: auto;
  font-size: .84rem;
}

.orbit {
  position: relative;
  display: grid;
  place-items: center;
  height: 310px;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 245px;
  height: 245px;
  border: 1px solid rgba(0, 229, 255, .35);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(20deg);
  box-shadow: 0 0 22px rgba(0, 229, 255, .15);
}

.orbit::after {
  width: 320px;
  height: 320px;
  border-color: rgba(255, 47, 214, .28);
  transform: rotateX(58deg) rotateZ(-26deg);
}

.core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 44px;
  color: #021118;
  font-size: 3rem;
  font-weight: 950;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 18%),
    linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow:
    0 0 28px rgba(0, 229, 255, .7),
    0 0 80px rgba(255, 47, 214, .34);
  animation: pulse 2.7s ease-in-out infinite alternate;
}

.orb {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px currentColor;
  animation: floaty 5s ease-in-out infinite;
}

.orb-1 { top: 96px; left: 84px; color: var(--cyan); background: var(--cyan); }
.orb-2 { right: 68px; top: 178px; color: var(--magenta); background: var(--magenta); animation-delay: -1.7s; }
.orb-3 { bottom: 70px; left: 160px; color: var(--green); background: var(--green); animation-delay: -3.1s; }

.monitor-text {
  margin: 0 18px 18px;
  padding: 18px;
  min-height: 134px;
  color: var(--green);
  border: 1px solid rgba(86,255,155,.24);
  border-radius: 18px;
  background: rgba(0, 0, 0, .32);
  font-family: "Consolas", "Courier New", monospace;
  line-height: 1.55;
  white-space: pre-wrap;
}

.profile-panel {
  min-height: 560px;
}

.photo-frame {
  position: relative;
  width: min(270px, calc(100% - 64px));
  aspect-ratio: 1;
  margin: 30px auto 20px;
  border: 1px solid rgba(0, 229, 255, .34);
  border-radius: 34px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 20%),
    linear-gradient(135deg, rgba(0,229,255,.16), rgba(255,47,214,.14));
  box-shadow:
    0 0 34px rgba(0, 229, 255, .25),
    inset 0 0 28px rgba(255,255,255,.05);
  overflow: hidden;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  pointer-events: none;
  z-index: 2;
}

.photo-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.08);
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #021118;
  font-size: 4.2rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
}

.photo-frame img + .photo-fallback {
  z-index: 0;
}

.profile-mini {
  margin: 0 24px 20px;
  text-align: center;
}

.profile-mini .mini-label {
  margin-bottom: 8px;
  color: var(--green);
  font-family: "Consolas", "Courier New", monospace;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.profile-role {
  max-width: 340px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.55;
}

.profile-contact {
  display: grid;
  gap: 10px;
  max-width: 340px;
  margin: 18px auto 0;
}

.profile-contact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 229, 255, .24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .09), rgba(255, 47, 214, .06)),
    rgba(2, 9, 24, .64);
  color: var(--text);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.profile-contact a:hover {
  transform: translateY(-2px);
  border-color: rgba(86, 255, 155, .55);
  box-shadow: 0 0 24px rgba(0, 229, 255, .14);
}

.profile-contact span {
  color: var(--green);
  font-family: "Consolas", "Courier New", monospace;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-contact strong {
  color: var(--cyan);
  font-size: .92rem;
  text-align: right;
  word-break: break-word;
}

.profile-mini p {
  margin: 0;
}

.apps-section,
.terminal-section {
  padding: 44px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: -0.06em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, .38);
  box-shadow: 0 0 54px rgba(0, 229, 255, .22);
}

.app-card.featured {
  background:
    radial-gradient(circle at 20% 0, rgba(86,255,155,.18), transparent 18rem),
    radial-gradient(circle at 90% 18%, rgba(0,229,255,.16), transparent 18rem),
    var(--panel-2);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  color: #03131a;
  font-size: 1.65rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 0 24px rgba(0, 229, 255, .32);
}

.badge {
  padding: 7px 11px;
  border: 1px solid rgba(255, 230, 109, .32);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 230, 109, .08);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.app-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.05em;
}

.app-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tags span {
  padding: 7px 9px;
  color: #cfe9ff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  font-size: .83rem;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid rgba(0, 229, 255, .28);
  border-radius: 18px;
  color: var(--text);
  font-weight: 900;
  background: rgba(0, 229, 255, .08);
  transition: .2s ease;
}

.card-link:hover {
  color: #021118;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.card-link span {
  font-size: 1.4rem;
}

.terminal {
  border-radius: var(--radius);
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-family: "Consolas", "Courier New", monospace;
  color: var(--muted);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.red { background: #ff5f57; }
.amber { background: #ffbd2e; }
.green { background: #28c840; }

.terminal-title strong {
  margin-left: 8px;
  color: var(--text);
}

.terminal-body {
  padding: 24px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.terminal-body p {
  margin: 0 0 10px;
}

.prompt {
  color: var(--cyan);
  font-weight: 900;
}

.output {
  color: var(--green);
  padding-left: 18px;
}

.glow {
  text-shadow: 0 0 16px rgba(86,255,155,.55);
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink .9s steps(2) infinite;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(7, 11, 29, .54);
}

.footer p {
  margin: 0;
  line-height: 1.55;
}

.footer strong,
.footer a {
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--cyan);
  font-weight: 800;
  transition: .2s ease;
}

.footer-links a:hover {
  color: var(--green);
  text-shadow: 0 0 16px rgba(86,255,155,.45);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(18px, -14px, 0); }
}

@keyframes pulse {
  from { transform: scale(.985) rotate(-1deg); }
  to { transform: scale(1.025) rotate(1deg); }
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, -14px, 0); }
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .retro-panel {
    min-height: 460px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 12px;
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .navlinks {
    width: 100%;
  }

  .navlinks a {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .bio-card {
    padding: 18px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .profile-contact a {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-contact strong {
    text-align: left;
  }

  .app-card {
    min-height: auto;
  }

  body::before {
    height: 38vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}


/* ------------------------------------------------------------
   CONSOLA ESTILO MSX1
   ------------------------------------------------------------ */
#consola {
  scroll-margin-top: 110px;
}

.msx-terminal {
  border-color: rgba(0, 229, 255, .38);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 229, 255, .16), transparent 18rem),
    radial-gradient(circle at 90% 18%, rgba(255, 47, 214, .12), transparent 22rem),
    rgba(3, 7, 24, .92);
}

.msx-title strong {
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.msx-screen {
  margin: 24px;
  padding: 22px;
  min-height: 640px;
  max-height: 720px;
  overflow: auto;
  border: 6px solid #06142f;
  border-radius: 12px;
  color: #f7fbff;
  background:
    linear-gradient(rgba(255,255,255,.035), rgba(255,255,255,0)),
    #1648b8;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.12),
    inset 0 0 40px rgba(0,0,0,.36),
    0 0 32px rgba(0, 229, 255, .18);
  font-family: "Consolas", "Courier New", monospace;
  image-rendering: pixelated;
  text-shadow: 0 0 7px rgba(255,255,255,.38);
}

.msx-screen::selection,
.msx-basic::selection,
.msx-basic code::selection {
  color: #1648b8;
  background: #f7fbff;
}

.msx-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,.34);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.msx-basic {
  margin: 0;
  color: #ffffff;
  font-size: clamp(.82rem, 1.35vw, 1rem);
  font-weight: 700;
  line-height: 1.45;
  white-space: pre;
  tab-size: 2;
}

.msx-ready {
  margin-top: 18px;
  color: #ffffff;
  font-weight: 900;
}

.msx-cursor {
  display: inline-block;
  margin-left: 6px;
  animation: blink .9s steps(2) infinite;
}

@media (max-width: 680px) {
  .msx-screen {
    margin: 14px;
    padding: 14px;
    min-height: 520px;
    max-height: 620px;
    border-width: 4px;
  }

  .msx-header {
    flex-direction: column;
    gap: 4px;
  }

  .msx-basic {
    font-size: .76rem;
  }
}

/* ------------------------------------------------------------
   Consola MSX1 animada sin barra de scroll
   ------------------------------------------------------------ */
.terminal-section {
  scroll-margin-top: 110px;
}

.msx-typewriter-screen {
  height: 560px;
  min-height: 560px;
  max-height: 560px;
  overflow: hidden;
}

.msx-code-window {
  height: 406px;
  overflow: hidden;
  padding: 16px 18px;
  border: 2px solid rgba(255,255,255,.36);
  background:
    linear-gradient(rgba(255,255,255,.04), rgba(0,0,0,.08)),
    #0d3fa8;
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.18),
    inset 0 0 28px rgba(0,0,0,.28);
}

.msx-typewriter-screen .msx-basic {
  margin: 0;
  min-height: 0;
  color: #ffffff;
  white-space: pre-wrap;
  overflow: hidden;
}

.msx-status-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  color: #ffffff;
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

.msx-status-line span {
  opacity: .92;
  text-align: center;
}

@media (max-width: 680px) {
  .msx-typewriter-screen {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
  }

  .msx-code-window {
    height: 344px;
    padding: 12px;
  }

  .msx-status-line {
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 5px;
    font-size: .72rem;
    text-align: center;
  }
}

/* ------------------------------------------------------------
   Ajuste de alineación superior del bloque biográfico
   ------------------------------------------------------------
   En escritorio, el bloque de texto izquierdo se desplaza hacia arriba
   para quedar alineado aproximadamente con el inicio de la fotografía
   del panel derecho.
*/
@media (min-width: 981px) {
  .hero {
    align-items: start;
    min-height: 680px;
  }

  .hero-copy {
    padding-top: 82px;
  }

  .profile-panel {
    align-self: start;
  }
}


/* ------------------------------------------------------------
   Ajuste v8: nombre bajo la foto y alineación de la cabecera
   ------------------------------------------------------------ */
@media (min-width: 981px) {
  .hero-copy {
    padding-top: 14px;
  }
}

.profile-mini h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-shadow: 0 0 18px rgba(0, 229, 255, .18);
}

.profile-mini .mini-label {
  margin-top: 0;
}

/* ------------------------------------------------------------
   FIX V10: CENTRAR LA LINEA INFERIOR DE LA PANTALLA MSX
   ------------------------------------------------------------ */
.msx-typewriter-screen .msx-status-line {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  justify-content: center !important;
  align-content: center !important;
  text-align: center !important;
  margin: 14px auto 0 !important;
  padding: 0 !important;
}

.msx-typewriter-screen .msx-status-line span {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  justify-self: center !important;
}
