/* ==========================================================================
   ARTICOD DIGITAL LAB — Design System
   Tokens derived from the official Style Guide (Colors, Text, Spacing,
   Buttons, Forms). Font: Montserrat. No prices displayed (quote-based).
   ========================================================================== */

/* ------------------------------- Tokens --------------------------------- */
:root {
  /* Brand — Primary (purple) */
  --brand-50: #9D8BBD;
  --brand: #56378D;          /* base / logo */
  --brand-700: #342256;

  /* Secondary (indigo / periwinkle) */
  --indigo: #404D95;
  --periwinkle: #697FF5;
  --periwinkle-50: #A8B5F9;

  /* Tertiary (green) */
  --green-50: #ADD584;
  --green: #72B62B;
  --green-700: #466F1A;

  /* Complementary (orange) */
  --orange-50: #F19674;
  --orange: #E64A10;
  --orange-700: #8C2D0A;

  /* Accent (magenta) */
  --magenta-50: #B66BBD;
  --magenta: #81008D;
  --magenta-700: #4F0056;

  /* Grayscale */
  --white: #FFFFFF;
  --gray-100: #E9E9E9;
  --gray-200: #D9D9D9;
  --gray-300: #A5A5A5;
  --gray-400: #797979;
  --gray-500: #6B6B6B;
  --gray-700: #414141;
  --gray-900: #181818;
  --black: #000000;

  /* Semantic */
  --success: #72B62B;
  --warning: #F0A402;
  --error: #DA1300;

  /* Roles */
  --text: #181818;
  --text-soft: #414141;
  --text-muted: #6B6B6B;
  --bg: #FFFFFF;
  --bg-alt: #F6F5F9;      /* very light purple-tinted */
  --bg-dark: #211640;     /* deep brand background */
  --bg-darker: #16102b;
  --line: #E9E9E9;
  --line-dark: rgba(255,255,255,.14);

  /* Typography */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Type scale (fluid: mobile -> desktop, per Style Guide) */
  --h1: clamp(2.625rem, 1.6rem + 4.4vw, 3.75rem);   /* 42 -> 60 */
  --h2: clamp(2rem, 1.5rem + 2.1vw, 2.375rem);       /* 32 -> 38 */
  --h3: clamp(1.5rem, 1.2rem + 1.3vw, 1.875rem);     /* 24 -> 30 */
  --h4: clamp(1.25rem, 1.05rem + 0.9vw, 1.5625rem);  /* 20 -> 25 */
  --h5: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);     /* 18 -> 22 */
  --h6: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);      /* 16 -> 18 */
  --body: 1rem;      /* 16 */
  --small: 0.875rem; /* 14 */
  --caption: 0.75rem;/* 12 */

  /* Spacing / layout (Style Guide: 1280 max, sections 100/80/60) */
  --maxw: 1280px;
  --gutter: 24px;
  --section-y: clamp(60px, 4vw + 40px, 100px);

  /* Radii & shadows */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(33,22,64,.06);
  --shadow: 0 12px 40px rgba(33,22,64,.10);
  --shadow-lg: 0 24px 70px rgba(33,22,64,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); overflow-y: scroll; }
body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: var(--bg);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-700); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------- Typography -------------------------------- */
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; color: var(--brand-700); letter-spacing: -0.01em; }
h1 { font-size: var(--h1); font-weight: 800; line-height: 1.08; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); line-height: 1.; }
p { color: var(--text-soft); }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--text-soft); line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--small); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 16px;
}
.text-muted { color: var(--text-muted); }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
@media screen and (max-width: 1332px) {
  .container.nav {max-width: calc(100% - 90px);}
}
.container-narrow { max-width: 860px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 3vw, 64px); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: start;}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--small); font-weight: 700; letter-spacing: .01em;
  padding: 14px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer; text-align: center; line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(86,55,141,.28); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }

.btn-secondary { background: var(--green); color: #fff; box-shadow: 0 0 30px var(--green); }
.btn-secondary:hover { background: var(--green); color: #fff; box-shadow: 0 0 60px var(--green); }

.btn-tertiary { background: var(--green); color: #fff; box-shadow: 0 0 30px var(--green); }
.btn-tertiary:hover { background: var(--green); color: #fff; box-shadow: 0 0 60px var(--green); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-simple { background: transparent; color: var(--brand); padding-inline: 6px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-weight: 800; }
.btn-simple:hover { color: var(--brand-700); }
.btn-simple .arrow { transition: transform .2s var(--ease); }
.btn-simple:hover .arrow { transform: translateX(4px); }

/* On dark backgrounds */
.on-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.on-dark .btn-outline:hover { background: #fff; color: var(--brand-700); border-color:#fff; }
.on-dark .btn-simple { color: #fff; }
.btn-lg { padding: 17px 34px; font-size: var(--body); }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------- Cards ---------------------------------- */
.card {
  background: #fff; border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm);
  transition: all .25s var(--ease);
  height: 100%; display: flex; flex-direction: column; align-items: flex-start;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; transition: all .25s var(--ease)}
.card h3, .card h4 { color: var(--brand-700); }
.card p { margin-top: 10px; color: var(--text-muted); font-size: var(--small); }
.card .btn-simple { margin-top: auto; padding-top: 18px; }

.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--indigo)); color: #fff; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon i { font-size: 24px; line-height: 1; }

/* colored accent variants for solution cards */
.accent-hubspot .card-icon { background: linear-gradient(135deg,#E64A10,#8C2D0A); }
.accent-web .card-icon { background: linear-gradient(135deg,#404D95,#232c5e); }
.accent-ai .card-icon { background: linear-gradient(135deg,#C7860B,#6B4A02); }
.accent-consult .card-icon { background: linear-gradient(135deg,#2a1c52,#16102b); }
.accent-marketing .card-icon { background: linear-gradient(135deg,#81008D,#4F0056); }
.accent-ux .card-icon { background: linear-gradient(135deg,#6A3FB5,#372163); }

/* pill / tag */
.tag { display:inline-block; font-size: var(--caption); font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--brand); background: rgba(86,55,141,.08); padding: 6px 12px; border-radius: var(--r-pill); }

/* list with checks */
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.on-dark .check-list li { color: rgba(255,255,255,.82); }

/* ------------------------------ Header ---------------------------------- */
/* Overlay header: transparent (light) over the hero, solid white on scroll */
.site-header {
  position: fixed; top: 0px; left: 0; right: 0; z-index: 1000; background: transparent;
  padding-top: 30px; padding-bottom: 4px; transition: padding .3s var(--ease);
}
.site-header.scrolled { padding-top: 20px; }
/* The nav itself is a floating, contained, blurred pill bar */
.nav {
  position: relative; height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding-inline: 26px;
  border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), max-width .3s var(--ease);
}
.site-header.scrolled .nav {
  background: rgba(255,255,255,.82); border-color: var(--line); box-shadow: var(--shadow);
}
.nav .logo img { height: 70px; width: auto; transition: filter .3s var(--ease); }
.nav-center { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li > a, .nav-menu > li > button.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 999px;
  font-size: 16px; font-weight: 600; background: none; border: none; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-menu > li.has-mega { display: flex; align-items: center; }
.mega-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: none; border: 0; padding: 4px; margin-left: 2px; color: inherit; border-radius: 999px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mega-toggle .caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Transparent (top-of-page) state → light nav on dark hero */
.site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }
.site-header:not(.scrolled) .nav-menu > li > a,
.site-header:not(.scrolled) .nav-menu > li > button.nav-link { color: rgba(255,255,255,.88); }
.site-header:not(.scrolled) .nav-menu > li > a:not(.btn):hover,
.site-header:not(.scrolled) .nav-menu > li > button.nav-link:hover,
.site-header:not(.scrolled) .nav-actions .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; }
.site-header:not(.scrolled) .nav-actions .btn-primary:hover { background: rgba(255,255,255,.85); }
.site-header:not(.scrolled) .nav-toggle { background:transparent; border-color: rgba(255,255,255,.35); }
.site-header:not(.scrolled) .nav-toggle span,
.site-header:not(.scrolled) .nav-toggle span::before,
.site-header:not(.scrolled) .nav-toggle span::after { background: #fff; }

/* Solid (scrolled) state → dark nav */
.site-header.scrolled .nav-menu > li > a,
.site-header.scrolled .nav-menu > li > button.nav-link { color: var(--text-soft); }
.site-header.scrolled .nav-menu > li > a:hover,
.site-header.scrolled .nav-menu > li > button.nav-link:hover,
.site-header.scrolled .nav-menu > li.active > a { color: var(--brand); }

/* Active nav item: an animated highlight fades in on enter, out on leave (text stays visible) */
@keyframes navActiveIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.nav-menu > li.active > a,
.nav-menu > li.active > .nav-link { position: relative; z-index: 1; }
.nav-menu > li.active > a::before,
.nav-menu > li.active > .nav-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
  background: rgba(255,255,255,.14); opacity: 0;
  animation: navActiveIn .6s var(--ease) .1s both;
  transition: opacity .35s var(--ease);
}
.site-header.scrolled .nav-menu > li.active > a::before,
.site-header.scrolled .nav-menu > li.active > .nav-link::before { background: rgba(86,55,141,.06); }
body.barba-is-transitioning .nav-menu > li.active > a::before,
body.barba-is-transitioning .nav-menu > li.active > .nav-link::before { opacity: 0; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .nav-menu > li.active > a::before,
  .nav-menu > li.active > .nav-link::before { animation: none; }
}

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(10px);
  top: var(--header-h); width: min(1080px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 26px; opacity: 0; visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 1001;
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-mega.open .caret { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-item { display: block; padding: 16px; border-radius: var(--r); transition: background .2s var(--ease); }
.mega-item:hover { background: var(--bg-alt); }
.mega-item .mega-title { display:flex; align-items:center; gap:10px; font-weight: 700; color: var(--brand-700); font-size: var(--body); }
.mega-item .mega-dot { width: 30px; height: 30px; border-radius: 9px; display:grid; place-items:center; color:#fff; flex:none; }
.mega-item .mega-dot i { font-size: 13px; line-height: 1; }
.mega-item .mega-dot--sm { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--indigo)); }
.mega-item .mega-dot--sm i { font-size: 12px; }
.mega-item p { margin: 8px 0 6px; font-size: var(--small); color: var(--text-muted); }
.mega-item .mega-svcs { font-size: var(--caption); color: var(--brand); font-weight:600; }
.mega-foot { display:flex; flex-wrap:wrap; gap:18px; margin-top: 18px; padding-top: 18px; border-top:1px solid var(--line); }
.mega-foot a { font-size: var(--small); font-weight:600; }

/* Mobile nav */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background:#fff; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content:""; position:absolute; left: 50%; width: 22px; height: 2px; background: var(--brand-700);
  transform: translateX(-50%); transition: transform .25s var(--ease), top .25s var(--ease), background .25s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-center { position: static; left: auto; transform: none; }
  body.menu-open { overflow: hidden; }
  .nav-menu {
    position: fixed; top: 0px; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh;
    z-index: 999; background: rgba(255,255,255,0.8); flex-direction: column;
    backdrop-filter: blur(60px); -webkit-backdrop-filter: blur(60px);
    align-items: stretch; gap: 0; padding: calc(var(--header-h) + 30px) var(--gutter) 120px; overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  body.menu-open .nav-menu { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s 0s; }
  body.menu-open .site-header { z-index: 1001; }
  /* The nav bar goes edge-to-edge and lets the frosted panel show through */
  body.menu-open .container.nav { max-width: 100%; }
  body.menu-open .nav { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .site-header:not(.scrolled) .logo img { filter: none; }
  body.menu-open .site-header:not(.scrolled) .nav-toggle { background: #fff; border-color: var(--line); }
  /* Only the two diagonal bars stay visible (the middle bar must remain transparent) */
  body.menu-open .site-header:not(.scrolled) .nav-toggle span::before,
  body.menu-open .site-header:not(.scrolled) .nav-toggle span::after { background: var(--brand-700); }
  body.menu-open .site-header:not(.scrolled) .nav-toggle span { background: transparent; }
  /* Keep the logo and the close button above the full-screen menu panel */
  body.menu-open .nav .logo,
  body.menu-open .nav-actions { position: relative; z-index: 1000; }
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  /* Panel links are always dark regardless of header transparent/scrolled state (buttons keep their own styles) */
  .site-header .nav-menu > li > a:not(.btn), .site-header .nav-menu > li > button.nav-link,
  .site-header:not(.scrolled) .nav-menu > li > a:not(.btn), .site-header:not(.scrolled) .nav-menu > li > button.nav-link {
    width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0;
    color: var(--text-soft); background: none;
  }
  .site-header .nav-menu > li.active > a { color: var(--brand); }
  .site-header:not(.scrolled) .nav-actions .btn-primary { background: var(--brand); color: #fff; }
  /* Label link takes the row with the caret inside, panel drops below */
  .nav-menu > li.has-mega { flex-wrap: wrap; }
  .site-header .nav-menu > li.has-mega > .nav-link { display: flex; justify-content: space-between; width: 100%; }
  .site-header .mega-toggle,
  .site-header:not(.scrolled) .mega-toggle { padding: 12px; }
  /* Submenu stays in flow and unfolds with a vertical scale */
  .mega {
    position: static; display: block; flex: 0 0 100%; width: 100%;
    background-color: transparent; box-shadow: none; border: none;
    visibility: visible; overflow: hidden;
    max-height: 0; padding: 0; opacity: 0;
    transform: scaleY(0); transform-origin: top center;
    transition: max-height .35s var(--ease), transform .35s var(--ease),
                opacity .25s var(--ease), padding .35s var(--ease);
  }
  .has-mega.open .mega { max-height: 75vh; padding: 0 0 14px; opacity: 1; transform: scaleY(1); overflow-y: auto; }
  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-item { padding: 12px 10px; }
  .nav-actions .btn { display: none; }
  .nav-menu .mobile-cta { display: block; margin-top: 20px; border-bottom: 0; }
  .mobile-cta .btn-tertiary { background: var(--green); color: #fff !important; box-shadow: 0 0 30px var(--green); }
  .nav-menu > li.active > a::before, .nav-menu > li.active > .nav-link::before{border-radius: 0;}
}
@media (min-width: 1025px) { .nav-menu .mobile-cta { display: none; } }

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative; color: #fff; min-height: min(92vh, 900px); display: flex;
  background: var(--bg-dark); overflow: hidden;
  border: 20px solid #fff; border-radius: 0px 0px 100px 100px; border-top: 0;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 110px));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.hero-top { max-width: 90ch; text-align: center; }
.hero-globe {
  position: absolute; z-index: 1; pointer-events: none; overflow: visible;
  left: 50%; top: 50%; transform: translate(-50%, -50%) !important;
  transform-origin: center center; will-change: transform;
  width: clamp(340px, 42vw, 620px); height: clamp(340px, 42vw, 620px);
  opacity: .5;
}
.hero-globe canvas { display: block; overflow: visible; animation: particlesFadeIn 1s ease-in forwards; }

.hero-logo {
  position: absolute; z-index: 2; pointer-events: none; overflow: visible;
  right: clamp(-40px, 3vw, 70px); top: 50%; transform: translateY(-50%);
  transform-origin: center center; will-change: transform;
  width: clamp(380px, 48vw, 720px); height: clamp(380px, 48vw, 720px);
  opacity: .95;
}
.hero-logo canvas { display: block; overflow: visible; animation: particlesFadeIn 1s ease-in forwards; }
@media (max-width: 1024px) { .hero-logo { display: none; } }
@media (max-width: 1024px) { .hero-globe { display: none; } }
.hero .badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 26px;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-pill);
  font-size: var(--caption); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px);
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--periwinkle);
  box-shadow: 0 0 0 4px rgba(105,127,245,.3); }
.hero h1 { color: #fff; font-size: clamp(2.75rem, 1rem + 7vw, 5.25rem); line-height: 1.02;
  letter-spacing: -.02em; font-weight: 800; }
.hero .hero-desc { color: rgba(255,255,255,.82); max-width: 90ch; margin-top: 20px; font-size: clamp(1.05rem, 1rem + .5vw, 1.2rem); }
.hero-bottom { display: flex; align-items: center; justify-content: center; gap: 28px;
  flex-wrap: wrap; margin-top: clamp(32px, 4vw, 44px); }
.hero .btn-group { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-meta span { font-size: var(--small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.72); }
.hero-meta span::before { content: "+ "; color: var(--periwinkle-50); }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; max-width: 420px; }
.hero-actions .hero-actions-text { text-align: right; color: rgba(255,255,255,.82); font-size: var(--small); margin: 0; max-width: 34ch; }
@media (max-width: 760px){
  .hero-bottom { justify-content: center; }
}

/* page hero (interior) */
.page-hero { position: relative; color:#fff; background-color: var(--bg-dark);
  background-image: radial-gradient(900px 500px at 10% -20%, rgba(105,127,245,.30), transparent 60%),
                    linear-gradient(160deg,#2a1c52,#16102b); overflow:hidden;
    border: 20px solid #fff; border-radius: 0px 0px 100px 100px; border-top: 0;
  min-height: min(92vh, 900px); display: flex; }
.page-hero .container { position: relative; z-index:2; width: 100%;
  padding-top: calc(var(--header-h) + clamp(40px, 5vw, 64px)); padding-bottom: clamp(48px, 6vw, 84px);
  display: flex; flex-direction: column; justify-content: center; }

/* Per-line hero color variants (based on Style Guide palette; gradient kept).
   Consultoría Estratégica keeps the default purple above. */
.page-hero--hubspot {   /* Soluciones HubSpot — naranja */
  background-image: radial-gradient(900px 500px at 12% -20%, rgba(241,150,116,.40), transparent 60%),
                    linear-gradient(160deg, #E64A10 0%, #8C2D0A 100%); }
.page-hero--web { /* Soluciones Web — azul */
  background-image: radial-gradient(900px 500px at 12% -20%, rgba(105,127,245,.45), transparent 60%),
                    linear-gradient(160deg, #404D95 0%, #232c5e 100%); }
.page-hero--ai {        /* AI & Automation — amarillo (ámbar para legibilidad con texto blanco) */
  background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.32)),
                    radial-gradient(900px 500px at 12% -20%, rgba(246,202,108,.45), transparent 60%),
                    linear-gradient(160deg, #C7860B 0%, #6B4A02 100%); }
.page-hero--marketing { /* Marketing Digital — magenta */
  background-image: radial-gradient(900px 500px at 12% -20%, rgba(182,107,189,.42), transparent 60%),
                    linear-gradient(160deg, #81008D 0%, #4F0056 100%); }
.page-hero--ux {        /* UX & Branding — violeta */
  background-image: radial-gradient(900px 500px at 12% -20%, rgba(168,181,249,.38), transparent 60%),
                    linear-gradient(160deg, #6A3FB5 0%, #372163 100%); }
.page-hero h1 { color:#fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255,255,255,.82); margin-top: 16px; max-width: 62ch; }
.page-hero .eyebrow,
.on-dark .eyebrow,
.section--dark .eyebrow { color: #fff; }
.page-hero .eyebrow::before,
.on-dark .eyebrow::before,
.section--dark .eyebrow::before { background: #fff; }

/* dark section */
.section--dark { position: relative; background: var(--bg-dark); color: #fff;
  background-image: radial-gradient(900px 500px at 90% 0%, rgba(129,0,141,.28), transparent 55%), linear-gradient(160deg,#2a1c52,#16102b); }
.section--dark .container { position: relative; z-index: 2; }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color:#fff; }
.section--dark p { color: rgba(255,255,255,.78); }
.section--dark .card { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.section--dark .card h3,.section--dark .card h4 { color:#fff; }
.section--dark .card p { color: rgba(255,255,255,.72); }

/* ---------------------------- Breadcrumbs ------------------------------- */
.breadcrumb { font-size: var(--small); color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.7); } .breadcrumb a:hover { color:#fff; }
.breadcrumb span { margin-inline: 8px; opacity:.5; }

/* ------------------------------- Steps ---------------------------------- */
.steps { counter-reset: step; display: grid; gap: 22px; position: relative; }
.steps.grid-3, .steps.grid-4 { display:grid; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background:#fff; }
.step::before { counter-increment: step; content: "0" counter(step);
  font-weight: 800; font-size: 2rem; color: var(--brand-50); display:block; margin-bottom: 10px; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: var(--small); }
.section--dark .step { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.section--dark .step::before { color: var(--periwinkle); }

/* Timeline connector for vertical step lists (solution pages) */
.steps:not(.grid-3):not(.grid-4) { padding-left: 60px; }
.steps:not(.grid-3):not(.grid-4)::before {
  content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 2px;
  background: var(--brand-50); border-radius: 1px;
}
.steps:not(.grid-3):not(.grid-4) .step::before {
  position: absolute; left: -50px; top: 26px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 0.85rem; margin-bottom: 0;
  display: grid; place-items: center; z-index: 1;
}

/* steps start hidden so GSAP can stagger them in without a flash */
.steps .step { opacity: 0; transform: translateY(60px); }

/* ------------------------------- Stats/pill row ------------------------- */
.pill-row { display:flex; flex-wrap:wrap; gap: 12px; }
.pill { display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); border:1px solid var(--line-dark); font-size: var(--small); color:#fff; font-weight:600; }

/* -------------------------------- FAQ ----------------------------------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 44px 22px 0;
  font-size: var(--h6); font-weight: 700; color: var(--brand-700); position: relative; line-height:1.35; }
.faq-q::after { content:"+"; position:absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: transform .25s var(--ease); }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 44px 22px 0; color: var(--text-soft); }
.faq-item.open .faq-a { max-height: 600px; }

/* ------------------------------- CTA band ------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 34px);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 60%, #1c1338 100%); color:#fff;
  padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band::after { content:""; position:absolute; inset:0; opacity:.5;
  background-image: radial-gradient(500px 300px at 20% 20%, rgba(105,127,245,.4), transparent 60%),
                    radial-gradient(500px 300px at 90% 90%, rgba(129,0,141,.5), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color:#fff; max-width: 20ch; margin-inline:auto; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 16px auto 0; }
.cta-band .btn-group { justify-content: center; margin-top: 30px; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn-outline:hover { background: #fff; color: var(--brand-700); border-color: #fff; }
.cta-band .btn-simple { color: #fff; }
.cta-band.has-gradient { background: transparent; }
.cta-band.has-gradient::after { display: none; }
.section--dark.has-gradient { background: transparent; }

/* ------------------------------- Forms ---------------------------------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,3vw,40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: var(--small); font-weight:600; color: var(--brand-700); margin-bottom: 8px; }
.field .req { color: var(--error); }
.input, .select, .textarea, .file {
  width:100%; padding: 14px 16px; border:1.5px solid var(--gray-200); border-radius: var(--r-sm);
  font-family: inherit; font-size: var(--body); color: var(--text); background:#fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-50); }
.input:focus, .select:focus, .textarea:focus, .file:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(86,55,141,.12); }
.textarea { min-height: 130px; resize: vertical; }
.checkbox { display:flex; gap:10px; align-items:flex-start; font-size: var(--small); color: var(--text-muted); }
.checkbox input { margin-top: 4px; width:18px; height:18px; accent-color: var(--brand); flex:none; }
.form-note { font-size: var(--caption); color: var(--text-muted); margin-top: 6px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width:600px){ .form-grid { grid-template-columns: 1fr; } }

/* trust badges near form */
.trust-list li { display:flex; gap:10px; align-items:center; font-size: var(--small); color: var(--text-soft); margin-bottom:12px; }
.trust-list svg { width:20px; height:20px; color: var(--success); flex:none; }

/* --------------------------- Client logos ------------------------------- */
.logo-wall { display:grid; grid-template-columns: repeat(5,1fr); gap: 18px; align-items:center; }
@media (max-width: 900px){ .logo-wall { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px){ .logo-wall { grid-template-columns: repeat(2,1fr); } }
.logo-slot { height: 72px; border-radius: var(--r);
  display:grid; place-items:center; background:transparent; padding: 12px 16px; }
.logo-slot img { max-height: 40px; max-width: 100%; width:auto; object-fit: contain;
  filter: grayscale(1); opacity:.7; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.logo-slot:hover img { filter: grayscale(0); opacity:1; }

/* ------------------------------- Team ----------------------------------- */
.team-card { text-align:center; }
.team-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand), var(--indigo)); color:#fff; display:grid; place-items:center; font-size: 1.6rem; font-weight:800; }
.team-card h4 { margin-bottom: 2px; } .team-card .role { color: var(--brand); font-size: var(--small); font-weight:600; }

/* audience split blocks */
.aud-block { border-radius: var(--r-lg); padding: clamp(28px,4vw,44px); color:#fff; position:relative; overflow:hidden; display: flex; flex-direction: column; align-items: flex-start;}
.aud-block h3 { color:#fff; } .aud-block p { color: rgba(255,255,255,.85); }
.aud-block .btn-simple { margin-top: auto; }
.aud-empresas { background: linear-gradient(135deg, var(--brand), var(--indigo)); }
.aud-agencias { background: linear-gradient(135deg, var(--magenta-700), var(--magenta)); }

/* notice / gated */
.notice { border:1px dashed var(--brand-50); background: var(--bg-alt); border-radius: var(--r-lg); padding: clamp(28px,4vw,44px); text-align:center; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--bg-darker); color: rgba(255,255,255,.72); padding-top: clamp(52px,6vw,80px); }
.site-footer h5 { color:#fff; font-size: var(--body); margin-bottom: 18px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(255,255,255,.72); font-size: var(--small); }
.site-footer a:hover { color:#fff; }
.footer-links li { margin-bottom: 12px; }
.footer-brand img { height: 70px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: var(--small); max-width: 34ch; }
.social { display:flex; gap: 12px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 10px; border:1px solid var(--line-dark); display:grid; place-items:center; }
.social a:hover { background: var(--brand); border-color: var(--brand); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: clamp(40px,5vw,56px); padding: 24px 0; border-top: 1px solid var(--line-dark);
  display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size: var(--caption); color: rgba(255,255,255,.55); }
.footer-bottom a { font-size: var(--caption); }

/* ---------------------------- Utilities --------------------------------- */
.center { text-align:center; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}
.maxw-60{max-width:60ch}
.hide { display:none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease), box-shadow .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; filter:none; transition:none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform:none; }
}

/* ---------------------------- Barba transitions --------------------------- */
html { scroll-behavior: smooth; }
body { background: var(--bg); }

main[data-barba="container"] {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
main[data-barba="container"].hero-enter,
main[data-barba="container"].is-fade-out { opacity: 0; }
main[data-barba="container"].is-fade-in  { opacity: 1; }

body.barba-is-transitioning {
  overflow: hidden;
}
body.barba-is-transitioning .site-footer { display: none; }

body.barba-is-transitioning main[data-barba="container"] {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* el main entrante va por encima */
main[data-barba="container"].hero-enter { z-index: 2; }

main[data-barba="container"].hero-leave .page-hero .container,
main[data-barba="container"].hero-leave .hero .hero-inner { animation: heroLeave 0.7s var(--ease) forwards; }

main[data-barba="container"].hero-enter .page-hero .container,
main[data-barba="container"].hero-enter .hero .hero-inner { animation: heroEnter 0.7s var(--ease) 0.05s forwards; }

/* Initial page load reveal for hero text */
.hero-initial { animation: heroInitial 0.8s var(--ease) 0.1s both; }

@keyframes heroLeave {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to   { opacity: 0; transform: translateY(-40px); filter: blur(8px); }
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroInitial {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Hero brand color references for dynamic gradient backgrounds */
.hero { --h: #56378D; }
.page-hero { --h: #56378D; }
.page-hero--hubspot { --h: #E64A10; }
.page-hero--web { --h: #404D95; }
.page-hero--ai { --h: #C7860B; }
.page-hero--marketing { --h: #81008D; }
.page-hero--ux { --h: #6A3FB5; }

/* CTA band and dark section inherit the page hero color */
.cta-band,
.section--dark { --h: #56378D; }
.page-hero--hubspot ~ .cta-band,
.page-hero--hubspot ~ .section--dark { --h: #E64A10; }
.page-hero--web ~ .cta-band,
.page-hero--web ~ .section--dark { --h: #404D95; }
.page-hero--ai ~ .cta-band,
.page-hero--ai ~ .section--dark { --h: #C7860B; }
.page-hero--marketing ~ .cta-band,
.page-hero--marketing ~ .section--dark { --h: #81008D; }
.page-hero--ux ~ .cta-band,
.page-hero--ux ~ .section--dark { --h: #6A3FB5; }

/* CTA band is wrapped in a <section>, so inherit through sibling */
.page-hero--hubspot ~ section .cta-band { --h: #E64A10; }
.page-hero--web ~ section .cta-band { --h: #404D95; }
.page-hero--ai ~ section .cta-band { --h: #C7860B; }
.page-hero--marketing ~ section .cta-band { --h: #81008D; }
.page-hero--ux ~ section .cta-band { --h: #6A3FB5; }

/* Dynamic gradient background for hero / page-hero */
.gradient-bg {
  position: absolute; inset: 0; z-index: 1; isolation: isolate; pointer-events: none;
}
.gradient-bg .base {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(198deg,
    color-mix(in srgb, var(--h) 2%, #fff) 0%,
    color-mix(in srgb, var(--h) 30%, #fff) 15%,
    var(--h) 31%,
    color-mix(in srgb, var(--h) 70%, #000) 60%,
    color-mix(in srgb, var(--h) 35%, #000) 83%,
    #000 100%);
}
.gradient-bg .treatment {
  position: absolute; inset: -10% -14% 20%; z-index: 1;
  background-image: repeating-linear-gradient(100deg,
    transparent 0 6%,
    rgba(255,255,255,0.12) 8%,
    color-mix(in srgb, var(--h) 42%, transparent) 11%,
    transparent 15%);
  filter: blur(42px);
  opacity: 0.56;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 65%, transparent 100%);
}
.gradient-bg .glow {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at 47% 5%, rgba(255,255,255,0.25), transparent 38%),
    radial-gradient(ellipse at 54% 46%, color-mix(in srgb, var(--h) 28%, transparent), transparent 42%);
}
.gradient-bg .vignette {
  position: absolute; inset: 0; z-index: 4;
  background:
    radial-gradient(circle at center, transparent 25%, rgba(0,0,0,0.2) 58%, rgba(0,0,0,0.82) 100%),
    linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.77) 100%);
}
.gradient-bg .noise {
  position: absolute; inset: 0; z-index: 5;
  mix-blend-mode: soft-light;
  opacity: 0.2;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.75%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url%28%23n%29%22/%3E%3C/svg%3E');
  background-size: 180px 180px;
}
.gradient-bg .particles {
  position: absolute; inset: 0; z-index: 3;
  background:
    radial-gradient(circle at 43% 30%, rgba(255,255,255,0.39) 0, transparent 2px),
    radial-gradient(circle at 46% 67%, rgba(255,255,255,0.34) 0, transparent 2px),
    radial-gradient(circle at 25% 33%, rgba(255,255,255,0.35) 0, transparent 1px),
    radial-gradient(circle at 35% 73%, rgba(255,255,255,0.18) 0, transparent 3px),
    radial-gradient(circle at 19% 86%, rgba(255,255,255,0.28) 0, transparent 2px),
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.15) 0, transparent 1px),
    radial-gradient(circle at 12% 57%, rgba(255,255,255,0.15) 0, transparent 1px),
    radial-gradient(circle at 45% 75%, rgba(255,255,255,0.13) 0, transparent 2px),
    radial-gradient(circle at 49% 79%, rgba(255,255,255,0.28) 0, transparent 2px),
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.18) 0, transparent 1px),
    radial-gradient(circle at 77% 11%, rgba(255,255,255,0.20) 0, transparent 3px),
    radial-gradient(circle at 82% 42%, rgba(255,255,255,0.17) 0, transparent 2px);
}
.gradient-bg .halftone {
  position: absolute; inset: 0; z-index: 6;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,0,0,0.15) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.10) 1px, transparent 1px);
  background-size: 10px 10px;
}

/* particles.js layer */
.particles-js {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.particles-js canvas {
  display: block; position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  animation: particlesFadeIn 1s ease-in forwards;
}
@keyframes particlesFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cta-band .gradient-bg,
.section--dark .gradient-bg { z-index: 0; }
.cta-band .particles-js,
.section--dark .particles-js { z-index: 1; }

/* Aries constellation illustration on home hero */
.hero-constellation {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 30vw, 380px);
  height: clamp(220px, 30vw, 380px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
}
.hero-constellation svg { width: 100%; height: 100%; overflow: visible; }
.hero-constellation line { stroke: rgba(255,255,255,.45); stroke-width: 1.2; stroke-linecap: round; }
.hero-constellation circle { fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.7)); animation: starPulse 3s ease-in-out infinite; }
.hero-constellation circle:nth-of-type(2n) { animation-delay: .6s; }
.hero-constellation circle:nth-of-type(2n+1) { animation-delay: 1.2s; }
@keyframes starPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@media (max-width: 1024px) { .hero-constellation { display: none; } }

/* HubSpot meetings embed container */
.meeting-embed { background: transparent; border-radius: 0; box-shadow: none; overflow: hidden; }
.meetings-iframe-container { width: 100%; min-height: 660px; overflow: hidden; }
/* push the iframe down so the sticky branding/footer at the bottom is clipped */
.meetings-iframe-container iframe { width: 100% !important; height: 660px; min-height: 660px; border: none; margin-bottom: -80px; }

/* HubSpot contact form in /contacto.html hero */
#hubspot-contact-form { background: #fff; border-radius: var(--r-lg); min-height: 740px; overflow: hidden; position: relative; }
#hubspot-contact-form .hs-form-frame,
#hubspot-contact-form iframe { width: 100% !important; }
/* white overlay to hide the HubSpot "Create your own free forms" footer */
#hubspot-contact-form::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: #fff; z-index: 2; }

/* ------------------------------- 404 page ------------------------------- */
/* remove the white frame/rounded corners only on the 404 hero */
.error-hero { min-height: 100vh; display: flex; align-items: center;
  border: 0; border-radius: 0; }
.error-hero .container { position: relative; z-index: 2; align-items: center; text-align: center; }
.error-404 { max-width: 760px; margin: 0 auto; text-align: center; }
.error-404 .eyebrow { color: rgba(255,255,255,.85); justify-content: center; }
.error-404 h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); max-width: none; margin: 0 auto; }
.error-404 .lead { color: rgba(255,255,255,.85); max-width: none; margin-left: auto; margin-right: auto; }
.error-ship-wrap { margin-top: clamp(8px, 3vw, 28px); display: flex; justify-content: center; }
.error-ship { width: min(360px, 72%); height: auto; display: block;
  filter: drop-shadow(0 34px 44px rgba(0,0,0,.5));
  animation: shipFloat 5s ease-in-out infinite both; will-change: transform; }
@keyframes shipFloat {
  0%   { transform: translateY(-16px) rotate(-3deg); }
  50%  { transform: translateY(16px) rotate(3deg); }
  100% { transform: translateY(-16px) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .error-ship { animation: none; } }
