/* =========================================================
   ANTONELLA BARBERO — PORTFOLIO
   Diseño moderno / responsive / dark + violet
   ========================================================= */

:root {
  --bg: #08070d;
  --bg-soft: #0d0b14;
  --bg-card: #11101a;
  --bg-card-2: #151320;

  --white: #f7f5fb;
  --text: #e8e4ef;
  --muted: #9b96a8;
  --muted-2: #706b7d;

  --violet: #9b6cff;
  --violet-light: #b99aff;
  --violet-dark: #6f43d6;
  --violet-soft: rgba(155, 108, 255, .12);
  --violet-border: rgba(155, 108, 255, .25);

  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.14);

  --success: #76e0a4;

  --max-width: 1240px;
  --side-padding: 24px;
  --section-padding: clamp(64px, 8vw, 128px);
  --nav-height: 82px;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow: 0 24px 70px rgba(0,0,0,.30);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(155,108,255,.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::selection {
  background: var(--violet);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.nav-links,
.btn,
.section-label,
.project-category,
.tech-card,
.service-number,
.service-link,
.solution-tag,
.hero-status,
.hero-metrics {
  font-family: "Montserrat", sans-serif;
}

::selection {
  background: rgba(155,108,255,.85);
  color: #fff;
}

/* =========================================================
   GLOBAL
   ========================================================= */

.section,
.projects-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--violet-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--violet);
}

h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

h2 span {
  color: var(--violet-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition:
    transform .25s var(--ease),
    background .25s var(--ease),
    border-color .25s var(--ease),
    box-shadow .25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--violet);
  box-shadow: 0 12px 35px rgba(155,108,255,.22);
}

.btn-primary:hover {
  background: var(--violet-light);
  box-shadow: 0 16px 45px rgba(155,108,255,.30);
}

.btn-outline {
  color: var(--white);
  background: rgba(255,255,255,.02);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--violet-border);
  background: var(--violet-soft);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  background: rgba(8,7,13,.70);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .3s ease, border-color .3s ease;
}

.navbar.scrolled {
  background: rgba(8,7,13,.94);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(155,108,255,.42);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(155,108,255,.18), rgba(155,108,255,.04));
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.08em;
  box-shadow: inset 0 0 20px rgba(155,108,255,.07);
}

.brand-name {
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .09em;
}

.brand-name small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2vw, 30px);
}

.nav-links a {
  position: relative;
  padding-block: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 1px;
  margin: 4px auto;
  background: var(--white);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(50px, 8vw, 120px);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5%;
  right: 0;
  width: min(600px, 55%);
  height: 600px;
  border-radius: 50%;
  background: rgba(111,67,214,.12);
  filter: blur(100px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(118,224,164,.6);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--violet-light);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.065em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #fff 0%, var(--violet-light) 48%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-metrics div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.hero-metrics strong {
  color: var(--white);
  font-size: 11px;
  letter-spacing: .12em;
}

.hero-metrics span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(155,108,255,.15);
  border-radius: 50%;
  box-shadow:
    0 0 100px rgba(155,108,255,.10),
    inset 0 0 70px rgba(155,108,255,.04);
}

.code-window {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(14,13,21,.91);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}

.window-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.window-top small {
  margin-left: auto;
  color: var(--muted-2);
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  letter-spacing: .08em;
}

.code-body {
  min-height: 390px;
  padding: 28px 30px;
  font-family: "Courier New", monospace;
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 2;
}

.code-line {
  color: #d6d1df;
  white-space: nowrap;
}

.code-line i {
  color: #bd8dff;
  font-style: normal;
}

.code-line b {
  color: #fff;
}

.code-line em {
  color: #9fe3c0;
  font-style: normal;
}

.code-line strong {
  color: #f3c67b;
}

.indent {
  padding-left: 28px;
}

.indent-2 {
  padding-left: 56px;
}

.cursor {
  display: inline-block;
  margin-top: 3px;
  color: var(--violet-light);
  animation: blink 1s steps(2,end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(14,13,21,.9);
  box-shadow: 0 15px 40px rgba(0,0,0,.3);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
}

.floating-badge i {
  color: var(--violet-light);
}

.badge-api {
  top: 18%;
  right: -3%;
}

.badge-ai {
  bottom: 15%;
  left: -4%;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about {
  display: grid;
  grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr);
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
  border-top: 1px solid var(--border);
}

.about-image {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgba(155,108,255,.12), transparent 58%),
    rgba(255,255,255,.015);
}

.about-image::after {
  content: "AB";
  position: absolute;
  right: 24px;
  bottom: 5px;
  color: rgba(255,255,255,.025);
  font-family: "Montserrat", sans-serif;
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
}

.about-orbit {
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(155,108,255,.17);
  border-radius: 50%;
}

.about-orbit::before,
.about-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 20px rgba(155,108,255,.6);
}

.about-orbit::before {
  top: 20px;
  right: 18px;
  width: 5px;
  height: 5px;
}

.about-orbit::after {
  bottom: 34px;
  left: 2px;
  width: 4px;
  height: 4px;
}

.about-logo {
  position: relative;
  z-index: 2;
  width: min(58%, 230px);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
}

.about-code {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 28px;
  padding: 7px 10px;
  color: var(--violet-light);
  border: 1px solid var(--violet-border);
  border-radius: 8px;
  background: var(--violet-soft);
  font-family: monospace;
  font-size: 10px;
}

.about-content h2 {
  max-width: 700px;
  margin-bottom: 28px;
}

.about-content > p:not(.section-label) {
  max-width: 700px;
  color: var(--muted);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 38px;
}

.about-highlights div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}

.about-highlights i {
  color: var(--violet-light);
}

.about-highlights span {
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.projects-section {
  padding-block: var(--section-padding);
  border-top: 1px solid var(--border);
}

.section-header,
.section-heading,
.services-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-header > *,
.section-heading > *,
.services-header > * {
  min-width: 0;
}

.section-header > p,
.heading-description,
.services-description {
  max-width: 450px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--violet-border);
  box-shadow: 0 25px 60px rgba(0,0,0,.28);
}

.project-image {
  position: relative;
  display: block;
  height: clamp(200px, 21vw, 290px);
  overflow: hidden;
  background: #111;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.035);
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,7,13,.50), transparent 50%);
  pointer-events: none;
}

.project-image-overlay {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(8,7,13,.72);
  color: #fff;
  backdrop-filter: blur(8px);
}

.project-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-image-empty span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.project-content {
  padding: 27px;
}

.project-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--violet-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-bottom: 11px;
  color: var(--white);
  font-size: clamp(22px,2vw,30px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.project-content > p {
  min-height: 50px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.project-tech {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 600;
}

.project-tech i {
  color: var(--tech-color, var(--violet-light));
}

.tech-icon {
  color: var(--tech-color, var(--violet-light));
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s ease, gap .2s ease;
}

.project-link:hover {
  gap: 13px;
  color: var(--violet-light);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(243,198,123,.24);
  border-radius: 999px;
  color: #f3c67b;
  background: rgba(243,198,123,.07);
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.projects-empty {
  grid-column: 1 / -1;
  padding: 70px 30px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 14px;
  color: var(--violet-light);
  background: var(--violet-soft);
}

.projects-empty h3 {
  margin-bottom: 6px;
  color: var(--white);
}

.projects-empty p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   TECHNOLOGIES
   ========================================================= */

.technologies {
  border-top: 1px solid var(--border);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.tech-card {
  position: relative;
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
  transition:
    transform .3s var(--ease),
    border-color .3s ease,
    background .3s ease;
}

.tech-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--tech-color, var(--violet));
  opacity: .05;
  filter: blur(20px);
}

.tech-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tech-color, var(--violet)) 35%, transparent);
  background: rgba(255,255,255,.035);
}

.tech-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--tech-color, var(--violet-light));
  background: rgba(255,255,255,.025);
  font-size: 19px;
}

.tech-card strong {
  position: relative;
  z-index: 1;
  min-width: 0;
  color: var(--white);
  font-size: 11px;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

.tech-arrow {
  position: absolute;
  z-index: 1;
  right: 15px;
  top: 12px;
  color: var(--muted-2);
  font-size: 12px;
  transition: color .2s ease;
}

.tech-card:hover .tech-arrow {
  color: var(--violet-light);
}

/* =========================================================
   SOLUTIONS / INTEGRATIONS
   ========================================================= */

.solutions {
  border-top: 1px solid var(--border);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.solution-card {
  position: relative;
  min-height: 285px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(155,108,255,.08), transparent 42%),
    rgba(255,255,255,.018);
  transition: transform .3s var(--ease), border-color .3s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-border);
}

.solution-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(155,108,255,.08);
  border-radius: 50%;
}

.solution-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}

.solution-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--violet-border);
  border-radius: 13px;
  color: var(--violet-light);
  background: var(--violet-soft);
}

.solution-tag {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.solution-card h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
  letter-spacing: -.025em;
}

.solution-card p {
  max-width: 470px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
}

.solution-line,
.solution-flow,
.solution-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.solution-line span,
.solution-flow span,
.solution-pills span {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 600;
}

.solution-line i,
.solution-flow i {
  color: var(--violet-light);
  font-size: 8px;
}

.solution-featured {
  border-color: rgba(155,108,255,.18);
  background:
    radial-gradient(circle at 80% 20%, rgba(155,108,255,.13), transparent 45%),
    rgba(255,255,255,.018);
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  min-width: 0;
  min-height: 280px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.016);
  transition:
    transform .3s var(--ease),
    border-color .3s ease,
    background .3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), transparent);
  opacity: .7;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-border);
  background: rgba(155,108,255,.025);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: rgba(255,255,255,.10);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--violet-light);
  background: var(--violet-soft);
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 21px;
  letter-spacing: -.025em;
}

.service-card p {
  max-width: 520px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.service-link {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  position: relative;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 110px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 75% 20%, rgba(155,108,255,.15), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
}

.contact::before {
  content: "AB";
  position: absolute;
  right: clamp(16px, 5vw, 60px);
  bottom: 8px;
  color: rgba(255,255,255,.025);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(100px, 22vw, 280px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.contact-copy,
.contact-panel {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 68px);
}

.contact-copy > p:last-child {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  min-width: 250px;
}

.contact-panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 45px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--border);
}

.footer-brand .brand-mark {
  width: 38px;
  height: 38px;
}

footer > p {
  grid-column: 2;
  justify-self: end;
  margin: 0;
  color: var(--muted-2);
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  text-align: right;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =========================================================
   PANTALLAS GRANDES
   1400px+
   ========================================================= */

@media (min-width: 1400px) {

  :root {
    --max-width: 1440px;
    --section-padding: clamp(120px, 8vw, 170px);
  }

  .hero {
    gap: 100px;
  }

  .projects-grid,
  .services-grid {
    gap: 30px;
  }

  .project-image {
    height: clamp(240px, 18vw, 280px);
  }

}


/* =========================================================
   TABLETS GRANDES / NOTEBOOKS
   1000px
   ========================================================= */

@media (max-width: 1000px) {

  .hero {
    grid-template-columns: minmax(0, 1fr);

    min-height: auto;

    padding-top: 130px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .code-window {
    width: min(600px, 100%);
  }

  .badge-api {
    right: 0;
  }

  .badge-ai {
    left: 0;
  }

  .about {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .about-image {
    justify-content: flex-start;
  }

  .tech-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-section,
  .services {
    width: min(var(--max-width), calc(100% - 48px));
  }

}


/* =========================================================
   TABLETS
   850px
   ========================================================= */

@media (max-width: 850px) {

  .navbar {
    height: 72px;
  }

  .nav-links {
    position: absolute;

    top: 72px;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    gap: 18px;

    padding: 24px;

    background: rgba(13, 15, 22, .98);

    border-bottom:
      1px solid var(--border);

    box-shadow:
      0 20px 40px rgba(0, 0, 0, .2);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .section-heading,
  .projects-section .section-header,
  .services-header {
    align-items: flex-start;
  }

  .projects-section .section-header,
  .services-header {
    gap: 18px;
  }

  .projects-section .section-header > p,
  .services-description {
    flex-basis: 320px;
  }

  .contact {
    flex-direction: column;

    align-items: flex-start;
  }

  .contact-buttons {
    justify-content: flex-start;
  }

}


/* =========================================================
   TABLETS / CELULARES GRANDES
   700px
   ========================================================= */

@media (max-width: 700px) {

  :root {
    --side-padding: 6%;
    --section-padding: 75px;
  }

  .hero {
    padding-top: 110px;

    gap: 38px;
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-image,
  .about-content,
  .hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .hero::before,
  .hero-glow,
  .floating-badge {
    display: none;
  }

  .code-window {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .hero-text {
    font-size: 16px;
  }

  .code-window {
    min-height: 0;
  }

  .section-heading,
  .projects-section .section-header,
  .services-header {
    display: block;

    margin-bottom: 35px;
  }

  .heading-description,
  .projects-section .section-header > p,
  .services-description {
    max-width: 100%;

    margin-top: 14px;
  }

  .projects-grid,
  .solutions-grid,
  .services-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .about-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-highlights > div {
    min-width: 0;
    padding: 14px;
  }

  .about-highlights span {
    overflow-wrap: anywhere;
  }

  .project-image {
    height: clamp(210px, 55vw, 300px);
  }

  .tech-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .commerce-feature {
    align-items: flex-start;
  }

}


/* =========================================================
   CELULAR
   550px
   ========================================================= */

@media (max-width: 550px) {

  :root {
    --side-padding: 5%;
    --section-padding: 65px;
  }

  .navbar {
    height: 68px;
  }

  .nav-links {
    top: 68px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .brand-name {
    font-size: 9px;
  }

  .brand-name small {
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  .hero {
    width: calc(100% - 2 * var(--side-padding));

    padding-top: 105px;
    padding-bottom: 60px;

    gap: 32px;
  }

  .hero h1 {
    margin-top: 14px;
    margin-bottom: 20px;

    font-size: clamp(36px, 11vw, 46px);
  }

  .hero-buttons {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .code-window {
    padding: 18px;

    border-radius: 17px;

    font-size: 12px;
  }

  .code-body {
    min-height: 0;
    padding: clamp(12px, 4vw, 18px);
    font-size: clamp(9px, 2.8vw, 12px);
  }

  .code-line {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .indent {
    padding-left: clamp(10px, 4vw, 20px);
  }

  .indent-2 {
    padding-left: clamp(20px, 8vw, 40px);
  }

  .window-top {
    margin-bottom: 25px;
  }

  h2 {
    font-size: 34px;
  }

  .about-card {
    width: min(210px, 65vw);
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-card {
    min-height: 100px;
  }

  .commerce-feature {
    flex-direction: column;

    padding: 22px;
  }

  .commerce-icon {
    width: 48px;
    height: 48px;

    flex-basis: 48px;

    font-size: 20px;
  }

  .commerce-feature h3 {
    font-size: 18px;
  }

  .project-content {
    padding: 20px;
  }

  .project-image {
    height: 220px;
  }

  .service-card {
    min-height: 210px;

    padding: 22px;
  }

  .solution-card {
    min-height: 0;
    padding: 22px;
  }

  .service-number {
    top: 20px;
    right: 22px;
  }

  .contact {
    padding-block: 65px;
    padding-inline: clamp(20px, 6vw, 28px);
  }

  .contact-panel {
    width: 100%;
    min-width: 0;
  }

  .contact-buttons {
    width: 100%;

    flex-direction: column;

    align-items: stretch;
  }

  .contact-buttons .btn {
    width: 100%;
  }

  footer {
    padding-block: 28px;

    display: block;
  }

  footer p {
    margin-top: 18px;
  }

}


/* =========================================================
   CELULARES PEQUEÑOS
   400px
   ========================================================= */

@media (max-width: 400px) {

  :root {
    --side-padding: 18px;
    --section-padding: 58px;
  }

  .brand-name {
    max-width: 145px;
  }

  .brand-name small {
    font-size: 6.5px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 15px;
  }

  .eyebrow,
  .section-label {
    font-size: 9px;
    letter-spacing: 2.3px;
  }

  .code-window {
    padding: 15px;

    font-size: 11px;
  }

  .code-line {
    margin: 9px 0;
  }

  .indent {
    padding-left: 12px;
  }

  h2,
  .projects-section .section-header h2,
  .services-header h2 {
    font-size: 31px;
  }

  .project-image {
    height: 190px;
  }

  .project-content {
    padding: 17px;
  }

  .project-content h3 {
    font-size: 17px;
  }

  .project-content p,
  .service-card p {
    font-size: 11.5px;
  }

  .service-card {
    padding: 20px;

    min-height: 205px;
  }

  .service-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 18px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-number {
    top: 18px;
    right: 19px;
  }

}


/* =========================================================
   CELULARES MUY PEQUEÑOS
   340px
   ========================================================= */

@media (max-width: 340px) {

  :root {
    --side-padding: 15px;
  }

  .navbar {
    padding-inline: 15px;
  }

  .brand-name {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-text {
    font-size: 14px;
  }

  .btn {
    min-height: 45px;

    padding-inline: 18px;

    font-size: 12px;
  }

  .code-window {
    font-size: 10px;
  }

  .project-image {
    height: 175px;
  }

  .project-tech {
    font-size: 9px;

    padding: 4px 7px;
  }

  .service-card {
    padding: 18px;
  }

}


/* =========================================================
   PANTALLAS CON POCA ALTURA
   ========================================================= */

@media (max-height: 650px) and (min-width: 701px) {

  .hero {
    min-height: auto;

    padding-top: 120px;
    padding-bottom: 70px;
  }

  .code-window {
    min-height: 280px;
  }

}


/* =========================================================
   REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;
  }

}
