/* Enhanced Sanchez Logistica - Premium Styles */

:root {
  --primary: #0a97b0;
  --primary-dark: #065968;
  --secondary: #04233b;
  --accent: #00d4ff;
  --light: #f8f9fa;
  --dark: #1a1a1a;
  --gradient: linear-gradient(135deg, #0a97b0 0%, #00d4ff 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  background: #fff;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loader-container {
  text-align: center;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid var(--light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Header - FIXED VERSION */
.header-section {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transform: translateY(-100%);
  opacity: 0;
}

.header-section.show {
  transform: translateY(0);
  opacity: 1;
}

.header-section.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: 0;
}

.navbar-brand .logo {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.header-section.scrolled .logo {
  height: 40px;
}

/* Mobile Menu Toggle Button - FIXED */
.navbar-toggler {
  border: 2px solid var(--primary) !important;
  padding: 4px 8px !important;
  background: transparent !important;
  transition: var(--transition);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(10, 151, 176, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230a97b0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.5em;
  height: 1.5em;
}

.navbar-toggler:hover {
  background: rgba(10, 151, 176, 0.1) !important;
}

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.header-cta .btn {
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  transition: var(--transition);
}

/* Hero Section - Add padding-top since header is initially hidden */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 0; /* No padding needed since header is hidden */
}

.hero-slider {
  height: 100vh;
}

.hero-slide {
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.hero-stats .stat p {
  font-size: 0.9rem;
  opacity: 0.8;
  color: #fff;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-features .feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.hero-features .feature i {
  color: var(--accent);
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Buttons */
.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(10, 151, 176, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(10, 151, 176, 0.4);
  background: var(--gradient);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0;
}

.btn-link:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* Sections */
.section-badge {
  display: inline-block;
  background: rgba(10, 151, 176, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Service Cards */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: translateX(-100%);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: translateX(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-icon i {
  font-size: 2rem;
  color: #fff;
}

.service-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-features li {
  padding: 8px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* Tracking Section */
.tracking-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.tracking-form {
  margin-top: 30px;
}

.tracking-form .input-group {
  box-shadow: var(--shadow-md);
  border-radius: 50px;
  overflow: hidden;
}

.tracking-form .form-control {
  border: none;
  padding: 15px 25px;
  font-size: 16px;
}

.tracking-form .btn {
  border-radius: 0 50px 50px 0;
  padding: 15px 30px;
}

.tracking-result {
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tracking-features .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.tracking-visual {
  position: relative;
}

.tracking-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 151, 176, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  opacity: 0;
  transition: var(--transition);
}

.tracking-visual:hover .tracking-overlay {
  opacity: 1;
}

.tracking-info {
  text-align: center;
  color: #fff;
}

.pulse-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* About Section */
.about-section {
  background: #fff;
  position: relative;
}

.about-image-wrapper {
  position: relative;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--gradient);
  color: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

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

.badge-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.badge-content p {
  margin: 0;
  font-size: 0.9rem;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
}

.feature-box i {
  font-size: 1.5rem;
  margin-top: 5px;
}

/* Stats Section */
.stats-section {
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-card h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.counter {
  display: inline-block;
}

/* FAQ Section */
.faq-section {
  background: #fff;
}

.accordion-item {
  border: none;
  margin-bottom: 20px;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  padding: 20px 30px;
  font-size: 1.125rem;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient);
  color: #fff;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: none;
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.2rem;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 30px;
  line-height: 1.8;
  color: #666;
}

/* CTA Section */
.cta-section {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.cta-wrapper {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 60px 40px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
  background: #f8f9fa;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.contact-icon i {
  font-size: 2rem;
  color: #fff;
}

.contact-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-card a:hover {
  color: var(--primary-dark);
}

.map-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer-section {
  background: var(--secondary);
  color: #fff;
  padding: 80px 0 30px;
}

.footer-logo {
  height: 60px;
  width: auto;
  transition: var(--transition);
  filter: brightness(1) invert(0);
  border: 6px solid rgba(53, 232, 238, 0.2);
}

.footer-widget h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient);
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(10, 151, 176, 0.4);
}

/* Swiper Custom Styles */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  width: 30px;
  height: 12px;
  border-radius: 6px;
  background: var(--gradient);
}

/* Animations */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stats .stat h3 {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-description {
    font-size: 0.8rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .service-card {
    margin-bottom: 20px;
  }
  
  .stat-card h3 {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .navbar-nav {
    padding: 20px 0;
  }
  
  .navbar-nav .nav-link {
    margin: 5px 0;
  }
  
  .header-cta {
    margin-top: 20px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Loading Animation for Buttons */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Utilities */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}