/* ==========================================
   WM Transportadora - Custom Styles
   ========================================== */

/* Variables */
:root {
    --primary-color: #0d47a1;
    --secondary-color: #ff6f00;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    background-image: url('/placeholder.svg?height=800&width=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 71, 161, 0.85);
}

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

.min-vh-75 {
    min-height: 75vh;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
}

/* Cards */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* Stats Section */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Unit Info */
.unit-info p {
    line-height: 1.8;
}

/* Certification Card */
.certification-card {
    transition: all 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
}

/* Cargo Type Card */
.cargo-type-card {
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.cargo-type-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.2);
}

.cargo-type-card:hover i {
    color: white !important;
}

/* Tracking Timeline */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
    border-left: 2px solid #e9ecef;
    padding-left: 30px;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid #0d47a1;
}

.timeline-item.completed::before {
    background: #0d47a1;
}

.timeline-item.active::before {
    background: #ff6f00;
    border-color: #ff6f00;
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.2);
}

.timeline-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-location {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Contact Info Item */
.contact-info-item {
    opacity: 0.95;
}

.contact-info-item:hover {
    opacity: 1;
}

/* Footer */
footer a:hover {
    color: white !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a3a7f;
    border-color: #0a3a7f;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e65100;
    border-color: #e65100;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}
