/* Estilos específicos para la página de detalles del vehículo */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb span {
    color: #666;
    font-weight: 500;
}

/* Contenedor principal */
.vehicle-detail {
    padding: 3rem 0;
}

.vehicle-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Galería de Imágenes */
.image-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: all;
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Información del Vehículo */
.vehicle-info-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vehicle-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1.5rem;
}

.vehicle-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.vehicle-price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

.vehicle-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.vehicle-status.available {
    background: #d4edda;
    color: #155724;
}

.vehicle-status.sold {
    background: #f8d7da;
    color: #721c24;
}

/* Acciones Rápidas */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.whatsapp-btn, .call-btn, .favorite-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.whatsapp-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    flex: 2;
}

.whatsapp-btn:hover {
    background: var(--accent-blue);
    color: var(--white);
}

.call-btn {
    background: #667eea;
    color: white;
    flex: 1;
}

.call-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

.favorite-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    flex: 1;
}

.favorite-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.favorite-btn.active {
    background: #667eea;
    color: white;
}

/* Especificaciones */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spec-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 30px;
}

.spec-item div {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.spec-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Descripción */
.description-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.description-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.description-section h4 {
    color: #667eea;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.description-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.description-section ul {
    list-style: none;
    padding: 0;
}

.description-section li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.description-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Historial */
.history-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.history-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.history-timeline {
    position: relative;
}

.history-timeline:before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.history-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.history-item:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.history-date {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.history-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.history-content p {
    color: #666;
    margin: 0;
}

/* Formulario de Contacto */
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* Vehículos Similares */
.similar-vehicles {
    background: #f8f9fa;
    padding: 4rem 0;
}

.similar-vehicles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

/* Ubicación */
.location-section {
    padding: 4rem 0;
    background: white;
}

.location-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #333;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.location-info p {
    margin-bottom: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.location-info i {
    color: #667eea;
    width: 20px;
}

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    color: #666;
}

.map-placeholder i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.map-placeholder small {
    display: block;
    margin-top: 1rem;
    color: #999;
}

/* Responsive */
@media (max-width: 1024px) {
    .vehicle-detail .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-gallery {
        position: static;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vehicle-header h1 {
        font-size: 2rem;
    }
    
    .vehicle-price {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vehicle-header h1 {
        font-size: 1.5rem;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .thumbnail {
        height: 60px;
    }
}

/* Paleta de colores corporativos */
:root {
    --primary-blue: #1a3e7a;
    --secondary-blue: #3fa9f5;
    --accent-blue: #4a90e2;
    --white: #fff;
    --gray: #f5f7fa;
    --dark: #222;
}

body {
    background: var(--gray);
    color: var(--dark);
}

.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.logo-hkmotors, .logo-hkmotors-footer {
    height: 48px;
    margin-right: 10px;
}

.logo-partner {
    height: 32px;
    margin: 8px 0;
    display: block;
}

.email-btn {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.email-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.footer {
    background: var(--primary-blue);
    color: var(--white);
}

.footer-section h3 {
    color: var(--secondary-blue);
}

.footer a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-blue);
}

.footer-social a {
    color: var(--white);
    margin: 0 8px;
    font-size: 1.5rem;
}

.footer-social a:hover {
    color: var(--secondary-blue);
} 