/* ============================================
   BIZARD — Landing
   ============================================ */

@font-face {
  font-family: "Fugaz One";
  src: url("../assets/fonts/fugaz-one/regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #155DB1;
  --primary-hover: #1a6dcc;
  --primary-soft: rgba(21, 93, 177, 0.14);
  --dark: #07111F;
  --dark-2: #0D1B2A;
  --dark-3: #132337;
  --white: #FFFFFF;
  --light: #F4F7FA;
  --gray: #8A96A3;
  --gray-2: #5C6B7A;
  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(7, 17, 31, 0.1);
  --text: #E8EEF4;
  --text-muted: #8A96A3;
  --radius: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, sans-serif;
  --font-brand: "Fugaz One", sans-serif;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--dark);
}

.section-lead {
  margin-top: 1rem;
  color: var(--gray-2);
  font-size: 1.05rem;
  max-width: 36rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn .arrow {
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    border-color 0.35s var(--ease), height 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 64px;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand-mark {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: calc(var(--header-h) + 1rem) 0 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}

/* Fallback estático (sin JS / reduce motion) */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(180, 210, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 45% 12%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 62% 28%, rgba(126, 182, 255, 0.8), transparent),
    radial-gradient(2px 2px at 78% 16%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 88% 48%, rgba(180, 210, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 8% 58%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 35% 68%, rgba(126, 182, 255, 0.65), transparent),
    radial-gradient(1px 1px at 55% 52%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 72% 62%, rgba(180, 210, 255, 0.7), transparent),
    radial-gradient(1px 1px at 92% 72%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 18% 32%, rgba(126, 182, 255, 0.9), transparent),
    radial-gradient(1px 1px at 48% 38%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 66% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 95% 22%, rgba(180, 210, 255, 0.65), transparent);
  mask-image: linear-gradient(180deg, black 0%, transparent 88%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 55% 30%, rgba(21, 93, 177, 0.2), transparent 68%),
    radial-gradient(ellipse 40% 35% at 20% 60%, rgba(10, 40, 90, 0.35), transparent 70%),
    linear-gradient(180deg, transparent 40%, rgba(7, 17, 31, 0.88) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stars {
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: clamp(5rem, 12vw, 8rem);
}

.hero-brand {
  position: absolute;
  left: 0;
  top: 18%;
  font-family: var(--font-brand);
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.045);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.35rem, 5.8vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.05;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  max-width: 18ch;
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-lead {
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  color: rgba(232, 238, 244, 0.7);
  max-width: 32rem;
  line-height: 1.65;
  flex: 1 1 18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.hero-rail {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-rail-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  padding: 1rem 0;
}

.rail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 244, 0.55);
  padding: 0.35rem 1.35rem 0.35rem 0;
  margin-right: 1.35rem;
  border-right: 1px solid var(--line);
}

.rail-item:last-child {
  border-right: none;
  margin-right: 0;
}

.rail-item i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.85;
  flex-shrink: 0;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes pulseNode {
  0%, 100% { box-shadow: 0 0 0 3px var(--primary-soft); }
  50% { box-shadow: 0 0 0 6px rgba(21, 93, 177, 0.08); }
}

/* ---------- Intro ---------- */
.intro {
  background: var(--light);
}

.intro-inner {
  max-width: 720px;
}

.intro-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.intro-text {
  font-size: 1.1rem;
  color: var(--gray-2);
  line-height: 1.7;
}

/* ---------- Services ---------- */
.services {
  background: var(--white);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service {
  display: grid;
  grid-template-columns: 4.5rem 1fr 240px;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line-dark);
  transition: background 0.35s var(--ease);
}

.service:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.service:hover {
  background: rgba(244, 247, 250, 0.5);
}

.service-index {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  align-self: start;
  padding-top: 0.35rem;
}

.service-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.service-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-2);
  margin-bottom: 0.75rem;
}

.service-content > p:last-child {
  color: var(--gray-2);
  max-width: 36rem;
  font-size: 0.98rem;
}

.service-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 100px;
}

/* Service A — code */
.code-block {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  width: 100%;
  border-left: 2px solid var(--primary);
}

.code-block .kw { color: #7eb6ff; }
.code-block .fn { color: #a8d4ff; }
.code-block .indent { padding-left: 1rem; }

/* Service B — connections */
.connect-svg {
  width: 180px;
  height: auto;
}

.connect-svg .c-node {
  fill: var(--dark);
  stroke: var(--primary);
  stroke-width: 2;
}

.connect-svg .c-node.mid {
  fill: var(--primary);
  stroke: none;
}

.connect-svg .c-line {
  fill: none;
  stroke: rgba(21, 93, 177, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

.service.reveal.is-visible .c-line {
  animation: drawLine 1.4s var(--ease) forwards;
}

/* Service C — AI flow */
.ai-flow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ai-step {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-dark);
  color: var(--gray-2);
  border-radius: var(--radius);
}

.ai-step.highlight {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.ai-arrow {
  width: 18px;
  height: 1px;
  background: var(--gray);
  position: relative;
}

.ai-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border: 3.5px solid transparent;
  border-left-color: var(--gray);
}

/* Service D — advice list */
.advice-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.advice-list li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid transparent;
  color: var(--gray);
  background: var(--light);
}

.advice-list li.done {
  color: var(--dark);
  border-left-color: rgba(21, 93, 177, 0.35);
}

.advice-list li.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- Statement ---------- */
.statement {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: clamp(5rem, 14vw, 9rem) 0;
  overflow: hidden;
}

.statement-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(21, 93, 177, 0.18), transparent 70%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  pointer-events: none;
}

.statement-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.statement-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.statement-title .word {
  display: inline-block;
  margin-right: 0.28em;
  opacity: 0.25;
  transform: translateY(12px);
}

.statement-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(232, 238, 244, 0.7);
  max-width: 34rem;
  line-height: 1.65;
}

/* ---------- Products ---------- */
.products {
  background: var(--light);
}

.product {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
}

.product:last-child {
  margin-bottom: 0;
}

.product-quvix {
  grid-template-columns: 1.15fr 1fr;
}

.product-quvix .product-copy {
  order: 2;
}

.product-quvix .product-mockup {
  order: 1;
}

.product-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.product-id {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  height: 40px;
}

.product-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
}

.product-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-2);
  margin-bottom: 1rem;
}

.product-desc {
  color: var(--gray-2);
  margin-bottom: 1.75rem;
  max-width: 28rem;
  line-height: 1.65;
}

/* Product CTAs — brand colors from korba.com.ar / quvix.com.ar */
.btn-korba {
  background: #24B6A4;
  color: #fff;
}
.btn-korba:hover {
  background: #1fa090;
  transform: translateY(-1px);
}

.btn-quvix {
  background: #1e2a44;
  color: #fff;
}
.btn-quvix:hover {
  background: #152033;
  transform: translateY(-1px);
}

.product-korba .product-label { color: #24B6A4; }
.product-quvix .product-label { color: #2b9fd4; }

/* Mockups */
.mockup {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.mockup:hover {
  transform: translateY(-4px);
}

/* —— Korba (korba.com.ar) —— */
.mockup-korba {
  background: #fff;
  border: 1px solid #E7EBF2;
  box-shadow:
    0 1px 4px rgba(44, 62, 80, 0.04),
    0 20px 40px rgba(15, 23, 42, 0.12);
}

.k-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: #0f172a;
}

.k-logo {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.k-logo-img {
  height: 26px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
}

.k-chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: #24B6A4;
  background: rgba(36, 182, 164, 0.14);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.k-body {
  padding: 1rem;
  background:
    radial-gradient(circle, rgba(34, 52, 74, 0.035) 1px, transparent 1px),
    #F8FAFC;
  background-size: 22px 22px, auto;
}

.k-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.k-stat {
  background: #fff;
  border: 1px solid #E7EBF2;
  border-radius: 10px;
  padding: 0.75rem;
  position: relative;
}

.k-stat em {
  display: block;
  font-style: normal;
  font-size: 0.65rem;
  color: #757575;
  margin-bottom: 0.2rem;
}

.k-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #22344A;
  font-variant-numeric: tabular-nums;
}

.k-stat .up {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #48C774;
}

.k-stat.warn strong {
  color: #f59e0b;
}

.k-mid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.65rem;
}

.k-chart {
  background: #fff;
  border: 1px solid #E7EBF2;
  border-radius: 10px;
  padding: 0.85rem 0.75rem 0.55rem;
  height: 120px;
}

.k-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 100%;
}

.k-bars i {
  flex: 1;
  height: var(--h);
  background: #24B6A4;
  opacity: 0.35;
  border-radius: 4px 4px 0 0;
  animation: barPulse 3.5s ease-in-out infinite;
  transform-origin: bottom;
}

.k-bars i:nth-child(2) { opacity: 0.5; animation-delay: 0.1s; }
.k-bars i:nth-child(3) { opacity: 0.4; animation-delay: 0.2s; }
.k-bars i:nth-child(4) { opacity: 0.7; animation-delay: 0.3s; }
.k-bars i:nth-child(5) { opacity: 0.55; animation-delay: 0.4s; }
.k-bars i:nth-child(6) { opacity: 0.95; animation-delay: 0.5s; }
.k-bars i:nth-child(7) { opacity: 0.65; animation-delay: 0.6s; }

@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.9); }
}

.k-list {
  background: #fff;
  border: 1px solid #E7EBF2;
  border-radius: 10px;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.k-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  font-size: 0.72rem;
  border-radius: 8px;
}

.k-row:hover {
  background: #EDF1F7;
}

.k-row span {
  color: #212121;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k-row b {
  color: #22344A;
  font-variant-numeric: tabular-nums;
}

.k-row em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

.k-row em.paid {
  background: #f0fbf6;
  color: #48C774;
  border: 1px solid #a8efc7;
}

.k-row em.pending {
  background: #fff8eb;
  color: #f59e0b;
  border: 1px solid #ffd97a;
}

/* —— Quvix (quvix.com.ar) —— */
.mockup-quvix {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem;
}

.q-card {
  background: #fff;
  border: 1px solid #d4e3ed;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow:
    0 1px 2px rgba(21, 32, 51, 0.04),
    0 16px 40px rgba(21, 32, 51, 0.12);
}

.q-brand {
  margin-bottom: 1rem;
}

.q-logo-img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  object-position: left center;
}

.q-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d4e3ed;
}

.q-id {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #152033;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.q-client {
  font-size: 0.8rem;
  color: #5f7386;
}

.q-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a7a55;
  background: rgba(13, 159, 110, 0.12);
  border: 1px solid rgba(13, 159, 110, 0.28);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.q-results {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}

.q-results li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e8f0f6;
  font-size: 0.88rem;
}

.q-results li span {
  color: #5f7386;
}

.q-results li strong {
  color: #152033;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.q-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.q-meta span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #1878a8;
  background: rgba(43, 159, 212, 0.12);
  border: 1px solid rgba(43, 159, 212, 0.28);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

/* ---------- Process ---------- */
.process {
  background: var(--white);
}

.process-track {
  position: relative;
  padding: 2rem 0 1rem;
  margin-bottom: 2.5rem;
}

.process-line {
  position: absolute;
  top: 2.85rem;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(7, 17, 31, 0.1);
}

.process-line-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transform-origin: left;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.process-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(21, 93, 177, 0.35);
  border-radius: 50%;
}

.step-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark);
}

.process-note {
  max-width: 36rem;
  color: var(--gray-2);
  font-size: 1.05rem;
  line-height: 1.65;
  border-left: 2px solid var(--primary);
  padding-left: 1.25rem;
}

/* ---------- Tech ---------- */
.tech {
  background: var(--dark);
  color: var(--white);
}

.tech .section-head h2 {
  color: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tech-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.tech-item:hover {
  background: rgba(21, 93, 177, 0.08);
}

.tech-item span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.tech-item p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- About ---------- */
.about {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.about-copy > p {
  color: var(--gray-2);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 32rem;
}

.about-more {
  margin-top: 1rem;
}

.about-composition {
  position: relative;
  aspect-ratio: 1 / 0.9;
  max-width: 420px;
  margin-left: auto;
}

.comp-layer {
  position: absolute;
  inset: 0;
}

.comp-layer.base {
  background:
    linear-gradient(145deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: 6px;
}

.comp-layer.base::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  border-radius: 6px;
}

.comp-layer.mid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.comp-block {
  align-self: flex-start;
  background: rgba(13, 27, 42, 0.9);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  color: white;
}

.comp-block.delay {
  align-self: flex-end;
}

.comp-block span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.comp-block strong {
  font-size: 1rem;
  font-weight: 600;
}

.comp-layer.front {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: var(--font-brand);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(21, 93, 177, 0.5);
  animation: ringExpand 3s ease-out infinite;
}

@keyframes ringExpand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--primary);
  color: var(--white);
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.contact-copy > p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 28rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.25s;
}

.channel:hover {
  opacity: 0.85;
}

.channel-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.channel-value {
  font-weight: 600;
  font-size: 1rem;
}

.contact-form {
  position: relative;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  color: white;
  transition: border-color 0.25s, background 0.25s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row select option {
  background: var(--dark);
  color: white;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.form-status {
  font-size: 0.85rem;
  min-height: 1.25rem;
  opacity: 0.9;
}

.form-status.is-success {
  color: #bbf7d0;
}

.form-status.is-error {
  color: #fecaca;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.footer-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background:
    radial-gradient(1.2px 1.2px at 8% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 22% 68%, rgba(170, 205, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 38% 18%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 55% 48%, rgba(126, 182, 255, 0.7), transparent),
    radial-gradient(1px 1px at 68% 28%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 82% 62%, rgba(180, 210, 255, 0.65), transparent),
    radial-gradient(1px 1px at 92% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 14% 42%, rgba(126, 182, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 48% 78%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 75% 82%, rgba(170, 205, 255, 0.55), transparent);
}

.footer-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(21, 93, 177, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(10, 40, 90, 0.22), transparent 70%);
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  max-width: 16rem;
}

.footer-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.25s, opacity 0.25s;
}

.footer-links a:hover {
  color: white;
}

.footer-product {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.25s;
}

.footer-product:hover {
  opacity: 1;
}

.footer-product img {
  height: 20px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.footer-product--quvix img {
  height: 22px;
  /* quvix-mark.png viene sobre negro: lo funde con el fondo oscuro */
  mix-blend-mode: screen;
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray);
}

@media (prefers-reduced-motion: no-preference) {
  .footer-stars {
    opacity: 0;
  }
}

/* ---------- Reveal defaults ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-anim {
  opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-title {
    max-width: none;
  }

  .service {
    grid-template-columns: 3rem 1fr;
  }

  .service-visual {
    display: none;
  }

  .product,
  .product-quvix {
    grid-template-columns: 1fr;
  }

  .product-quvix .product-copy,
  .product-quvix .product-mockup {
    order: unset;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-composition {
    margin: 0 auto;
    max-width: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(7, 17, 31, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    margin-left: 0;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2.5rem);
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 2rem;
    padding-top: 4.5rem;
  }

  .hero-brand {
    font-size: clamp(4rem, 22vw, 6.5rem);
    top: 12%;
  }

  .rail-item {
    border-right: none;
    margin-right: 0;
    width: 50%;
    padding-right: 0.75rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .process-line {
    top: 0;
    bottom: 0;
    left: 1.1rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-line-fill {
    width: 100%;
    height: 0%;
  }

  .process-steps li {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding-left: 0;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .k-mid {
    grid-template-columns: 1fr;
  }

  .k-stats {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-anim {
    opacity: 1;
  }
}
