/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
     justify-content: center;
}

.logo-header {
    display: flex;
    align-items: right;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 70px;
    margin-right: 20px;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 300;
}



/* Navegación */
nav {
    background-color: black;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 1.2rem 2rem;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

nav ul li a:hover {
    background-color: #e67e22;
    color: white;
}

/* Contenido principal */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categoria {
    margin-bottom: 4rem;
}

.categoria h2 {
    color: #2c3e50;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Galería de coches */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.coche-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.coche-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.coche-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #e67e22;
}

.coche-info {
    padding: 1.5rem;
}

.coche-info h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.coche-info p {
    margin: 0.5rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coche-info .precio {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 1.2rem 0;
    display: block;
}

.btn-cotizar {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    width: 100%;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-cotizar:hover {
    background-color: #d35400;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #e67e22;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #e67e22;
}

.footer-section p, .footer-section a {
    color: #ecf0f1;
    margin-bottom: 0.8rem;
    display: block;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: #e67e22;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background-color: #111;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 1rem;
        text-align: center;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
}