/* ============================================
   BYD LOGISTIC - Premium Redesign v2
   Smooth animations, modern UI, premium feel
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --red: #C8102E;
  --red-dark: #A30D24;
  --red-light: #E8193D;
  --red-glow: rgba(200, 16, 46, 0.15);
  --black: #26272B;
  --black-deep: #1F2023;
  --black-soft: #2E3035;
  --black-card: #36383E;
  --gray-900: #3D3F45;
  --gray-800: #494B51;
  --gray-700: #3A3C41;
  --gray-600: #66686F;
  --gray-400: #A3A5AB;
  --gray-300: #C6C8CE;
  --white: #FFFFFF;
  --white-soft: #F5F5F5;
  --gradient-red: linear-gradient(135deg, var(--red), var(--red-dark));
  --gradient-red-hover: linear-gradient(135deg, var(--red-light), var(--red));
  --gradient-dark: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.95) 100%);
  --gradient-radial: radial-gradient(ellipse at center, rgba(200,16,46,0.08) 0%, transparent 70%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-red: 0 8px 30px rgba(200,16,46,0.25);
  --shadow-red-lg: 0 20px 60px rgba(200,16,46,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.4s var(--ease-out);
  --transition-fast: 0.2s var(--ease-out);
  --transition-slow: 0.8s var(--ease-out);
  --transition-spring: 0.6s var(--ease-spring);
  --font-primary: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Ubuntu', sans-serif;
  --header-height: 80px;
  --grain-opacity: 0.03;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--black);
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
  background-position:
    22% 30%,
    74% 62%,
    48% 84%,
    0 0,
    0 0,
    0 0,
    0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat;
  animation: ambientGrid 28s ease-in-out infinite;
}

@keyframes ambientGrid {
  0% {
    background-position: 22% 30%, 74% 62%, 48% 84%, 0 0, 0 0;
  }
  20% {
    background-position: 26% 34%, 70% 58%, 44% 80%, 0 0, 0 0;
  }
  45% {
    background-position: 30% 40%, 62% 68%, 40% 76%, 0 0, 0 0;
  }
  70% {
    background-position: 22% 46%, 74% 52%, 52% 84%, 0 0, 0 0;
  }
  100% {
    background-position: 22% 30%, 74% 62%, 48% 84%, 0 0, 0 0;
  }
}

/* Grid that lights up progressively as the light ray sweeps */
.grid-light {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 40%, transparent 70%);
  mask-image: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 40%, transparent 70%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  animation: gridLightSweep 28s ease-in-out infinite;
}

@keyframes gridLightSweep {
  0% {
    -webkit-mask-image: radial-gradient(ellipse 40% 50% at 20% 30%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
    mask-image: radial-gradient(ellipse 40% 50% at 20% 30%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
  }
  25% {
    -webkit-mask-image: radial-gradient(ellipse 45% 55% at 40% 45%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 40%, transparent 68%);
    mask-image: radial-gradient(ellipse 45% 55% at 40% 45%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 40%, transparent 68%);
  }
  50% {
    -webkit-mask-image: radial-gradient(ellipse 50% 60% at 55% 55%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 42%, transparent 72%);
    mask-image: radial-gradient(ellipse 50% 60% at 55% 55%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 42%, transparent 72%);
  }
  75% {
    -webkit-mask-image: radial-gradient(ellipse 42% 52% at 70% 40%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 38%, transparent 65%);
    mask-image: radial-gradient(ellipse 42% 52% at 70% 40%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 38%, transparent 65%);
  }
  100% {
    -webkit-mask-image: radial-gradient(ellipse 40% 50% at 20% 30%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
    mask-image: radial-gradient(ellipse 40% 50% at 20% 30%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .grid-light { animation: none; opacity: 0; }
}

/* Selection */
::selection {
  background: rgba(200, 16, 46, 0.3);
  color: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red-light); }

/* ── Loading Screen ── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  height: 48px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.5s var(--ease-out);
  background: transparent;
}

.header.scrolled {
  background: rgba(31, 32, 35, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.logo:hover img {
  transform: scale(1.04);
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.15));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  transition: transform 0.4s var(--ease-spring);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  background: var(--gradient-red) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-red);
  position: relative;
  overflow: visible;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-red-hover);
  opacity: 0;
  transition: var(--transition);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-lg);
}

.nav-cta:hover::before { opacity: 1; }

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.3s;
}

.nav-dropdown-trigger svg {
  transition: transform 0.4s var(--ease-spring);
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
  color: #fff;
}

.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  transition: all 0.25s;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: rgba(200, 16, 46, 0.08);
  color: #fff;
}

.nav-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-light);
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.35);
  border-radius: var(--radius-xl);
  vertical-align: middle;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.4s var(--ease-spring);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 30, 0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.1rem;
  padding: calc(var(--header-height) + 2.5rem) 2rem 3rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.5s var(--ease-spring);
  transform: translateY(30px);
  opacity: 0;
  letter-spacing: -0.02em;
}

.mobile-menu.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--red);
  transform: translateX(8px);
}

.mobile-menu-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(200, 16, 46, 0.35);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.mobile-menu.sub-open .mobile-menu-sub {
  max-height: 500px;
}

.mobile-menu-sub a {
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--gray-400);
  padding: 0.55rem 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s var(--ease-out);
}

.mobile-menu.sub-open .mobile-menu-sub a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.sub-open .mobile-menu-sub a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.sub-open .mobile-menu-sub a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.sub-open .mobile-menu-sub a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.sub-open .mobile-menu-sub a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.sub-open .mobile-menu-sub a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.sub-open .mobile-menu-sub a:nth-child(6) { transition-delay: 0.3s; }

.mobile-menu-sub a:hover {
  color: var(--red);
  transform: translateX(6px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 2rem;
}

.hero.intro-logo {
  justify-content: flex-start;
  padding-top: 5rem;
}

.hero.intro-done {
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--black-deep);
  background-image:
    radial-gradient(ellipse at 50% 118%, rgba(200, 16, 46, 0.16) 0%, transparent 62%),
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px, 170px 170px, 170px 170px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 10, 10, 0.55) 100%);
}

/* Red ambient glow */
.hero-bg::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
  z-index: 1;
}

/* ── Hero 3D logo (spins until scroll) ── */
.hero-logo-3d {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: opacity 0.8s var(--ease-out);
}

.hero-logo-stage {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: videoFadeIn 1s var(--ease-out) forwards;
}

@keyframes videoFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.hero-intro-quote-wrap {
  position: relative;
  z-index: 2;
  height: 58px;
  margin-top: -6px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  transition: height 0.7s var(--ease-in-out), margin 0.7s var(--ease-in-out);
}

.hero-intro-quote {
  max-width: 620px;
  margin: 0;
  padding: 0 1.5rem;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.hero.intro-quote .hero-intro-quote {
  opacity: 1;
  transform: translateY(0);
}

.hero.intro-done .hero-intro-quote-wrap {
  height: 0;
  margin-top: 0;
  transition: height 1.5s var(--ease-in-out), margin 1.5s var(--ease-in-out);
}

.hero.intro-done .hero-intro-quote {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.hero.intro-done .hero-logo-3d {
  transition: opacity 1.3s var(--ease-out);
}

.hero.logo-dismissed .hero-logo-3d {
  opacity: 0;
  transition: opacity 1.5s var(--ease-in-out);
}

.hero.logo-dismissed .hero-video {
  animation: videoOut 1.5s var(--ease-in-out) forwards;
}

@keyframes videoOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.05); filter: blur(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; opacity: 1; }
}

/* ── Hero intro sequence ──
   intro-logo : video reproduciéndose
   intro-done : video desaparece; queda el título operativo en mayúsculas */

.hero.intro-done #hero-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero.intro-logo .hero-content {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.hero.intro-quote .hero-content {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.hero.intro-done .hero-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 1.2s var(--ease-out) 0.3s, transform 1.2s var(--ease-out) 0.3s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.4rem;
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.6);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.8); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .text-red {
  color: var(--red);
}

.hero p {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  white-space: nowrap;
  position: relative;
  overflow: visible;
}

.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-red-hover);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-red-lg);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary svg,
.btn-secondary svg {
  position: relative;
  z-index: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
  100% { opacity: 1; transform: scaleY(1); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 2.5rem 0;
  position: relative;
}

.section-dark { background: rgba(10, 10, 10, 0.94); }
.section-darker { background: rgba(30, 30, 32, 0.94); }

/* Grid + ambient light global (igual que .hero-bg) en todas las secciones oscuras */
.section-dark,
.section-darker {
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 118%, rgba(200, 16, 46, 0.1) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    34px 34px,
    34px 34px,
    170px 170px,
    170px 170px;
}

/* Ambient glow behind sections */
.section-dark::before,
.section-darker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(200, 16, 46, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--red);
  opacity: 0.3;
  transition: width 0.6s var(--ease-out);
}

.section-header:hover .section-label::before,
.section-header:hover .section-label::after {
  width: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.05rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  overflow: visible;
}

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

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-orientation: from-image;
  transform: scale(1.05);
  transition: transform 1s var(--ease-out);
}

.page-hero.loaded .page-hero-bg img {
  transform: scale(1);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 118%, rgba(200, 16, 46, 0.14) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.15) 0%,
      rgba(10, 10, 10, 0.5) 50%,
      rgba(10, 10, 10, 1) 100%
    );
  background-size:
    100% 100%,
    100% 100%,
    34px 34px,
    34px 34px,
    170px 170px,
    170px 170px,
    100% 100%;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem 3.5rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.page-hero-content .section-label {
  justify-content: flex-start;
}

.page-hero-content .section-label::before { display: none; }

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s var(--ease-out) 0.2s forwards;
}

/* ============================================
   FEATURES / VALUE CARDS
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.5s var(--ease-out);
  overflow: visible;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 46, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(200, 16, 46, 0.05);
}

.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon {
  background: rgba(200, 16, 46, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(200, 16, 46, 0.15);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================
   IMAGE GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  transform: scale(0.85);
  transition: transform 0.6s var(--ease-spring);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ============================================
   CLIENTS / LOGOS
   ============================================ */
.clients-section {
  padding: 5rem 0;
  background: var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  overflow: visible;
}

.clients-track {
  display: flex;
  gap: 3rem;
  animation: scrollLogos 35s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: visible;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: all 0.5s var(--ease-out);
  filter: grayscale(0.7) brightness(0.7);
}

.client-logo:hover {
  filter: grayscale(0) brightness(1);
  border-color: rgba(200, 16, 46, 0.25);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 40px rgba(200, 16, 46, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.client-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-card {
  perspective: 1000px;
  cursor: pointer;
}

.team-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  transition: transform 0.7s var(--ease-out);
  transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.team-card-front {
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.team-card-back {
  background: var(--gradient-red);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card-detail {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ============================================
   FLEET CARDS
   ============================================ */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.fleet-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: all 0.5s var(--ease-out);
}

.fleet-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 16, 46, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.fleet-card-img {
  aspect-ratio: 16/10;
  overflow: visible;
  position: relative;
}

.fleet-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
}

.fleet-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.fleet-card:hover .fleet-card-img img {
  transform: scale(1.08);
}

.fleet-card-body {
  padding: 1.5rem;
}

.fleet-card-brand {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.fleet-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

/* ============================================
   SERVICES CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.services-grid .service-card:nth-child(3) {
  grid-column: 1 / -1;
}

.service-card {
  position: relative;
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.5s var(--ease-out);
  overflow: visible;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(200, 16, 46, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 46, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before { transform: scaleY(1); }
.service-card:hover::after { opacity: 1; }

.service-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  padding: 0.2rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-light);
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.35);
  border-radius: var(--radius-xl);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-card-icon {
  background: rgba(200, 16, 46, 0.15);
  transform: scale(1.05);
}

.service-card-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--red);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--gray-400);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================
   BRAND MANIFESTO
   ============================================ */
.manifesto {
  position: relative;
  overflow: visible;
}

/* --- Hero Statement --- */
.manifesto-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

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

.manifesto-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) saturate(0.7);
  transform: scale(1.08);
  transition: transform 10s ease-out;
}

.manifesto-hero.in-view .manifesto-hero-bg img {
  transform: scale(1);
}

.manifesto-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--black-deep) 0%, transparent 25%, transparent 75%, var(--black-deep) 100%),
    linear-gradient(135deg, rgba(200, 16, 46, 0.12) 0%, transparent 50%);
  z-index: 1;
}

.manifesto-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 960px;
}

.manifesto-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.manifesto-statement .text-red {
  display: inline-block;
  position: relative;
}

.manifesto-statement .text-red::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 3px;
  background: var(--red);
  opacity: 0.4;
  border-radius: 2px;
}

/* --- Purpose Blocks --- */
.manifesto-purposes {
  padding: 8rem 0;
  position: relative;
}

.manifesto-purposes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(200, 16, 46, 0.2), transparent);
}

.purpose-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}

.purpose-row:last-child {
  margin-bottom: 0;
}

.purpose-row--reverse {
  direction: rtl;
}

.purpose-row--reverse > * {
  direction: ltr;
}

.purpose-visual {
  position: relative;
  overflow: visible;
  transition: transform 0.6s var(--ease-out);
}

.purpose-visual:hover {
  transform: scale(1.02) rotate(-1deg);
}

.purpose-row:nth-child(1) .purpose-visual {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.purpose-row:nth-child(2) .purpose-visual {
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

.purpose-row:nth-child(3) .purpose-visual {
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
}

.purpose-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 1s var(--ease-out), filter 0.6s ease;
}

.purpose-visual:hover img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.1);
}

.purpose-visual-accent {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.purpose-visual:hover .purpose-visual-accent {
  border-color: rgba(200, 16, 46, 0.2);
  box-shadow: 0 20px 60px rgba(200, 16, 46, 0.1);
}

.purpose-content {
  padding: 1rem 0;
}

.purpose-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.purpose-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #fff;
}

.purpose-content p {
  color: var(--gray-400);
  font-size: 1rem;
  line-height: 1.8;
}

.purpose-content p strong {
  color: #fff;
  font-weight: 500;
}

/* --- Values Marquee --- */
.manifesto-values {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: visible;
  background: rgba(200, 16, 46, 0.02);
}

.values-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.manifesto-values:hover .values-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.value-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: all 0.4s var(--ease-out);
  cursor: default;
}

.value-pill:hover {
  background: rgba(200, 16, 46, 0.08);
  border-color: rgba(200, 16, 46, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.value-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.value-pill:hover .value-pill-dot {
  opacity: 1;
}

/* --- Quote inside Manifesto --- */
.manifesto-quote {
  padding: 6rem 0;
}

.manifesto-quote .quote-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  position: relative;
}

.manifesto-quote .quote-mark {
  font-family: Georgia, serif;
  font-size: 7rem;
  color: var(--red);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -1.5rem;
  transition: var(--transition);
}

.manifesto-quote .quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--gray-400);
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-detail:hover {
  background: rgba(255, 255, 255, 0.02);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-detail:hover .contact-detail-icon {
  background: rgba(200, 16, 46, 0.15);
  transform: scale(1.05);
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--red);
}

.contact-detail h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-detail p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
}

.contact-socials a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.3);
}

.contact-socials a svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* Form */
.contact-form-wrapper {
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: all 0.4s var(--ease-out);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-600);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
  height: 400px;
  position: relative;
  overflow: visible;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.7) brightness(0.65);
  transition: filter 0.6s var(--ease-out);
}

.map-section:hover iframe {
  filter: grayscale(0.3) brightness(0.8);
}

/* ============================================
   SECTION - MIEMBROS (CATAMP / CEAC / CAce)
   ============================================ */
.section-member {
  background: #111;
  padding: 3rem 0;
  text-align: center;
}

.section-member-header {
  margin-bottom: 2rem;
}

.section-member-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.members-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.member-logo img {
  max-height: 60px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.member-logo img:hover {
  opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4rem 0 1.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--gradient-red);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.footer-brand img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.25rem;
}

.footer-members ul {
  gap: 1rem;
}

.footer-member-item {
  list-style: none;
}

.footer-member-item img {
  max-height: 34px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.3s, filter 0.3s;
}

.footer-member-item img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-col ul a:hover {
  color: var(--red);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
  color: var(--gray-600);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--red);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
}

.footer-socials a:hover {
  background: var(--red);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.5s var(--ease-spring);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-red-lg);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.4s var(--ease-spring);
  animation: whatsapp-pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 30px rgba(37,211,102,0.55);
  animation: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

@keyframes whatsapp-pulse {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 12px rgba(37,211,102,0.1); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .scroll-top {
    bottom: 5.5rem;
    right: 1.25rem;
  }
}

/* ============================================
   STATS
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  position: relative;
}

.stats-bar::before,
.stats-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
}

.stats-bar::before { left: 25%; }
.stats-bar::after { right: 25%; }

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.stat-item:hover .stat-number {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(200, 16, 46, 0.3);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar::before, .stats-bar::after { display: none; }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero { min-height: 100svh; padding: 5rem 0 3rem; }
  .hero-logo-3d { display: none; }
  .hero-logo-stage { position: relative; inset: auto; }
  .hero-video { object-fit: contain; }
  .hero-intro-quote-wrap { height: 74px; }
  .hero-intro-quote { font-size: 0.95rem; }
  .hero-content { padding-top: calc(var(--header-height) + 1rem); }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .section { padding: 4rem 0; }

  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .purpose-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  .purpose-row--reverse {
    direction: ltr;
  }

  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .page-hero { min-height: 45vh; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }

  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }

  .process-steps { flex-direction: column; align-items: center; flex-wrap: nowrap !important; }
  .process-arrow { transform: rotate(90deg) !important; flex: 0 0 30px !important; padding-top: 0 !important; width: 100%; display: flex !important; justify-content: center !important; }
  .modules-grid { grid-template-columns: 1fr !important; }
  .members-logos { gap: 2rem; }
  .member-logo img { max-height: 45px; max-width: 120px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .client-logo { width: 90px; height: 90px; }
  .section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
  .hero-logo-3d { height: 160px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
  .hero-badge, .hero h1, .hero p, .hero-buttons, .hero-scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
@keyframes scrollLogosReverse { 0% { transform: translateX(0); } 100% { transform: translateX(50); } } .clients-track { display: flex; gap: 3rem; animation: scrollLogos 35s linear infinite; width: max-content; direction: ltr; } .clients-track:hover { animation-play-state: paused; } .clients-track[dir=`rtl`] { direction: rtl; animation: scrollLogosReverse 35s linear infinite; }
