/* ===================================
   Brújula Automotriz - Custom Styles
   =================================== */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --border-color: #bdc3c7;
    --header-bg: #34495e;
}

/* ===================================
   General Styles
   =================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-text);
    padding-top: 70px;
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--primary-color) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===================================
   Car Selection Cards
   =================================== */

.car-selector {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-selector:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.car-selector h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
    font-weight: bold;
}

.car-selector .badge {
    font-size: 1rem;
    padding: 8px 15px;
}

/* ===================================
   Form Controls
   =================================== */

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* ===================================
   Buttons
   =================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-primary:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #95a5a6;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* ===================================
   Comparison Table
   =================================== */

.comparison-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.comparison-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--header-bg) 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    margin: -30px -30px 25px -30px;
}

.comparison-header h2 {
    margin: 0;
    font-weight: bold;
}

.table-comparison {
    margin-bottom: 0;
}

.table-comparison thead th {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 3px solid var(--secondary-color);
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-comparison tbody tr:hover {
    background-color: #f8f9fa;
}

.table-comparison th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
}

.table-comparison td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.section-header {
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 15px;
}

/* ===================================
   Vehicle Cards
   =================================== */

.vehicle-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.vehicle-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.vehicle-card .price {
    font-size: 1.5rem;
    color: var(--success-color);
    font-weight: bold;
}

/* ===================================
   Badges and Labels
   =================================== */

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
}

.spec-value {
    color: #555;
}

.price-badge {
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
}

/* ===================================
   Loading & Alerts
   =================================== */

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--secondary-color);
    animation: spin 1s linear infinite;
}

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

.alert-custom {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--header-bg);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .car-selector {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .comparison-container {
        padding: 15px;
        overflow-x: auto;
    }
    
    .comparison-header {
        margin: -15px -15px 20px -15px;
        padding: 15px;
    }
    
    .table-comparison {
        font-size: 0.9rem;
    }
    
    .table-comparison th,
    .table-comparison td {
        padding: 8px 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .table-comparison {
        font-size: 0.85rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.mt-custom {
    margin-top: 40px;
}

.mb-custom {
    margin-bottom: 40px;
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .navbar,
    .hero-section,
    .car-selector,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
    
    .comparison-container {
        box-shadow: none;
        padding: 0;
    }
}