* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background: white;
}

a {
    text-decoration: none;
    color: inherit;
}

.contenedor {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header {
    background: #111;
    color: white;
    padding: 15px 0;
}

header .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    width: 35px;
    height: 35px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a:hover {
    color: #e63946;
}

section {
    padding: 60px 0;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
    margin-top: 0;
}

.boton {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: #e63946;
    color: white;
    border-radius: 4px;
}

.boton:hover {
    background: #c92f3b;
}

.coches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.coche {
    border: 1px solid #ddd;
    background: white;
}

.coche img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.coche div {
    padding: 20px;
}

.marca {
    color: #e63946;
    font-size: 13px;
    font-weight: bold;
}

.coche h3 {
    margin: 10px 0;
}

.coche p {
    color: #666;
}

.coche strong {
    font-size: 20px;
}

.gris {
    background: #f2f2f2;
}

.pasos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pasos div {
    padding: 20px;
    border: 1px solid #ddd;
    background: white;
}

.pasos span {
    display: inline-block;
    background: #111;
    color: white;
    padding: 10px 14px;
    border-radius: 50%;
}

.pasos p {
    color: #666;
}

.vender {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: #e63946;
    color: white;
    padding: 35px;
}

.vender p {
    color: white;
}

footer {
    background: #111;
    color: white;
    padding: 30px 0;
}

footer p {
    color: #aaa;
}

@media (max-width: 800px) {
    header .contenedor {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .coches {
        grid-template-columns: repeat(2, 1fr);
    }

    .pasos {
        grid-template-columns: 1fr;
    }

    .vender {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 550px) {
    .coches {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 30px;
    }

    nav {
        gap: 12px;
        font-size: 14px;
    }
}
