:root {
  --bg: #0b0d10;
  --panel: rgba(255, 255, 255, 0.05);
  --panel2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.12);
  --text: #e7eef8;
  --muted: #a9b4c3;
  --subtext: #a9b4c3;
  --accent: #7cf6c6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1100px;
  --font:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

html[data-theme="light"] {
  --bg: #f7f8fb;
  --panel: rgba(0, 0, 0, 0.04);
  --panel2: rgba(0, 0, 0, 0.03);
  --line: rgba(0, 0, 0, 0.12);
  --text: #0b0d10;
  --muted: rgba(0, 0, 0, 0.62);
  --subtext: rgba(0, 0, 0, 0.62);
  --accent: #16b98a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      1200px 720px at 20% 10%,
      rgba(124, 246, 198, 0.1),
      transparent 62%
    ),
    radial-gradient(
      1000px 620px at 85% 30%,
      rgba(120, 180, 255, 0.09),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 40% 80%,
      rgba(0, 0, 0, 0.3),
      transparent 55%
    ),
    var(--bg);
  transform: translate3d(0, 0, 0);
  opacity: 0.9;
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(
      1200px 720px at 20% 10%,
      rgba(22, 185, 138, 0.1),
      transparent 62%
    ),
    radial-gradient(
      1000px 620px at 85% 30%,
      rgba(120, 180, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 40% 80%,
      rgba(0, 0, 0, 0.08),
      transparent 55%
    ),
    var(--bg);
  opacity: 1;
}

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

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  z-index: 9999;
}
.skip:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4000;
  background: linear-gradient(
    to bottom,
    rgba(11, 13, 16, 0.96),
    rgba(11, 13, 16, 0.88)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
}

html[data-theme="light"] .site-header {
  background: linear-gradient(
    to bottom,
    rgba(247, 248, 251, 0.98),
    rgba(247, 248, 251, 0.9)
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  position: relative;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 246, 198, 0.35);
  background: rgba(124, 246, 198, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-size: 14px;
  letter-spacing: 0.2px;
}
.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover {
  background: var(--panel);
  color: var(--text);
}

.actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  max-width: 100%;
}

.icon-btn {
  padding: 10px 10px;
}

.btn:hover,
.icon-btn:hover {
  background: var(--panel);
}

.btn-primary {
  background: var(--accent);
  color: #0b0d10;
  border-color: rgba(124, 246, 198, 0.55);
  box-shadow:
    0 0 0 1px rgba(124, 246, 198, 0.35),
    0 12px 30px rgba(124, 246, 198, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow:
    0 0 0 1px rgba(124, 246, 198, 0.55),
    0 16px 40px rgba(124, 246, 198, 0.3);
  transform: translateY(-1px);
}

.btn-primary:hover,
.btn--primary:hover {
  filter: brightness(1.03);
  box-shadow:
    0 0 0 1px rgba(124, 246, 198, 0.55),
    0 16px 40px rgba(124, 246, 198, 0.3);
  transform: translateY(-1px);
}

.btn-wide {
  width: min(520px, 100%);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
}

.site-main {
  padding-bottom: 60px;
}

.hero {
  padding: 68px 0 36px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
}

.title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.6px;
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel2);
  padding: 6px 10px;
  border-radius: 999px;
}

.section {
  padding: 62px 0;
  background: transparent;
}

.section-head {
  margin-bottom: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.h1 {
  margin: 0 0 8px;
  font-size: 30px;
}
.h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.h3 {
  margin: 0;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cards--projects {
  display: grid;
  gap: 16px;
}

.project-head {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.project-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.project-list li {
  margin: 6px 0;
  color: var(--subtext);
}

.card,
.panel {
  overflow: visible;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel2);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card.soft {
  background: var(--panel);
  box-shadow: none;
}

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

.tag,
.pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.card-actions,
.project-actions,
.service-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}

.panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 10px;
}

.panel-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.panel-title {
  margin: 0;
  font-weight: 800;
}

.panel-list {
  margin: 12px 0 14px;
  padding-left: 18px;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.control {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  font-family: var(--font);
}

.control:focus {
  border-color: rgba(124, 246, 198, 0.45);
  box-shadow: 0 0 0 4px rgba(124, 246, 198, 0.12);
}

textarea.control {
  resize: vertical;
  min-height: 110px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  background: transparent;
}

html[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.link:hover {
  text-decoration: underline;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
  z-index: 4500;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

#navToggle {
  display: none;
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  #navToggle {
    display: inline-flex;
    position: relative;
    z-index: 5200;
  }

  #primaryNav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    left: 14px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(11, 13, 16, 0.96);
    box-shadow: var(--shadow);
    z-index: 5201;
  }

  html[data-theme="light"] #primaryNav {
    background: rgba(247, 248, 251, 0.98);
  }

  #primaryNav.is-open {
    display: grid;
    gap: 10px;
  }

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

  .two-col {
    grid-template-columns: 1fr;
  }

  .project-actions,
  .card-actions,
  .service-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .project-actions .btn,
  .card-actions .btn,
  .service-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 6000;
}

.fab__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

html[data-theme="light"] .fab__btn {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.fab__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] .fab__btn:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.2);
}

.fab__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 860px) {
  .fab {
    right: 14px;
    bottom: 14px;
  }
  .fab__btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}
.fab__btn {
  line-height: 0;
}

.fab__btn .fab__icon {
  display: block;
}
/* Page transition (overlay-only) */
#pageTransition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

html.is-transitioning #pageTransition {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  #pageTransition {
    transition: none;
  }
}
/* Brand typewriter */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-type {
  display: inline-block;
  white-space: nowrap;
}

.brand-cursor {
  display: inline-block;
  margin-left: 2px;
  opacity: 0.75;
  color: var(--muted);
  animation: brandBlink 900ms steps(1) infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .brand-cursor {
    animation: none;
    opacity: 0.75;
  }
}
/* Typography – body descriptions */

.hero-subtitle,
.subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}

.card-text,
.panel .text,
.panel p,
.section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.list li,
.project-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--subtext);
}

.h1 + .subtitle,
.h2 + .muted,
.hero-title + .hero-subtitle {
  margin-top: 6px;
}

:where(.hero-subtitle, .subtitle, .muted, .card-text, .text) {
  font-size: 14px !important;
  line-height: 1.65 !important;
}

:where(.list li, .project-list li) {
  font-size: 14px !important;
  line-height: 1.65 !important;
}

:where(.hero-subtitle, .subtitle, .card-text, .text, .muted) {
  max-width: 70ch;
}
main :where(p, li) {
  font-size: 14px !important;
  line-height: 1.65 !important;
}

main :where(.kicker, .eyebrow, .panel-kicker) {
  font-size: 12px !important;
  line-height: 1.35 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

main :where(.hero-subtitle, .subtitle, .muted, .text, .card-text) {
  font-size: 14px !important;
  line-height: 1.65 !important;
}

main :where(.hero-subtitle, .subtitle, .muted, .text, .card-text) {
  max-width: 70ch;
}
:root {
  --desc-size: 16px;
  --desc-line: 1.75;
  --desc-track: 0;
}

@media (max-width: 860px) {
  :root {
    --desc-size: 15px;
  }
}

.hero-subtitle,
.subtitle,
.text,
.card-text {
  font-size: var(--desc-size);
  line-height: var(--desc-line);
  letter-spacing: var(--desc-track);
}

.hero-subtitle,
.subtitle {
  color: var(--muted);
  max-width: 70ch;
}
/* DESC UNIFICADO (FORCE) */
:root {
  --desc-size: 16px;
  --desc-line: 1.75;
  --desc-track: 0px;
}
@media (max-width: 860px) {
  :root {
    --desc-size: 15px;
  }
}

body .hero-subtitle,
body .subtitle,
body .text,
body .card-text {
  font-size: var(--desc-size) !important;
  line-height: var(--desc-line) !important;
  letter-spacing: var(--desc-track) !important;
  font-weight: 400 !important;
}

body .hero-subtitle,
body .subtitle {
  color: var(--muted) !important;
  max-width: 70ch !important;
}
/* type scale unify */
:root {
  --fs-kicker: 12px;
  --lh-kicker: 1.4;

  --fs-title: clamp(30px, 4.4vw, 52px);
  --lh-title: 1.05;

  --fs-subtitle: 14px;
  --lh-subtitle: 1.65;

  --fs-body: 14px;
  --lh-body: 1.65;
}

p,
li,
a,
label,
input,
textarea,
button {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.kicker,
.eyebrow,
.panel-kicker {
  font-size: var(--fs-kicker) !important;
  line-height: var(--lh-kicker) !important;
  letter-spacing: 0.8px;
}

.hero-title,
.title,
.h1 {
  line-height: var(--lh-title);
}

.hero-subtitle,
.subtitle,
.card-text,
.text,
.muted {
  font-size: var(--fs-subtitle) !important;
  line-height: var(--lh-subtitle) !important;
}

.list li,
.project-list li {
  font-size: var(--fs-subtitle) !important;
  line-height: var(--lh-subtitle) !important;
}
