/* ========================================
   SISTEMA DE TENENCIA VEHICULAR
   Tema: Gobierno de México - COMPLETO
   ======================================== */

:root {
    --gob-burgundy: #722f51;
    --gob-burgundy-dark: #5c2540;
    --gob-gold: #c5a467;
    --gob-white: #ffffff;
    --gob-gray-light: #f5f5f5;
    --gob-gray: #666666;
    --gob-text: #333333;
}

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

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background: var(--gob-gray-light);
    color: var(--gob-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: #722f51 !important;
    color: #ffffff !important;
    padding: 15px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.header-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

.header-logo img {
    height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block !important;
}

.header-title {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-height: 50px !important;
}

.header-title h1 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    white-space: normal !important;
}

/* ========================================
   STEPS INDICATOR
   ======================================== */

.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 40px auto;
    padding: 0;
    max-width: 700px;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 0 10px;
}

.step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 60%;
    width: 80%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.step-item.active:not(:last-child)::before {
    background: var(--gob-burgundy);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.step-item.active .step-number {
    background: var(--gob-burgundy);
    border-color: var(--gob-burgundy);
    color: white;
    box-shadow: 0 0 0 4px rgba(114, 47, 81, 0.15);
}

.step-title {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.step-item.active .step-title {
    color: var(--gob-burgundy);
    font-weight: 600;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.card-title {
    font-size: 1.3rem;
    color: var(--gob-burgundy);
    margin-bottom: 20px;
    font-weight: 600;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gob-text);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--gob-burgundy);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: var(--gob-burgundy);
    color: white;
}

.btn-primary:hover {
    background: var(--gob-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 81, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--gob-burgundy);
    border: 2px solid var(--gob-burgundy);
}

.btn-secondary:hover {
    background: var(--gob-burgundy);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-group .btn {
    flex: 1;
    min-width: 200px;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    border-left: 4px solid #d32f2f;
    color: #c62828;
}

.alert-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

/* ========================================
   FOOTER
   ======================================== */

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-brand-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.95;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--gob-white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .header {
        padding: 12px 0 !important;
    }
    
    .header-content {
        gap: 15px !important;
    }
    
    .header-logo img {
        height: 40px !important;
    }
    
    .header-title {
        min-height: 40px !important;
    }
    
    .header-title h1 {
        font-size: 1rem !important;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-item:not(:last-child)::before {
        top: 20px;
    }
    
    .step-title {
        font-size: 0.7rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
        min-width: unset;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0 !important;
    }
    
    .header-content {
        gap: 12px !important;
    }
    
    .header-logo img {
        height: 35px !important;
    }
    
    .header-title {
        min-height: 35px !important;
    }
    
    .header-title h1 {
        font-size: 0.9rem !important;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .step-item:not(:last-child)::before {
        top: 17px;
    }
}
