:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --accent-gold: #ffc107;
    --dark-overlay: rgba(0, 0, 0, 0.3);
    --light-overlay: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--primary-blue) 100%);
    min-height: 100vh;
    color: white;
    transition: all 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
}

.header {
    background: var(--dark-overlay);
    padding: 10px 0;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gold);
    border-radius: 10px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
}

.logo-text .colombia {
    color: var(--accent-gold);
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle, .export-btn, .history-btn {
    background: var(--light-overlay);
    border: 1px solid var(--accent-gold);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.theme-toggle:hover, .export-btn:hover, .history-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 280px;
    background: var(--dark-overlay);
    padding: 20px 0;
    overflow-y: auto;
    border-right: 2px solid rgba(255, 193, 7, 0.3);
    transition: transform 0.3s ease;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar h3 {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 15px 20px;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.peajes-list {
    list-style: none;
}

.peajes-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.peajes-list li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.peajes-list li a:hover {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid var(--accent-gold);
    padding-left: 16px;
}

.main-content {
    flex: 1;
    padding: 40px;
    text-align: center;
    overflow-y: auto;
}

.title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.year-info {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.search-form {
    background: var(--light-overlay);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-btn.active {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    text-align: left;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

.vehicle-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.vehicle-option {
    padding: 15px 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    background: var(--light-overlay);
}

.vehicle-option:hover, .vehicle-option.selected {
    border-color: var(--accent-gold);
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.route-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.route-option {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--light-overlay);
}

.route-option:hover, .route-option.selected {
    border-color: var(--accent-gold);
    background: rgba(255, 193, 7, 0.2);
}

.search-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

.results-section {
    background: var(--light-overlay);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1200px;
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.results-tabs {
    display: flex;
    gap: 10px;
}

.result-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-tab.active {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: var(--light-overlay);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card h4 {
    color: var(--accent-gold);
    font-size: 16px;
    margin-bottom: 10px;
}

.result-card .value {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.comparison-section {
    background: var(--light-overlay);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.comparison-section.active {
    display: block;
}

.route-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.route-card {
    background: var(--light-overlay);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.route-card.recommended {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.route-card h5 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 18px;
}

.peajes-detail {
    background: var(--light-overlay);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.peaje-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: var(--light-overlay);
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
}

.peaje-name {
    font-weight: bold;
    color: var(--accent-gold);
}

.peaje-cost {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.fuel-section {
    background: var(--light-overlay);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.fuel-calculator {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#map {
    height: 400px;
    border-radius: 15px;
    margin-top: 20px;
}

.map-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.map-btn {
    padding: 8px 15px;
    background: var(--light-overlay);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn:hover, .map-btn.active {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--accent-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.history-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--primary-blue);
    border-left: 2px solid var(--accent-gold);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.history-panel.open {
    right: 0;
}

.history-header {
    padding: 20px;
    background: var(--dark-overlay);
    border-bottom: 1px solid var(--accent-gold);
}

.history-content {
    padding: 20px;
}

.history-item {
    background: var(--light-overlay);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 193, 7, 0.1);
}

.enterprise-section {
    background: var(--light-overlay);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: none;
}

.enterprise-section.active {
    display: block;
}

.fleet-calculator {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tag-info {
    background: var(--light-overlay);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.tag-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tag-provider {
    background: var(--light-overlay);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.notification {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        position: absolute;
        z-index: 999;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 20px;
        margin-top: 200px;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .history-panel {
        width: 100%;
        right: -100%;
    }
}

.mobile-menu-toggle {
    display: none;
    background: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}