/* Sartech ecosystem glass
 * Glass is reserved for navigation, controls and system surfaces. Editorial
 * content stays flat so the hierarchy remains clear across Site, Propuestas
 * and Reportes.
 */

:root {
  --sartech-glass-surface: rgba(238, 235, 233, 0.72);
  --sartech-glass-surface-soft: rgba(255, 255, 255, 0.42);
  --sartech-glass-edge: rgba(15, 15, 15, 0.14);
  --sartech-glass-highlight: rgba(255, 255, 255, 0.78);
  --sartech-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(15, 15, 15, 0.04),
    0 2.4rem 7.2rem rgba(15, 15, 15, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sartech-glass-surface: rgba(12, 14, 18, 0.62);
    --sartech-glass-surface-soft: rgba(255, 255, 255, 0.045);
    --sartech-glass-edge: rgba(255, 255, 255, 0.12);
    --sartech-glass-highlight: rgba(255, 255, 255, 0.14);
    --sartech-glass-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(255, 255, 255, 0.025),
      0 2.8rem 8rem rgba(0, 0, 0, 0.24);
  }
}

html[color-scheme="dark"] {
  --sartech-glass-surface: rgba(12, 14, 18, 0.62);
  --sartech-glass-surface-soft: rgba(255, 255, 255, 0.045);
  --sartech-glass-edge: rgba(255, 255, 255, 0.12);
  --sartech-glass-highlight: rgba(255, 255, 255, 0.14);
  --sartech-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025),
    0 2.8rem 8rem rgba(0, 0, 0, 0.24);
}

html[color-scheme="light"] {
  --sartech-glass-surface: rgba(238, 235, 233, 0.72);
  --sartech-glass-surface-soft: rgba(255, 255, 255, 0.42);
  --sartech-glass-edge: rgba(15, 15, 15, 0.14);
  --sartech-glass-highlight: rgba(255, 255, 255, 0.78);
  --sartech-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(15, 15, 15, 0.04),
    0 2.4rem 7.2rem rgba(15, 15, 15, 0.1);
}

/* Persistent ecosystem chrome */
.sartech-site-header {
  border-bottom-color: var(--sartech-glass-edge);
  background:
    linear-gradient(115deg, var(--sartech-glass-highlight), transparent 26%),
    linear-gradient(180deg, var(--sartech-glass-surface-soft), transparent 86%),
    var(--sartech-glass-surface);
  box-shadow: var(--sartech-glass-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.sartech-site-nav .sartech-site-nav__client {
  min-height: 3.8rem;
  margin-left: 0.2rem;
  border: 1px solid var(--sartech-glass-edge);
  border-radius: 99rem;
  padding: 0 1.5rem;
  background:
    linear-gradient(145deg, var(--sartech-glass-highlight), transparent 58%),
    var(--sartech-glass-surface-soft);
  box-shadow: inset 0 1px 0 var(--sartech-glass-highlight);
}

.sartech-site-nav .sartech-site-nav__client::after {
  content: none;
}

.sartech-language-switcher,
.mxd-color-switcher {
  border-color: var(--sartech-glass-edge);
  background:
    linear-gradient(145deg, var(--sartech-glass-highlight), transparent 58%),
    var(--sartech-glass-surface-soft);
  box-shadow: inset 0 1px 0 var(--sartech-glass-highlight);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

/* Home: one glass frame for media and one high-value system surface. */
.mxd-hero-03__headline > .mxd-hero-media__small {
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mxd-hero-03__headline > .mxd-hero-media__small .sartech-hero-video-stack {
  border: 1px solid var(--sartech-glass-edge);
  border-radius: 2.2rem;
  box-shadow: var(--sartech-glass-shadow);
}

.home-preview-data-card {
  border-color: rgba(120, 200, 255, 0.42);
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 36%),
    radial-gradient(circle at 6% 8%, rgba(54, 176, 255, 0.24), transparent 31%),
    linear-gradient(135deg, rgba(0, 43, 186, 0.3), rgba(0, 43, 186, 0.055)),
    var(--sartech-glass-surface);
  box-shadow: var(--sartech-glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

/* Services: glass marks navigation and the operational product canvases. */
.services-index {
  overflow: hidden;
  border: 1px solid var(--sartech-glass-edge);
  border-radius: 1.8rem;
  background:
    linear-gradient(145deg, var(--sartech-glass-highlight), transparent 34%),
    var(--sartech-glass-surface);
  box-shadow: var(--sartech-glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.services-system,
.services-ai__interface {
  border-color: var(--sartech-glass-edge);
  border-radius: 2rem;
  box-shadow: var(--sartech-glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

.services-system {
  background:
    linear-gradient(145deg, var(--sartech-glass-highlight), transparent 38%),
    linear-gradient(145deg, var(--services-surface-strong), transparent 58%),
    var(--sartech-glass-surface);
}

.services-system.services-system--data {
  border-color: rgba(120, 200, 255, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 36%),
    radial-gradient(circle at 8% 10%, rgba(54, 176, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(0, 43, 186, 0.22), transparent 68%),
    var(--sartech-glass-surface);
}

.services-ai__interface {
  background:
    linear-gradient(145deg, var(--sartech-glass-highlight), transparent 38%),
    var(--sartech-glass-surface-soft);
}

/* Markets: portals are the only cards promoted to glass. */
.sartech-industry-card {
  border-color: var(--sartech-glass-edge);
  border-radius: 2rem;
  background:
    linear-gradient(145deg, var(--sartech-glass-highlight), transparent 34%),
    var(--sartech-glass-surface-soft);
  box-shadow: var(--sartech-glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(138%);
  backdrop-filter: blur(18px) saturate(138%);
}

/* Data: the console carries the blue-tinted version of the same material. */
.sartech-data-console {
  border-color: rgba(120, 200, 255, 0.34);
  border-radius: 2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(54, 176, 255, 0.18), transparent 42%),
    var(--sartech-glass-surface);
  box-shadow: var(--sartech-glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

@media only screen and (max-width: 767px) {
  .sartech-site-nav .sartech-site-nav__client {
    min-height: 3.2rem;
    margin-left: 0;
    padding: 0 1.1rem;
  }

  .services-index {
    overflow-x: auto;
    border-radius: 1.4rem;
  }

  .mxd-hero-03__headline > .mxd-hero-media__small .sartech-hero-video-stack,
  .home-preview-data-card,
  .services-system,
  .services-ai__interface,
  .sartech-industry-card,
  .sartech-data-console {
    border-radius: 1.6rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sartech-site-header,
  .sartech-language-switcher,
  .mxd-color-switcher,
  .home-preview-data-card,
  .services-index,
  .services-system,
  .services-ai__interface,
  .sartech-industry-card,
  .sartech-data-console {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
