:root {
  --bg: #05060a;
  --surface: #10121a;
  --surface-soft: #11131e;
  --text: #ececf1;
  --muted: #a9abb3;
  --line: #24283a;
  --accent: #e6b7c5;
  --accent-2: #ba9eb0;
  --radius-lg: 18px;
  --maxw: 1120px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  background-color: #05060a;
  background-image: radial-gradient(circle at top, #141727 0, #05060a 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* LAYOUT */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 1.4rem;
}

/* HEADER */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 12, 0.92),
    rgba(5, 6, 12, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(40, 44, 64, 0.9);
}

.brand-logo {
  width: 35px;        
  height: 28px;
  border-radius: 999px; 
  object-fit: cover;
  margin-right: 0.75rem;
}


.header-inner {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  background: conic-gradient(
    from 210deg,
    var(--accent),
    var(--accent-2),
    #96b0ff,
    var(--accent)
  );
  box-shadow: 0 0 0 6px rgba(230, 183, 197, 0.12);
}

/* NAV DESKTOP */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(22, 24, 38, 0.95);
}

.nav-link.cta {
  margin-left: 0.45rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101113;
  border: 1px solid #2b2f45;
  font-weight: 600;
}

.nav-link.active {
  color: #101113;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid #2b2f45;
}

/* BURGER */

.burger {
  margin-left: 0.5rem;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(17, 19, 31, 0.96);
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: #d7d9e5;
}

.burger.open {
  background: rgba(24, 26, 40, 0.96);
}

/* NAV OVERLAY */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: #05060a;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 90px 1.6rem 1.8rem;
  gap: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  z-index: 25;
  color: #e5e6f0;
}

.nav-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-overlay .nav-link {
  width: 100%;
  background: #151827;
  border: 1px solid #2a2e44;
  text-align: left;
  font-size: 1rem;
  color: #e5e6f0;
}

.nav-overlay .nav-link.cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: #2b2f45;
  color: #101113;
}

/* SECTIONS */

.section {
  scroll-margin-top: 80px;
  padding-block: 96px 90px;
  border-top: 1px solid rgba(33, 35, 53, 0.9);

  /* base para animación suave (aunque JS falle, siempre son visibles) */
  opacity: 1;
  transform: translateY(0);
  filter: none;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section:first-of-type {
  border-top: none;
}

/* Estado oculto que SOLO se aplica desde JS */
.section.sr-hidden {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
}

/* Estado visible al hacer scroll */
.section-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* HERO */

.hero {
  padding-top: 96px;
  border-top: none;
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  gap: 2.4rem;
  justify-items: center;
}

.hero-copy {
  max-width: 640px;
  text-align: center;
  margin-inline: auto;
}

.kicker {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfd3e2;
}

.title {
  margin: 0.8rem 0 0.5rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.35rem, 4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.title .grad {
  background: linear-gradient(
    90deg,
    var(--accent),
    #b9a3ff 40%,
    var(--accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title .underline {
  box-shadow: inset 0 -0.8rem 0 color-mix(in oklab, var(--accent) 24%, transparent);
  border-radius: 9px;
  padding-inline: 0.1rem;
}

.hero-lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 34rem;
  margin-inline: auto;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101113;
  border-color: #2a2e44;
}

.btn.ghost {
  background: transparent;
  border-color: #2a2e44;
  color: var(--text);
}

.btn.full {
  width: 100%;
  justify-content: center;
  margin-top: 0.3rem;
}

.hero-tags {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #d2d4e0;
  justify-content: center;
}

.hero-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #262a40;
  background: rgba(13, 16, 28, 0.92);
}

/* HERO: animación suave */

.kicker,
.title,
.hero-lead,
.hero-actions,
.hero-tags {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-loaded .kicker {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.05s;
}

body.page-loaded .title {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.18s;
}

body.page-loaded .hero-lead {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.32s;
}

body.page-loaded .hero-actions {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.45s;
}

body.page-loaded .hero-tags {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.58s;
}

/* Scroll cue */

.scroll-cue {
  position: absolute;
  bottom: 1.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfd3dd;
  opacity: 0.6;
}

.scroll-cue i {
  width: 18px;
  height: 26px;
  border-radius: 10px;
  border: 1.6px solid #2d3144;
  position: relative;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: #cfd3dd;
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 7px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}

/* TITLES, LEADS */

.section h2 {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.8rem;
  color: var(--muted);
  max-width: 38rem;
}

/* PROYECTOS */

.section-projects {
}

.projects-title {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  letter-spacing: -0.02em;
}

.projects-title span {
  background: linear-gradient(
    90deg,
    var(--accent),
    #b9a3ff 40%,
    var(--accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.projects-subtitle {
  margin: 2.1rem 0 0.25rem;
  font-size: 1.07rem;
  font-weight: 600;
}

.projects-sublead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid #282d44;
  background: linear-gradient(180deg, #131622, #0c0f18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #363c5a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.thumb {
  background: #0d0f17;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.card-body {
  padding: 0.9rem 0.95rem 1rem;
}

.card-title {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.02rem;
}

.card-desc {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-meta {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #2c3247;
  background: #151827;
  color: #d6d8e5;
}

.more {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* SERVICIOS */

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.pill {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #292e45;
  background: #121523;
  color: #dee0eb;
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.service-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid #282d44;
  background: linear-gradient(180deg, #121522, #0d1019);
}

.s-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101113;
}

.s-title {
  margin: 0.6rem 0 0.4rem;
  font-weight: 600;
}

.s-copy {
  font-size: 0.9rem;
  color: var(--muted);
}

.s-meta {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.s-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #303654;
}

/* SISTEMAS & AUTOMATIZACIONES */

.section-systems {
  background: radial-gradient(
      circle at top left,
      rgba(230, 183, 197, 0.12),
      transparent 55%
    ),
    radial-gradient(circle at bottom right, #101320, #05060a 65%);
  border-top-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.systems-shell {
  border-radius: 26px;
  border: 1px solid #2c304a;
  background: radial-gradient(circle at top, #181d30 0, #0a0c13 55%, #05060a);
  padding: 1.4rem 1.2rem;
  display: grid;
  gap: 1.4rem;
}

.systems-main {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.systems-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 183, 197, 0.6);
  background: rgba(11, 12, 20, 0.96);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f4dde8;
}

.systems-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(230, 183, 197, 0.7);
}

.systems-title {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
  letter-spacing: -0.02em;
}

.systems-title span {
  display: block;
  background: linear-gradient(
    90deg,
    var(--accent),
    #b9a3ff 40%,
    var(--accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.systems-lead {
  margin: 0.2rem 0 0.4rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.95rem;
}

.systems-list {
  margin: 0.3rem 0 0.9rem;
  padding-left: 1.1rem;
  color: #d5d7e6;
  font-size: 0.9rem;
}

.systems-list li {
  margin-bottom: 0.25rem;
}

.systems-note {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 32rem;
}

.systems-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.systems-pill {
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  border: 1px solid #363c5f;
  background: radial-gradient(circle at top left, #262b43, #10131f);
}

.pill-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cfd2eb;
}

.pill-highlight {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.pill-highlight span {
  font-weight: 400;
  opacity: 0.8;
}

.pill-text {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.systems-flow {
  border-radius: 18px;
  border: 1px solid #363c5f;
  background: #090b13;
  overflow: hidden;
  font-size: 0.86rem;
}

.flow-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(90deg, #191c2e, #10121f);
  border-bottom: 1px solid #2a3048;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-red {
  background: #ff6b6b;
}

.dot-yellow {
  background: #f7c948;
}

.dot-green {
  background: #2ecc71;
}

.flow-label {
  margin-left: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #cfd2eb;
}

.flow-body {
  padding: 0.7rem 0.7rem 0.85rem;
}

.flow-row {
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  background: rgba(19, 23, 38, 0.9);
  border: 1px solid rgba(71, 79, 122, 0.7);
}

.flow-row + .flow-row {
  margin-top: 0.4rem;
}

.flow-tag {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #3c4260;
  background: #0d1020;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d7d9ec;
  margin-bottom: 0.2rem;
}

.flow-row p {
  margin: 0;
  color: #d3d6ea;
}

.flow-arrow {
  text-align: center;
  font-size: 0.9rem;
  margin: 0.2rem 0;
  color: #8086a1;
}

/* SOBRE MÍ */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.about-column {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-timeline {
  position: relative;
  padding-left: 1.4rem;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(230, 183, 197, 0.5),
    rgba(186, 158, 176, 0.2)
  );
}

.about-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.3rem 0;
  background: transparent;
  border: none;
}

.about-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.about-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 0.35rem;
  box-shadow: 0 0 0 4px rgba(230, 183, 197, 0.12);
  position: relative;
  z-index: 1;
}

.about-block {
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  border: 1px solid #2a3048;
  background: linear-gradient(180deg, #111423, #0c0f18);
}

.about-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
  font-weight: 600;
}

.about-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* rail animado de stack */

.stack-rail {
  margin-top: 1.6rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid #2a2f48;
  background: radial-gradient(circle at top, #1b1f33 0, #0b0d16);
  padding-block: 0.35rem;
}

.stack-track {
  display: inline-flex;
  gap: 0.6rem;
  padding-inline: 0.8rem;
  white-space: nowrap;
  animation: stackScroll 20s linear infinite;
}

.stack-track span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #323758;
  background: #121523;
  font-size: 0.8rem;
}

@keyframes stackScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CONTACTO */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
}

.contact-list span {
  display: inline-block;
  min-width: 80px;
  color: var(--muted);
}

.contact-list a {
  color: #f0dce9;
  text-decoration: underline;
}

.contact-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid #282d44;
  background: linear-gradient(180deg, #131524, #0c0f18);
  font-size: 0.92rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.83rem;
  color: #d4d7e4;
}

.field input,
.field textarea {
  border-radius: 11px;
  border: 1px solid #303552;
  background: #0b0d16;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(186, 158, 176, 0.5);
}

/* MODAL */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 1, 8, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 90%;
  max-width: 380px;
  border-radius: 20px;
  border: 1px solid #343a59;
  background: linear-gradient(180deg, #141729, #0d1019);
  padding: 1.2rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.modal-title {
  margin: 0 0 0.3rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.08rem;
}

.modal-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.modal-btn {
  flex: 1 1 auto;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #2c314e;
  background: #151827;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.modal-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101113;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #2c304a;
  background: #181b2b;
  color: #e3e4f0;
  cursor: pointer;
  font-size: 1rem;
}

/* FOOTER */

.footer {
  border-top: 1px solid #262a40;
  padding-block: 1.4rem 2.4rem;
  font-size: 0.83rem;
  color: #c4c7d7;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.small {
  color: #989eb1;
}

/* RESPONSIVE */

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-timeline::before {
    left: 7px;
  }

  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 820px) {
  .systems-shell {
    padding: 1.6rem 1.6rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

@media (max-width: 880px) {
  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }
}

/* Ajuste hero en móvil para que Proyectos aparezca antes */

@media (max-width: 600px) {
  .hero {
    min-height: 90vh;
    padding-top: 88px;
    padding-bottom: 40px;
  }
}
