/* ==========================================================================
   Zetta Data — public site
   Mobile first: base styles target 375px and up, media queries scale upward.
   Tokens come from the brand manual; do not introduce colours outside them.
   ========================================================================== */

/* ---------------------------------------------------------------- fonts
   Self-hosted, latin subset, variable weight. Both families are licensed
   under the SIL Open Font License 1.1 (Plus Jakarta Sans by Tokotype, Asap by
   Omnibus-Type); the files come from Google Fonts.
   ------------------------------------------------------------------------ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Asap';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/asap-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --deep: #001432;
  --deep-2: #041c40;
  --surface: #071f46;
  --surface-2: #0a2652;
  --line: rgba(224, 224, 223, 0.10);
  --line-strong: rgba(224, 224, 223, 0.22);

  --green: #00f3b1;
  --violet: #6b3dfe;
  --violet-soft: #8f6dff;
  --blue: #076eff;
  --blue-soft: #55a0ff;
  --cyan: #56d6f9;

  --mist: #e0e0df;
  --mist-dim: rgba(224, 224, 223, 0.62);
  --mist-faint: rgba(224, 224, 223, 0.38);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Asap', system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: 22px;
  --header-h: 62px;
  --radius: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------- reset */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--mist);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--mist-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--mist); }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------ primitives */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 26px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow--quiet { color: var(--mist-faint); }

.section__title { font-size: 1.5rem; font-weight: 700; }
.section__lede { color: var(--mist-dim); font-size: 0.875rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn--primary {
  background: linear-gradient(100deg, var(--blue), var(--violet) 85%);
  color: #f5f5f4;
  box-shadow: 0 8px 24px -8px rgba(107, 61, 254, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(107, 61, 254, 0.7);
  color: #f5f5f4;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--mist);
}

.btn--ghost:hover {
  border-color: rgba(224, 224, 223, 0.5);
  background: rgba(224, 224, 223, 0.04);
}

.btn--block { width: 100%; }

.cta-note {
  font-size: 0.8125rem;
  color: var(--mist-faint);
}

/* ------------------------------------------------------- reveal on scroll */

/* Hidden only after app.js marks <html> with .js: without JS, or when the
   script fails to load, every section stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ================================================== MÓDULO: header ======= */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 20, 50, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.header__logo img { height: 20px; width: auto; }

.header__nav { display: none; }

.header__cta { display: none; }

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.burger svg { stroke: var(--mist); }

/* mobile drawer */

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  background: var(--deep);
  padding: 26px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.drawer[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drawer a {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--mist);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

/* The drawer CTA is a link: undo the plain drawer link styles. */
.drawer .btn {
  margin-top: 22px;
  padding: 15px 24px;
  border: 1px solid transparent;
  color: #f5f5f4;
}

/* language menu: without JS, both languages are plain links side by side;
   app.js turns the toggle on and the list into a dropdown. */

.lang-menu {
  position: relative;
  margin-left: auto;
  margin-right: 4px;
}

.lang-menu__toggle { display: none; }

.lang-menu__list { display: flex; gap: 2px; }

.lang-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
}

.lang-menu__list a[aria-current] { color: var(--mist); }

.js .lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(224, 224, 223, 0.04);
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: border-color 0.2s var(--ease);
}

.js .lang-menu__toggle:hover { border-color: rgba(224, 224, 223, 0.5); }

.lang-menu__chevron { transition: transform 0.2s var(--ease); }

.js .lang-menu[data-open='true'] .lang-menu__chevron { transform: rotate(180deg); }

.js .lang-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 180px;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.js .lang-menu[data-open='true'] .lang-menu__list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.js .lang-menu__list a {
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--mist);
}

.js .lang-menu__list a:hover { background: rgba(224, 224, 223, 0.06); }

.js .lang-menu__list a[aria-current]::after {
  content: '✓' / '';
  color: var(--green);
}

/* the 500 page has no menu, only a link to the other language */

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ================================================= MÓDULO: error pages === */

.error-page { padding: 72px 0 88px; }

.error-page__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 600px;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mist-dim);
}

.error-page h1 {
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #f5f5f4;
}

.error-page__text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(224, 224, 223, 0.78);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* the standalone 500: the message fills the screen below the header */

.error-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-body .error-page {
  display: flex;
  flex-grow: 1;
  align-items: center;
}

.error-body .error-page__inner { margin: 0 auto; }

/* ==================================================== MÓDULO 1: hero ===== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 52px;
}

.hero__mesh,
.hero__glow {
  position: absolute;
  pointer-events: none;
}

.hero__mesh {
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 40%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 40%, #000 5%, transparent 70%);
}

.hero__glow {
  border-radius: 50%;
  filter: blur(120px);
}

.hero__glow--violet {
  width: 380px;
  height: 380px;
  background: var(--violet);
  opacity: 0.2;
  top: -150px;
  left: 40px;
}

.hero__glow--blue {
  width: 320px;
  height: 320px;
  background: var(--blue);
  opacity: 0.14;
  bottom: -150px;
  right: -80px;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__title {
  font-size: 2.625rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.grad-text {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  color: var(--mist-dim);
  font-size: 0.96875rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.hero__actions .cta-note { text-align: center; }

.hero__figure { display: none; }

/* ============================================ MÓDULO 2: qué hacemos ====== */

.services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.service {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--tint-strong), var(--tint-soft) 60%, transparent);
}

.service__icon { grid-area: 1 / 1 / 3 / 2; align-self: start; }
.service__head { grid-area: 1 / 2 / 2 / 3; }
.service__body { grid-area: 2 / 2 / 3 / 3; }
.service__chevron { display: none; }

.service__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-strong);
  border: 1px solid var(--tint-border);
}

.service__icon svg { stroke: var(--accent); }

.service__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65625rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 4px;
}

.service__name {
  font-size: 1.03125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.service__text {
  color: var(--mist-dim);
  font-size: 0.84375rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--tag-border);
  color: var(--accent);
}

.service--green {
  --accent: var(--green);
  --tint-strong: rgba(0, 243, 177, 0.10);
  --tint-soft: rgba(0, 243, 177, 0.01);
  --tint-border: rgba(0, 243, 177, 0.30);
  --tag-border: rgba(0, 243, 177, 0.42);
}

.service--violet {
  --accent: var(--violet-soft);
  --tint-strong: rgba(107, 61, 254, 0.14);
  --tint-soft: rgba(107, 61, 254, 0.02);
  --tint-border: rgba(107, 61, 254, 0.42);
  --tag-border: rgba(107, 61, 254, 0.50);
}

.service--blue {
  --accent: var(--blue-soft);
  --tint-strong: rgba(7, 110, 255, 0.14);
  --tint-soft: rgba(7, 110, 255, 0.02);
  --tint-border: rgba(7, 110, 255, 0.42);
  --tag-border: rgba(7, 110, 255, 0.50);
}

/* ==================================================== MÓDULO 3: ADN ===== */

.pillars { margin-top: 18px; }

.pillar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.pillar__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  width: 92px;
  flex-shrink: 0;
}

.pillar--green .pillar__name { color: var(--green); }
.pillar--violet .pillar__name { color: var(--violet-soft); }
.pillar--blue .pillar__name { color: var(--blue-soft); }

.pillar__text { color: var(--mist-dim); font-size: 0.84375rem; }

/* =============================================== MÓDULO 4: empresas ===== */

.logos {
  display: flex;
  gap: 10px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.logos::-webkit-scrollbar { display: none; }

.logo-cell {
  scroll-snap-align: start;
  flex-shrink: 0;
  min-width: 132px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.logo-cell img { max-height: 30px; width: auto; }
.logo-cell svg { stroke: var(--mist-faint); }

.logo-cell__cap {
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  color: var(--mist-faint);
}

/* ============================================ MÓDULO 5: testimonios ===== */

.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonials__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.11;
  filter: blur(115px);
  top: 10px;
  right: -100px;
  pointer-events: none;
}

.testimonials .wrap { position: relative; }

.quote-mark { color: var(--green); opacity: 0.5; }

.testi-viewport { overflow: hidden; }

.testi-track {
  display: flex;
  transition: transform 0.45s var(--ease);
}

.testi-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-right: 2px;
}

.testi-slide__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--mist);
  text-wrap: pretty;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #f5f5f4;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.avatar--green {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--deep);
}

.avatar--cyan { background: linear-gradient(135deg, var(--violet), var(--cyan)); }

.testi-author figcaption > span,
.testi-author > span:last-child { min-width: 0; }

.testi-author__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}

.testi-author__role {
  display: block;
  font-size: 0.75rem;
  color: var(--mist-faint);
  margin-top: 2px;
}

figure.testi-slide { margin: 0; }
blockquote.testi-slide__text { margin: 0; }

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.carousel-arrows { display: none; }

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.arrow-btn svg { stroke: var(--mist-dim); }
.arrow-btn:hover { border-color: rgba(0, 243, 177, 0.5); background: rgba(0, 243, 177, 0.06); }
.arrow-btn:hover svg { stroke: var(--green); }

.dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border-radius: 999px;
  background: rgba(224, 224, 223, 0.24);
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}

.dot[aria-selected='true'] {
  width: 22px;
  background: var(--green);
}

/* ================================================== MÓDULO 6: cierre ==== */

.closing { padding-bottom: 52px; }

.closing__panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 38px 24px;
  background: linear-gradient(120deg, #052259, #0a1a3d 45%, #1a0f52);
  border: 1px solid rgba(224, 224, 223, 0.12);
}

.closing__glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.16;
  filter: blur(100px);
  top: -90px;
  right: -40px;
  pointer-events: none;
}

.closing__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.closing__title { font-size: 1.5625rem; font-weight: 700; }

/* ==================================================== MÓDULO: footer ==== */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 26px;
}

.footer__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer__brand img { height: 20px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: var(--mist-dim); font-size: 0.8125rem; }

.footer__col h2 {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mist-faint);
  margin-bottom: 12px;
}

.footer__col li { margin-bottom: 10px; }
.footer__col a,
.footer__col span { font-size: 0.875rem; color: var(--mist-dim); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--mist-faint);
}

/* ===================================================== modal contacto === */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 14px 12px;
  overflow: hidden;
  background: rgba(0, 20, 50, 0.86);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.modal[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

/* `margin: auto` centres the panel while still allowing it to shrink and
   scroll internally — `align-items: center` would clip its top instead. */
.modal__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 540px;
  max-height: 100%;
  margin: auto;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px 20px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-16px);
  transition: transform 0.25s var(--ease);
}

.modal__panel > form[hidden] { display: none; }

.modal__panel > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* the only part that scrolls */
.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 224, 223, 0.24) transparent;
}

.modal__body::-webkit-scrollbar { width: 6px; }
.modal__body::-webkit-scrollbar-thumb {
  background: rgba(224, 224, 223, 0.20);
  border-radius: 999px;
}

.modal[data-open='true'] .modal__panel { transform: none; }

.modal__head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.modal__title { font-size: 1.4375rem; font-weight: 700; margin-bottom: 7px; }
.modal__sub { font-size: 0.84375rem; color: var(--mist-dim); line-height: 1.5; }

.modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close svg { stroke: var(--mist-dim); }
.modal__close:hover { background: rgba(224, 224, 223, 0.06); }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.84375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--mist);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border-radius: 10px;
  background: rgba(224, 224, 223, 0.08);
  border: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

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

.field input::placeholder,
.field textarea::placeholder { color: var(--mist-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(224, 224, 223, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
}

.modal__note svg { flex-shrink: 0; margin-top: 2px; stroke: var(--green); }
.modal__note p { font-size: 0.71875rem; line-height: 1.5; color: var(--mist-faint); }

.modal__actions {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.modal__actions .btn { flex: 1; }

/* while the inquiry is being sent */
.modal__actions .btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* errors: the summary on top, each message under its field */

.form-alert {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.10);
  font-size: 0.84375rem;
  color: #ffd6d6;
}

.form-alert[hidden] { display: none; }

.field__error { margin-top: 6px; font-size: 0.8125rem; color: #ffb3b3; }

.field [aria-invalid='true'] { border-color: rgba(255, 107, 107, 0.7); }

/* the honeypot: out of sight and out of the tab order, but still in the form */
.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* the thanks that replaces the form once it is sent */

.modal__done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0 4px;
}

.modal__done[hidden] { display: none; }
.modal__done-title { font-size: 1.1875rem; font-weight: 700; color: #f5f5f4; }
/* focused by script so screen readers announce it, not by the user */
.modal__done-title:focus { outline: none; }
.modal__done p { font-size: 0.875rem; line-height: 1.55; color: var(--mist-dim); }

/* the same form as a page, when JavaScript did not send it */
.contact-page__form { width: 100%; }

/* ================================================== desktop (>= 900px) == */

@media (min-width: 900px) {
  :root {
    --gutter: 28px;
    --header-h: 76px;
  }

  .section { padding: 92px 0; }
  .section__head { margin-bottom: 44px; }
  .section__title { font-size: 2.0625rem; }
  .section__lede { font-size: 1.01875rem; }

  .burger { display: none; }
  .drawer { display: none; }

  .header__logo img { height: 26px; }

  /* Auto margins centre the nav in the free space, so the language switch
     sits next to the call to action instead of floating between them. */
  .header__nav {
    display: flex;
    gap: 36px;
    align-items: center;
    margin: 0 auto;
  }

  .header__nav a {
    position: relative;
    font-family: var(--font-display);
    font-size: 0.8625rem;
    font-weight: 500;
  }

  .header__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transition: width 0.25s var(--ease);
  }

  .header__nav a:hover::after { width: 100%; }

  .lang-menu { margin-left: 0; margin-right: 12px; }

  .error-page { padding: 120px 0 140px; }

  .error-page h1 { font-size: 2.75rem; }

  .header__cta {
    display: inline-flex;
    min-height: 44px;
    padding: 13px 24px;
  }

  /* hero */

  .hero { padding: 100px 0 92px; }

  .hero__mesh {
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 35%, #000 8%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 60% at 55% 35%, #000 8%, transparent 72%);
  }

  .hero__glow--violet { width: 540px; height: 540px; top: -170px; left: 180px; }
  .hero__glow--blue { width: 420px; height: 420px; bottom: -160px; right: 60px; }

  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: center;
  }

  .hero__title { font-size: 4.25rem; line-height: 1; letter-spacing: -0.042em; margin-top: 20px; }
  .hero__lede { font-size: 1.15625rem; max-width: 520px; margin-top: 26px; }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 38px;
    flex-wrap: wrap;
  }

  .hero__actions .btn { width: auto; min-height: 56px; padding: 17px 32px; font-size: 0.9125rem; }
  .hero__actions .cta-note { text-align: left; font-size: 0.8875rem; }

  .hero__figure { display: flex; justify-content: center; }

  /* servicios */

  .services { gap: 8px; margin-top: 0; }

  .service {
    grid-template-columns: 56px 296px 1fr 30px;
    gap: 26px;
    align-items: start;
    padding: 24px 22px;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--tint-strong), var(--tint-soft) 55%, transparent);
  }

  .service__icon,
  .service__head,
  .service__body { grid-area: auto; }

  .service__chevron { display: block; stroke: var(--accent); }

  .service__icon { width: 56px; height: 56px; border-radius: 15px; }
  .service__icon svg { width: 26px; height: 26px; }
  .service__num { font-size: 0.71875rem; }
  .service__name { font-size: 1.25rem; margin-top: 7px; margin-bottom: 0; }
  .service__body { padding-top: 4px; }
  .service__text { font-size: 0.9625rem; }
  .tags { margin-top: 15px; gap: 8px; }
  .tag { font-size: 0.675rem; padding: 5px 12px; }
  .service__chevron { margin-top: 20px; }

  /* ADN */

  .adn__layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
  }

  .adn__layout .section__head { margin-bottom: 0; }

  .pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 0;
  }

  .pillar {
    display: block;
    padding: 20px 0 0;
    border-top: 2px solid var(--pillar-accent);
  }

  .pillar--green { --pillar-accent: var(--green); }
  .pillar--violet { --pillar-accent: var(--violet); }
  .pillar--blue { --pillar-accent: var(--blue); }

  .pillar__name { width: auto; font-size: 1.25rem; font-weight: 700; display: block; margin-bottom: 12px; color: var(--mist); }
  .pillar--green .pillar__name,
  .pillar--violet .pillar__name,
  .pillar--blue .pillar__name { color: var(--mist); }
  .pillar__text { font-size: 0.9375rem; }

  /* empresas */

  .logos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow: visible;
  }

  .logo-cell { min-width: 0; height: 96px; gap: 10px; }
  .logo-cell svg { width: 30px; height: 30px; }
  .logo-cell img { max-height: 38px; }
  .logo-cell__cap { font-size: 0.59375rem; }

  /* testimonios */

  .testimonials__glow { width: 460px; height: 460px; opacity: 0.10; filter: blur(140px); top: -80px; right: 90px; }

  .testi-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: flex-end;
  }

  .testi-slide__text { font-size: 2.5rem; line-height: 1.32; letter-spacing: -0.028em; max-width: 880px; }
  .testi-author { margin-top: 34px; gap: 14px; }
  .avatar { width: 48px; height: 48px; font-size: 1rem; }
  .testi-author__name { font-size: 0.96875rem; }
  .testi-author__role { font-size: 0.8125rem; margin-top: 3px; }

  .carousel-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
    margin-top: 0;
  }

  .carousel-arrows { display: flex; gap: 10px; }

  /* cierre */

  .closing { padding: 30px 0 100px; }
  .closing__panel { border-radius: 28px; padding: 74px 60px; }
  .closing__glow { width: 380px; height: 380px; filter: blur(120px); top: -120px; right: 60px; }

  .closing__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
  }

  .closing__title { font-size: 2.375rem; max-width: 640px; margin-top: 14px; }
  .closing .btn { width: auto; min-height: 56px; padding: 17px 32px; font-size: 0.9125rem; }

  /* footer */

  .footer { padding: 70px 0 34px; }

  .footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1.1fr 0.9fr;
    gap: 40px;
  }

  .footer__brand img { height: 24px; margin-bottom: 18px; }
  .footer__brand p { max-width: 280px; font-size: 0.91875rem; }
  .footer__col h2 { font-size: 0.78125rem; letter-spacing: 0.08em; margin-bottom: 18px; }
  .footer__col a,
  .footer__col span { font-size: 0.91875rem; }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 56px;
    padding-top: 26px;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* modal */

  .modal { padding: 40px 20px; }
  .modal__panel { padding: 34px 34px 30px; }
  .modal__title { font-size: 1.6875rem; }
  .modal__body { padding-right: 8px; }
}

/* ============================================ visualización del hero ==== */

.figure-flow { width: 100%; max-width: 500px; height: auto; }

@keyframes pulse-travel {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.flow-pulse {
  stroke-dasharray: 3 97;
  stroke-linecap: round;
  animation: pulse-travel 3s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0, 243, 177, 0.85));
}

@keyframes decision-ring {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(2.5); opacity: 0; }
}

.decision-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: decision-ring 3s ease-out infinite;
}

@keyframes decision-core {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.decision-core { animation: decision-core 3s ease-in-out infinite; }

/* ================================================== reduced motion ====== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .decision-ring { opacity: 0; }
}

/* ============================================= PAGE: dashboards ========== */

.page-head { border-top: 0; }

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
}

.dash-list {
  display: grid;
  gap: 14px;
}

.dash-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--surface), var(--deep-2));
  color: var(--mist);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.dash-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  color: var(--mist);
}

.dash-card__title { font-size: 1.0625rem; font-weight: 700; }
.dash-card__text { color: var(--mist-dim); font-size: 0.875rem; }

.dash-card__more {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green);
}

@media (min-width: 900px) {
  .dash-list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* The report keeps a 16:9 box; Power BI scales inside it. */
.dash-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.dash-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
