/* ==========================================================================
   Elmer Valqui — Portafolio personal (tema oscuro)
   Fondo negro + halo circular suave en el hero + orbes secundarios
   Tipografía: Host Grotesk (títulos) + DM Sans (texto) — estilo DeepSeek
   ========================================================================== */

/* ---------- Fuentes locales (autoalojadas) ---------- */
@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Host Grotesk";
  src: url("fonts/host-grotesk-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #05070A;
  --bg-soft:   #080B10;
  --bg-deep:   #030507;

  --white:     #F4F8FC;
  --text:      #93A3B4;
  --text-soft: #7A8B9C;

  --sky:       #7FB8DC;
  --sky-bright:#A9D2EC;
  --blue:      #4A9FD8;
  --blue-deep: #1D4E89;

  --surface:    rgba(255, 255, 255, .035);
  --surface-2:  rgba(255, 255, 255, .06);
  --line:       rgba(255, 255, 255, .085);
  --line-2:     rgba(255, 255, 255, .16);

  --radius:    14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .65);

  --container: 1160px;
  --header-h:  76px;

  --font-head: "Host Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-accent: "Host Grotesk", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #1C2733 var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  /* tinte azul muy apagado abajo-izquierda + fondo base */
  background:
    radial-gradient(ellipse 90% 55% at 0% 100%, rgba(74, 159, 216, .055) 0%, rgba(5, 7, 10, 0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--sky); color: var(--bg); }

/* Grano sutil sobre toda la página: quita el look plano */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accesibilidad ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--sky);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* ==========================================================================
   Orbes: el halo principal del hero y los secundarios de cada sección
   ========================================================================== */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

/* Aurora: mancha de luz que deriva muy lento detrás del contenido */
.orb--aurora {
  width: clamp(520px, 62vw, 880px);
  aspect-ratio: 1;
  top: -14%;
  left: 22%;
  background: radial-gradient(circle,
      rgba(74, 159, 216, .16) 0%,
      rgba(29, 78, 137, .07) 46%,
      rgba(5, 7, 10, 0) 72%);
  filter: blur(70px);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to   { transform: translate3d(5%, 4%, 0) scale(1.12); }
}

/* Halo grande y difuso, a la derecha del inicio */
.orb--hero {
  width: clamp(780px, 96vw, 1350px);
  aspect-ratio: 1;
  top: -6%;
  right: -22%;
  background: radial-gradient(circle at 50% 44%,
      rgba(226, 240, 249, .55) 0%,
      rgba(200, 224, 241, .38) 24%,
      rgba(160, 198, 225, .22) 44%,
      rgba(112, 154, 188, .10) 62%,
      rgba(74, 120, 160, .045) 78%,
      rgba(5, 7, 10, 0) 92%);
  filter: blur(52px);
  -webkit-mask-image: linear-gradient(to bottom,
      #000 0%, #000 44%, rgba(0, 0, 0, .4) 74%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom,
      #000 0%, #000 44%, rgba(0, 0, 0, .4) 74%, rgba(0, 0, 0, 0) 100%);
}

.orb--hero-2 {
  width: clamp(320px, 36vw, 540px);
  aspect-ratio: 1;
  top: 16%;
  right: 8%;
  background: radial-gradient(circle,
      rgba(198, 224, 240, .18) 0%,
      rgba(130, 172, 202, .08) 42%,
      rgba(5, 7, 10, 0) 68%);
  filter: blur(55px);
}

/* Motas de polvo: llenan el vacío sin competir con el planeta */
.orb--dust {
  border-radius: 50%;
  filter: blur(38px);
}
.orb--dust-1 {
  width: 190px; height: 190px;
  top: 34%; left: 4%;
  background: radial-gradient(circle,
      rgba(150, 190, 220, .10) 0%,
      rgba(5, 7, 10, 0) 70%);
}
.orb--dust-2 {
  width: 130px; height: 130px;
  top: 62%; left: 22%;
  background: radial-gradient(circle,
      rgba(150, 190, 220, .08) 0%,
      rgba(5, 7, 10, 0) 70%);
}

/* Orbes pequeños secundarios */
.orb--a {
  width: 340px; height: 340px;
  top: -110px; left: -110px;
  background: radial-gradient(circle, rgba(135, 178, 208, .22) 0%, rgba(5, 7, 10, 0) 66%);
}
.orb--b {
  width: 400px; height: 400px;
  top: 20px; right: -150px;
  background: radial-gradient(circle, rgba(145, 185, 215, .20) 0%, rgba(5, 7, 10, 0) 66%);
}
.orb--c {
  width: 300px; height: 300px;
  bottom: -90px; left: 8%;
  background: radial-gradient(circle, rgba(125, 170, 205, .18) 0%, rgba(5, 7, 10, 0) 66%);
}
.orb--d {
  width: 420px; height: 420px;
  top: -70px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(140, 180, 210, .17) 0%, rgba(5, 7, 10, 0) 64%);
}
.orb--e {
  width: 360px; height: 360px;
  bottom: -150px; right: -110px;
  background: radial-gradient(circle, rgba(135, 180, 210, .20) 0%, rgba(5, 7, 10, 0) 66%);
}
.orb--f {
  width: 260px; height: 260px;
  top: 16%; left: -90px;
  background: radial-gradient(circle, rgba(150, 190, 220, .16) 0%, rgba(5, 7, 10, 0) 64%);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .2s ease, color .2s ease, border-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }

.btn--primary {
  background: var(--sky);
  color: #05121C;
  box-shadow: 0 6px 24px rgba(127, 184, 220, .18);
}
.btn--primary:hover {
  background: var(--sky-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(127, 184, 220, .28);
}
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: #DCE7F1;
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: rgba(127, 184, 220, .55);
  background: rgba(127, 184, 220, .08);
  color: var(--sky-bright);
}

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
/* Barra flotante tipo cápsula (estilo iPhone) */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), 1120px);
  border-radius: 999px;
  background: rgba(9, 13, 18, .55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .40);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease,
              opacity .28s ease, filter .3s ease;
}
.header.is-scrolled {
  background: rgba(9, 13, 18, .80);
  border-color: var(--line-2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 6px 10px 6px 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--white);
}
.logo__mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__link {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: color .18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
  transition: width .22s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--white); }

/* Toggle de idioma ES/EN */
.lang-toggle {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--font-head);
  transition: border-color .2s ease, background .2s ease;
}
.lang-toggle:hover {
  border-color: rgba(127, 184, 220, .5);
  background: rgba(127, 184, 220, .08);
}
.lang-toggle__opt {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--text-soft);
  transition: color .2s ease, background .25s ease;
}
.lang-toggle__opt.is-active {
  background: var(--sky);
  color: #05121C;
  animation: lang-pop .35s cubic-bezier(.2, .9, .3, 1.4);
}
.lang-toggle__sep { font-size: 11px; color: var(--text-soft); }

@keyframes lang-pop {
  0%   { transform: scale(.7); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 52px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Rejilla blueprint muy tenue, desvanecida hacia los bordes */
.hero__gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 68% 34%,
      #000 25%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, 0) 82%);
  mask-image: radial-gradient(ellipse 75% 62% at 68% 34%,
      #000 25%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, 0) 82%);
}

/* Oscurece el lado del texto para que el halo no le reste legibilidad */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
      rgba(5, 7, 10, .96) 0%,
      rgba(5, 7, 10, .86) 32%,
      rgba(5, 7, 10, .42) 56%,
      rgba(5, 7, 10, 0) 76%);
}

/* El halo termina en negro hacia abajo, igual que el resto de la página */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 36%;
  background: linear-gradient(to bottom,
      rgba(5, 7, 10, 0) 0%,
      rgba(5, 7, 10, .60) 50%,
      var(--bg) 92%);
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  font-weight: 500;
  color: #B6D3E7;
  backdrop-filter: blur(6px);
}
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(127, 184, 220, .16);
}

.hero__title {
  margin: 24px 0 22px;
  font-size: clamp(36px, 4.8vw, 52px);
  line-height: 1.07;
  letter-spacing: -.035em;
}
.hero__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--sky-bright);
  position: relative;
  white-space: nowrap;
}

.hero__lead {
  max-width: 46ch;
  font-size: 17.5px;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-soft);
}
.hero__trust strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.2;
}

/* ---------- Mockup ---------- */
.hero__visual { position: relative; }

.mockup {
  position: relative;
  z-index: 2;
  background: rgba(13, 18, 24, .86);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.hero__visual:hover .mockup {
  transform: perspective(1400px) rotateY(-2deg) rotateX(0deg) translateY(-4px);
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}
.mockup__bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.mockup__url {
  margin-left: 10px;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 10px;
  color: rgba(255, 255, 255, .38);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.mockup__body {
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 300px;
}
.mockup__side {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .10);
}
.side-line--on { background: var(--sky); width: 80%; opacity: .85; }
.side-line--short { width: 55%; }

.mockup__main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, .025);
}
.kpi__label {
  display: block;
  width: 60%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  margin-bottom: 8px;
}
.kpi__value {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 96px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .005));
}
.chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(169, 210, 236, .85), rgba(74, 159, 216, .35));
}
.chart span:nth-child(2n) {
  background: linear-gradient(180deg, rgba(127, 184, 220, .55), rgba(29, 78, 137, .3));
}

.rows { display: flex; flex-direction: column; gap: 9px; }
.row {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .09);
  width: 100%;
}
.row--mid { width: 72%; }

.mockup__glow {
  position: absolute;
  inset: 14% -10% -16% 10%;
  background: radial-gradient(circle at 50% 50%, rgba(127, 184, 220, .22), transparent 66%);
  filter: blur(34px);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   Métricas
   ========================================================================== */
.metrics {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: 34px 8px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.metric:first-child { border-left: 0; }
.metric__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--white);
  line-height: 1.1;
}
.metric__label {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
}
.section > .container { position: relative; z-index: 2; }

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 620px;
  margin-bottom: 56px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.section__lead { font-size: 17px; max-width: 56ch; }

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

/* ---------- Tarjetas de servicio ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform .25s ease, box-shadow .25s ease,
              border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 184, 220, .30);
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(127, 184, 220, .12);
  color: var(--sky);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: 18.5px; margin-bottom: 9px; }
.card__text { font-size: 15.5px; line-height: 1.62; }

/* ==========================================================================
   Proyectos
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all .18s ease;
}
.filter:hover { border-color: rgba(127, 184, 220, .45); color: var(--sky-bright); }
.filter.is-active {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg);
}

.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 184, 220, .28);
  box-shadow: var(--shadow-md);
}
.project.is-hidden { display: none; }

.thumb {
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(150, 200, 230, .16);
  pointer-events: none;
}
.thumb svg {
  width: 62%;
  height: auto;
  fill: none;
  stroke: rgba(255, 255, 255, .72);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.project:hover .thumb svg { transform: scale(1.05); }

.thumb--1 { background: linear-gradient(135deg, #12314A, #1C4E70); }
.thumb--2 { background: linear-gradient(135deg, #081A28, #10314A); }
.thumb--3 { background: linear-gradient(135deg, #1C4E70, #2E6E96); }
.thumb--4 { background: linear-gradient(135deg, #0D2A40, #173F5E); }
.thumb--5 { background: linear-gradient(135deg, #2E6E96, #1C4E70); }
.thumb--6 { background: linear-gradient(135deg, #061620, #0D2A40); }

.project__body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}
.project__title { font-size: 19px; margin-bottom: 7px; }
.project__text { font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   Proceso
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line);
}
.step {
  position: relative;
  padding: 0 22px 0 0;
}
.step__num {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 20px;
  transition: all .25s ease;
}
.step:hover .step__num {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--bg);
}
.step__title { font-size: 17.5px; margin-bottom: 8px; }
.step__text { font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   Testimonio + logos
   ========================================================================== */
.quote {
  max-width: 780px;
  margin: 0 auto 72px;
  text-align: center;
}
.quote__mark {
  width: 34px;
  height: 28px;
  margin: 0 auto 24px;
  color: rgba(127, 184, 220, .35);
}
.quote__text {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: #E4EDF5;
}
.quote__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.quote__tags span {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #CBE0EF;
  padding: 8px 16px;
  border: 1px solid rgba(127, 184, 220, .28);
  border-radius: 999px;
  background: rgba(127, 184, 220, .07);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.quote__tags span:hover {
  border-color: rgba(127, 184, 220, .55);
  background: rgba(127, 184, 220, .13);
  transform: translateY(-2px);
}
.quote__author {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
  text-align: left;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(127, 184, 220, .14);
  color: var(--sky);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
}
.avatar--img {
  object-fit: cover;
  border-radius: 50%;
}
.quote__author strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--white);
}
.quote__author em {
  display: block;
  font-style: normal;
  font-size: 13.5px;
  color: var(--text-soft);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 48px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.logo-item {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .26);
  transition: color .2s ease;
}
.logo-item:hover { color: rgba(255, 255, 255, .75); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15.5px;
}
.contact__list svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__list svg.icon-fill {
  fill: currentColor;
  stroke: none;
  color: var(--sky);
}
.contact__list a { transition: color .18s ease; }
.contact__list a:hover { color: var(--sky-bright); }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: #DCE7F1;
}
.opt { font-weight: 400; color: var(--text-soft); }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .28); }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(127, 184, 220, .6);
  box-shadow: 0 0 0 3px rgba(127, 184, 220, .14);
}
.field.has-error input,
.field.has-error textarea { border-color: #E06C68; }

.form__note { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.form__ok {
  font-size: 14px;
  font-weight: 500;
  color: #CBE6F7;
  background: rgba(127, 184, 220, .12);
  border: 1px solid rgba(127, 184, 220, .32);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 72px 0 0;
  font-size: 14.5px;
  overflow: hidden;
}
.footer .container { position: relative; z-index: 2; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.logo--light { color: var(--white); }
.footer__desc { margin-top: 16px; max-width: 34ch; line-height: 1.6; color: var(--text-soft); }

.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 5px;
}
.footer__col a,
.footer__col span { color: var(--text); transition: color .18s ease; }
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}

/* ==========================================================================
   Cambio de idioma: disolución con desenfoque (sin fade a negro)
   ========================================================================== */
main {
  transition: filter .3s ease, transform .3s ease;
  will-change: filter;
}
.footer { transition: filter .3s ease, opacity .3s ease; }

body.is-switching main {
  filter: blur(14px) saturate(.5);
  transform: translateY(8px);
}
body.is-switching .header,
body.is-switching .footer {
  filter: blur(10px);
}

/* ==========================================================================
   Reveal al hacer scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .mockup { transform: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 88px;
    left: 50%;
    right: auto;
    width: min(calc(100% - 32px), 480px);
    transform: translateX(-50%) translateY(-8px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(9, 13, 18, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { opacity: 1; transform: translateX(-50%) translateY(0); visibility: visible; }
  .nav__link {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 16px;
  }
  .nav__link:hover { background: rgba(255, 255, 255, .05); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 8px 0 0; padding: 12px 18px; font-size: 15px; border-radius: 12px; }
  .burger { display: block; }

  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-left: 0; }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 64px; }
  .hero__trust { gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions .btn { width: 100%; }
  .form { padding: 24px; }
  .mockup__body { grid-template-columns: 56px 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis .kpi:last-child { display: none; }
  .quote__text { font-size: 19px; }
  .hide-sm { display: none; }
  .orb--hero {
    width: 78vw;
    top: -6%;
    right: -30%;
    filter: blur(20px);
  }
  .orb--hero-2 { display: none; }
  .orb--dust-2 { display: none; }
  .orb--b, .orb--d, .orb--e { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
