/* =========================================================
   IO tecnologías E.A.S. — Hoja de estilos principal
   Paleta: negro como color primario + acento verde menta
   ========================================================= */

/* ---------------------- Tipografías ---------------------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------- Variables ---------------------- */
:root {
  --bg: #060708;
  --bg-soft: #080a0b;
  --surface: #0c0f11;
  --surface-2: #111518;
  --text: #eef3f0;
  --muted: #98a5a0;
  --muted-2: #6d7a75;
  --accent: #35f0a3;
  --accent-soft: #8bffce;
  --accent-dark: #04140d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --container: 1200px;
  --header-h: 84px;
  --font-head: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------- Reset ---------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

ul, ol { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(53, 240, 163, 0.28);
  color: #ffffff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050607; }
::-webkit-scrollbar-thumb { background: #1c2427; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #2a353a; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-dark);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------------------- Layout ---------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(72px, 9vw, 124px);
  position: relative;
}

[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 18px;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  line-height: 1.7;
  max-width: 62ch;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.section-head--split h2 { margin-bottom: 0; }

.muted { color: #6f7c77; }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--pill {
  padding: 8px 15px 8px 12px;
  border: 1px solid rgba(53, 240, 163, 0.24);
  border-radius: 999px;
  background: rgba(53, 240, 163, 0.05);
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 0.75rem;
  color: #bfe9d7;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(53, 240, 163, 0.6);
  animation: pulse 2.6s infinite;
}

/* ---------------------- Botones ---------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn .icon { width: 17px; height: 17px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 10px 34px -14px rgba(53, 240, 163, 0.75);
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(53, 240, 163, 0.8);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(53, 240, 163, 0.45);
  background: rgba(53, 240, 163, 0.07);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 26px; font-size: 0.92rem; }

/* ---------------------- Header ---------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 8, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 10, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
}

.primary-nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-size: 0.87rem;
  font-weight: 500;
  color: #a7b3ae;
  text-decoration: none;
  transition: color 0.2s;
}

.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.primary-nav a:not(.btn):hover,
.primary-nav a:not(.btn).is-active { color: #ffffff; }
.primary-nav a:not(.btn):hover::after,
.primary-nav a:not(.btn).is-active::after { transform: scaleX(1); }

.nav-cta { display: none; }

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

.header-cta { font-size: 0.82rem; padding: 11px 18px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: block; }

/* ---------------------- Hero ---------------------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 30%, #000 15%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 30%, #000 15%, transparent 76%);
  opacity: 0.75;
}

.hero-glow {
  position: absolute;
  top: -160px;
  right: -60px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(53, 240, 163, 0.16), rgba(53, 240, 163, 0) 65%);
  filter: blur(10px);
}

.hero-glow--2 {
  top: auto;
  right: auto;
  left: -220px;
  bottom: -320px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(53, 240, 163, 0.07), rgba(53, 240, 163, 0) 65%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 5.3vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 20px 0 22px;
  max-width: 15ch;
}

.lead {
  color: #a8b5af;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.7;
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  font-size: 0.82rem;
  color: #93a09b;
}

.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .icon { width: 15px; height: 15px; color: var(--accent); }

/* --- Tarjeta visual del hero --- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.visual-card {
  position: relative;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.012) 42%, rgba(53, 240, 163, 0.035));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 44px 90px -46px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: float-card 10s ease-in-out infinite;
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b9792;
}

.visual-status { display: inline-flex; align-items: center; gap: 8px; color: #c6f7e2; }

.visual-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.6s infinite;
}

.visual-id { color: #5c6964; font-variant-numeric: tabular-nums; }

.visual-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 212px;
  padding: 26px 0 18px;
}

.visual-mark img {
  position: relative;
  z-index: 2;
  width: 146px;
  filter: drop-shadow(0 0 30px rgba(53, 240, 163, 0.32));
}

.mark-ring {
  position: absolute;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 1px solid rgba(53, 240, 163, 0.18);
  animation: spin 26s linear infinite;
}
.mark-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(53, 240, 163, 0.9);
}

.mark-ring--2 {
  width: 268px;
  height: 268px;
  border-style: dashed;
  border-color: rgba(53, 240, 163, 0.12);
  animation-duration: 46s;
  animation-direction: reverse;
}
.mark-ring--2::after { display: none; }

.visual-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.module {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
  min-width: 0;
}

.module .icon { width: 17px; height: 17px; color: var(--accent); }

.module strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #e4ece8;
}
.module span { display: block; font-size: 0.66rem; color: #7e8b86; margin-top: 2px; }

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(53, 240, 163, 0.26);
  background: rgba(9, 13, 12, 0.92);
  box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.76rem;
  color: #d5e4dc;
  white-space: nowrap;
}

.float-chip .icon { width: 15px; height: 15px; color: var(--accent); }

.chip-1 { top: -20px; left: 18px; animation: float-y 7.5s ease-in-out infinite; }
.chip-2 { bottom: -20px; right: 18px; animation: float-y 8.5s ease-in-out infinite 0.9s; }

/* ---------------------- Marquee ---------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(53, 240, 163, 0.045), rgba(53, 240, 163, 0.01) 35%, rgba(53, 240, 163, 0.01) 65%, rgba(53, 240, 163, 0.045));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.marquee-group span {
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: #8e9b95;
  white-space: nowrap;
}

.marquee-group i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(53, 240, 163, 0.55);
}

/* ---------------------- Servicios ---------------------- */
.services {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 45%, transparent);
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(172deg, #0e1215, #090b0d 68%);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at 18% 0%, rgba(53, 240, 163, 0.13), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 240, 163, 0.3);
  box-shadow: 0 30px 60px -42px rgba(53, 240, 163, 0.55);
}
.service-card:hover::before { opacity: 1; }

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-num {
  font-family: var(--font-head);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: #5e6b66;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(53, 240, 163, 0.2);
  background: rgba(53, 240, 163, 0.07);
  color: var(--accent);
  transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.service-icon .icon { width: 22px; height: 22px; }

.service-card:hover .service-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 0 30px -6px rgba(53, 240, 163, 0.6);
}

.service-card h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #93a09b;
  margin-bottom: 20px;
}

.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: auto 0 0;
}

.service-tags li {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: #899690;
  white-space: nowrap;
}

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
}

.services-cta p {
  font-size: 0.93rem;
  color: #b3c0ba;
  max-width: 56ch;
}

/* ---------------------- Proyectos ---------------------- */
.projects {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #96a29d;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.22s, border-color 0.22s, background 0.22s;
}

.filter:hover { color: #ffffff; border-color: var(--line-strong); }

.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

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

.tile {
  position: relative;
  margin: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0b0e10;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 240, 163, 0.32);
  box-shadow: 0 34px 60px -44px rgba(0, 0, 0, 0.95);
}

.tile-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
}

.tile-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1) brightness(1.02);
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.tile:hover .tile-btn img {
  transform: scale(1.035);
  filter: saturate(1.05) brightness(1);
}

.tile-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 10, 0) 48%, rgba(6, 8, 10, 0.5));
  pointer-events: none;
}

.tile-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 12, 10, 0.72);
  color: #e2ebe6;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px) scale(0.92);
  transition: opacity 0.3s, transform 0.3s;
}
.tile-zoom .icon { width: 16px; height: 16px; }

.tile:hover .tile-zoom,
.tile-btn:focus-visible .tile-zoom { opacity: 1; transform: none; }

.tile-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.tile figcaption {
  padding: 16px 18px 18px;
  background: #0b0e10;
}

.tile-tag {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile h3 { font-size: 1rem; margin-bottom: 4px; }

.tile p {
  font-size: 0.81rem;
  line-height: 1.55;
  color: #86938e;
}

.tile.is-hidden { display: none; }

.gallery-note {
  margin-top: 22px;
  font-size: 0.74rem;
  color: #7f8c87;
}

/* ---------------------- Nosotros ---------------------- */
.about-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 18px;
}

.about-copy .btn { margin-top: 26px; }

.features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature {
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(172deg, #0e1215, #090b0c);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 240, 163, 0.25);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(53, 240, 163, 0.18);
  background: rgba(53, 240, 163, 0.08);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon .icon { width: 19px; height: 19px; }

.feature h3 { font-size: 0.97rem; margin-bottom: 8px; }
.feature p { font-size: 0.83rem; line-height: 1.6; color: #8f9c96; }

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(44px, 6vw, 72px) 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}

.step { position: relative; padding-right: 14px; }

.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 600;
  color: rgba(53, 240, 163, 0.3);
  -webkit-text-stroke: 1px rgba(53, 240, 163, 0.55);
}

.step h3 { font-size: 0.97rem; margin-bottom: 8px; }
.step p { font-size: 0.83rem; line-height: 1.6; color: #8f9c96; }

/* ---------------------- Contacto ---------------------- */
.contact { overflow: hidden; }

.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -160px;
  width: 900px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(53, 240, 163, 0.1), rgba(53, 240, 163, 0) 62%);
  pointer-events: none;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 58px);
  padding: clamp(26px, 4.5vw, 54px);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(158deg, #0c1013, #080a0c 62%);
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 85% 0%, #000, transparent 72%);
  pointer-events: none;
}

.contact-copy,
.contact-form { position: relative; z-index: 1; }

.contact-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a2afaa;
  max-width: 46ch;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.contact-list a:hover {
  border-color: rgba(53, 240, 163, 0.35);
  background: rgba(53, 240, 163, 0.05);
  transform: translateX(3px);
}

.ci {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  border: 1px solid rgba(53, 240, 163, 0.18);
  background: rgba(53, 240, 163, 0.08);
  color: var(--accent);
}
.ci .icon { width: 18px; height: 18px; }

.ci--wa {
  border-color: rgba(37, 211, 102, 0.25);
  background: rgba(37, 211, 102, 0.1);
  color: #4ade80;
}

.ci-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-text small {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #83908b;
}
.ci-text strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: #e1eae6;
  overflow-wrap: anywhere;
}

.contact-foot {
  margin-top: 24px;
  font-size: 0.76rem;
  color: #7f8c87;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 0.74rem;
  font-weight: 500;
  color: #a9b6b1;
  letter-spacing: 0.02em;
}

.field label span[aria-hidden] { color: var(--accent); }
.field .opt { color: #83908b; font-weight: 400; font-size: 0.7rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: #0a0d0f;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field textarea { resize: vertical; min-height: 98px; }

.field input::placeholder,
.field textarea::placeholder { color: #5b6863; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(53, 240, 163, 0.55);
  background: #0b1012;
  box-shadow: 0 0 0 3px rgba(53, 240, 163, 0.12);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a5a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field select option { background: #0b0f11; color: var(--text); }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: rgba(255, 107, 107, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.form-actions .btn { flex: 1 1 190px; }

.form-hint {
  font-size: 0.71rem;
  line-height: 1.55;
  color: #7b8882;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--accent);
}

.form-status.is-error { color: #ff8f8f; }

/* ---------------------- Footer ---------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #050607;
  padding-top: clamp(44px, 6vw, 68px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.85fr 0.85fr 1.1fr;
  gap: 32px;
  padding-bottom: 46px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #8b9892;
  max-width: 36ch;
  margin-bottom: 18px;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.footer-wa .icon { width: 16px; height: 16px; }
.footer-wa:hover { text-decoration: underline; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8782;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.84rem;
  color: #9ba8a2;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-contact a { overflow-wrap: anywhere; }

.footer-zone {
  margin-top: 18px;
  font-size: 0.76rem;
  color: #7f8c87;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.footer-bottom p { font-size: 0.75rem; color: #7f8c87; }

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #8b9893;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-top .icon { width: 14px; height: 14px; }
.footer-top:hover { color: var(--accent); }

/* ---------------------- Flotantes ---------------------- */
.quick-actions { display: contents; }
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #04130a;
  box-shadow: 0 16px 34px -12px rgba(37, 211, 102, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-float .icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 22px 40px -12px rgba(37, 211, 102, 0.8);
}

.to-top {
  position: fixed;
  right: 27px;
  bottom: 92px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(12, 15, 17, 0.92);
  color: #dbe5e0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, border-color 0.25s, color 0.25s;
  backdrop-filter: blur(6px);
}
.to-top .icon { width: 17px; height: 17px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: rgba(53, 240, 163, 0.5); color: var(--accent); }

/* ---------------------- Lightbox ---------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 6, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: min(1080px, 92vw);
  max-height: 88vh;
  animation: lb-in 0.35s var(--ease);
}

.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #0a0d0f;
}

.lightbox-figure figcaption {
  margin-top: 14px;
  font-size: 0.87rem;
  color: #b7c4be;
  text-align: center;
}

.lightbox-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.lb-btn {
  position: absolute;
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 18, 20, 0.82);
  color: #eaf2ee;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  backdrop-filter: blur(6px);
}
.lb-btn .icon { width: 19px; height: 19px; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-dark); }

.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

.lb-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #96a39d;
}

body.no-scroll { overflow: hidden; }

/* ---------------------- Animaciones ---------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 240, 163, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(53, 240, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 240, 163, 0); }
}

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

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------------------- Responsive ---------------------- */
@media (max-width: 1120px) {
  .hero-inner { gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 24px; }
}

@media (max-width: 1020px) {
  .site-header {
    background: #07080a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.nav-open {
    background: #07090a;
    border-bottom-color: var(--line);
  }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    margin: 0;
    padding: 16px 24px 28px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: #07090a;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }

  .nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav ul li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

  .primary-nav a:not(.btn) {
    display: block;
    padding: 15px 2px;
    font-size: 1rem;
    color: #dce5e0;
  }
  .primary-nav a:not(.btn)::after { display: none; }

  .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-copy h1 { max-width: 18ch; }
  .hero-visual {
    justify-self: start;
    max-width: 440px;
    margin-top: 8px;
  }
  .chip-1 { top: -20px; left: 14px; }
  .chip-2 { bottom: -20px; right: 14px; }

  .section-head--split,
  .about-top,
  .contact-card { grid-template-columns: 1fr; }
  .section-head--split { align-items: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --header-h: 76px; }
  .container { padding-inline: 20px; }
  .brand img { height: 36px; }
  .hero { padding-top: 44px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 9.4vw, 3rem); max-width: none; }
  .hero-cta { margin: 26px 0 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-points { gap: 8px 16px; font-size: 0.78rem; }
  .visual-card { padding: 14px; border-radius: 22px; }
  .visual-mark { min-height: 180px; }
  .visual-mark img { width: 118px; }
  .mark-ring { width: 158px; height: 158px; }
  .mark-ring--2 { width: 214px; height: 214px; }
  .float-chip { font-size: 0.7rem; padding: 7px 11px; }
  .chip-1 { top: -18px; left: 10px; }
  .chip-2 { bottom: -18px; right: 10px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 22px 20px; }
  .gallery { grid-template-columns: 1fr; }
  .filters { gap: 6px; }
  .filter { padding: 8px 13px; font-size: 0.75rem; }
  .features { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 22px; padding-left: 18px; border-left: 1px solid var(--line); border-top: 0; padding-top: 0; }
  .step { padding-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
  .services-cta { padding: 20px; }
  .services-cta .btn { width: 100%; }
  .contact-card { padding: 22px 18px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { justify-content: flex-start; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float .icon { width: 26px; height: 26px; }
  .to-top { right: 21px; bottom: 80px; width: 38px; height: 38px; }
  .lb-close { top: 10px; right: 10px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-btn { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .float-chip { display: none; }
  .brand img { height: 32px; }
  .visual-modules { gap: 6px; }
  .module { padding: 10px; }
  .module span { display: none; }
}

/* ---------------------- Accesibilidad / movimiento ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .visual-card { animation: none; }
}

/* ---------------------- Página 404 ---------------------- */
.notfound {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(53, 240, 163, 0.12), transparent 60%),
    var(--bg);
}

.notfound .brand img {
  height: 44px;
  width: auto;
  margin-bottom: 38px;
}

.notfound .eyebrow { margin-bottom: 14px; }

.notfound h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 14px;
}

.notfound p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 480px) {
  .notfound-actions { width: 100%; }
  .notfound-actions .btn { width: 100%; }
}
