/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

/* Sección de búsqueda */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-input-group {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input-group input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1.1em;
    outline: none;
    background: transparent;
}

.search-input-group button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-input-group button:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-2px);
}

/* Información del vehículo */
.vehicle-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.vehicle-header h2 {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 600;
}

.vehicle-status .status-badge {
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

.status-badge.active {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

.status-badge.inactive {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.vehicle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.detail-item strong {
    color: #2c3e50;
    display: inline-block;
    width: 140px;
}

/* Sección de historial */
.history-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.history-section h3 {
    color: #2c3e50;
    font-size: 1.6em;
    margin-bottom: 25px;
    font-weight: 600;
}

.history-timeline {
    position: relative;
    padding-left: 30px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-item.movimiento .timeline-marker {
    background: #e74c3c;
}

.timeline-item.lavado .timeline-marker {
    background: #3498db;
}

.timeline-item.mecanica .timeline-marker {
    background: #f39c12;
}

.timeline-item.novedad .timeline-marker {
    background: #9b59b6;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-date {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.95em;
}

.timeline-type {
    padding: 4px 12px;
    background: #ecf0f1;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    color: #2c3e50;
}

.timeline-description {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 8px;
}

.timeline-responsible {
    color: #7f8c8d;
    font-size: 0.9em;
    font-style: italic;
}

/* Sin resultados */
.no-results, .no-data {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.no-results h3 {
    color: #e74c3c;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.no-results p {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Acceso administrativo */
.admin-access {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.admin-access.hidden {
    display: none;
}

.admin-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-input-group input,
    .search-input-group button {
        border-radius: 0;
    }
    
    .search-input-group input {
        border-radius: 15px 15px 0 0;
    }
    
    .search-input-group button {
        border-radius: 0 0 15px 15px;
    }
    
    .vehicle-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .vehicle-details {
        grid-template-columns: 1fr;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-info,
.history-section {
    animation: fadeIn 0.6s ease-out;
}

.timeline-item {
    animation: fadeIn 0.4s ease-out;
}

.timeline-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(even) {
    animation-delay: 0.2s;
}