/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-white);
  transition: width 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* CTA button */
.cta-button {
  font-family: var(--font-display);
  background-color: var(--color-white);
  color: var(--color-bg-primary);
  padding: 0.6rem var(--spacing-md);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-white);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--color-white);
  box-shadow: 0 0 24px var(--color-accent-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  display: block;
}
/* Nav close button — mobile overlay only */
.nav-close {
  display: none;
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-close img {
  width: 16px;
  height: 16px;
  filter: invert(1);
  display: block;
}
@media (max-width: 767px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 0;
    list-style: none;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links li {
    border-bottom: none;
    text-align: center;
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 20px var(--spacing-lg);
    font-size: 24px;
    text-align: center;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-close {
    display: flex;
  }
  .nav .cta-button {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links a {
    font-size: 13px;
    padding-bottom: 4px;
  }
  .nav-links {
    gap: var(--spacing-lg);
  }
  .cta-button {
    font-size: 12px;
    padding: 0.5rem var(--spacing-sm);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
  border: 1px solid var(--color-accent);
  background-color: transparent;
  color: var(--color-accent);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-secondary {
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}

.btn-secondary:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

/* Footer */
.footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('assets/images/products/hero-bus.jpg') center 40% / cover no-repeat;
  overflow: hidden;
  padding-top: 80px; /* header height offset */
}

/* Hero background video */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-video video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Dark directional gradient — left heavy, fades right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right,
      rgba(0,0,0,0.92) 0%,
      rgba(0,0,0,0.75) 45%,
      rgba(0,0,0,0.30) 75%,
      rgba(0,0,0,0.10) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,0.4) 0%,
      transparent 40%,
      transparent 60%,
      rgba(0,0,0,0.6) 100%);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
}

/* Eyebrow label */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: var(--spacing-md);
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

/* Hero title */
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, var(--text-8xl));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.45s;
}

.hero-title-accent {
  color: var(--color-gray-light);
}

/* Hero subtitle */
.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-gray-mid);
  max-width: 650px;
  margin-bottom: var(--spacing-xl);
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.7s;
}

.hero-subtitle strong {
  color: var(--color-white);
  font-weight: 600;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.95s;
}

.hero-cta-primary,
.hero-cta-secondary {
  font-size: var(--text-sm);
  padding: 0.85rem var(--spacing-xl);
  letter-spacing: 0.1em;
}

.hero-cta-secondary {
  background-color: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--color-gray-light);
}

.hero-cta-secondary:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background-color: rgba(255,255,255,0.06);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 1.4s;
}

.hero-scroll-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
}

.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--color-gray-mid), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* Keyframes */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.9) translateY(0); }
  50%       { opacity: 1;    transform: scaleY(1)   translateY(4px); }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    text-align: center;
  }
}

/* Sections */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-header {
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-6xl));
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* ============================================
   SECTION HEADER — shared across all sections
   ============================================ */
.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: var(--spacing-sm);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-top: var(--spacing-sm);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-2xl) 0;
  margin-top: -3rem;
  position: relative;
  z-index: 4;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--spacing-md);
  opacity: 0.55;
  filter: invert(1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
}

@media (max-width: 767px) {
  .stats-bar {
    margin-top: 0;
    clip-path: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-primary);
}

.products-section .section-header {
  margin-bottom: var(--spacing-2xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
}

.product-card {
  background-color: var(--color-bg-card);
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

.product-card:hover {
  background-color: #1a1a1a;
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-secondary);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: var(--color-white);
  color: var(--color-bg-primary);
  padding: 0.2rem 0.5rem;
}

.product-card-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-sub {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: var(--spacing-xs);
}

.product-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: var(--spacing-md);
}

.product-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--spacing-lg);
  flex: 1;
}

.product-specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.product-specs li img {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  filter: invert(1);
  flex-shrink: 0;
}

.product-card-cta {
  font-size: var(--text-xs);
  padding: 0.55rem var(--spacing-md);
  letter-spacing: 0.1em;
  align-self: flex-start;
}

@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-secondary);
}

.services-section .section-header {
  margin-bottom: var(--spacing-2xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
}

.service-card {
  background-color: var(--color-bg-card);
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.service-card:hover {
  background-color: #1a1a1a;
  transform: none;
}

.service-card--wide {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: var(--spacing-lg);
}

.service-card-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-secondary);
}

.service-card--wide .service-card-img {
  aspect-ratio: 16 / 9;
  grid-column: span 2;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.6);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  filter: grayscale(60%) brightness(0.75);
  transform: scale(1.04);
}

.service-icon {
  width: 36px;
  height: 36px;
  margin: var(--spacing-md) var(--spacing-lg) var(--spacing-sm);
  opacity: 0.5;
  filter: invert(1);
  flex-shrink: 0;
}

.service-card--wide .service-icon {
  margin: 0 0 var(--spacing-sm) 0;
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  padding: 0 var(--spacing-lg) var(--spacing-sm);
}

.service-card--wide .service-title {
  padding: 0 0 var(--spacing-sm) 0;
}

.service-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  flex: 1;
}

.service-card--wide .service-description {
  padding: 0;
}

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card--wide {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
  }
  .service-card--wide .service-card-img {
    grid-column: span 2;
  }
  .service-card--wide .service-icon,
  .service-card--wide .service-title,
  .service-card--wide .service-description {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 599px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* ============================================
   WHY EV SKYLINNER
   ============================================ */
.why-section {
  position: relative;
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-primary);
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.why-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(100%);
}

.why-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.85) 100%);
}

.why-section .container {
  position: relative;
  z-index: 2;
}

.why-section .section-header {
  margin-bottom: var(--spacing-2xl);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.why-card {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  padding: var(--spacing-xl) var(--spacing-lg);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.why-card:hover {
  border-color: var(--color-border-strong);
  background-color: rgba(255,255,255,0.06);
}

.why-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
  filter: invert(1);
  display: block;
}

.why-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.why-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background-color: var(--color-bg-secondary);
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid var(--color-border);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-6xl));
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.cta-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
}

.cta-trust {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-top: var(--spacing-md);
}

.cta-section .cta-button {
  font-size: var(--text-base);
  padding: 0.9rem var(--spacing-2xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: var(--spacing-md);
  opacity: 0.85;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  line-height: 1.6;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: var(--spacing-md);
}

.footer-section a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--color-white);
}

.footer-contact-link {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-link img {
  width: 14px;
  height: 14px;
  opacity: 0.4;
  filter: invert(1);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
  border-color: var(--color-border-strong);
  background-color: rgba(255,255,255,0.05);
}

.social-link img {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  filter: invert(1);
  transition: opacity 0.3s ease;
}

.social-link:hover img {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  margin: 0;
}

.footer-made {
  letter-spacing: 0.05em;
}

@media (max-width: 1023px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 599px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

/* ============================================
   PAGE HERO (inner pages — 60vh)
   ============================================ */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--spacing-2xl);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.72) 55%, rgba(0,0,0,0.25) 100%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}

/* Servicios hero — bus visible on right, text on left */
.page-hero-overlay--servicios {
  background: linear-gradient(to right, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.20) 100%);
}

/* Hero trust indicators (icon + label row) */
.hero-indicators {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

.hero-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 var(--spacing-md);
}

.hero-indicator:first-child {
  padding-left: 0;
}

.hero-indicator img {
  width: 20px;
  height: 20px;
  filter: invert(1);
  flex-shrink: 0;
}

.hero-indicator span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.hero-indicator-sep {
  width: 1px;
  height: 20px;
  background-color: rgba(117, 117, 114, 0.3);
  flex-shrink: 0;
}

@media (max-width: 599px) {
  .hero-indicators {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  .hero-indicator {
    padding: 0;
  }
  .hero-indicator-sep {
    display: none;
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-top: 80px;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.page-hero-content .hero-eyebrow {
  animation: none;
}

.page-hero-content .hero-title {
  font-size: clamp(2.2rem, 4vw, var(--text-7xl));
  animation: none;
}

.page-hero-content .hero-subtitle {
  animation: none;
}

.page-hero-content .hero-ctas {
  animation: none;
}

@media (max-width: 767px) {
  .page-hero {
    height: auto;
    min-height: 55vh;
    align-items: flex-end;
  }
}

/* ============================================
   MODELS NAV (sticky tabs — productos.html)
   ============================================ */
.models-nav {
  position: sticky;
  top: 70px;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.models-nav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.models-nav-inner::-webkit-scrollbar {
  display: none;
}

.model-tab {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  padding: var(--spacing-md) var(--spacing-xl);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  opacity: 0.5;
  transition: color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  display: block;
}

.model-tab:hover {
  color: var(--color-gray-light);
  opacity: 0.8;
}

.model-tab.active {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
  opacity: 1;
}

@media (max-width: 767px) {
  .model-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.6rem;
  }
}

/* ============================================
   MODEL SECTION — ficha técnica
   ============================================ */
.model-section {
  position: relative;
  scroll-margin-top: 130px;
  border-bottom: 1px solid #757572;
  overflow: hidden;
  background-color: var(--color-bg-primary);
}

.model-section:last-of-type {
  border-bottom: none;
}

/* Background watermark */
.model-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 15rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-white);
  opacity: 0.04;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  line-height: 1;
}

/* Layout grid: 55 / 45 */
.model-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 70vh;
  position: relative;
  z-index: 1;
}

.model-layout--reverse {
  grid-template-columns: 45fr 55fr;
}

/* Image side */
.model-media {
  display: flex;
  flex-direction: column;
}

.model-main-wrap {
  flex: 1;
  overflow: hidden;
  background-color: var(--color-bg-secondary);
}

.model-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
  min-height: 420px;
}

/* Model section video block — sits between main img and thumbnails */
.model-video-block {
  background-color: var(--color-bg-primary);
  overflow: hidden;
}

.model-video-block video {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
}

.model-video-label {
  display: block;
  font-size: 11px;
  color: var(--color-gray-mid);
  text-align: center;
  padding: 0.35rem var(--spacing-sm);
  background-color: var(--color-bg-secondary);
  letter-spacing: 0.06em;
}

/* Thumbnails */
.model-thumbs {
  display: flex;
  gap: 2px;
  background-color: #000;
}

.model-thumb {
  flex: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
  border-bottom: 2px solid transparent;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.model-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.model-thumb:hover {
  opacity: 0.7;
}

.model-thumb.active {
  opacity: 1;
  border-bottom-color: var(--color-white);
}

/* Content (specs) side */
.model-content {
  padding: var(--spacing-2xl) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-bg-primary);
  border-left: 1px solid var(--color-border);
}

.model-layout--reverse .model-content {
  border-left: none;
  border-right: 1px solid var(--color-border);
}

.model-class {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: var(--spacing-sm);
}

.model-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, var(--text-7xl));
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.model-name span {
  color: var(--color-gray-light);
}

.model-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
  max-width: 380px;
}

/* Specs grid — 2 × 2 */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
  margin-bottom: var(--spacing-xl);
}

.spec-item {
  background-color: var(--color-bg-primary);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.spec-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.spec-unit {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-gray-mid);
}

.spec-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
}

/* Shared specs row */
.shared-specs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--spacing-xl);
}

.shared-spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-gray-mid);
}

.shared-spec img {
  width: 14px;
  height: 14px;
  opacity: 0.4;
  filter: invert(1);
  flex-shrink: 0;
}

/* Model CTA — outline white */
.model-cta {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  background-color: transparent;
  align-self: flex-start;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  padding: 0.7rem var(--spacing-lg);
}

.model-cta:hover {
  background-color: var(--color-white);
  color: var(--color-bg-primary);
}

/* Download variant — same outline, smaller, with rotated arrow icon */
.model-cta--dl {
  font-size: 0.7rem;
  padding: 0.5rem var(--spacing-md);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--color-gray-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.model-cta--dl:hover {
  background-color: var(--color-white);
  color: var(--color-bg-primary);
  border-color: var(--color-white);
}

.model-cta--dl img {
  width: 11px;
  height: 11px;
  transform: rotate(90deg);
  filter: invert(1);
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

.model-cta--dl:hover img {
  filter: invert(0);
}

@media (max-width: 1023px) {
  .model-layout,
  .model-layout--reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .model-layout--reverse .model-content {
    border-right: none;
    border-top: 1px solid var(--color-border);
    order: 2;
  }
  .model-layout--reverse .model-media {
    order: 1;
  }
  .model-content {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) var(--spacing-md);
  }
  .model-main-img {
    min-height: 280px;
  }
  .model-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ============================================================
   SPECS TABLE SECTION — Sección 4, productos.html
   ============================================================ */

.specs-table-section {
  padding: var(--spacing-2xl) 0 calc(var(--spacing-2xl) * 1.5);
  background-color: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.specs-table-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.specs-table-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--spacing-sm);
}

.specs-table-subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 3-col layout: deco | table | deco */
.specs-table-layout {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: var(--spacing-lg);
  align-items: start;
}

/* Decorative flanking images */
.specs-deco {
  pointer-events: none;
  position: sticky;
  top: 100px;
}

.specs-deco img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.3;
  filter: invert(1);
}

/* Horizontal scroll wrapper */
.specs-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table */
.specs-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.specs-table thead tr {
  border-bottom: 1px solid rgba(214, 214, 214, 0.4);
}

/* Sticky first column */
.specs-th-label,
.specs-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: var(--color-bg-primary);
}

.specs-th-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  padding: var(--spacing-md);
  text-align: left;
  min-width: 160px;
}

.specs-th-model {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  padding: var(--spacing-md);
  text-align: center;
  min-width: 130px;
  line-height: 1.4;
}

/* Featured column header (American F9.5) */
.specs-th-featured {
  color: var(--color-white);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* Alternating rows */
.specs-table tbody tr:nth-child(odd) {
  background-color: var(--color-bg-primary);
}

.specs-table tbody tr:nth-child(even) {
  background-color: var(--color-bg-secondary);
}

.specs-table tbody tr:nth-child(even) .specs-row-label {
  background-color: var(--color-bg-secondary);
}

/* Row label cells */
.specs-row-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  border-right: 1px solid var(--color-border);
}

/* Data cells */
.specs-table td {
  color: var(--color-white);
  font-size: var(--text-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  line-height: 1.4;
}

/* Featured column (American F9.5) */
.specs-col-featured {
  border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* "Dato en validación" cells */
.specs-pending {
  color: var(--color-gray-mid) !important;
  font-style: italic;
  font-size: var(--text-xs) !important;
}

@media (max-width: 1023px) {
  .specs-table-layout {
    grid-template-columns: 1fr;
  }
  .specs-deco {
    display: none;
  }
}

/* ============================================================
   SERVICES GRID — Section 2, servicios.html
   ============================================================ */

.services-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-primary);
}

.services-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.services-section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.services-section-subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Equal-width flex grid: 3 top row, 2 bottom row centered */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
}

.service-card {
  flex: 0 0 calc((100% - var(--spacing-lg) * 2) / 3);
  background-color: var(--color-bg-card);
  border: 1px solid rgba(117, 117, 114, 0.2);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
  transition: border-color 0.3s ease;
}

.service-card:hover {
  border-color: rgba(117, 117, 114, 0.5);
  background-image: radial-gradient(circle at 40px 52px, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

/* Featured card — Consultoría e Implementación */
.service-card--featured {
  border-color: rgba(255, 255, 255, 0.6);
}

.service-card--featured:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

/* Featured card video strip — full width at top of card */
.service-card-video {
  width: 100%;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.service-card-video video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #000;
}

/* "Servicio recomendado" badge */
.service-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  border: 1px solid var(--color-border);
  padding: 0.2rem 0.6rem;
  line-height: 1.6;
}

/* Icon */
.service-icon {
  width: 40px;
  height: 40px;
  filter: invert(1);
  flex-shrink: 0;
  display: block;
}

/* Service name */
.service-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin: 0;
}

/* Description */
.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Deliverables list */
.service-deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-deliverables li {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.service-deliverables li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* Stat highlight */
.service-stat {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-sm);
  margin-top: auto;
}

/* Audience line */
.service-audience {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.service-audience strong {
  color: var(--color-gray-mid);
  font-weight: 600;
}

/* Micro-CTA link */
.service-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-gray-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service-cta-link:hover {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 1023px) {
  .service-card {
    flex: 0 0 calc((100% - var(--spacing-lg)) / 2);
  }
}

@media (max-width: 599px) {
  .service-card {
    flex: 0 0 100%;
  }
}

/* ============================================================
   PROCESS TIMELINE — Section 3, servicios.html
   ============================================================ */

.process-section {
  position: relative;
  padding: calc(var(--spacing-2xl) + 40px) 0 var(--spacing-2xl);
  background-color: var(--color-bg-secondary);
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}

.process-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.04;
  filter: grayscale(100%);
}

.process-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  position: relative;
  z-index: 1;
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.process-subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Horizontal timeline row */
.process-timeline {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* Individual step */
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--spacing-sm);
}

/* Connector line between steps */
.process-connector {
  flex: 0 0 32px;
  height: 1px;
  background-color: rgba(117, 117, 114, 0.3);
  align-self: flex-start;
  margin-top: 46px; /* aligns with vertical center of step-number (icon 24px + gap 8px + half of 32px number ≈ 46px) */
  transition: background-color 0.3s ease;
}

/* Connector lights up when the next step is hovered */
.process-connector:has(+ .process-step:hover) {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Step icon */
.step-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
  opacity: 0.45;
  display: block;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.process-step:hover .step-icon {
  opacity: 1;
}

/* Step number */
.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-mid);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
  transition: color 0.3s ease;
}

.process-step:hover .step-number {
  color: var(--color-white);
}

/* Step title */
.step-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Step description */
.step-desc {
  font-size: 0.8125rem;
  color: var(--color-gray-mid);
  line-height: 1.6;
  max-width: 180px;
  margin: 0 auto 0.5rem;
}

/* Duration badge */
.step-duration {
  font-size: 0.625rem;
  color: var(--color-gray-mid);
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}

.step-duration::before {
  content: '⏱ ';
  opacity: 0.6;
}

/* Closing trust line */
.process-closing {
  text-align: center;
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  margin-top: var(--spacing-2xl);
  position: relative;
  z-index: 1;
}

/* Mobile — vertical stack */
@media (max-width: 767px) {
  .process-section {
    clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(var(--spacing-2xl) + 20px);
  }

  .process-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .process-connector {
    display: none;
  }

  .process-step {
    flex: none;
    text-align: left;
    align-items: flex-start;
    padding: 0 0 var(--spacing-xl) var(--spacing-xl);
    border-left: 1px solid rgba(117, 117, 114, 0.3);
    margin-left: 12px;
  }

  .process-step:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
  }

  .step-desc {
    max-width: 100%;
    margin: 0 0 0.5rem;
  }
}

/* ============================================================
   HISTORIA — Section 2, conocenos.html
   ============================================================ */

.history-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

/* City photo — right half only at 5% opacity */
.history-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 0;
  pointer-events: none;
}

.history-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.05;
  filter: grayscale(100%);
}

.history-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.history-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--spacing-xl);
  line-height: 1.1;
}

.history-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

/* Forward vision quote — 18px #ffffff with left border */
.history-vision {
  font-size: 1.125rem;
  color: var(--color-white);
  line-height: 1.7;
  border-left: 2px solid var(--color-gray-mid);
  padding-left: var(--spacing-md);
  margin-top: var(--spacing-xl);
  font-style: normal;
}

/* ============================================================
   MISIÓN Y VALORES — Section 3, conocenos.html
   ============================================================ */

.values-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.values-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.values-section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--spacing-xl);
}

/* Misión/Visión block */
.mv-block {
  max-width: 760px;
  margin: 0 auto var(--spacing-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.mv-item-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: var(--spacing-sm);
}

.mv-item-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.mv-divider {
  width: 1px;
  background-color: var(--color-border);
  align-self: stretch;
  margin: auto;
}

/* Values grid — 3 cols × 2 rows */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-2xl);
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.value-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.value-desc {
  font-size: 0.8125rem;
  color: var(--color-gray-mid);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1023px) {
  .mv-block {
    grid-template-columns: 1fr;
    max-width: 540px;
  }
  .mv-divider { display: none; }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICIOS CTA — Section 4, servicios.html
   ============================================================ */

.servicios-cta-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-primary);
  border-top: 1px solid rgba(117, 117, 114, 0.2);
  position: relative;
  overflow: hidden;
}

/* Radial glow — only decoration */
.servicios-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.servicios-cta-section .cta-inner {
  position: relative;
  z-index: 1;
}

/* ============================================================
   CONTACTO PAGE — contacto.html
   ============================================================ */

/* Hero modifier — 50vh, stronger overlay */
.page-hero--contact {
  height: 50vh;
}

.page-hero-overlay--contact {
  background: linear-gradient(to right, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.30) 100%);
}

@media (max-width: 767px) {
  .page-hero--contact {
    height: auto;
    min-height: 45vh;
  }
}

/* Contact section layout */
.contact-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

/* Form wrapper */
.contact-form-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
}

.required-mark {
  color: var(--color-gray-mid);
  margin-left: 0.15rem;
}

/* Input, select, textarea */
.form-input,
.form-select,
.form-textarea {
  background-color: var(--color-bg-secondary);
  border: 1px solid rgba(117, 117, 114, 0.4);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.75rem var(--spacing-sm);
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-white);
}

/* Custom select arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23757572' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background-color: #0a0a0a;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Error state — no red per brandbook */
.input-error {
  border-color: #757572 !important;
}

.field-error {
  display: block;
  font-size: 11px;
  color: #757572;
  font-style: italic;
  margin-top: 4px;
  min-height: 16px;
}

/* Submit */
.form-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-white);
  color: var(--color-bg-primary);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
  margin-top: var(--spacing-sm);
}

.form-submit:hover:not(:disabled) {
  background-color: var(--color-gray-light);
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Success state */
#form-success {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.form-success-icon {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: var(--space-md);
  display: block;
}

#form-success h3 {
  font-size: 28px;
  color: #ffffff;
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
}

#form-success p {
  color: #757572;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.form-success-sub {
  font-size: 13px;
  color: #4a4a48;
  margin-bottom: var(--space-md);
}

/* Error state */
#form-error {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border-left: 2px solid #757572;
}

#form-error p {
  color: #757572;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
}

.form-error-email {
  color: #ffffff;
  font-style: normal;
  font-size: 14px;
  margin-top: 8px;
}

/* Contact info right column */
.contact-info-col {
  position: sticky;
  top: 100px;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
}

.contact-info-desc {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-xl);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-info-item img {
  width: 18px;
  height: 18px;
  filter: invert(1);
  opacity: 0.45;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-mid);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 0.9375rem;
  color: var(--color-white);
  line-height: 1.4;
}

/* Pending/TODO visible placeholder */
.pending {
  color: var(--color-gray-mid);
  font-style: italic;
}

/* Trust bar */
.trust-bar {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.trust-bar-text {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  letter-spacing: 0.12em;
  margin: 0;
}

@media (max-width: 1023px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info-col {
    position: static;
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-xl);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* conocenos CTA — tighter radial glow behind title only */
.conocenos-cta-section::before {
  background: radial-gradient(ellipse 50% 30% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}

/* Secondary ghost — gray border/text, white on hover */
.cta-button-ghost--secondary {
  border-color: rgba(117, 117, 114, 0.6);
  color: var(--color-gray-mid);
}

.cta-button-ghost--secondary:hover {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

/* City trust signals */
.cta-cities-wrap {
  margin-top: var(--spacing-md);
  text-align: center;
}

.cta-cities {
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  letter-spacing: 0.1em;
  margin: 0;
}

.cta-cities-sub {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}

/* ============================================================
   VIDEO SECTION — Section 0, productos.html
   ============================================================ */

.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-section-bg video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-section-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.video-section-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--spacing-md);
}

.video-section-content .section-eyebrow {
  margin-bottom: var(--spacing-md);
}

.video-section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto;
}

/* ============================================================
   MODEL VIDEO STRIP — full-bleed cinematic break between model cards
   ============================================================ */

.model-video-strip {
  width: 100%;
  background: #000;
  display: block;
}

.model-video-strip-label {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 0 12px;
}

.model-video-strip video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}

/* ============================================================
   ATRIBUTOS TEXT SECTION — above video, productos.html
   ============================================================ */

.atributos-text-section {
  background: #000;
  padding: 80px 0;
  text-align: center;
}

.atributos-text-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  max-width: 680px;
  margin: 0.75rem auto 0;
  line-height: 1.2;
}

/* ============================================================
   ATRIBUTOS VIDEO SECTION — user-initiated play, with sound
   ============================================================ */

.atributos-video-section {
  background: #000;
  width: 100%;
}

.atributos-video-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}

.atributos-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}

.atributos-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.atributos-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.atributos-play-btn::after {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

.atributos-play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.07);
}

/* ============================================================
   GALILEO FEATURE SECTION — servicios.html, between S2 and S3
   ============================================================ */

.galileo-feature-section {
  background: #0a0a0a;
  padding: 80px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.galileo-feature-text {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.galileo-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--color-white);
  margin: 0.5rem 0 0;
  line-height: 1.25;
}

.galileo-feature-section video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}

/* ============================================================
   INTERIORS GALLERY — Section 3B, productos.html
   ============================================================ */

.interiors-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}

.interiors-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.interiors-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.interiors-subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.interiors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background-color: var(--color-border);
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-bg-secondary);
  position: relative;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
  font-size: var(--text-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  font-size: var(--text-2xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-prev { left: var(--spacing-md); }
.lightbox-next { right: var(--spacing-md); }

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.lightbox-counter {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--color-gray-mid);
}

@media (max-width: 767px) {
  .interiors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

/* ============================================================
   CTA SECTION — PRODUCTOS (Section 5)
   ============================================================ */

.cta-section--productos {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.cta-section--productos .cta-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-section--productos .cta-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.06;
  filter: grayscale(100%);
}

.cta-section--productos .cta-inner {
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.cta-button-ghost {
  display: inline-block;
  padding: 0.85rem var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cta-button-ghost:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* ============================================================
   BRAND FILM SECTION — index.html (between why and CTA)
   ============================================================ */
.brand-film-section {
  background: #000;
  width: 100%;
}

.brand-film-section video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #000;
}

/* ============================================================
   THREE.JS NETWORK CANVAS — index.html hero
   ============================================================ */
#hero-network-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  transform: translateZ(0); /* GPU layer — eliminates CPU paint artifacts */
}

/* ============================================================
   P5.JS PARTICLE CANVAS — productos.html hero
   ============================================================ */
#hero-particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateZ(0);
}

/* ============================================================
   SCANLINE OVERLAY — CRT texture depth on hero sections
   4px spacing, 2% opacity — subtle, no moiré
   ============================================================ */
.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.02) 3px,
    rgba(0, 0, 0, 0.02) 4px
  );
  z-index: 4;
  pointer-events: none;
}

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

/* ============================================================
   GLITCH — hero h1 on index.html and productos.html
   Subtle: active 2% of 15s cycle (~0.3s every 15s)
   ============================================================ */
@keyframes glitch-skew {
  0%, 2%, 100% { transform: skewX(0deg) translateX(0); }
  0.4%  { transform: skewX(-1.5deg) translateX(-3px); }
  0.8%  { transform: skewX(1.5deg)  translateX(3px); }
  1.2%  { transform: skewX(-0.5deg) translateX(-1px); }
  1.6%  { transform: skewX(0deg)    translateX(0); }
}

.hero-title--glitch {
  animation: glitch-skew 15s steps(1, end) infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title--glitch { animation: none; }
}

/* ============================================================
   PULSE RINGS — servicios.html hero (pure CSS)
   ============================================================ */
.pulse-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

@keyframes pulse-ring-expand {
  0%   { transform: scale(0.25); opacity: 0.08; }
  100% { transform: scale(3);    opacity: 0; }
}

.pulse-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: pulse-ring-expand 4.8s ease-out infinite;
  will-change: transform, opacity;
  transform-origin: center center;
}

.pulse-ring:nth-child(1) { animation-delay: 0s; }
.pulse-ring:nth-child(2) { animation-delay: 0.8s; }
.pulse-ring:nth-child(3) { animation-delay: 1.6s; }
.pulse-ring:nth-child(4) { animation-delay: 2.4s; }

@media (prefers-reduced-motion: reduce) {
  .pulse-ring { animation: none; opacity: 0; }
}

/* ============================================================
   ANIMATED GRID — conocenos.html valores section
   ============================================================ */
@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.values-section {
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(117, 117, 114, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 117, 114, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 8s linear infinite;
  pointer-events: none;
  z-index: 0;
  will-change: background-position;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .values-section::before { animation: none; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }

  .cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, opacity 0.2s ease;
    will-change: left, top;
  }

  .cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid #757572;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    will-change: left, top;
  }

  .cursor-ring.is-hovering {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
  }

  .cursor-dot.is-hovering {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring { display: none !important; }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
body.page-transitioning {
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* ============================================================
   COMPREHENSIVE RESPONSIVE — tablet and mobile additions
   All missing breakpoints collected here.
   ============================================================ */

/* ── HERO — index.html ─────────────────────────────────────── */
@media (max-width: 767px) {
  .hero {
    min-height: 50vh;
  }
  .hero-bg-video video {
    height: 40vh;
    object-fit: cover;
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  .hero-eyebrow {
    letter-spacing: 0.06em;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    text-align: center;
    width: 100%;
  }
  .hero-scroll {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.65) 100%);
  }
}

/* ── PAGE-HERO — inner pages ───────────────────────────────── */
@media (max-width: 767px) {
  .page-hero {
    height: auto;
    min-height: 50vh;
  }
  .page-hero-content .hero-title {
    font-size: clamp(28px, 7vw, 2.5rem);
  }
  .page-hero-content .hero-subtitle {
    font-size: 15px;
  }
  .page-hero-content .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero-content .hero-cta-primary,
  .page-hero-content .hero-cta-secondary {
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .page-hero {
    min-height: 50vh;
    height: 50vh;
  }
  .page-hero-content .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

/* ── GLITCH — reduce intensity on mobile ───────────────────── */
@media (max-width: 767px) {
  @keyframes glitch-skew-mobile {
    0%,  90%, 100% { transform: skewX(0deg); }
    91%             { transform: skewX(-1deg) translateX(-1px); }
    93%             { transform: skewX(1deg)  translateX(1px); }
    95%             { transform: skewX(0deg); }
  }
  .hero-title--glitch {
    animation-name: glitch-skew-mobile;
  }
}

/* ── PULSE RINGS — reduce scale on mobile ──────────────────── */
@media (max-width: 767px) {
  @keyframes pulse-ring-expand-mobile {
    0%   { transform: scale(0.25); opacity: 0.08; }
    100% { transform: scale(1.8);  opacity: 0; }
  }
  .pulse-ring {
    animation-name: pulse-ring-expand-mobile;
  }
}

/* ── ANIMATED GRID — pause on mobile ───────────────────────── */
@media (max-width: 767px) {
  .values-section::before {
    animation: none;
  }
}

/* ── THREE.JS / P5.JS FALLBACK — mobile (< 480px) ─────────── */
@media (max-width: 479px) {
  #hero-network-canvas,
  #hero-particle-canvas {
    display: none;
  }
  .hero,
  .page-hero {
    background-image: radial-gradient(
      ellipse 80% 60% at 50% 40%,
      rgba(255,255,255,0.04) 0%,
      transparent 70%
    );
  }
}

/* ── HISTORY — hide city image on mobile ───────────────────── */
@media (max-width: 767px) {
  .history-bg {
    display: none;
  }
  .history-content {
    max-width: 100%;
  }
}

/* ── VALUES GRID — border separator on mobile ──────────────── */
@media (max-width: 599px) {
  .value-item {
    border-bottom: 1px solid rgba(117, 117, 114, 0.2);
    padding-bottom: var(--spacing-xl);
  }
  .value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ── SPECS TABLE — mobile scroll hint ──────────────────────── */
.specs-table-scroll-hint {
  display: none;
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-align: right;
  padding: 0.5rem var(--spacing-sm) 0;
}
@media (max-width: 767px) {
  .specs-table-scroll-hint {
    display: block;
  }
}

/* ── CONTACT — tablet layout adjustment ────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-layout {
    grid-template-columns: 13fr 7fr;
    gap: var(--spacing-xl);
  }
}

/* ── CONTACT INFO — mobile row layout ──────────────────────── */
@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-info-items {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
  }
  .contact-info-item {
    flex: 1 1 calc(33% - var(--spacing-sm));
    min-width: 120px;
    align-items: flex-start;
  }
}

/* ── FORM — touch targets ───────────────────────────────────── */
@media (max-width: 767px) {
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 48px;
    padding: 0.85rem var(--spacing-sm);
    font-size: 16px; /* prevents iOS auto-zoom */
  }
  .form-submit {
    height: 52px;
    font-size: 16px;
    min-height: 52px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  /* Use native select on mobile */
  .form-select {
    background-image: none;
    padding-right: var(--spacing-sm);
  }
}

/* ── MODEL SECTIONS — tablet ───────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .model-layout,
  .model-layout--reverse {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .model-main-img {
    min-height: 320px;
  }
  .model-content {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── MODEL SECTIONS — mobile specs grid 2-col ──────────────── */
@media (max-width: 767px) {
  .spec-value {
    font-size: var(--text-3xl);
  }
  .spec-label {
    font-size: 0.6rem;
  }
}

/* ── SERVICES GRID — tablet 2-col ──────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    justify-content: flex-start;
  }
  .service-card {
    flex: 0 0 calc((100% - var(--spacing-lg)) / 2);
  }
}

/* ── STATS BAR — section-angled reset on mobile ─────────────── */
@media (max-width: 767px) {
  .section-angled {
    clip-path: none;
  }
}

/* ── WHY GRID — tablet 2-col ───────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── PRODUCT GRID — tablet ──────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── FOOTER — tablet ────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

/* ── HERO INDICATORS — tablet ───────────────────────────────── */
@media (max-width: 767px) {
  .hero-indicators {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  .hero-indicator {
    padding: 0;
  }
  .hero-indicator-sep {
    display: none;
  }
}

/* ── CTA ACTIONS — mobile stacked ──────────────────────────── */
@media (max-width: 767px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-button,
  .cta-button-ghost {
    text-align: center;
    width: 100%;
  }
}

/* ── PROCESS SECTION — tablet ───────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .step-desc {
    max-width: 140px;
    font-size: 0.75rem;
  }
  .step-duration {
    display: none;
  }
}

/* ── BRAND FILM — video responsive ──────────────────────────── */
.brand-film-section video,
.model-video-strip video,
.galileo-feature-section video {
  max-height: none;
}

/* ── INTERIORS GRID — tablet ────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .interiors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── ATRIBUTOS VIDEO — mobile ───────────────────────────────── */
@media (max-width: 767px) {
  .atributos-play-btn {
    width: 64px;
    height: 64px;
  }
}

/* ── GALILEO FEATURE — mobile ───────────────────────────────── */
@media (max-width: 767px) {
  .galileo-feature-section {
    clip-path: none;
    padding: var(--spacing-2xl) 0 0;
  }
}

/* ── MV BLOCK — mobile ──────────────────────────────────────── */
@media (max-width: 599px) {
  .mv-block {
    grid-template-columns: 1fr;
  }
  .mv-divider {
    display: none;
  }
}

/* ============================================================
   LANGUAGE TOGGLE BUTTON — lang.js
   ============================================================ */

/* Pill button */
.lang-btn {
  background: transparent;
  border: 1px solid var(--color-gray-mid);
  color: var(--color-gray-mid);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  line-height: 1.6;
  flex-shrink: 0;
}

/* When EN is active — button becomes prominent white */
.lang-btn[data-active="en"] {
  color: var(--color-white);
  border-color: var(--color-white);
}

.lang-btn:hover {
  color: var(--color-white);
  border-color: var(--color-white);
}

/* Wrapper groups lang-btn + cta-button on the right of nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Mobile hamburger: hide the desktop lang-btn wrapper */
@media (max-width: 767px) {
  .nav-right {
    display: none;
  }
}

/* Nav lang item — last item inside mobile hamburger overlay */
.nav-lang-item {
  display: none;
}

@media (max-width: 767px) {
  .nav-lang-item {
    display: flex !important;
    justify-content: center;
    padding: 20px 0 8px;
    width: 100%;
  }

  .nav-lang-item .lang-btn {
    font-size: 14px;
    padding: 8px 24px;
  }
}
