/* ============================================================
   BACKEND HERO — editorial / terminal
   Mismo lenguaje visual que el hero del index (auroras + grid +
   ruido + título monumental + marquee), pero acá la pieza central
   es una TERMINAL VIVA que tipea comandos (js inline → initTerm).
   Como esta página no tiene loader, la entrada se coreografía con
   animaciones CSS al cargar: cada pieza .bh-in entra en cascada
   según su índice --hs.
   Al final del archivo: pulido de las secciones existentes
   (reveals con blur, hovers de tarjetas, jerarquía tipográfica).
   ============================================================ */

body {
  overflow-x: hidden;
}

.backend-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

/* ── Fondo ──────────────────────────────────────────────────── */

.bh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bh-aurora {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.bh-aurora--1 {
  width: 64vmax;
  height: 64vmax;
  top: -28%;
  left: -14%;
  background: radial-gradient(
    circle at center,
    rgba(52, 211, 153, 0.11),
    transparent 62%
  );
  animation: bh-aurora-a 26s ease-in-out infinite alternate;
}

.bh-aurora--2 {
  width: 52vmax;
  height: 52vmax;
  bottom: -30%;
  right: -12%;
  background: radial-gradient(
    circle at center,
    rgba(56, 189, 248, 0.09),
    transparent 60%
  );
  animation: bh-aurora-b 32s ease-in-out infinite alternate;
}

.bh-aurora--3 {
  width: 38vmax;
  height: 38vmax;
  top: 34%;
  left: 50%;
  background: radial-gradient(
    circle at center,
    rgba(52, 211, 153, 0.06),
    transparent 60%
  );
  animation: bh-aurora-c 40s ease-in-out infinite alternate;
}

@keyframes bh-aurora-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(9vw, 6vh, 0) scale(1.18);
  }
}

@keyframes bh-aurora-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.12);
  }
  to {
    transform: translate3d(-8vw, -7vh, 0) scale(0.94);
  }
}

@keyframes bh-aurora-c {
  from {
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  to {
    transform: translate3d(-10vw, 8vh, 0) scale(1.15);
  }
}

.bh-grid {
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 75% at 50% 42%,
    #000 20%,
    transparent 74%
  );
  mask-image: radial-gradient(
    ellipse 90% 75% at 50% 42%,
    #000 20%,
    transparent 74%
  );
  animation: bh-grid-pan 34s linear infinite;
}

@keyframes bh-grid-pan {
  to {
    transform: translate3d(64px, 64px, 0);
  }
}

.bh-beam {
  position: absolute;
  top: -30%;
  right: 2%;
  width: 36vw;
  height: 160%;
  transform: rotate(22deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 211, 153, 0.045) 45%,
    rgba(52, 211, 153, 0.075) 50%,
    rgba(52, 211, 153, 0.045) 55%,
    transparent
  );
  animation: bh-beam-breathe 9s ease-in-out infinite;
}

@keyframes bh-beam-breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.bh-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bh-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 120% 90% at 50% 40%,
    transparent 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* ── Spotlight que sigue al cursor ──────────────────────────── */

.bh-spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: radial-gradient(
    620px circle at var(--mx, 50%) var(--my, 40%),
    rgba(52, 211, 153, 0.055),
    transparent 65%
  );
}

.backend-hero:hover .bh-spotlight {
  opacity: 1;
}

/* ── Shell ──────────────────────────────────────────────────── */

.bh-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vh, 3rem) 1.5rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .bh-shell {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ── Meta bar ───────────────────────────────────────────────── */

.bh-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  padding-bottom: 1rem;
  margin-bottom: clamp(1.2rem, 3vh, 2.2rem);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.bh-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.bh-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: bh-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes bh-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(52, 211, 153, 0.5);
  }
  50% {
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.95);
  }
}

.bh-meta-sep {
  color: rgba(71, 85, 105, 0.9);
}

.bh-meta-fill {
  flex: 1;
  min-width: 1rem;
}

.bh-meta-link {
  color: rgba(110, 231, 183, 0.85);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.bh-meta-link:hover {
  color: #86efac;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

/* ── Cabecera: copy + terminal ──────────────────────────────── */

.bh-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .bh-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.bh-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.bh-eyebrow span {
  color: #34d399;
}

/* Título monumental en dos líneas con reveal enmascarado. */
.bh-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 7.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}

.bh-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.bh-line-inner {
  display: inline-block;
  will-change: transform;
  animation: bh-line-up 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.15s + var(--hs, 0) * 0.13s);
}

@keyframes bh-line-up {
  from {
    transform: translateY(115%) rotate(3deg);
  }
  to {
    transform: translateY(0) rotate(0);
  }
}

.bh-fill {
  background: linear-gradient(
    110deg,
    #f8fafc 0%,
    #86efac 28%,
    #34d399 50%,
    #a7f3d0 72%,
    #f8fafc 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation:
    bh-line-up 1.05s cubic-bezier(0.22, 1, 0.36, 1) both,
    bh-sheen 8s ease-in-out infinite 1.4s;
  animation-delay: calc(0.15s + var(--hs, 0) * 0.13s), 1.4s;
}

@keyframes bh-sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bh-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(110, 231, 183, 0.6);
  text-shadow: 0 0 32px rgba(52, 211, 153, 0.12);
  transition: -webkit-text-stroke-color 0.4s ease;
}

.bh-outline:hover {
  -webkit-text-stroke-color: rgba(134, 239, 172, 0.95);
}

/* Línea de rol con prompt. */
.bh-role {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(203, 213, 225, 0.95);
}

.bh-role-prompt {
  color: #34d399;
  font-weight: 600;
}

.bh-role strong {
  color: #6ee7b7;
  font-weight: 500;
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.4);
}

.bh-intro {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.03rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

.bh-intro strong {
  color: rgba(110, 231, 183, 0.95);
  font-weight: 600;
}

/* CTAs propios (sin Bootstrap). */
.bh-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.6rem;
}

.bh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.78rem 1.7rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bh-btn--primary {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, #10b981, #22c55e);
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.3);
}

.bh-btn--primary:hover {
  color: #fff;
  box-shadow: 0 0 40px rgba(52, 211, 153, 0.5);
}

/* Barrido de brillo periódico sobre el CTA primario. */
.bh-btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -160%;
  width: 55%;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-20deg);
  animation: bh-shimmer 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bh-shimmer {
  0%,
  55% {
    left: -160%;
  }
  85%,
  100% {
    left: 180%;
  }
}

.bh-btn--outline {
  color: #34d399;
  border: 2px solid rgba(52, 211, 153, 0.5);
  backdrop-filter: blur(4px);
}

.bh-btn--outline:hover {
  color: #6ee7b7;
  border-color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}

/* ── Terminal viva (columna derecha) ────────────────────────── */

.bh-terminal-col {
  position: relative;
  perspective: 1100px;
  justify-self: stretch;
}

.bh-terminal {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background: rgba(10, 16, 26, 0.92);
  backdrop-filter: blur(10px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(52, 211, 153, 0.07);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition:
    transform 0.25s ease-out,
    box-shadow 0.4s ease;
  will-change: transform;
}

.bh-terminal:hover {
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(52, 211, 153, 0.14);
}

.bh-term-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 1rem;
  background: rgba(22, 32, 48, 0.9);
  border-bottom: 1px solid rgba(71, 85, 105, 0.4);
}

.bh-term-dots {
  display: flex;
  gap: 6px;
}

.bh-term-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.bh-term-dots span:nth-child(1) {
  background: #f87171;
}

.bh-term-dots span:nth-child(2) {
  background: #fbbf24;
}

.bh-term-dots span:nth-child(3) {
  background: #34d399;
}

.bh-term-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.bh-term-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.bh-term-body {
  position: relative;
  padding: 1.1rem 1.2rem 1.3rem;
  min-height: 322px;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  line-height: 1.85;
  color: #cbd5e1;
}

/* Scanlines sutiles sobre la pantalla. */
.bh-term-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.014) 0 1px,
    transparent 1px 3px
  );
}

.bh-term-body .t-prompt {
  color: #34d399;
  font-weight: 600;
}

.bh-term-body .t-out {
  color: #94a3b8;
}

.bh-term-body .t-ok {
  color: #34d399;
}

.bh-term-body .t-json {
  color: #a7f3d0;
}

.bh-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: text-bottom;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  animation: bh-blink 1s steps(1) infinite;
}

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

/* Halo detrás de la terminal. */
.bh-terminal-halo {
  position: absolute;
  inset: -14%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(52, 211, 153, 0.13),
    transparent 65%
  );
}

/* ── Fila HUD: stats ────────────────────────────────────────── */

.bh-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.6rem;
  margin-top: clamp(1.2rem, 3vh, 2rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.bh-stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.bh-stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #6ee7b7, #22c55e 60%, #86efac);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.bh-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Marquee ────────────────────────────────────────────────── */

.bh-marquee {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
  padding: 0.7rem 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.bh-marquee-track {
  display: flex;
  width: max-content;
  animation: bh-marquee-scroll 30s linear infinite;
}

.bh-marquee:hover .bh-marquee-track {
  animation-play-state: paused;
}

.bh-marquee-seq {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
}

.bh-marquee-seq span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.62);
  white-space: nowrap;
}

.bh-marquee-seq .bh-star {
  color: rgba(52, 211, 153, 0.75);
  letter-spacing: 0;
  font-size: 0.7rem;
}

@keyframes bh-marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ── Entrada en cascada (sin loader: anima al cargar) ───────── */

.bh-in {
  animation: bh-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.15s + var(--hs, 0) * 0.11s);
}

@keyframes bh-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ============================================================
   PULIDO DE LAS SECCIONES EXISTENTES
   ============================================================ */

/* Reveal al scrollear: el JS inline agrega .is-visible. */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Jerarquía: títulos de sección más grandes y con degradado. */
.section-title-main {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem) !important;
  background: linear-gradient(110deg, #f8fafc 10%, #86efac 55%, #a7f3d0 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tarjetas: lift + glow al hover. */
.project-card,
.project-card-sm {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card:hover,
.project-card-sm:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(52, 211, 153, 0.08);
}

.tech-item {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.4);
}

.contact-link-item {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.contact-link-item:hover {
  transform: translateX(6px);
}

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .bh-aurora,
  .bh-grid,
  .bh-beam,
  .bh-meta-dot,
  .bh-fill,
  .bh-marquee-track,
  .bh-btn--primary::after,
  .bh-cursor {
    animation: none;
  }

  .bh-in,
  .bh-line-inner,
  .bh-fill {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .bh-spotlight {
    display: none;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ============================================================
   IDENTIDAD PROPIA — toda la página vira a esmeralda
   (professional-portfolio.css define --accent teal; este archivo
   carga después y lo pisa, así las secciones existentes también
   cambian de temperatura sin tocar su CSS).
   ============================================================ */

:root {
  --accent: #34d399;
  --accent-dim: rgba(52, 211, 153, 0.12);
  --accent-glow: rgba(52, 211, 153, 0.22);
  --border-accent: rgba(52, 211, 153, 0.22);
}

/* ============================================================
   BOOT SEQUENCE — llegada épica desde el portfolio fullstack
   El overlay lo construye el JS inline (no-JS nunca lo ve).
   Mientras <html> tenga .is-booting, la cascada del hero espera
   en pausa; al terminar el boot se suelta y entra todo junto.
   ============================================================ */

html.is-booting .bh-in,
html.is-booting .bh-line-inner,
html.is-booting .bh-fill {
  animation-play-state: paused;
}

.bh-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04080d;
  transition:
    opacity 0.55s ease,
    visibility 0.55s ease;
}

.bh-boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Scanlines + parpadeo de tubo sobre todo el overlay. */
.bh-boot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(52, 211, 153, 0.025) 0 1px,
    transparent 1px 3px
  );
  animation: bh-boot-flicker 0.12s steps(2) infinite;
}

@keyframes bh-boot-flicker {
  50% {
    opacity: 0.6;
  }
}

.bh-boot-log {
  width: min(560px, 88vw);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  line-height: 2;
  color: #86efac;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.35);
}

.bh-boot-log .b-dim {
  color: rgba(148, 163, 184, 0.85);
  text-shadow: none;
}

.bh-boot-log .b-ok {
  color: #34d399;
  font-weight: 600;
}

.bh-boot-log .b-granted {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.2em 0.75em;
  border: 1px solid rgba(52, 211, 153, 0.55);
  border-radius: 6px;
  color: #d1fae5;
  background: rgba(52, 211, 153, 0.12);
  text-shadow: 0 0 14px rgba(52, 211, 153, 0.7);
  animation: bh-granted-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bh-granted-pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-boot {
    display: none;
  }

  html.is-booting .bh-in,
  html.is-booting .bh-line-inner,
  html.is-booting .bh-fill {
    animation-play-state: running;
  }
}

/* ============================================================
   BACK DOOR — modo negro absoluto
   El fullstack vive en azul-pizarra; el backend es "la puerta de
   atrás": fondo negro casi total, el verde queda solo en texto,
   bordes y detalles. Estas reglas van al final para pisar tanto
   professional-portfolio.css como las capas del hero.
   ============================================================ */

:root {
  --bg-primary: #020406;
  --bg-secondary: #05080c;
  --bg-card: #04070a;
  --bg-elevated: #080d12;
  --border-subtle: rgba(255, 255, 255, 0.06);
}

/* Pisa los gradientes radiales que professional-portfolio.css
   le pone al body: acá es negro y punto. */
body {
  background: #020406;
}

.backend-hero {
  background: #010304;
}

/* Auroras a media luz: apenas un aliento verde sobre el negro. */
.bh-aurora--1 {
  background: radial-gradient(
    circle at center,
    rgba(52, 211, 153, 0.055),
    transparent 62%
  );
}

.bh-aurora--2 {
  background: radial-gradient(
    circle at center,
    rgba(56, 189, 248, 0.04),
    transparent 60%
  );
}

.bh-aurora--3 {
  background: radial-gradient(
    circle at center,
    rgba(52, 211, 153, 0.03),
    transparent 60%
  );
}

.bh-grid {
  background-image:
    linear-gradient(rgba(110, 231, 183, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 183, 0.03) 1px, transparent 1px);
}

.bh-beam {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(52, 211, 153, 0.028) 45%,
    rgba(52, 211, 153, 0.05) 50%,
    rgba(52, 211, 153, 0.028) 55%,
    transparent
  );
}

.bh-vignette {
  background: radial-gradient(
    ellipse 120% 90% at 50% 40%,
    transparent 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.bh-terminal {
  background: rgba(3, 6, 9, 0.96);
}

.bh-marquee {
  background: rgba(0, 0, 0, 0.75);
}

.bh-boot {
  background: #010304;
}
