/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Moderno */
.header {
    background: linear-gradient(90deg, #22518a 0%, #3a8dde 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 64px;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}
.logo-hkmotors.logo-bg {
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    height: 70px;
    width: 70px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-menu {
    display: flex;
    gap: 2.5rem;
}
.nav-menu a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
    position: relative;
}
.nav-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a:hover {
    color: #ffd700;
}
@media (max-width: 768px) {
    .header-flex { padding: 0 10px; }
    .nav-menu { gap: 1.2rem; }
    .nav-brand span { font-size: 1.1rem; }
}
@media (max-width: 600px) {
    .logo-hkmotors.logo-bg {
        height: 48px;
        width: 48px;
        padding: 6px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('assets/bannerhk.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Filtros */
.filters {
    padding: 4rem 0;
    background: #f8f9fa;
}

.filters h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Galería de Vehículos */
.vehicles {
    padding: 5rem 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.vehicle-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.vehicle-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.vehicle-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.vehicle-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.view-details-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: transform 0.3s ease;
}

.view-details-btn:hover {
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 4rem);
}

.modal-vehicle-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.modal-vehicle-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.modal-vehicle-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.modal-vehicle-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.spec-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.spec-value {
    color: #666;
}

.modal-vehicle-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.contact-info h4 {
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .header-flex { padding: 0 10px; }
    .nav-menu { gap: 1.2rem; }
    .nav-brand span { font-size: 1.1rem; }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-body {
        max-height: calc(85vh - 3rem);
    }
    .modal-vehicle-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .filters h2 {
        font-size: 2rem;
    }
}

/* Paleta de colores corporativos */
:root {
    --primary-blue: #1a3e7a;
    --secondary-blue: #3fa9f5;
    --accent-blue: #4a90e2;
    --white: #fff;
    --gray: #f5f7fa;
    --dark: #222;
}

.logo-hkmotors, .logo-hkmotors-footer {
    height: 48px;
    margin-right: 10px;
}

.logo-partner {
    height: 32px;
    margin: 8px 0;
    display: block;
}

.footer a {
    color: var(--secondary-blue);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-blue);
} 

/* Galería About */
.about-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);