﻿/* ============================================================
   MASP TRANSPORTE - CORPORATE & MODERNIST DESIGN SYSTEM
   Palette: Midnight Navy, Luxury Gold, Chrome Silver & White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --color-bg-dark: #070c18;
  --color-bg-card: rgba(13, 21, 39, 0.75);
  --color-bg-card-hover: rgba(18, 30, 56, 0.88);
  --color-navy-deep: #0a1122;
  --color-navy-surface: #101c36;
  --color-navy-border: rgba(148, 163, 184, 0.15);
  
  --color-gold-primary: #d4af37;
  --color-gold-light: #f3cf65;
  --color-gold-dark: #aa8624;
  --color-gold-glow: rgba(212, 175, 55, 0.35);
  
  --color-kms-blue: #0077b6;
  --color-kms-light: #00b4d8;
  
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  overflow-x: hidden;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #060a14;
}
::-webkit-scrollbar-thumb {
  background: #1b2848;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* Typography styles */
.font-display {
  font-family: var(--font-display);
}
.font-heading {
  font-family: var(--font-heading);
}

/* Golden Gradients & Texts */
.text-gold-gradient {
  background: linear-gradient(135deg, #f8df8b 0%, #d4af37 50%, #aa8624 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-silver-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #f1cb5b 0%, #d4af37 50%, #b88d22 100%);
}

.border-gold-glow {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

/* Modern Glassmorphism Cards */
.glass-panel {
  background: var(--color-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-navy-border);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.12);
  transform: translateY(-4px);
}

/* ============================================================
   PRELOADER ANIMATION WITH MASP LOGO
   ============================================================ */
#masp-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #0f1c3a 0%, #060b17 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#masp-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring-gold {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #d4af37;
  border-right-color: rgba(212, 175, 55, 0.4);
  animation: spinGold 1.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.loader-ring-silver {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(203, 213, 225, 0.3);
  animation: spinReverse 3.5s linear infinite;
}

.loader-logo-img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.35));
  animation: pulseLogo 2s ease-in-out infinite;
}

.loader-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2rem;
  position: relative;
}

.loader-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #fef08a, #d4af37);
  box-shadow: 0 0 10px #d4af37;
  animation: loadProgress 1.4s ease-out forwards;
}

@keyframes spinGold {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.55)); }
}

@keyframes loadProgress {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}

/* ============================================================
   NAVBAR & HEADER
   ============================================================ */
.navbar-corporate {
  background: rgba(7, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.3s ease;
}

.navbar-scrolled {
  background: rgba(6, 11, 22, 0.96);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.03em;
  color: #cbd5e1;
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: #f1cb5b;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #fef08a);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

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

/* ============================================================
   HERO VIDEO BACKGROUND
   ============================================================ */
.hero-video-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-video-element {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 30%, rgba(13, 22, 45, 0.65) 0%, rgba(7, 12, 24, 0.92) 80%),
              linear-gradient(to bottom, rgba(7, 12, 24, 0.4) 0%, rgba(7, 12, 24, 0.98) 100%);
  z-index: 1;
}

/* Tech mesh grid overlay */
.tech-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================================
   STRATEGIC ALLIANCES SHOWCASE
   ============================================================ */
.alliance-card {
  position: relative;
  border-radius: 1rem;
  background: rgba(14, 23, 44, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.alliance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alliance-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.15);
}

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

.partner-logo-container {
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.alliance-card:hover .partner-logo-container {
  transform: scale(1.03);
}

/* ============================================================
   COMMERCIAL VIDEO SECTION
   ============================================================ */
.commercial-video-box {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.12);
}

.commercial-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON & CHAT POPUP
   ============================================================ */
.whatsapp-float-container {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 990;
}

.whatsapp-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-chat-bubble {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 330px;
  background: #0d172e;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 991;
}

.whatsapp-chat-bubble.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.whatsapp-chat-header {
  background: linear-gradient(135deg, #128C7E, #075E54);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   BUTTONS & INTERACTIONS
   ============================================================ */
.btn-primary-masp {
  background: linear-gradient(135deg, #f3cf65 0%, #d4af37 50%, #b88d22 100%);
  color: #070c18;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.85rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary-masp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #fef08a 0%, #e2be4a 50%, #c49928 100%);
}

.btn-outline-masp {
  background: rgba(16, 26, 48, 0.5);
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.85rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-outline-masp:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #d4af37;
  color: #f1cb5b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

/* ============================================================
   MAP CONTAINER
   ============================================================ */
#masp-map {
  width: 100%;
  height: 440px;
  border-radius: 1rem;
  z-index: 10;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.leaflet-popup-content-wrapper {
  background: #0d172e !important;
  color: #f8fafc !important;
  border: 1px solid #d4af37 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}
.leaflet-popup-tip {
  background: #0d172e !important;
}

/* ============================================================
   UNITS FILTER TABS
   ============================================================ */
.fleet-tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  background: rgba(14, 23, 44, 0.5);
  cursor: pointer;
}

.fleet-tab-btn.active, .fleet-tab-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border-color: #d4af37;
  color: #f1cb5b;
}

/* ============================================================
   ANIMATIONS & GLOWS
   ============================================================ */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatGentle 5s ease-in-out infinite;
}

.gold-glow-badge {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f1cb5b;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
