:root {
    --bg-dark: #0f1115;
    --bg-card: #181b21;
    --accent-red: #e63946;
    --accent-green: #2a9d8f;
    --accent-yellow: #e9c46a;
    --text-light: #f1f1f1;
    --text-muted: #9aa0a6;
    --border-color: #2a2e37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 35px;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hero */
.hero {
    position: relative;
    height: 70vh;
    background: url('../assets/img/banner.jpg') center/cover no-repeat #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,17,21,0.6) 0%, rgba(15,17,21,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

/* Secciones */
.section {
    padding: 4rem 0;
}

.bg-card {
    background-color: var(--bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Filtros */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

/* Vehicle Grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.car-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.carousel-container {
    position: relative;
    height: 200px;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 50%;
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-disponible { background: var(--accent-green); color: #fff; }
.badge-reservado { background: var(--accent-yellow); color: #000; }
.badge-vendido { background: var(--accent-red); color: #fff; }

.car-details {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-price {
    font-size: 1.4rem;
    color: var(--accent-green);
    font-weight: bold;
    margin: 0.5rem 0;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-whatsapp {
    margin-top: auto;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Contacto y Empresa */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-red);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.footer {
    background-color: #08090b;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 0.8rem; }
    .nav-links { gap: 1rem; font-size: 0.9rem; }
    .hero { height: 50vh; }
}
