/* MJ Mensajería - Modern Delivery Service Styles */

/* Base Styles */
html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Color Variables */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  
  /* Custom Colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-warning {
  background: var(--warning-color);
  color: #212529;
  font-weight: 600;
}

.btn-warning:hover {
  background: #ffcd39;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,100 50,120 100,100 150,80 200,100 250,120 300,100 350,80 400,100 450,120 500,100 550,80 600,100 650,120 700,100 750,80 800,100 850,120 900,100 950,80 1000,100 1000,200 0,200"/></svg>') repeat-x;
  background-size: 100px 50px;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

/* Floating Elements Animation */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.floating-box {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.floating-box i {
  font-size: 1.25rem;
}

.box-1 {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.box-2 {
  top: 50%;
  left: 5%;
  animation-delay: 2s;
}

.box-3 {
  bottom: 20%;
  right: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
}

/* Tracking Form */
.tracking-form {
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tracking-form .form-control {
  border: none;
  font-size: 1.1rem;
  padding: 0.75rem 1.25rem;
}

.tracking-form .form-control:focus {
  box-shadow: none;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  color: #495057 !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Stats Section */
.stat-item {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  opacity: 1;
}

/* Utilities */
.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }
  
  .floating-box {
    display: none;
  }
  
  .hero-image-container i {
    font-size: 5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
}

/* Form Controls */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer a:hover {
  color: var(--primary-color) !important;
  transition: color 0.3s ease;
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Service Detail Cards */
.service-detail-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.service-pricing {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.price-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0.5rem;
}

/* Coverage Items */
.coverage-item {
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.coverage-item:hover {
  transform: translateY(-4px);
}

.coverage-item i {
  transition: all 0.3s ease;
}

.coverage-item:hover i {
  transform: scale(1.1);
}

/* Navbar Scrolled State */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

/* Additional Service Page Styles */
.tracking-search {
  border: 2px solid rgba(13, 110, 253, 0.1);
}

.tracking-result {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item {
  padding: 0.5rem 0;
}

.delivery-info {
  background-color: rgba(13, 110, 253, 0.05) !important;
}

.attachment-card {
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.attachment-card:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}