:root {
  --bg: #05070c;
  --bg-soft: #0a0f18;
  --panel: rgba(13, 19, 31, 0.88);
  --panel-strong: rgba(16, 24, 39, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --text: #edf2ff;
  --muted: #9ca7bf;
  --red: #ff4c45;
  --red-soft: #ff8453;
  --gold: #ffd28d;
  --cyan: #6fe6ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 76, 69, 0.18), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(111, 230, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #05070c 0%, #09101a 40%, #07111a 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 50%, var(--cyan) 100%);
  box-shadow: 0 0 18px rgba(255, 76, 69, 0.6);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(6, 9, 14, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand img {
  position: relative;
  z-index: 1;
  width: min(250px, 48vw);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.42));
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

.brand-gradient {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at 20% 50%, rgba(255, 76, 69, 0.35) 0%, rgba(255, 76, 69, 0) 36%),
    radial-gradient(circle at 80% 45%, rgba(111, 230, 255, 0.28) 0%, rgba(111, 230, 255, 0) 34%),
    radial-gradient(circle at 50% 100%, rgba(255, 210, 141, 0.24) 0%, rgba(255, 210, 141, 0) 40%);
  filter: blur(18px);
  opacity: 0.95;
  animation: brandPulse 7s ease-in-out infinite;
}

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

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-button {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(237, 242, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.language-button:hover,
.language-button:focus-visible {
  color: white;
  transform: translateY(-1px);
}

.language-button.is-active {
  color: white;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.button,
.eyebrow,
.floating-label,
.ev-badge {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav a {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: rgba(237, 242, 255, 0.84);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 44px 0 72px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.72) 45%, rgba(5, 7, 12, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.08) 0%, rgba(5, 7, 12, 0.86) 100%);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: start;
}

.hero-copy,
.hero-side {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-right: 8px;
}

.eyebrow,
.floating-label,
.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}

.eyebrow {
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Rajdhani", sans-serif;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  text-wrap: balance;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.lead,
.about-copy p,
.service-card p,
.ev-card li,
.process-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 64ch;
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%);
  box-shadow: 0 18px 34px rgba(255, 76, 69, 0.26);
}

.button-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats,
.service-grid,
.ev-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.stat-card,
.service-card,
.ev-card,
.process-card,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.stat-card strong {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-side {
  position: relative;
  padding: 0;
  z-index: 1;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #04060a;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 10, 0.02) 0%, rgba(4, 6, 10, 0.86) 100%),
    linear-gradient(135deg, rgba(255, 76, 69, 0.18) 0%, transparent 35%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 1;
}

.orb-one {
  top: 10%;
  right: 8%;
  width: 150px;
  height: 150px;
  background: rgba(255, 210, 141, 0.22);
}

.orb-two {
  left: -40px;
  bottom: 18%;
  width: 180px;
  height: 180px;
  background: rgba(255, 76, 69, 0.22);
}

@media (max-width: 1320px) {
  .hero-grid {
    gap: 28px;
  }

  .hero-visual {
    min-height: 520px;
  }
}

html[lang="es"] .hero-copy h1 {
  max-width: 8.4ch;
  font-size: clamp(2.9rem, 5.9vw, 5.9rem);
  line-height: 0.9;
}

html[lang="es"] .lead {
  max-width: 56ch;
}

@media (max-width: 1400px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  }
}

.marquee-band {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  color: rgba(237, 242, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section {
  padding: 110px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.about-copy {
  max-width: 58ch;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 18px;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

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

.service-card,
.process-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(8, 13, 21, 0.96) 100%);
}

.service-index,
.process-card span {
  font-family: "Rajdhani", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.service-card h3,
.process-card h3 {
  margin-top: 16px;
}

.service-card p,
.process-card p {
  margin: 14px 0 0;
}

.section-ev {
  background:
    radial-gradient(circle at top right, rgba(255, 210, 141, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
}

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

.ev-card {
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.96) 0%, rgba(8, 12, 20, 0.98) 100%);
}

.ev-card.tesla {
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ev-card.rivian {
  background:
    radial-gradient(circle at top right, rgba(111, 230, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(13, 20, 31, 0.96) 0%, rgba(8, 12, 20, 0.98) 100%);
}

.ev-card-header {
  display: grid;
  gap: 14px;
}

.ev-badge {
  color: var(--gold);
}

.ev-card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ev-card li {
  position: relative;
  padding-left: 26px;
}

.ev-card li + li {
  margin-top: 14px;
}

.ev-card li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  box-shadow: 0 0 0 7px rgba(255, 76, 69, 0.12);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  min-height: 280px;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 76, 69, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(15, 22, 35, 0.96) 0%, rgba(8, 12, 20, 0.98) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.contact-info-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-region {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-info-card a {
  display: block;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.05;
  color: white;
}

.contact-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.contact-link-whatsapp .whatsapp-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd36f 0%, #128c49 100%);
  box-shadow: 0 10px 20px rgba(18, 140, 73, 0.28);
  flex: 0 0 auto;
}

.contact-link-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.contact-info-card a + small {
  margin-top: 6px;
}

.contact-info-card small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="left"] {
  transform: translate3d(30px, 0, 0);
}

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes brandPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-grid,
  .service-grid,
  .ev-grid,
  .process-grid,
  .contact-card,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  h1,
  h2 {
    max-width: none;
  }

  .hero-copy {
    padding-right: 0;
  }
}

@media (max-width: 780px) {
  .site-header .shell {
    min-height: 74px;
  }

  .brand {
    padding: 8px 10px;
  }

  .header-actions {
    margin-left: auto;
  }

  .language-switch {
    gap: 4px;
    padding: 4px;
  }

  .language-button {
    min-width: 40px;
    min-height: 34px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(9, 13, 21, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding: 34px 0 54px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.8rem);
  }

  .lead {
    font-size: 0.98rem;
  }

  .section {
    padding: 78px 0;
  }

  .service-card,
  .ev-card,
  .process-card,
  .contact-card {
    padding: 22px;
  }
}
