:root {
  --red: #e2352b;
  --red-dark: #b8241c;
  --bg: #0e0f11;
  --bg-soft: #16181b;
  --text: #f4f2ef;
  --text-dim: #a6a29b;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --nav-h: 64px;
  --font-head: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }


body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3,
.brand-text,
.stat-num,
.btn,
.nav-cta {
  font-family: var(--font-head);
}

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.accent { color: var(--red); }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(14, 15, 17, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.nav.scrolled .brand { text-shadow: none; }

.brand strong { color: var(--red); font-weight: 700; }

.brand-mark {
  width: 10px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  transform: skewX(-12deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.nav.scrolled .nav-links a {
  color: rgba(244, 242, 239, 0.82);
  text-shadow: none;
}

.nav-links a:hover,
.nav.scrolled .nav-links a:hover { color: #fff; }

.nav-links .nav-cta {
  color: #fff;
  background: var(--red);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links .nav-cta:hover { background: var(--red-dark); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button.active {
  background: var(--red);
  color: #fff;
}

.nav-phone {
  display: none;
  color: #fff;
  background: var(--red);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  object-position: 65% center;
  transform-origin: 60% 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.82) 0%, rgba(10, 10, 12, 0.45) 45%, rgba(10, 10, 12, 0.15) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.35) 0%, transparent 30%, rgba(14, 15, 17, 0.9) 100%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.hero.gl .hero-canvas { display: block; }

.hero.gl .hero-bg { display: none; }

.hero.gl {
  background: #0b0c0e;
}

.hero.gl .hero-overlay {

  background:
    linear-gradient(100deg, rgba(8, 9, 11, 0.5) 0%, rgba(8, 9, 11, 0.3) 32%, transparent 60%),
    radial-gradient(ellipse at center, transparent 55%, rgba(10, 10, 12, 0.42) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.3) 0%, transparent 25%, rgba(11, 12, 14, 0.55) 100%);
}

.nightscene {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #0b0d10;
}

.night-bg,
.night-machine {
  position: absolute;
  inset: -8% 0;
  will-change: transform;
}

.night-bg img,
.night-machine img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.night-machine img {
  object-fit: contain;
  object-position: center 72%;
}

.night-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(8, 10, 13, 0.7) 100%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.85) 0%, transparent 28%, transparent 60%, rgba(11, 13, 16, 0.92) 100%);
}

.night-caption {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: min(90%, 680px);
  pointer-events: none;
}

.night-caption h2 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.night-caption p {
  margin-top: 8px;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: rgba(244, 242, 239, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.js .night-caption { opacity: 0; }

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  padding-top: var(--nav-h);
}

.hero-kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fbfaf8;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.7),
    0 6px 34px rgba(0, 0, 0, 0.55);
}

.hero-title span { display: block; }

.hero-title .accent {
  color: #ff4438;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  margin-top: 20px;
  max-width: 480px;
  color: rgba(244, 242, 239, 0.85);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 28px rgba(226, 53, 43, 0.35);
}

.btn-primary:hover { background: var(--red-dark); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { border-color: #fff; }

.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
}

.hero-scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  animation: scrollHint 1.6s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
}

.section { padding: 96px 0; }

.section-kicker {
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}

.section-kicker.light, .section-title.light { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  perspective: 1000px;
}

.card {
  position: relative;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  border-color: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.card:hover::before { opacity: 1; }

.card-icon {
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.18));
  transition: color 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.card-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.6;
}

.card:hover .card-icon {
  color: #fff;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.35));
  transform: scale(1.08);
}

.card h3 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

.machine3d-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video-blend { display: none; }

.js .machine3d-video { opacity: 0; }

.m3d-cap {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  width: min(90%, 720px);
  pointer-events: none;
}

.m3d-cap-2 {
  left: 5%;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  width: min(42%, 420px);
}

.m3d-cap h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.m3d-cap p {
  margin-top: 8px;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: rgba(244, 242, 239, 0.85);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.js .m3d-cap-2,
.js .m3d-cap-3 { opacity: 0; }

.m3d-part {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: rgba(244, 242, 239, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.js .m3d-part { opacity: 0.3; }

@media (max-width: 720px) {
  .m3d-cap-2 {
    left: 50%;
    top: auto;
    bottom: 16%;
    transform: translateX(-50%);
    width: 88%;
  }
}

.stats {
  position: relative;
  overflow: hidden;
}

.stats-bg,
.stats-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stats-bg { inset: -12% 0; height: auto; }

.stats-bg img { object-fit: cover; }

.stats-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 17, 0.92), rgba(14, 15, 17, 0.62) 50%, rgba(14, 15, 17, 0.92));
}

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

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  perspective: 900px;
}

.stat {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  will-change: transform;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.stat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(226, 53, 43, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.stat-num {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
  transition: color 0.25s ease;
}

.stat:hover .stat-num { color: var(--red); }

.stat-label {
  color: rgba(244, 242, 239, 0.78);
  font-size: 1.05rem;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  perspective: 1400px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;

  clip-path: inset(0 round var(--radius));
  aspect-ratio: 16 / 10;
  background: var(--bg);
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

.gallery-item.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.gallery-item:hover figcaption { padding-bottom: 34px; }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;

  transition: padding-bottom 0.3s ease;
  padding: 70px 32px 26px;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}

.contact { padding-bottom: 120px; }

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-sub { color: var(--text-dim); max-width: 420px; }

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 16px;
  background: #c9ccd0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #14161a;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: #d8dbdf;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.contact-card > svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #1e6fd9;
}

.contact-card.whatsapp > svg { color: #25d366; }

.contact-card-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #5a5f66;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.contact-card-value {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #14161a;
}

.contact-card::after {
  content: "";
  position: absolute;
  right: 26px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(20, 22, 26, 0.3);
  border-right: 2px solid rgba(20, 22, 26, 0.3);
  transform: rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.contact-card:hover::after {
  transform: rotate(45deg) translate(3px, -3px);
  border-color: #14161a;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.js .reveal-line,
.js [data-reveal] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-hint span { animation: none; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }

  .nav-links { display: none; }

  .nav-phone { display: flex; }

  .contact-inner { grid-template-columns: 1fr; gap: 32px; }

  .gallery-grid { grid-template-columns: 1fr; }

  .gallery-item.wide { aspect-ratio: 16 / 10; }

  .fab-whatsapp { display: flex; }

  .hero {
    align-items: flex-start;
  }

  .hero-content {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 60px;
  }

  .hero-title { font-size: clamp(2.3rem, 11vw, 3.4rem); }

  .hero-sub {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-actions { gap: 10px; }

  .btn { padding: 13px 22px; font-size: 0.95rem; }

  .hero.gl .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.82) 0%, rgba(8, 9, 11, 0.55) 42%, rgba(8, 9, 11, 0.15) 62%, transparent 78%),
      linear-gradient(0deg, rgba(11, 12, 14, 0.75) 0%, transparent 30%);
  }

  .hero.gl { background: #0b0c0e; }

  .machine3d-video {
    inset: 22% 0 auto 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: transparent;
  }

  .video-blend {
    display: block;
    position: absolute;
    inset: 22% 0 auto 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(180deg, #0b0c0e 0%, rgba(11, 12, 14, 0.85) 8%, rgba(11, 12, 14, 0) 26%),
      linear-gradient(0deg, #0b0c0e 0%, rgba(11, 12, 14, 0.9) 10%, rgba(11, 12, 14, 0) 34%),
      linear-gradient(90deg, #0b0c0e 0%, rgba(11, 12, 14, 0) 10%),
      linear-gradient(270deg, #0b0c0e 0%, rgba(11, 12, 14, 0) 10%);
  }

  .m3d-cap {
    bottom: 6%;
    width: 92%;
  }

  .m3d-cap-2 {
    left: 50%;
    top: auto;
    bottom: 5%;
    transform: translateX(-50%);
    width: 92%;
    text-align: left;
    padding: 16px 18px 18px;
    border-radius: 16px;
    background: rgba(16, 18, 21, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .m3d-cap-2 h2 { font-size: 1.45rem; margin-bottom: 4px; }

  .m3d-part {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #fff;
  }

  .m3d-cap-3 h2 { font-size: 1.9rem; }

  .night-caption { bottom: 12%; }

  .night-machine img { object-position: center 68%; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
