/* ==========================================================================
   Boostevo — Design System
   Smarter technology for smarter business
   ========================================================================== */

:root {
  --navy: #3d4dc4;
  --navy-dark: #2f3ca0;
  --navy-darker: #232c6e;
  --charcoal: #272727;
  --ink: #16182b;
  --grey-900: #2a2d3a;
  --grey-700: #565a6e;
  --grey-500: #7b7f95;
  --grey-300: #d4d6e2;
  --grey-100: #f2f3f8;
  --grey-50: #f8f9fc;
  --white: #ffffff;
  --accent: #2f6fed;
  --accent-dark: #2558c7;
  --success: #1f9d63;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(22, 24, 43, 0.08);
  --shadow-md: 0 8px 24px rgba(22, 24, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 24, 43, 0.18);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 44px 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: translateY(-50%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover::after { transform: translateY(-50%) translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(22,29,77,0.32);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-darker) 100%); border-color: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,29,77,0.38); }
.hero .btn-primary, .page-hero .btn-primary { border-color: rgba(255,255,255,0.55); }
.hero .btn-primary:hover, .page-hero .btn-primary:hover { border-color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,29,77,0.2); }
.btn-outline-white { border-color: rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-white { background: var(--white); color: var(--navy); box-shadow: 0 4px 14px rgba(22,29,77,0.14); }
.btn-white:hover { background: var(--grey-100); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,29,77,0.18); }
.btn-sm { padding: 9px 36px 9px 18px; font-size: 14px; }
.btn-sm::after { right: 14px; width: 13px; height: 13px; }
.btn-header { padding: 8px 40px 8px 30px; font-size: 14.5px; }
.btn-link { font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.btn-link::after { content: "\2192"; transition: transform 0.15s ease; }
.btn-link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Header + Mega Menu
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
}

.utility-bar {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}
.utility-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 24px; height: 36px; }
.utility-bar a { color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--white); }
.utility-bar .divider { width: 1px; height: 14px; background: rgba(255,255,255,0.25); }
.utility-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Social icons */
.utility-social { display: flex; align-items: center; gap: 14px; }
.social-icon {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s ease, transform 0.15s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { color: var(--white); transform: translateY(-1px); }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher-btn {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: none; padding: 4px 2px;
  color: rgba(255,255,255,0.85);
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.15s ease;
}
.lang-switcher-btn:hover { color: var(--white); }
.lang-flag-icon { width: 18px; height: 13px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }
.lang-chev { width: 12px; height: 12px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.lang-switcher.open .lang-chev { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 176px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.95);
  transform-origin: top right;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  z-index: 50;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-option {
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-option:hover { background: var(--grey-100); }
.lang-option.active { color: var(--navy); }
.lang-option.active span::after { content: "\2713"; margin-left: auto; color: var(--navy); font-weight: 800; }
.lang-option span { display: flex; align-items: center; width: 100%; }

.main-nav-wrap { height: var(--header-h); }
.main-nav-wrap .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

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

.main-nav { display: flex; align-items: center; height: 100%; }
.main-nav > ul { display: flex; align-items: center; height: 100%; gap: 4px; }
.main-nav > ul > li { height: 100%; display: flex; align-items: center; position: static; }

.nav-top-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav-top-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100% - 32px);
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-top-link .chev { font-size: 18px; line-height: 1; margin-left: 2px; transition: transform 0.15s ease; color: var(--grey-700); display: inline-block; }
.nav-top-link:hover,
li.has-mega.open .nav-top-link { color: var(--navy); }
.nav-top-link:hover::after,
li.has-mega.open .nav-top-link::after { transform: translateX(-50%) scaleX(1); }
li.has-mega:hover .chev, li.has-mega.open .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  overflow: hidden;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--grey-300); background: var(--white); color: var(--grey-700);
  transition: all 0.15s ease;
}
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }

/* Mega menu panel */
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + 36px);
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px) scaleY(0.97);
  transform-origin: top center;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  z-index: 400;
}
.no-utility .mega-panel { top: var(--header-h); }
li.has-mega:hover .mega-panel,
li.has-mega.open .mega-panel { opacity: 1; visibility: visible; transform: translateY(0) scaleY(1); }
li.has-mega:hover .mega-link,
li.has-mega.open .mega-link {
  animation: megaLinkIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
li.has-mega:hover .mega-link:nth-child(1), li.has-mega.open .mega-link:nth-child(1) { animation-delay: 0.04s; }
li.has-mega:hover .mega-link:nth-child(2), li.has-mega.open .mega-link:nth-child(2) { animation-delay: 0.08s; }
li.has-mega:hover .mega-link:nth-child(3), li.has-mega.open .mega-link:nth-child(3) { animation-delay: 0.12s; }
li.has-mega:hover .mega-link:nth-child(4), li.has-mega.open .mega-link:nth-child(4) { animation-delay: 0.16s; }
li.has-mega:hover .mega-link:nth-child(5), li.has-mega.open .mega-link:nth-child(5) { animation-delay: 0.2s; }
li.has-mega:hover .mega-link:nth-child(6), li.has-mega.open .mega-link:nth-child(6) { animation-delay: 0.24s; }
li.has-mega:hover .mega-link:nth-child(7), li.has-mega.open .mega-link:nth-child(7) { animation-delay: 0.28s; }
li.has-mega:hover .mega-link:nth-child(8), li.has-mega.open .mega-link:nth-child(8) { animation-delay: 0.32s; }
@keyframes megaLinkIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}
.mega-intro h3 { font-size: 22px; margin-bottom: 10px; }
.mega-intro p { color: var(--grey-700); font-size: 14.5px; margin-bottom: 18px; }
.mega-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px; }
.mega-link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px; border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.mega-link:hover { background: var(--grey-100); }
.mega-link .mega-link-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.mega-link .mega-link-desc { font-size: 13px; color: var(--grey-500); }

/* Mobile nav */
.mobile-toggle { display: none; width: 40px; height: 40px; border: none; background: transparent; align-items: center; justify-content: center; }
.mobile-toggle span, .mobile-toggle::before, .mobile-toggle::after { display: none; }
.hamburger { width: 22px; height: 16px; position: relative; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s ease; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }
.mobile-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-open .hamburger span:nth-child(2) { opacity: 0; }
.mobile-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 55%, #3a46a8 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.30) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 88px 24px 96px;
}
.hero h1 { font-size: 52px; margin-bottom: 20px; }
.hero h1.hero-title-caps {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.6);
}
.hero h1.hero-title-caps .ht-blue { color: #6a9bff; }
.hero .lead { text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.hero .lead { font-size: 16px; color: rgba(255,255,255,0.88); max-width: 520px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.hero-visual-img { width: 100%; height: auto; display: block; }

.page-hero {
  padding: 64px 24px 72px;
  background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 65%, #3a46a8 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,106,61,0.25), transparent 45%);
}
.page-hero-inner { position: relative; max-width: 760px; }
.page-hero h1 { font-size: 42px; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.85); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================================
   Trust / Stats strip
   ========================================================================== */
.trust-strip { background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 100%); color: var(--white); padding: 64px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.trust-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.trust-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-2px); }
.trust-card .num { font-size: 34px; font-weight: 800; color: var(--white); }
.trust-card .num span { color: #8fb4ff; }
.trust-card .label { font-size: 13.5px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 36px; margin-bottom: 14px; }
.section-head p { color: var(--grey-700); font-size: 17px; }

.bg-grey { background: var(--grey-50); }
.bg-navy { background: var(--navy-darker); color: var(--white); }
.bg-navy .section-head p { color: rgba(255,255,255,0.75); }

/* Dark gradient background (same as .trust-strip) reused for sections that need it,
   with contrast-safe overrides for the eyebrow-mono / two-tone title / card pattern */
.bg-navy-gradient { background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 100%); color: var(--white); }
/* Scoped with the section's own ID so these always win over the shared .section-why
   rules, regardless of source order (both selectors otherwise tie in specificity). */
#industries-spotlight .eyebrow-mono { color: #cfe0ff; }
#industries-spotlight .section-head h2 .w-dark { color: var(--white); }
#industries-spotlight .section-head h2 .w-blue {
  background: linear-gradient(90deg, #a9d0ff, #e3f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#industries-spotlight .section-head p { color: var(--grey-300); }

.section-industries {
  position: relative;
  overflow: hidden;
  padding-top: 56px;
}
.industries-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.industries-bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}
.industries-bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35,44,110,0.88) 0%, rgba(61,77,196,0.78) 100%);
}
.spotlight-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(159,196,255,0.25), transparent 60%);
  transition: background 0.15s ease;
}
.section-industries .container { position: relative; z-index: 2; }

/* "Por qué Boostevo" head — follows the eyebrow-mono / workflows-title pattern */
.section-why .section-head h2 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 16px;
}
.section-why .section-head h2 .w-dark { color: var(--ink); }
.section-why .section-head h2 .w-blue {
  background: linear-gradient(90deg, #2f6fed, #5b8def);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-why .section-head p {
  font-size: 22px;
  font-weight: 500;
  color: var(--grey-500);
  line-height: 1.3;
}

/* Flujos autónomos (video showcase) */
.bg-workflows { background: #fbfcfe; }
.workflows-head { max-width: 800px; margin: 0 auto 36px; text-align: center; }
.eyebrow-mono {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.workflows-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 6px;
}
.workflows-title .w-dark { color: var(--ink); }
.workflows-title .w-blue {
  background: linear-gradient(90deg, #2f6fed, #5b8def);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.workflows-sub { font-size: 22px; font-weight: 500; color: var(--grey-500); line-height: 1.3; }
.workflows-video-wrap {
  margin-top: 40px;
  line-height: 0;
}
.workflows-video-wrap video { width: 100%; height: auto; display: block; }

/* Feature grid / cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-darker));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px; margin-bottom: 20px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--grey-700); font-size: 15px; margin-bottom: 16px; }

.card-dark {
  background: var(--navy-darker);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
}
.card-dark h3 { margin-bottom: 10px; font-size: 19px; }
.card-dark p { color: rgba(255,255,255,0.72); font-size: 15px; margin-bottom: 16px; }
.card-dark .btn-link { color: var(--white); }

/* Split / alternating content rows */
.split-row {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: center;
}
.split-row.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--grey-100), var(--grey-300));
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.split-media .glyph { font-size: 96px; opacity: 0.18; }
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.split-media--photo {
  aspect-ratio: auto;
  background: none;
  box-shadow: none;
}
.split-media--photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.split-text .eyebrow { display: block; }
.split-text h2 { font-size: 32px; margin-bottom: 16px; }
.split-text p { color: var(--grey-700); font-size: 16.5px; margin-bottom: 24px; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--grey-900); }
.check-list li::before { content: "\2713"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-300);
}
.testimonial-quote { font-size: 20px; font-weight: 600; line-height: 1.5; margin-bottom: 24px; color: var(--ink); }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.testimonial-name { font-weight: 700; font-size: 14.5px; }
.testimonial-role { font-size: 13px; color: var(--grey-500); }

/* Logos strip */
.logos-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding: 32px 0; }
.logo-chip { font-weight: 800; font-size: 18px; color: var(--grey-500); letter-spacing: -0.02em; opacity: 0.7; }
.tech-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--grey-700);
  letter-spacing: -0.01em;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.tech-chip svg { width: 22px; height: 22px; flex-shrink: 0; }
.tech-chip:hover { opacity: 1; color: var(--navy); }

/* Logo marquee (clientes) */
.logo-marquee-section {
  background: linear-gradient(90deg, var(--navy-darker) 0%, var(--navy) 100%);
}
.logo-marquee {
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee-track .logo-item {
  flex-shrink: 0;
  height: 46px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-marquee-track .logo-item img {
  height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-marquee-track .logo-item:hover img {
  opacity: 1;
  transform: scale(1.04);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}
@media (max-width: 860px) {
  .logo-marquee-track { gap: 24px; animation-duration: 22s; }
  .logo-marquee-track .logo-item { height: 34px; min-width: 90px; }
}

/* ==========================================================================
   Showcase tabs (panel con pestañas)
   ========================================================================== */
.showcase-tabs {
  position: relative;
  overflow: hidden;
  background: var(--navy-darker);
  color: var(--white);
  padding-top: 15px;
}

/* Animated background photo — always shown zoomed in (never at full size) and panned/
   scaled/rotated per active tab, echoing the moving background effect on servicenow.com's
   tabbed hero. A tinted overlay keeps the foreground text readable over the image. */
.showcase-bg-shape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.showcase-bg-shape::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(22,29,77,0.82) 0%, rgba(44,56,146,0.72) 55%, rgba(35,90,78,0.68) 100%);
  z-index: 1;
}
.showcase-bg-shape video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210%;
  height: 210%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) translateX(-220px) translateY(-70px) scale(1) rotate(0deg);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-tabs[data-active-tab="0"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(-220px) translateY(-70px) scale(1) rotate(0deg); }
.showcase-tabs[data-active-tab="1"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(260px) translateY(110px) scale(1.15) rotate(6deg); }
.showcase-tabs[data-active-tab="2"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(-300px) translateY(130px) scale(1.1) rotate(-7deg); }
.showcase-tabs[data-active-tab="3"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(210px) translateY(-160px) scale(1.2) rotate(8deg); }
.showcase-tabs[data-active-tab="4"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(-150px) translateY(-140px) scale(1.12) rotate(-5deg); }
@media (prefers-reduced-motion: reduce) {
  .showcase-bg-shape video { transition: none; }
}
.tabs-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px;
  margin: 0 auto 56px;
  width: fit-content;
  max-width: 100%;
}
.tab-pill {
  position: relative;
  overflow: hidden;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-pill:hover { color: var(--white); }
.tab-pill.active { background: var(--white); color: var(--navy-darker); }

.showcase-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 8px;
}
.showcase-text h2 { font-size: 34px; margin-bottom: 18px; }
.showcase-text p { font-size: 16.5px; color: rgba(255,255,255,0.78); margin-bottom: 28px; max-width: 460px; }

.showcase-visual { position: relative; min-height: 420px; }
.showcase-chip {
  position: absolute;
  top: 0; left: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 20px 10px 10px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  font-weight: 700;
  font-size: 14.5px;
}
.showcase-chip .avatar { width: 40px; height: 40px; font-size: 13px; }
.showcase-card {
  position: relative;
  margin-top: 64px;
  margin-left: auto;
  width: 88%;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.showcase-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.showcase-card-head h4 { font-size: 21px; }
.badge-success {
  background: #e4f7ec; color: var(--success);
  font-weight: 700; font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px;
}
.showcase-card-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 14px; }
.showcase-checklist { display: flex; flex-direction: column; gap: 14px; }
.showcase-checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--grey-900); }
.showcase-checklist li::before { content: "\2713"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--success); color: var(--white); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.floating-pill {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.floating-pill:hover { transform: translateX(-4px); background: var(--navy-dark); }
.pill-icon { width: 17px; height: 17px; flex-shrink: 0; }

/* Site-wide floating actions — hidden until the page scrolls past the header/hero band,
   then slide in from the right; hide again near the top of the page. */
.site-floating-actions {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(160%, -50%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.55s;
}
.site-floating-actions.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}
.site-floating-actions .floating-pill { display: flex; align-items: center; gap: 8px; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.15s ease; }
.site-floating-actions.is-visible .floating-pill:nth-child(2) { transition-delay: 0.06s; }
.site-floating-actions .floating-pill:hover { transform: translateX(-4px); }
@media (prefers-reduced-motion: reduce) {
  .site-floating-actions, .site-floating-actions .floating-pill { transition: opacity 0.3s ease; }
}

/* ==========================================================================
   Put AI to work (tarjeta con enlaces)
   ========================================================================== */
.cta-links-card {
  background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 56px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.cta-links-intro h2 { font-size: 32px; margin-bottom: 14px; }
.cta-links-intro .highlight { color: var(--accent); }
.cta-links-intro p { color: rgba(255,255,255,0.75); font-size: 16px; }
.cta-links-list { display: flex; flex-direction: column; }
.cta-link-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-top: 1px solid rgba(255,255,255,0.14);
  transition: padding-left 0.2s ease;
}
.cta-links-list a:last-child { border-bottom: none; }
.cta-link-row:hover { padding-left: 16px; }
.cta-link-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.cta-link-text h4 { color: var(--white); font-size: 17px; margin-bottom: 4px; }
.cta-link-text p { color: rgba(255,255,255,0.65); font-size: 14px; }
.cta-link-arrow {
  margin-left: auto;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.cta-link-row:hover .cta-link-arrow { background: var(--accent); border-color: var(--accent); transform: translateX(3px); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-darker) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: 30px; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.78); font-size: 16px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Newsletter */
.newsletter { background: var(--grey-900); color: var(--white); padding: 40px 0; }
.newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h4 { font-size: 18px; margin-bottom: 4px; }
.newsletter p { color: rgba(255,255,255,0.65); font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: var(--white); min-width: 260px; font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 26px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 260px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--white);
  transition: all 0.15s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-col h5 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--white); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-legal a:hover { color: var(--white); }

/* ==========================================================================
   Contact form / page-specific
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--grey-100); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.contact-info-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14.5px; color: var(--grey-700); }

.form-card { background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--grey-900); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--grey-300);
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44,56,146,0.12); }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--grey-300); height: 320px; background: var(--grey-100); display: flex; align-items: center; justify-content: center; color: var(--grey-500); font-size: 14px; }

/* Value / team grids */
.value-card { text-align: center; padding: 28px 20px; }
.value-card .card-icon { margin: 0 auto 20px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1/1; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--grey-100), var(--grey-300)); display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--grey-500); margin-bottom: 16px; }
.team-card h4 { font-size: 16px; margin-bottom: 2px; }
.team-card p { font-size: 13.5px; color: var(--grey-500); }

/* Timeline (nosotros) */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--grey-300); display: flex; flex-direction: column; gap: 36px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -39px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--accent); }
.timeline-item .year { font-weight: 800; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.timeline-item h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { color: var(--grey-700); font-size: 14.5px; }

/* Industry tabs / list */
.industry-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-card { border: 1px solid var(--grey-300); border-radius: var(--radius-lg); padding: 28px; transition: all 0.18s ease; }
.industry-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.industry-card .card-icon { background: var(--grey-100); color: var(--navy); }
.industry-card:hover .card-icon { background: var(--navy); color: var(--white); }

/* Pricing-ish tiers used in soluciones page as process steps */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step .step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; margin-bottom: 18px;
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--grey-700); }

/* Process visual (dashed icon circles + wavy connectors) — used on the homepage
   "Cómo trabajamos" section, layered above the .process-steps text row */
.process-visual { display: flex; align-items: center; margin-bottom: 40px; }
.process-node { position: relative; flex-shrink: 0; }
.process-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed var(--grey-300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 42px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.process-node:hover .process-circle { border-color: var(--navy); transform: translateY(-3px); }
.process-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grey-100);
  border: 1px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--grey-700);
  z-index: 1;
}
.process-connector { flex: 1; height: 50px; margin: 0 -6px; color: var(--grey-300); align-self: center; }
.process-connector svg { width: 100%; height: 100%; display: block; }
.process-connector svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 6 7; }
.process-steps--centered .process-step { text-align: center; padding-top: 0; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--grey-300); padding: 22px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 16px; }
.faq-q .plus { font-size: 20px; color: var(--navy); transition: transform 0.2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding-top: 14px; color: var(--grey-700); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 300px; }

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split-row { grid-template-columns: 1fr; }
  .split-row.reverse .split-media { order: 0; }
  .grid-3, .grid-4, .industry-list, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .utility-bar { display: none; }
  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white); overflow-y: auto; padding: 12px 0 40px; }
  .main-nav.mobile-visible { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
  .main-nav > ul > li { height: auto; display: block; border-bottom: 1px solid var(--grey-100); }
  .nav-top-link { padding: 18px 24px; border-bottom: none; justify-content: space-between; }
  .mega-panel { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; border-bottom: none; transition: none; }
  li.has-mega.open .mega-panel { display: block; }
  .mega-inner { grid-template-columns: 1fr; padding: 8px 24px 24px; gap: 20px; }
  .mega-links-grid { grid-template-columns: 1fr; }
  .mobile-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero h1 { font-size: 36px; }
  .hero h1.hero-title-caps { font-size: 24px; }
  .page-hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 27px; }
  .grid-3, .grid-4, .grid-2, .industry-list, .process-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .trust-strip .container { justify-content: flex-start; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .process-visual { flex-wrap: wrap; justify-content: center; gap: 32px 24px; margin-bottom: 24px; }
  .process-connector { display: none; }
  .process-circle { width: 90px; height: 90px; font-size: 32px; }
  .process-steps--centered { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .split-row { grid-template-columns: 1fr; }
  .tabs-nav { padding: 5px; gap: 2px; margin-bottom: 40px; }
  .tab-pill { padding: 10px 14px; font-size: 13px; }
  .showcase-body { grid-template-columns: 1fr; gap: 40px; }
  .showcase-bg-shape video { width: 280%; height: 280%; }
  .showcase-tabs[data-active-tab="0"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(-110px) translateY(-40px) scale(1) rotate(0deg); }
  .showcase-tabs[data-active-tab="1"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(130px) translateY(60px) scale(1.15) rotate(6deg); }
  .showcase-tabs[data-active-tab="2"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(-150px) translateY(70px) scale(1.1) rotate(-7deg); }
  .showcase-tabs[data-active-tab="3"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(105px) translateY(-80px) scale(1.2) rotate(8deg); }
  .showcase-tabs[data-active-tab="4"] .showcase-bg-shape video { transform: translate(-50%, -50%) translateX(-75px) translateY(-70px) scale(1.12) rotate(-5deg); }
  .showcase-text h2 { font-size: 26px; }
  .showcase-visual { min-height: auto; padding: 0 0 32px; }
  .showcase-chip { position: static; display: inline-flex; margin-bottom: 16px; }
  .showcase-card { width: 100%; margin-top: 0; }
  .site-floating-actions { right: 12px; gap: 8px; }
  .site-floating-actions .floating-pill { padding: 8px 14px; font-size: 12px; }
  .workflows-title { font-size: 30px; }
  .workflows-sub { font-size: 17px; }
  .section-why .section-head h2 { font-size: 27px; }
  .section-why .section-head p { font-size: 17px; }
  .cta-links-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}

/* ==========================================================================
   Entrance animations — macOS-onboarding style:
   soft fade + blur-to-focus + gentle rise/scale with a spring-like ease
   ========================================================================== */
:root {
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero: plays immediately on page load */
.hero-anim {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  filter: blur(14px);
  transition:
    opacity 1s ease-out,
    transform 1.3s var(--spring),
    filter 1s ease-out;
  transition-delay: calc(var(--hero-delay, 0) * 140ms + 120ms);
  will-change: opacity, transform, filter;
}
.hero-anim.is-visible { opacity: 1; transform: none; filter: none; }
.hero-anim--visual { transform: translateY(30px) scale(0.92); }
.hero-anim--visual.is-visible { transform: none; }

/* Scroll reveal: same feel, triggered as elements enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  filter: blur(12px);
  transition:
    opacity 0.9s ease-out,
    transform 1.2s var(--spring),
    filter 0.9s ease-out;
  transition-delay: calc(var(--reveal-stagger, 0) * 110ms);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal--left { transform: translateX(-36px) scale(0.97); }
.reveal--left.is-visible { transform: none; }
.reveal--right { transform: translateX(36px) scale(0.97); }
.reveal--right.is-visible { transform: none; }
.reveal--scale { transform: translateY(18px) scale(0.88); }
.reveal--scale.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim, .hero-anim--visual,
  .reveal, .reveal--left, .reveal--right, .reveal--scale {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   Wave / ripple click effect (buttons, pills, icon buttons)
   ========================================================================== */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  mix-blend-mode: overlay;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  animation: rippleWaveAnim 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rippleWaveAnim {
  to { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ripple-wave { display: none; }
}

/* ==========================================================================
   Presence map (home)
   ========================================================================== */
.presence-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.presence-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.presence-item {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--radius-lg);
  padding: 14px 18px; cursor: pointer; font-family: inherit; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.presence-item:hover { border-color: var(--accent); transform: translateX(4px); }
.presence-item.active { border-color: var(--accent); box-shadow: 0 8px 24px rgba(47,111,237,0.18); }
.presence-item-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--grey-100); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; transition: background .25s, color .25s; }
.presence-item.active .presence-item-icon { background: var(--accent); color: var(--white); }
.presence-item-text strong { display: block; font-size: 16px; font-weight: 700; }
.presence-item-text small { font-size: 13.5px; color: var(--grey-500); }
.presence-map-wrap { min-height: 600px; }
.presence-map { height: 100%; min-height: 600px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--grey-300); box-shadow: var(--shadow-md); background: var(--grey-100); z-index: 0; }
.map-pin { position: relative; width: 20px; height: 20px; cursor: pointer; }
.map-pin span { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(22,24,43,0.35); transition: transform .25s; }
.map-pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(47,111,237,0.45); animation: pin-pulse 2.2s ease-out infinite; }
.map-pin.active span { transform: scale(1.35); background: var(--accent-dark); }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }
.presence-map .mapboxgl-popup-content { font-family: inherit; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(22,24,43,0.2); }
.presence-map .mapboxgl-popup-content strong { display: block; font-size: 15px; color: var(--ink); }
.presence-map .mapboxgl-popup-content span { font-size: 13px; color: var(--grey-500); }
@media (prefers-reduced-motion: reduce) { .map-pin::after { animation: none; } }
@media (max-width: 860px) {
  .presence-grid { grid-template-columns: 1fr; }
  .presence-list { display: grid; grid-template-columns: 1fr 1fr; }
  .presence-map-wrap, .presence-map { min-height: 380px; }
}
@media (max-width: 520px) { .presence-list { grid-template-columns: 1fr; } }
