/* Shared production polish for Digitronix pages. */
:root {
  color-scheme: light dark;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: #67ecff;
  color: #071018;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #67ecff;
  outline-offset: 4px;
}

img,
svg,
canvas {
  max-width: 100%;
}

.demo {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.halo {
  width: min(390px, calc(100vw - 40px)) !important;
  height: min(390px, calc(100vw - 40px)) !important;
}

.hero > * {
  min-width: 0;
}

.hero h1 {
  overflow-wrap: anywhere;
}

.home-gateway #soluciones,
.home-gateway #plataforma,
.home-gateway #proceso,
.home-gateway #proyectos {
  display: none;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-service {
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}

.home-service:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 236, 255, .55);
}

.home-service span,
.home-service small {
  color: #8e9caf;
  font-size: .78rem;
}

.home-service strong {
  font: 700 2rem Manrope, sans-serif;
  margin-top: 40px;
}

.home-service small {
  line-height: 1.5;
  max-width: 190px;
}

.home-service b {
  font-size: .85rem;
}

.home-service i {
  color: var(--cyan);
  font-style: normal;
  margin-left: 6px;
}

.home-service-web { background: linear-gradient(145deg, #17261e, #0b1118); }
.home-service-software { background: linear-gradient(145deg, #20281a, #0b1118); }
.home-service-nfc { background: linear-gradient(145deg, #24302f, #0b1118); }
.home-service-gps { background: linear-gradient(145deg, #102b32, #0b1118); }

.home-projects {
  padding: 40px 0 112px;
}

.project-list {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.project-item {
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.project-number,
.project-item span {
  color: #7c8a9e;
  font-size: .74rem;
  letter-spacing: .12em;
}

.project-item h3 {
  font: 700 1.45rem Manrope, sans-serif;
  margin: 7px 0 5px;
}

.project-item p {
  color: #98a4b8;
  line-height: 1.55;
  margin: 0;
}

.project-item > a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #67ecff;
}

@media (max-width: 900px) {
  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .project-item {
    grid-template-columns: 42px 1fr 38px;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
