:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f7fb;
  --text: #0b1020;
  --muted: #4f5b6b;
  --brand: #1b4dff;
  --brand-2: #0ea5e9;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-lg: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: radial-gradient(920px 620px at 18% 8%, rgba(27, 77, 255, 0.14), transparent 58%),
    radial-gradient(860px 560px at 86% 6%, rgba(14, 165, 233, 0.1), transparent 60%),
    linear-gradient(180deg, #ffffff, #f5f7ff);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #ffffff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.brand strong {
  display: block;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  color: rgba(17, 24, 39, 0.86);
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 220ms ease, color 220ms ease;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(17, 24, 39, 0.06);
  color: rgba(17, 24, 39, 0.92);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropbtn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(17, 24, 39, 0.86);
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropbtn:hover,
.nav-dropbtn:focus-visible {
  background: rgba(17, 24, 39, 0.06);
  color: rgba(17, 24, 39, 0.92);
  outline: none;
}

.nav-caret {
  font-size: 12px;
  opacity: 0.8;
  transition: transform 180ms ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(860px, 92vw);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
  display: none;
  z-index: 80;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

@media (min-width: 681px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown:hover .nav-caret {
    transform: rotate(180deg);
  }
}

.nav-mega {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}

.nav-mega-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.nav-mega-col--side {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(246, 247, 251, 0.92), rgba(255, 255, 255, 0.92));
  border-radius: 16px;
  padding: 14px;
}

.nav-dropitem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 160ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.nav-dropitem:hover,
.nav-dropitem:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(27, 77, 255, 0.22);
  background: rgba(27, 77, 255, 0.05);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
  outline: none;
}

.nav-dropicon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(27, 77, 255, 0.18);
  background: rgba(27, 77, 255, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-dropicon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.nav-dropcontent {
  display: grid;
  gap: 2px;
}

.nav-drop-title {
  font-weight: 800;
  color: rgba(17, 24, 39, 0.92);
  letter-spacing: -0.2px;
}

.nav-drop-desc {
  font-size: 13px;
  color: rgba(17, 24, 39, 0.8);
}

.nav-dropgroup-label {
  padding: 6px 12px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.74);
}

.mobile-dropdown {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  padding-top: 10px;
}

.mobile-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 10px;
  border-radius: 14px;
  color: rgba(243, 246, 255, 0.9);
  font-weight: 750;
}

.mobile-dropdown summary:hover,
.mobile-dropdown summary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.mobile-dropdown a {
  display: block;
  padding: 12px 10px;
  border-radius: 14px;
  color: rgba(243, 246, 255, 0.82);
}

.mobile-dropdown a:hover,
.mobile-dropdown a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.mobile-dropdown-label {
  padding: 6px 10px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 246, 255, 0.48);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta .btn-primary {
  white-space: nowrap;
}

.lang-toggle {
  min-width: 52px;
  padding-inline: 12px;
}

.lang-select {
  min-width: 70px;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.03);
  color: rgba(17, 24, 39, 0.88);
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
  border-color: rgba(27, 77, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 77, 255, 0.14);
}

.cta-short {
  display: none;
}

.cta-long {
  display: inline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(27, 77, 255, 0.3);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.btn:focus-visible,
.menu-btn:focus-visible {
  outline: none;
  border-color: rgba(27, 77, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 77, 255, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #4b7bff);
  border-color: rgba(27, 77, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(27, 77, 255, 0.22);
}

.btn-primary:hover {
  background: #103fe6;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.03);
  color: rgba(17, 24, 39, 0.88);
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 96px 0 56px;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.06) contrast(1.03);
}

.hero > .container {
  position: relative;
  z-index: 3;
}

.page-hero {
  min-height: 46vh;
  padding: 72px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(920px 520px at 18% 10%, rgba(27, 77, 255, 0.22), transparent 62%),
    radial-gradient(900px 520px at 90% 12%, rgba(14, 165, 233, 0.16), transparent 60%);
  opacity: 0.55;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(7, 17, 34, 0.04));
  pointer-events: none;
  z-index: 2;
}

.hero--home::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(245, 247, 255, 0.38));
}

.hero--home::before {
  background-image: radial-gradient(920px 520px at 18% 10%, rgba(27, 77, 255, 0.22), transparent 62%),
    radial-gradient(900px 520px at 90% 12%, rgba(14, 165, 233, 0.16), transparent 60%);
}

.hero--services::before {
  background-image: linear-gradient(180deg, rgba(5, 7, 14, 0.35), rgba(5, 7, 14, 0.92)),
    url("./assetts/img/automatizaciones.png");
  background-size: cover;
  background-position: center;
}

.hero--projects::before {
  background-image: linear-gradient(180deg, rgba(5, 7, 14, 0.35), rgba(5, 7, 14, 0.92)),
    url("./assetts/img/test4.jpg");
  background-size: cover;
  background-position: center;
}

.hero--contact::before {
  background-image: linear-gradient(180deg, rgba(5, 7, 14, 0.28), rgba(5, 7, 14, 0.9)),
    url("./assetts/img/integraciones1.png");
  background-size: cover;
  background-position: center;
}

.hero--dark {
  color: rgba(255, 255, 255, 0.92);
}

.hero--dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero--dark .badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.9);
}

.hero--dark .btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.hero--dark .btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  justify-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-inner--split {
  grid-template-columns: 1.05fr 0.95fr;
  justify-items: stretch;
  text-align: left;
  max-width: 1120px;
}

.hero-inner--split .lead {
  margin-left: 0;
  margin-right: 0;
}

.hero-inner--split .hero-actions {
  justify-content: flex-start;
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.hero-aside-card {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-aside-card--dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero-aside-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  opacity: 0.98;
}

.hero-aside-body {
  padding: 14px;
}

.hero-aside-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-mini {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-mini strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.2px;
}

.hero-mini span {
  display: block;
  font-size: 12px;
  color: rgba(243, 246, 255, 0.7);
  margin-top: 2px;
}

.hero-mini--dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.hero-mini--dark strong {
  color: rgba(255, 255, 255, 0.92);
}

.hero-mini--dark span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-aside-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-aside-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}

.hero-aside-gallery img:nth-child(1) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-aside-gallery img:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-aside-gallery img:nth-child(3) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-logo {
  width: min(120px, 34vw);
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 18px 30px rgba(12, 33, 74, 0.14));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(27, 77, 255, 0.14);
  border: 1px solid rgba(27, 77, 255, 0.32);
  color: rgba(243, 246, 255, 0.92);
  font-weight: 600;
  font-size: 13px;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: -1.3px;
  text-wrap: balance;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 64ch;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.kpi {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: none;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.kpi:hover {
  transform: translateY(-2px);
  background: var(--panel-2);
  border-color: rgba(9, 102, 241, 0.22);
}

.kpi strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

main section {
  padding: 72px 0;
}

main section:not(.hero) {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  position: relative;
  color: var(--text);
}

main section:not(.hero):nth-of-type(even) {
  background: radial-gradient(900px 520px at 18% 18%, rgba(27, 77, 255, 0.12), transparent 62%),
    radial-gradient(860px 560px at 86% 10%, rgba(14, 165, 233, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 252, 0.96));
}

main section:not(.hero):nth-of-type(odd) {
  background: linear-gradient(180deg, #ffffff, #ffffff);
}

.section-title {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.7px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: radial-gradient(620px 280px at 18% 0%, rgba(27, 77, 255, 0.22), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 77, 255, 0.32);
  box-shadow: var(--shadow);
  background: radial-gradient(620px 280px at 18% 0%, rgba(27, 77, 255, 0.3), transparent 62%),
    linear-gradient(180deg, rgba(27, 77, 255, 0.16), var(--panel-2));
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 77, 255, 0.22);
  background: rgba(27, 77, 255, 0.08);
  color: rgba(27, 77, 255, 0.92);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.card:hover {
  transform: translateY(-3px);
  background: var(--panel-2);
  border-color: rgba(27, 77, 255, 0.22);
  box-shadow: var(--shadow);
  filter: saturate(1.02);
}

.card h3 {
  margin: 10px 0 6px;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-media {
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-2);
  margin: -20px -20px 16px;
}

.card-media img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

.card-media--poster {
  background: radial-gradient(620px 320px at 50% 40%, rgba(9, 102, 241, 0.18), rgba(255, 255, 255, 0));
}

.card-media--poster img {
  height: 240px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.82);
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(27, 77, 255, 0.08);
  border: 1px solid rgba(27, 77, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.image-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  min-height: 280px;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.image-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(9, 102, 241, 0.22);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: transform 420ms ease, filter 320ms ease;
}

.image-panel:hover img {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(9, 102, 241, 0.22);
  background: rgba(245, 245, 247, 0.9);
  color: rgba(9, 102, 241, 0.92);
  font-weight: 650;
  font-size: 13px;
}

.projects {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
}

.project-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease, filter 320ms ease;
}

.project-hero:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.project-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 16, 0.08), rgba(6, 8, 16, 0.78) 58%, rgba(6, 8, 16, 0.95));
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.project-hero .overlay h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: rgba(255, 255, 255, 0.98);
}

.project-hero .overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.project-thumbs {
  display: grid;
  gap: 12px;
}

.thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 100px;
  box-shadow: var(--shadow-soft);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
  transition: transform 360ms ease, filter 300ms ease;
}

.thumb:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.booking-top {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.booking-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.booking-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.step-divider {
  width: 26px;
  height: 1px;
  background: var(--border);
  margin-right: 16px;
  align-self: center;
  flex-shrink: 0;
}

.step--active {
  color: var(--text);
}

.step--done {
  color: rgba(9, 102, 241, 0.92);
}

.step--done .step-num {
  background: linear-gradient(135deg, var(--brand), #247df7);
  border-color: rgba(9, 102, 241, 0.2);
  color: #ffffff;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  transition: transform 160ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(27, 77, 255, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.service-pill.is-selected {
  background: linear-gradient(135deg, rgba(9, 102, 241, 0.12), rgba(14, 165, 233, 0.1));
  border-color: rgba(9, 102, 241, 0.45);
  box-shadow: 0 0 0 4px rgba(9, 102, 241, 0.12);
}

.booking {
  margin-top: 16px;
}

.booking-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.booking-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.calendly-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
  margin: 0 0 12px;
}

.calendly-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(27, 77, 255, 0.22);
  border-top-color: rgba(27, 77, 255, 0.85);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.more-details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--panel);
}

.more-details summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--text);
  font-size: 13px;
}

.more-details[open] {
  background: var(--panel-2);
}

.calendly-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#calendlyEmbed {
  min-width: 320px;
  height: 720px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 13px;
  color: rgba(17, 24, 39, 0.78);
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(27, 77, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(27, 77, 255, 0.14);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.note {
  margin: 10px 0 0;
  color: rgba(17, 24, 39, 0.66);
  font-size: 13px;
}

footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(900px 520px at 12% 12%, rgba(27, 77, 255, 0.22), transparent 62%),
    radial-gradient(860px 560px at 84% 10%, rgba(14, 165, 233, 0.16), transparent 60%),
    linear-gradient(180deg, #0b1020, #060913);
  color: rgba(243, 246, 255, 0.82);
}

.footer-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.small {
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

footer .muted {
  color: rgba(243, 246, 255, 0.7);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(5, 8, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.52);
  color: rgba(243, 246, 255, 0.92);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(1px);
  transition: opacity 700ms cubic-bezier(0.2, 0.9, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform, filter;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.floating-booking {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  box-shadow: 0 18px 44px rgba(9, 102, 241, 0.26);
}

@media (max-width: 900px) {
  .hero-inner--split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-inner--split .hero-actions {
    justify-content: center;
  }
  .hero-aside {
    justify-content: center;
  }
  .hero {
    padding: 88px 0 48px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(34px, 12vw, 46px);
    line-height: 1.02;
  }
  .lead {
    font-size: 15px;
  }
  .nav {
    height: auto;
    padding: 10px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  nav {
    width: 100%;
    order: 3;
  }
  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 14px;
    margin: 10px 0 0;
    border-top: 1px solid var(--border);
  }
  header.nav-open nav ul {
    display: flex;
  }
  nav a,
  .nav-dropbtn {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  .nav-mega {
    grid-template-columns: 1fr;
  }
  .menu-btn {
    display: inline-grid;
    place-items: center;
  }
  .nav-cta {
    gap: 8px;
  }
  .lang-toggle {
    min-width: 46px;
    padding-inline: 10px;
  }
  .nav-cta .btn-primary {
    padding: 9px 12px;
    font-size: 13px;
    min-height: 44px;
  }
  .cta-short {
    display: inline;
  }
  .cta-long {
    display: none;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .card-media img {
    height: 190px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
