:root {
  --navy: #0a192f;
  --navy-light: #112240;
  --gold: #d4af37;
  --white: #e6f1ff;
}

/* Fix white margins / mobile gaps */
html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { font-family: 'Montserrat', sans-serif; }

/* NAVBAR & LOGO */
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-light { background-color: var(--navy-light) !important; }

.logo-text {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.text-gold-brand { color: var(--gold); }
.border-gold-bottom { border-bottom: 3px solid var(--gold); }
.border-gold-top { border-top: 3px solid var(--gold); }
.border-gold-all { border: 2px solid var(--gold) !important; }

.main-logo {
  height: 40px;
  width: auto;
  margin-right: 12px;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--white) !important;
}
.nav-link:hover { color: var(--gold) !important; }
.btn-gold-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 20px !important;
  border-radius: 4px;
}

/* HERO (video) - FIXED LAYERS */
.hero-video-container {
  height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate; /* evita bugs de stacking */
}

/* Video visible (sin z-index negativo) */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

/* Overlay por encima del video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(212,175,55,.14), transparent 55%),
    radial-gradient(900px 500px at 85% 30%, rgba(90,160,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(10,25,47,.70), rgba(10,25,47,1));
}

/* Contenido arriba de todo */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 18px;
}

.since-tag { color: var(--gold); font-weight: 700; letter-spacing: 4px; }

.btn-gold-lg {
  background: var(--gold);
  color: var(--navy);
  padding: 18px 45px;
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  border: none;
  text-decoration: none;
}

/* Video error box */
.video-error{
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10,25,47,.65);
  border: 1px solid rgba(212,175,55,.30);
  color: rgba(230,241,255,.92);
  display: none;
  backdrop-filter: blur(10px);
  font-weight: 700;
}
.video-error.show{ display:block; }

/* TITLES */
.section-title { font-family: 'Playfair Display', serif; font-size: 2.8rem; }
.text-gold { color: var(--gold) !important; }

/* FORM */
.form-control {
  background: var(--navy) !important;
  border: 1px solid #233554;
  color: white !important;
  padding: 15px;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.8) !important; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }

.btn-whatsapp { background: #25d366; border: none; color: white; }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); transition: 0.3s; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

/* FOOTER */
.social-icons a { transition: 0.3s ease; text-decoration: none; }
.social-icons a:hover { transform: translateY(-10px); color: var(--white) !important; }

/* ===========================
   FLEET CAROUSEL (UPGRADED)
   =========================== */
.fleet-wrap{
  position: relative;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10,25,47,.55), rgba(10,25,47,.15));
  border: 1px solid rgba(212,175,55,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.fleet-wrap::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(700px 320px at 15% 10%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(700px 320px at 85% 30%, rgba(64,145,255,.16), transparent 60%);
  filter: blur(30px);
  z-index: 0;
  pointer-events:none;
}

.fleet-carousel{
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.fleet-slide{
  position: relative;
  background: rgba(10,25,47,.85);
}

.fleet-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,.70), rgba(0,0,0,.10));
  pointer-events:none;
}

.fleet-caption{
  position:absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  max-width: 720px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(10,25,47,.55);
  border: 1px solid rgba(212,175,55,.22);
  backdrop-filter: blur(10px);
}

.fleet-caption h3{
  margin: 8px 0 4px;
  font-family: 'Playfair Display', serif;
  letter-spacing: .2px;
  color: var(--white);
}

.fleet-caption p{
  margin: 0;
  color: rgba(230,241,255,.85);
}

.fleet-chip{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 12px 30px rgba(212,175,55,.20);
}

/* IMPORTANT: no crop */
.fleet-img{
  height: 520px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: contrast(1.05) saturate(1.10);
  transform: none;
}

.fleet-control{ width: 54px; opacity: 1; }
.fleet-arrow{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(10,25,47,.55);
  border: 1px solid rgba(212,175,55,.35);
  color: var(--gold);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  transition: .2s ease;
}
.fleet-arrow:hover{
  transform: translateY(-1px);
  border-color: rgba(212,175,55,.65);
  box-shadow: 0 22px 60px rgba(212,175,55,.14);
}

.fleet-indicators [data-bs-target]{
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: rgba(230,241,255,.25);
  border: 1px solid rgba(212,175,55,.18);
  margin: 0 6px;
  opacity: 1;
}
.fleet-indicators .active{
  background: rgba(212,175,55,.92);
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 0 0 4px rgba(212,175,55,.14);
}

/* ===========================
   WORKER HOLDING BOX CLEARLY
   =========================== */
.anim-track .container { overflow: hidden; }

.mover-unit{
  position: absolute;
  left: 0;
  bottom: 6px;
  transition: 0.08s linear;
  display: flex;
  align-items: flex-end;
}

.worker-figure{
  --w: 72px;
  width: var(--w);
  height: calc(var(--w) * 1.35);
  position: relative;
  transform-origin: bottom left;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.12));
  animation: bob 0.9s ease-in-out infinite;
}

.worker-head{
  width: calc(var(--w) * 0.30);
  height: calc(var(--w) * 0.30);
  border-radius: 50%;
  background: rgba(230,241,255,.95);
  position: absolute;
  top: calc(var(--w) * 0.06);
  left: calc(var(--w) * 0.18);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}

.worker-body{
  width: calc(var(--w) * 0.40);
  height: calc(var(--w) * 0.58);
  border-radius: 18px;
  background: rgba(212,175,55,.22);
  border: 1px solid rgba(212,175,55,.35);
  position: absolute;
  top: calc(var(--w) * 0.34);
  left: calc(var(--w) * 0.14);
}

.worker-box{
  width: calc(var(--w) * 0.34);
  height: calc(var(--w) * 0.28);
  border-radius: 10px;
  background: rgba(230,241,255,.16);
  border: 2px solid rgba(212,175,55,.70);
  position: absolute;
  top: calc(var(--w) * 0.52);
  left: calc(var(--w) * 0.42);
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.worker-box::after{
  content:"";
  position:absolute;
  inset: 7px;
  border-radius: 8px;
  border: 1px dashed rgba(212,175,55,.55);
}

.worker-arm{
  height: calc(var(--w) * 0.12);
  border-radius: 999px;
  background: rgba(230,241,255,.35);
  border: 1px solid rgba(230,241,255,.25);
  position: absolute;
  top: calc(var(--w) * 0.54);
}

.worker-arm--left{
  width: calc(var(--w) * 0.40);
  left: calc(var(--w) * 0.16);
  transform-origin: left center;
  transform: rotate(6deg);
  animation: armL 1.0s ease-in-out infinite;
}

.worker-arm--right{
  width: calc(var(--w) * 0.46);
  left: calc(var(--w) * 0.28);
  transform-origin: left center;
  transform: rotate(-16deg);
  animation: armR 1.0s ease-in-out infinite;
}

.worker-leg{
  width: calc(var(--w) * 0.12);
  height: calc(var(--w) * 0.40);
  border-radius: 999px;
  background: rgba(230,241,255,.18);
  border: 1px solid rgba(230,241,255,.18);
  position: absolute;
  bottom: calc(var(--w) * 0.04);
  left: calc(var(--w) * 0.22);
  transform-origin: top center;
}
.worker-leg--left{ animation: walkL 0.9s ease-in-out infinite; }
.worker-leg--right{
  left: calc(var(--w) * 0.36);
  animation: walkR 0.9s ease-in-out infinite;
}

@keyframes bob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-2px); } }
@keyframes walkL{ 0%,100%{ transform: rotate(12deg); } 50%{ transform: rotate(-10deg); } }
@keyframes walkR{ 0%,100%{ transform: rotate(-10deg); } 50%{ transform: rotate(12deg); } }
@keyframes armL{ 0%,100%{ transform: rotate(10deg); } 50%{ transform: rotate(2deg); } }
@keyframes armR{ 0%,100%{ transform: rotate(-18deg); } 50%{ transform: rotate(-10deg); } }

.truck-target{
  position: absolute;
  right: 0;
  bottom: 10px;
  opacity: .22;
}

@media (max-width: 768px) {
  .hero-video-container { height: 70vh; }
  .display-4 { font-size: 2.3rem; }

  .fleet-img { height: 320px; object-fit: contain; }
  .fleet-caption{ left: 12px; right: 12px; bottom: 12px; }

  .worker-figure{ --w: 58px; }
}
