:root {
  --black: #0a0a0a;
  --graphite: #1c1c1e;
  --red: #ff003c;
  --white: #ffffff;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(28, 28, 30, 0.86);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", "Roboto", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.boot-scan {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.boot-scan::before {
  content: "";
  position: absolute;
  top: -2%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--red) 18%,
    #fff 50%,
    var(--red) 82%,
    transparent
  );
  box-shadow: 0 0 18px 4px rgba(255, 0, 60, 0.65), 0 0 46px 12px rgba(255, 0, 60, 0.3);
  animation: bootScan 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border: 2px solid var(--red);
  color: var(--red);
  box-shadow: 0 0 18px rgba(255, 0, 60, 0.32);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--red);
}

.header-action {
  border-bottom: 2px solid var(--red);
  color: var(--white);
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-bg-translucido {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-bg-translucido::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.58)),
    rgba(10, 10, 10, 0.7);
}

.content-wrapper {
  position: relative;
  z-index: 2;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  min-height: 96vh;
  padding: 152px clamp(18px, 5vw, 72px) 86px;
  overflow: hidden;
  background: var(--black);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 120px;
  background: linear-gradient(0deg, var(--black), transparent);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 34%, rgba(255, 0, 60, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.96), rgba(10, 10, 10, 0.48) 54%, rgba(10, 10, 10, 0.82));
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  opacity: 0.7;
  pointer-events: none;
}

.hero-slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.58) 42%, rgba(10, 10, 10, 0.76)),
    linear-gradient(0deg, rgba(10, 10, 10, 0.82), transparent 28%, transparent 68%, rgba(10, 10, 10, 0.76));
}

.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 7px
    );
  mix-blend-mode: screen;
}

.hero-slideshow span {
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  filter: saturate(0.8) contrast(1.12);
  transform: scale(1.04);
  animation: heroSlide 24s ease-in-out infinite;
}

.hero-slideshow span:nth-child(2) {
  animation-delay: 6s;
}

.hero-slideshow span:nth-child(3) {
  animation-delay: 12s;
}

.hero-slideshow span:nth-child(4) {
  animation-delay: 18s;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(850px, 100%);
}

.hero-content > .eyebrow,
.hero-content > h1,
.hero-content > .hero-subtitle,
.hero-content > .hero-actions,
.hero-content > .hero-metrics {
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > .eyebrow {
  animation-delay: 0.15s;
}

.hero-content > h1 {
  animation-delay: 0.3s;
}

.hero-content > .hero-subtitle {
  animation-delay: 0.5s;
}

.hero-content > .hero-actions {
  animation-delay: 0.68s;
}

.hero-content > .hero-metrics {
  animation-delay: 0.84s;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Orbitron", "Syne", sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.35rem, 7vw, 5.5rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-subtitle {
  max-width: 690px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 12px 28px;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(255, 0, 60, 0.2);
}

.btn-neon:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 15px var(--red), 0 0 30px var(--red), 0 0 45px var(--red);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

.hero-metrics span {
  min-width: 150px;
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: rgba(28, 28, 30, 0.74);
  color: var(--muted);
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.compact {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 34px;
}

.tech-strip {
  padding-top: 82px;
}

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

.feature-card,
.service-panel,
.contact-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--graphite);
}

.feature-card {
  min-height: 245px;
  padding: 24px;
}

.feature-card svg,
.contact-details svg {
  width: 30px;
  height: 30px;
  color: var(--red);
  stroke-width: 2.4;
}

.feature-card h3 {
  margin: 26px 0 12px;
}

.feature-card p,
.service-panel li,
.about-text,
.contact-copy,
.contact-details small,
.site-footer {
  color: var(--muted);
}

.services-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-panel {
  overflow: hidden;
}

.service-panel img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.service-panel div {
  padding: 26px;
}

.service-panel ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  position: relative;
  padding-left: 22px;
}

.service-panel li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 9px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.gallery-band {
  padding: 86px 0;
  background: linear-gradient(180deg, var(--black), #111);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.work-grid figure {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--graphite);
}

.work-grid img {
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-grid figure:hover img {
  transform: scale(1.06);
}

.work-grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  background: rgba(10, 10, 10, 0.74);
  border-left: 2px solid var(--red);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about {
  background-image: url("assets/images/scanner-mercedes.jpg");
}

.about-content {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 98px 0;
}

.about-text {
  display: grid;
  gap: 18px;
  font-size: 1.02rem;
}

.about-text p {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: 48px;
  align-items: start;
}

.contact-copy {
  max-width: 560px;
  margin: 18px 0 28px;
}

.contact-details {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.contact-details div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 14px;
}

.contact-details small {
  grid-column: 2;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  background: #050505;
}

.site-footer span:first-child {
  color: var(--white);
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  color: var(--red);
  box-shadow: 0 0 16px rgba(255, 0, 60, 0.44), 0 0 32px rgba(255, 0, 60, 0.22);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-3px);
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bootScan {
  0% {
    top: -2%;
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-22px, 10px, 0);
  }
}

@keyframes heroSlide {
  0%,
  100% {
    opacity: 0;
    transform: scale(1.04) translateX(18px);
  }

  8%,
  25% {
    opacity: 1;
    transform: scale(1.1) translateX(0);
  }

  34% {
    opacity: 0;
    transform: scale(1.14) translateX(-18px);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 6px;
  }

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

  .services-layout,
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 88vh;
    padding-top: 170px;
  }

  .hero-slideshow {
    width: 100%;
    opacity: 0.5;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 0.86rem;
  }

  .brand-mark {
    width: 42px;
    height: 32px;
  }

  .header-action {
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 166px;
  }

  .hero-slideshow {
    width: 100%;
    opacity: 0.38;
  }

  .btn-neon,
  .btn-ghost {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
    text-align: center;
  }

  .feature-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .work-grid figure,
  .work-grid img {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-scan {
    display: none;
  }

  .hero-content > .eyebrow,
  .hero-content > h1,
  .hero-content > .hero-subtitle,
  .hero-content > .hero-actions,
  .hero-content > .hero-metrics {
    opacity: 1;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
