@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


:root {
    --primary: #111111;
    --secondary: #666666;
    --accent: #c59d5f;
    --background: #f7f7f5;
    --white: #ffffff;
    --border: #e6e6e6;
    --dark: #181818;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--primary);
    background: var(--background);
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: inherit;
}


img {
    width: 100%;
    display: block;
}


button,
input,
select,
textarea {
    font-family: inherit;
}


.container {
    width: min(1180px, 90%);
    margin: auto;
}


/* HEADER */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
}


.logo span {
    color: var(--accent);
}


.nav {
    display: flex;
    align-items: center;
    gap: 35px;
}


.nav a {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}


.nav a:hover,
.nav a.active {
    color: var(--primary);
}


.nav a.active {
    font-weight: 700;
}


.menu-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 1.7rem;
    cursor: pointer;
}


/* BOTONES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 14px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}


.btn-primary {
    background: var(--primary);
    color: var(--white);
}


.btn-primary:hover {
    background: var(--accent);
}


.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}


.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}


.btn-small {
    background: var(--primary);
    color: var(--white);
    padding: 9px 13px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.3s;
}


.btn-small:hover {
    background: var(--accent);
}


/* HERO */

.hero {
    padding: 80px 0;
    background: var(--white);
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}


.subtitle {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}


.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}


.hero h1 span {
    color: var(--accent);
}


.hero-text > p:not(.subtitle) {
    color: var(--secondary);
    max-width: 500px;
    margin-bottom: 30px;
}


.hero-buttons {
    display: flex;
    gap: 15px;
}


.hero-image img {
    height: 430px;
    object-fit: cover;
}


/* FEATURES */

.features {
    background: var(--primary);
    color: var(--white);
    padding: 55px 0;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}


.feature {
    text-align: center;
}


.feature-icon {
    width: 45px;
    height: 45px;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-weight: bold;
}


.feature h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}


.feature p {
    color: #bdbdbd;
    font-size: 0.85rem;
}


/* SECCIONES */

.section {
    padding: 90px 0;
}


.section-light {
    background: var(--white);
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 45px;
}


.section h2 {
    font-size: 2.2rem;
    line-height: 1.2;
}


.view-all,
.text-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}


/* COCHES */

.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.car-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: 0.3s;
}


.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}


.car-image {
    height: 230px;
    position: relative;
    overflow: hidden;
}


.car-image img {
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}


.car-card:hover .car-image img {
    transform: scale(1.05);
}


.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    font-size: 0.65rem;
    font-weight: 700;
}


.car-info {
    padding: 22px;
}


.car-brand {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}


.car-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}


.car-details {
    color: var(--secondary);
    font-size: 0.8rem;
}


.car-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 18px;
}


.car-bottom strong {
    font-size: 1.1rem;
}


/* ABOUT */

.about-preview {
    background: var(--white);
    padding: 80px 0;
    border-top: 1px solid var(--border);
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}


.about-grid p:not(.subtitle) {
    color: var(--secondary);
    margin-bottom: 20px;
}


/* PAGE HEADER */

.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 75px 0;
}


.page-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 15px;
}


.page-header p:last-child {
    color: #bdbdbd;
}


/* FILTROS */

.filters {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 40px;
}


.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
}


select,
input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--white);
    padding: 13px;
    font-size: 0.85rem;
    outline: none;
}


select:focus,
input:focus,
textarea:focus {
    border-color: var(--accent);
}


.results-text {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 25px;
}


.no-results {
    display: none;
    text-align: center;
    padding: 50px 20px;
    color: var(--secondary);
    background: var(--white);
    border: 1px solid var(--border);
}


/* DETALLES */

.details-page {
    background: var(--white);
}


.back-link {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 35px;
}


.back-link:hover {
    color: var(--accent);
}


.details-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}


.details-image img {
    height: 500px;
    object-fit: cover;
}


.details-info h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}


.details-description {
    color: var(--secondary);
    margin-bottom: 30px;
}


.details-price {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
    margin-bottom: 30px;
}


.details-price span {
    display: block;
    color: var(--secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
}


.details-price strong {
    font-size: 2rem;
}


.specifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}


.specifications div {
    background: var(--background);
    padding: 18px;
}


.specifications span {
    display: block;
    color: var(--secondary);
    font-size: 0.75rem;
    margin-bottom: 5px;
}


.specifications strong {
    font-size: 0.9rem;
}


/* CONTACTO */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}


.contact-info h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}


.contact-info > p:not(.subtitle) {
    color: var(--secondary);
    margin-bottom: 40px;
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}


.contact-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--accent);
    font-weight: bold;
}


.contact-item strong {
    font-size: 0.85rem;
}


.contact-item p {
    color: var(--secondary);
    font-size: 0.85rem;
}


.contact-form-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 35px;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}


textarea {
    resize: vertical;
}


.btn-full {
    width: 100%;
}


.form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85rem;
}


/* FOOTER */

.footer {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0 20px;
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 35px;
}


.footer p {
    color: #999;
    font-size: 0.8rem;
    margin-top: 10px;
}


.footer-links {
    display: flex;
    gap: 25px;
}


.footer-links a {
    color: #ccc;
    font-size: 0.8rem;
}


.footer-links a:hover {
    color: var(--accent);
}


.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
}


.footer-bottom p {
    margin: 0;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .hero-content,
    .details-grid,
    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }


    .hero-image {
        order: -1;
    }


    .features-grid,
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .filters {
        grid-template-columns: repeat(2, 1fr);
    }


    .details-image img {
        height: 400px;
    }

}


@media (max-width: 600px) {

    .nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 15px 5%;
    }


    .nav.show {
        display: flex;
    }


    .nav a {
        width: 100%;
        padding: 12px 0;
    }


    .menu-toggle {
        display: block;
    }


    .hero {
        padding: 50px 0;
    }


    .hero-image img {
        height: 280px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .btn {
        width: 100%;
    }


    .features-grid,
    .car-grid,
    .filters,
    .form-row {
        grid-template-columns: 1fr;
    }


    .section {
        padding: 60px 0;
    }


    .section-header {
        display: block;
    }


    .view-all {
        display: inline-block;
        margin-top: 15px;
    }


    .details-info h1 {
        font-size: 2.2rem;
    }


    .contact-info h2 {
        font-size: 2rem;
    }


    .contact-form-box {
        padding: 22px;
    }


    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }


    .footer-links {
        flex-wrap: wrap;
    }

}