:root {
  --bg: #050B24;
  --bg-soft: #081632;
  --surface: #0b1938;
  --surface-hover: #102449;
  --blue: #087CF8;
  --cyan: #13CBEA;
  --text: #f3f8ff;
  --muted: #9eafc9;
  --line: rgba(19, 203, 234, .20);
  --radius: 22px;
  --shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}


/* ========================================
   HERO
   (header, footer, whatsapp flotante, badge y
   formulario de contacto usan los componentes
   compartidos de ../css/styles.css)
======================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center;
  gap: 40px;
  min-height: 690px;
  padding: 80px clamp(20px, 8vw, 120px);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .35;
  background-image:
    linear-gradient(rgba(19,203,234,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,203,234,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.hero-content {
  max-width: 700px;
}

.eyebrow {
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}

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

h1 {
  max-width: 750px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  line-height: 1.03;
  letter-spacing: -.065em;
}

h1 span {
  color: var(--cyan);
}

.hero-description {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 19px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  color: #031027;
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}


/* ========================================
   ORBIT
======================================== */

.orbit {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: center;
}

.orbit-ring {
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(19,203,234,.5);
  border-radius: 50%;
  animation: spin 28s linear infinite;
}

.ring-two {
  inset: 19%;
  border-style: solid;
  border-color: rgba(8,124,248,.5);
  animation-direction: reverse;
  animation-duration: 36s;
}

.ring-three {
  inset: 29%;
  border-color: rgba(19,203,234,.3);
  animation-duration: 42s;
}

.orbit-core {
  position: absolute;
  inset: 31%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19,203,234,.16),
    var(--bg-soft) 68%
  );
  box-shadow: 0 0 80px rgba(19,203,234,.12);
  font-size: .8rem;
}

.orbit-core span {
  color: var(--cyan);
  font-size: .6rem;
  margin: 8px 0;
}

.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--cyan);
  font-size: .58rem;
  font-weight: 800;
  text-align: center;
}

.node-top {
  top: 0;
  left: calc(50% - 44px);
}

.node-right {
  right: 0;
  top: calc(50% - 44px);
}

.node-bottom {
  bottom: 0;
  left: calc(50% - 44px);
}

.node-left {
  left: 0;
  top: calc(50% - 44px);
}


/* ========================================
   SECTIONS
======================================== */

.section {
  padding: 100px clamp(20px, 8vw, 120px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 38px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}


/* ========================================
   FILTERS
======================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter {
  cursor: pointer;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: .8rem;
}

.filter.is-active,
.filter:hover {
  color: #031027;
  background: var(--cyan);
}


/* ========================================
   PROJECT GRID
======================================== */

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


/* ========================================
   PROJECT CARDS
======================================== */

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);

  /* Microinteracción */
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(19, 203, 234, .65);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, .34),
    0 0 25px rgba(19, 203, 234, .06);
}

.project-card.is-hidden {
  display: none;
}


/* ========================================
   PROJECT VISUAL
======================================== */

.project-visual {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 190px;
  padding: 22px;

  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(19,203,234,.28),
      transparent 40%
    ),
    var(--bg-soft);
}


/* Portada */

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform .5s ease;
}

.project-card:hover .project-visual img {
  transform: scale(1.035);
}

.project-visual span {
  color: var(--cyan);
  font-size: .8rem;
}

.project-visual strong {
  font-size: .8rem;
  letter-spacing: .12em;
}

.visual-web {
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(8,124,248,.4),
      transparent 45%
    ),
    var(--bg-soft);
}

.visual-app {
  background:
    radial-gradient(
      circle at 70% 70%,
      rgba(19,203,234,.3),
      transparent 45%
    ),
    var(--bg-soft);
}


/* ========================================
   PROJECT BODY
======================================== */

.project-body {
  padding: 24px;
}

.project-category {
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-body h3 {
  margin: 10px 0;
  font-size: 1.2rem;

  transition: color .25s ease;
}

.project-card:hover .project-body h3 {
  color: var(--cyan);
}

.project-body p {
  color: var(--muted);
  font-size: .88rem;
  min-height: 72px;
}

.project-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;

  color: var(--cyan);
  font-weight: 800;
  font-size: .82rem;

  background: none;
  border: 0;
  padding: 0;

  transition: gap .25s ease;
}

.project-link:hover {
  gap: 14px;
}

.project-link span {
  display: inline-block;
  transition: transform .25s ease;
}

.project-link:hover span {
  transform: translate(3px, -2px);
}

.is-disabled {
  color: #61718e;
  cursor: not-allowed;
}


/* ========================================
   PROCESS
======================================== */

.process-section {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(8,22,50,.65)
  );
}

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

.process-grid > div {
  padding: 24px;
  border-top: 1px solid var(--cyan);
  background: rgba(11,25,56,.65);
}

.process-grid span {
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 800;
}

.process-grid h3 {
  margin: 22px 0 8px;
}

.process-grid p {
  color: var(--muted);
  font-size: .85rem;
}


/* ========================================
   ANIMATIONS
======================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 980px) {

  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .orbit {
    width: min(100%, 380px);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 640px) {

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .orbit {
    width: min(100%, 320px);
    margin-top: 20px;
  }

  .orbit-node {
    width: 65px;
    height: 65px;
    font-size: .48rem;
  }

  .node-top,
  .node-bottom {
    left: calc(50% - 32.5px);
  }

  .node-right,
  .node-left {
    top: calc(50% - 32.5px);
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .project-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
}