@layer base {

  html,
  body {
    margin: 0;
    padding: 0;
    background-color: #080b11;
    color: #e1e2ec;
  }

  html {
    overflow-x: clip;
  }
}

html {
  scrollbar-width: thin;
  scrollbar-color: #1b2230 #080b11;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080b11;
}

::-webkit-scrollbar-thumb {
  background: #1b2230;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #242c3d;
}

.bg-carbon-pattern {
  background-color: #07090e;
  background-image:
    radial-gradient(#101926 15%, transparent 16%),
    radial-gradient(#141e2e 15%, transparent 16%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

/*
 * Fondos tipo tarjeta de presentación:
 * placas diagonales, neón cian/azul, carbono y profundidad.
 */
.panel-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.panel-stage > * {
  position: relative;
  z-index: 1;
}

.panel-stage::before,
.panel-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Capas base + brillos de esquina (como la tarjeta) */
.panel-stage::before {
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 8% -10%, rgba(0, 102, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 110%, rgba(0, 210, 255, 0.16), transparent 50%),
    linear-gradient(165deg, #05070b 0%, #0a0e16 45%, #06080e 100%);
}

/* Placas angulares + filo neón */
.panel-stage::after {
  inset: -20% -10%;
  background:
    linear-gradient(148deg, transparent 42%, rgba(0, 210, 255, 0.55) 42.2%, rgba(0, 210, 255, 0.08) 42.6%, transparent 43.2%),
    linear-gradient(148deg, transparent 58%, rgba(0, 80, 180, 0.35) 58.15%, transparent 59%),
    linear-gradient(152deg, rgba(12, 18, 28, 0.95) 0%, rgba(12, 18, 28, 0.95) 36%, transparent 36.2%),
    linear-gradient(-28deg, transparent 55%, rgba(8, 12, 20, 0.9) 55.2%, rgba(8, 12, 20, 0.55) 72%, transparent 72.2%);
  opacity: 0.85;
  transform: rotate(-2deg);
}

.panel-card::before {
  background:
    radial-gradient(ellipse 75% 50% at 12% -5%, rgba(0, 102, 255, 0.35), transparent 52%),
    radial-gradient(ellipse 50% 35% at 88% 105%, rgba(0, 210, 255, 0.2), transparent 48%),
    radial-gradient(circle at 18% 88%, rgba(16, 25, 38, 0.9) 0%, transparent 35%),
    linear-gradient(160deg, #04060a 0%, #0b101a 50%, #05070c 100%);
}

.panel-card::after {
  opacity: 1;
  background-image:
    radial-gradient(#101926 14%, transparent 16%),
    radial-gradient(#141e2e 14%, transparent 16%),
    linear-gradient(148deg, transparent 40%, rgba(0, 210, 255, 0.65) 40.15%, rgba(0, 210, 255, 0.1) 40.7%, transparent 41.3%),
    linear-gradient(148deg, transparent 62%, rgba(0, 90, 200, 0.4) 62.1%, transparent 63%),
    linear-gradient(155deg, rgba(10, 14, 22, 0.92) 0%, rgba(10, 14, 22, 0.92) 33%, transparent 33.15%);
  background-size:
    14px 14px,
    14px 14px,
    auto,
    auto,
    auto;
  background-position:
    0 0,
    7px 7px,
    0 0,
    0 0,
    0 0;
}

.panel-void::before {
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(0, 210, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #05070c 0%, #080b11 100%);
}

.panel-void::after {
  opacity: 0.45;
  transform: rotate(3deg);
}

.panel-plate::before {
  background:
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(0, 102, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #0b101a 0%, #070a12 55%, #05070c 100%);
}

.panel-plate::after {
  opacity: 0.7;
  transform: rotate(1.5deg) scaleX(-1);
}

.panel-tint-blue::before {
  background:
    radial-gradient(ellipse 70% 50% at 0% 40%, rgba(0, 102, 255, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 80%, rgba(0, 210, 255, 0.12), transparent 50%),
    linear-gradient(165deg, #060a14 0%, #0a1224 50%, #050810 100%);
}

.panel-tint-amber::before {
  background:
    radial-gradient(ellipse 65% 45% at 100% 20%, rgba(230, 126, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 90%, rgba(0, 102, 255, 0.12), transparent 50%),
    linear-gradient(165deg, #0c0905 0%, #141008 50%, #070503 100%);
}

.panel-tint-amber::after {
  background:
    linear-gradient(148deg, transparent 44%, rgba(230, 126, 0, 0.35) 44.2%, transparent 45%),
    linear-gradient(152deg, rgba(18, 12, 6, 0.9) 0%, rgba(18, 12, 6, 0.9) 34%, transparent 34.2%);
}

.panel-tint-cyan::before {
  background:
    radial-gradient(ellipse 60% 45% at 15% 30%, rgba(0, 210, 255, 0.22), transparent 55%),
    linear-gradient(165deg, #050a10 0%, #0a141c 50%, #05080e 100%);
}

.panel-tint-green::before {
  background:
    radial-gradient(ellipse 60% 45% at 90% 25%, rgba(0, 158, 72, 0.22), transparent 55%),
    radial-gradient(ellipse 35% 30% at 10% 80%, rgba(0, 102, 255, 0.1), transparent 50%),
    linear-gradient(165deg, #050a07 0%, #0a140e 50%, #040805 100%);
}

.panel-tint-green::after {
  background:
    linear-gradient(148deg, transparent 46%, rgba(0, 230, 118, 0.28) 46.2%, transparent 47%),
    linear-gradient(152deg, rgba(8, 18, 12, 0.92) 0%, rgba(8, 18, 12, 0.92) 38%, transparent 38.2%);
}

.panel-tint-red::before {
  background:
    radial-gradient(ellipse 55% 40% at 5% 50%, rgba(208, 17, 26, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 95% 10%, rgba(0, 102, 255, 0.1), transparent 50%),
    linear-gradient(165deg, #0c0608 0%, #140a0c 50%, #070405 100%);
}

.panel-tint-red::after {
  background:
    linear-gradient(148deg, transparent 48%, rgba(255, 59, 69, 0.3) 48.2%, transparent 49%),
    linear-gradient(152deg, rgba(18, 8, 10, 0.92) 0%, rgba(18, 8, 10, 0.92) 36%, transparent 36.2%);
}

/* Contraste de lectura sobre paneles oscuros / tintados */
.panel-stage .text-on-surface-variant {
  color: #c5d0d8;
}

.micro-qa p:last-child {
  color: #c5d0d8;
  font-size: 1rem;
  line-height: 1.625;
}

.micro-qa p:first-child {
  font-size: 1rem;
}

.text-metallic-silver {
  background: linear-gradient(180deg, #ffffff 10%, #dbe2ea 45%, #8c9ba5 85%, #b4c2ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Offset for fixed header when using deep links */
.service-block {
  scroll-margin-top: 6rem;
}

.service-block--focus {
  border-width: 2px;
}

.service-block--compact {
  opacity: 0.98;
}

.micro-qa {
  border-left: 2px solid rgba(0, 210, 255, 0.35);
  padding-left: 0.85rem;
}

.nav-link {
  color: #9db0bc;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.is-active {
  color: #00d2ff;
  font-weight: 600;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
  background: rgba(7, 10, 16, 0.98);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9db0bc;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: #ffffff;
  background-color: rgba(16, 25, 38, 0.9);
  outline: none;
}

.mobile-nav a.nav-link.is-active {
  color: #00d2ff;
  font-weight: 600;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}
