/* =========================================================
   CONDEI · Convergencia Digital e Informática
   ========================================================= */

:root {
  /* Color */
  --navy-950: #040b14;
  --navy-900: #06121f;
  --navy-800: #0b1e31;
  --navy-700: #12304b;
  --cyan-300: #7fe3ff;
  --cyan-400: #3fcbf0;
  --cyan-500: #1fa9d6;
  --blue-600: #1b7fb3;
  --ink: #0d1b2a;
  --ink-soft: #46586b;
  --line: #dfe7ef;
  --surface: #ffffff;
  --surface-alt: #f3f7fb;
  --white: #ffffff;
  --focus: #ffb703;

  --grad: linear-gradient(120deg, var(--cyan-300), var(--cyan-500) 55%, var(--blue-600));

  /* Motion tokens (Emil Kowalski / animate skill) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-reveal: 700ms;

  /* Layout */
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;
  --shadow-sm: 0 2px 8px rgb(6 18 31 / 0.06);
  --shadow-md: 0 18px 40px -18px rgb(6 18 31 / 0.28);
  --shadow-lg: 0 30px 70px -30px rgb(6 18 31 / 0.5);

  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--focus);
  color: var(--navy-950);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform var(--dur-ui) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

main:focus { outline: none; }

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.hero .eyebrow::before { display: none; }

.section-title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 800; }
.section-sub { color: var(--ink-soft); font-size: 1.125rem; max-width: 60ch; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  background: var(--btn-bg);
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-ui) ease,
    border-color var(--dur-ui) ease,
    box-shadow var(--dur-ui) ease,
    color var(--dur-ui) ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform var(--dur-ui) var(--ease-out); }

.btn-primary {
  background: var(--grad);
  color: var(--navy-950);
  box-shadow: 0 10px 30px -10px rgb(31 169 214 / 0.65);
}
.btn-ghost {
  color: var(--white);
  border-color: rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(6px);
}
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-sm { min-height: 42px; padding: 0.5rem 1.15rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 14px 36px -10px rgb(31 169 214 / 0.85); }
  .btn-primary:hover svg { transform: translateX(3px); }
  .btn-ghost:hover { border-color: rgb(255 255 255 / 0.7); background: rgb(255 255 255 / 0.12); }
  .btn-light:hover { background: var(--cyan-300); }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.site-header.is-scrolled {
  background: rgb(6 18 31 / 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), 0 10px 30px -20px rgb(0 0 0 / 0.6);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.2rem; letter-spacing: 0.12em; font-weight: 800; }
.brand-text small { font-size: 0.7rem; opacity: 0.75; letter-spacing: 0.02em; }

.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-list a:not(.btn) {
  position: relative;
  display: block;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--dur-ui) ease;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.nav-list a.is-active { opacity: 1; }
.nav-list a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-list a:not(.btn):hover { opacity: 1; }
  .nav-list a:not(.btn):hover::after { transform: scaleX(1); }
}
.nav-cta-item { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-ui) ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .brand-text small { display: none; }
  .nav-list {
    position: fixed;
    top: calc(var(--header-h) - 6px);
    left: 1rem; right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgb(6 18 31 / 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgb(255 255 255 / 0.08);
    box-shadow: var(--shadow-lg);
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    visibility: hidden;
    transition:
      opacity var(--dur-ui) var(--ease-out),
      transform var(--dur-ui) var(--ease-out),
      visibility 0s linear var(--dur-ui);
  }
  .nav-list.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition:
      opacity var(--dur-ui) var(--ease-out),
      transform var(--dur-ui) var(--ease-out),
      visibility 0s;
  }
  .nav-list a:not(.btn) { padding: 0.9rem 1rem; font-size: 1.05rem; border-radius: 10px; }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-list a.is-active { background: rgb(127 227 255 / 0.08); color: var(--cyan-300); }
  .nav-cta-item { margin: 0.5rem 0 0; }
  .nav-cta-item .btn { width: 100%; min-height: 50px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: hero-zoom 1600ms var(--ease-out) both;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 15% 40%, rgb(4 11 20 / 0.2), rgb(4 11 20 / 0.85) 70%),
    linear-gradient(180deg, rgb(4 11 20 / 0.55) 0%, rgb(4 11 20 / 0.35) 40%, var(--navy-950) 100%);
}
.hero-network {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 1200px; }
.hero h1 {
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.2rem);
  font-weight: 800;
  max-width: 15ch;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero .eyebrow { color: var(--cyan-300); letter-spacing: 0.1em; }
.hero-lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  max-width: 52ch;
  color: rgb(255 255 255 / 0.82);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-chips li {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgb(127 227 255 / 0.25);
  background: rgb(127 227 255 / 0.07);
  color: rgb(255 255 255 / 0.88);
}

.pulse-dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan-400);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: pulse 2s var(--ease-out) infinite;
}

/* Staggered page-load entrance (CSS: runs off the main thread while page loads) */
.hero-anim {
  animation: rise 900ms var(--ease-out) both;
  animation-delay: calc(150ms + var(--d, 0) * 90ms);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  width: 28px; height: 46px;
  margin-left: -14px;
  border: 2px solid rgb(255 255 255 / 0.4);
  border-radius: 999px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan-300);
  animation: scroll-cue 1.8s var(--ease-in-out) infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { transform: scale(1.08); opacity: 0; }
  to { transform: scale(1); opacity: 0.55; }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}
@keyframes scroll-cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================
   Brands marquee
   ========================================================= */
.brands {
  background: var(--navy-950);
  color: var(--white);
  padding-block: 2.5rem 3rem;
  border-top: 1px solid rgb(255 255 255 / 0.06);
}
.brands-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
  margin-bottom: 1.75rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  padding-right: 3.5rem;
  animation: marquee 50s linear infinite;
}
.marquee-track li {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.5);
  transition: color var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-track li:hover { color: var(--cyan-300); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.is-done { transition-delay: 0ms; transition-duration: 300ms; }

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-media { position: relative; padding: 0 2.5rem 3.5rem 0; }
.about-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-img-main img { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.about-img-float {
  position: absolute;
  right: 0; bottom: 0;
  width: 52%;
  border: 6px solid var(--white);
}
.about-img-float img { aspect-ratio: 4 / 3; object-fit: cover; }
.about-badge {
  position: absolute;
  top: 1.5rem; left: -1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: var(--shadow-lg);
  animation: float 6s var(--ease-in-out) infinite alternate;
}
@keyframes float { to { transform: translateY(-10px); } }

.about-text p { color: var(--ink-soft); }
.about-text strong { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
}
.stat dt { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; line-height: 1.3; }
.stat dd {
  margin: 0 0 0.2rem;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Mission
   ========================================================= */
.mission { color: var(--white); background: var(--navy-900); overflow: hidden; isolation: isolate; }
.mission-bg { position: absolute; inset: 0; z-index: -1; }
.mission-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.mission-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, rgb(6 18 31 / 0.65) 45%, var(--navy-900) 100%);
}
.mission .eyebrow { color: var(--cyan-300); }
.mission .section-sub { color: rgb(255 255 255 / 0.7); }

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.glass-card {
  padding: 2.2rem 1.9rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.js .glass-card.reveal { transition-property: opacity, transform, border-color; }
.glass-card h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.glass-card p { color: rgb(255 255 255 / 0.78); margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .glass-card:hover { border-color: rgb(127 227 255 / 0.45); }
}

.icon-badge {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  background: var(--grad);
  color: var(--navy-950);
}
.icon-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.values-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.values-list li {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgb(127 227 255 / 0.12);
  color: var(--cyan-300);
  border: 1px solid rgb(127 227 255 / 0.25);
}

/* =========================================================
   Solutions
   ========================================================= */
.solutions { background: var(--surface-alt); }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.solution-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.js .solution-card.reveal {
  transition-property: opacity, transform, box-shadow;
}
.solution-media { overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.solution-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.solution-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(6 18 31 / 0.35));
}
.solution-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.solution-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.solution-body p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #e6f6fc;
  color: #0e5f86;
}
@media (hover: hover) and (pointer: fine) {
  .solution-card.is-done:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .solution-card:hover .solution-media img { transform: scale(1.05); }
}

/* =========================================================
   Process
   ========================================================= */
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 16%; right: 16%;
  height: 2px;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(var(--line-progress, 1));
  transition: transform 1200ms var(--ease-in-out) 200ms;
}
.js .process-steps { --line-progress: 0; }
.js .process-steps.is-visible { --line-progress: 1; }

.step { text-align: center; padding: 0 0.5rem; }
.step-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 68px; height: 68px;
  margin-bottom: 1.3rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 0 0 8px var(--surface), 0 0 0 9px var(--line);
}
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }

/* =========================================================
   Portfolio tabs
   ========================================================= */
.portfolio { background: var(--surface-alt); }
.tab-list {
  position: relative;
  display: inline-flex;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}
.tab {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0.55rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color var(--dur-ui) ease;
}
.tab[aria-selected="true"] { color: var(--white); }
.tab-indicator {
  position: absolute;
  top: 0.35rem; bottom: 0.35rem; left: 0;
  width: var(--tab-w, 0);
  border-radius: 999px;
  background: var(--navy-900);
  transform: translateX(var(--tab-x, 0));
  transition: transform 300ms var(--ease-in-out), width 300ms var(--ease-in-out);
}
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel:not([hidden]) { animation: panel-in 300ms var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.check-grid li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
  transition: border-color var(--dur-ui) ease;
}
.check-grid li::before {
  content: "";
  position: absolute;
  left: 1.05rem; top: 1.05rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad) ;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm4.6 7.3l-5.4 5.6a.9.9 0 01-1.3 0L5.4 10.4a.9.9 0 011.3-1.3l1.9 1.9 4.7-4.9a.9.9 0 011.3 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm4.6 7.3l-5.4 5.6a.9.9 0 01-1.3 0L5.4 10.4a.9.9 0 011.3-1.3l1.9 1.9 4.7-4.9a.9.9 0 011.3 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .check-grid li:hover { border-color: var(--cyan-400); }
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  color: var(--white);
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
}
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(6 18 31 / 0.93), rgb(18 48 75 / 0.85) 60%, rgb(27 127 179 / 0.75));
}
.cta h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); font-weight: 800; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.cta p { font-size: 1.15rem; color: rgb(255 255 255 / 0.85); margin-bottom: 2rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-info > p { color: var(--ink-soft); }
.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list a { color: var(--blue-600); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.contact-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e6f6fc;
  color: var(--blue-600);
}
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.contact-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 1.3rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field label span { color: #b42318; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  font-size: 16px; /* evita zoom en iOS */
  border-radius: 12px;
  border: 1.5px solid #c9d5e1;
  background: #fbfdff;
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgb(31 169 214 / 0.2);
}
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: 0.85rem; font-weight: 600; margin: 0.3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
.form-status { font-weight: 700; color: #067647; margin: 0.6rem 0 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b42318; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .btn[disabled] { opacity: 0.7; cursor: progress; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-950);
  color: rgb(255 255 255 / 0.75);
  padding-top: 4rem;
}
.site-footer .brand { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-about { margin-top: 1rem; max-width: 36ch; }
.footer-title {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links { display: grid; gap: 0.55rem; }
.footer-links a { text-decoration: none; transition: color var(--dur-ui) ease; }
.footer-links a:hover { color: var(--cyan-300); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--cyan-300); }

/* Back to top */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: var(--navy-950);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: scale(0.95); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; margin-inline: auto; width: 100%; }
  .mvv-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-steps::before {
    top: 34px; bottom: 34px;
    left: 34px; right: auto;
    width: 2px; height: auto;
    transform-origin: top;
    transform: scaleY(var(--line-progress, 1));
  }
  .step { display: grid; grid-template-columns: 68px 1fr; column-gap: 1.25rem; text-align: left; padding: 0; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin: 0.6rem 0 0.4rem; }
  .step p { margin: 0; max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
  .stat { padding: 0.9rem 0.7rem; }
  .stat dt { font-size: 0.75rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .about-media { padding: 0 1.25rem 2.5rem 0; }
  .about-badge { left: 0.5rem; top: 0.75rem; }
  .tab-list { display: flex; }
  .tab { flex: 1; padding-inline: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Reduced motion: fewer & gentler — keep fades, drop movement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-anim { animation: fade 400ms ease both; animation-delay: 0ms; }
  .hero-media img { animation: none; }
  .pulse-dot::after,
  .scroll-cue span,
  .about-badge { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 1rem 2.5rem; padding: 0 1.25rem; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js .reveal { transform: none; transition: opacity 400ms ease; transition-delay: 0ms; }
  .js .process-steps { --line-progress: 1; }
  .process-steps::before { transition: none; }
  .tab-panel:not([hidden]) { animation: fade 200ms ease; }
  .tab-indicator { transition: none; }
  .solution-media img,
  .solution-card { transition: none !important; }
  .solution-card:hover .solution-media img,
  .solution-card.is-done:hover { transform: none !important; }
  .nav-list,
  .nav-list.is-open { transform: none !important; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
