html {
    scroll-behavior: smooth;
}

:root {
    --bg-main: #0b0d0e;
    --bg-card: #15181b;
    --bg-metal: linear-gradient(180deg, #5a5f64 0%, #2e3135 40%, #1a1c1e 100%);
    --bg-metal-subtle: linear-gradient(180deg, #32363a 0%, #1c1e21 100%);
    --border-chrome: linear-gradient(135deg, #ffffff 0%, #a6afb8 35%, #3a3f45 70%, #e0e6ed 100%);
    --text-white: #ffffff;
    --text-gray: #a2a8b0;
    --accent-cyan: #00e5ff;
    --accent-cyan-hover: #00b8cc;
    --cyan-shadow: rgba(0, 229, 255, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
}

/* Header Navbar - Cepillado metálico con borde cromado */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: var(--bg-metal);
    border-bottom: 2px solid #6b727a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    height: 65px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-btn {
    background-color: var(--whatsapp-green, #25d366) !important;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    transition: background-color 0.3s, transform 0.2s;
}

.nav-btn:hover {
    background-color: #1ebd56 !important;
    transform: translateY(-1px);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 380px;
    background: url('MULTIMEDIA WEBSI/Gemini_Generated_Image_doer7gdoer7gdoer.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 750px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-content p {
    color: #d1d5db;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #ffffff 0%, #c4c9d0 40%, #8a929a 100%);
    color: #0d0e10;
    font-weight: 800;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.9);
    border: 1px solid #ffffff;
    transition: transform 0.2s, filter 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

/* Main Container */
.main-container {
    max-width: 1250px;
    margin: 35px auto;
    padding: 0 20px;
}

/* Contenedor de Filtros estilo Metal con Bordes Biselados */
.filter-section {
    display: flex;
    gap: 20px;
    background: var(--bg-metal-subtle);
    padding: 22px;
    border-radius: 14px;
    border: 1px solid #4a5056;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-group select, .filter-group input {
    background-color: #121416;
    border: 1px solid #3a3f45;
    color: white;
    padding: 12px;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--accent-cyan);
}

/* Pestañas de categorías con acento Cian */
.type-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #181b1e;
    border: 1px solid #3a3f4a;
    color: var(--text-gray);
    padding: 9px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(180deg, #d2e4f0 0%, #8bb5d1 40%, #467697 100%);
    color: #071521;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(139, 181, 209, 0.4);
}

.tab-btn:hover:not(.active) {
    background: #252a30;
    color: white;
}

/* Tarjetas del catálogo */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 25px;
}

.car-card {
    background-color: var(--bg-card);
    border: 1px solid #32373d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
    border-color: #5b636c;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.car-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    cursor: pointer;
}

.car-info {
    padding: 18px;
}

.car-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.car-sub {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Precio en Azul Cian brillante */
.car-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.detail-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(180deg, #2b3036 0%, #1a1d21 100%);
    border: 1px solid #4a5058;
    color: #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.detail-btn:hover {
    background: linear-gradient(180deg, #3a4149 0%, #252a30 100%);
    color: #ffffff;
}

/* Modal con borde biselado metálico tipo la imagen */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(5px);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background-color: #121417;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    border: 2px solid #5a6169;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    position: relative;
    padding: 30px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 22px;
    font-size: 30px;
    color: var(--text-gray);
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .modal-body { grid-template-columns: 1fr; }
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #3a3f45;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-cyan);
    border: none;
    color: #05131a;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 0 10px var(--cyan-shadow);
}

.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

.thumbnails-track {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnails-track img {
    width: 65px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    border: 1px solid transparent;
}

.thumbnails-track img.active-thumb {
    opacity: 1;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--cyan-shadow);
}

/* Ficha de especificaciones con Marco Metálico Cromado */
.specs-card {
    background: linear-gradient(180deg, #1c1f23 0%, #111315 100%);
    border: 2px solid #555c64;
    padding: 18px;
    border-radius: 12px;
    margin: 15px 0 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.9rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5);
}

.spec-item strong {
    color: var(--text-gray);
}

.modal-price-tag {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 10px 0 15px 0;
}

.description-box h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #e5e7eb;
}

.description-box p {
    font-size: 0.88rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Botón WhatsApp Cian Neón metálico */
.whatsapp-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(180deg, #00f0ff 0%, #00b8cc 100%);
    color: #041419;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px var(--cyan-shadow);
    border: none;
    transition: transform 0.2s, filter 0.2s;
}

.whatsapp-btn:hover {
    background: linear-gradient(180deg, #33f3ff 0%, #00c9e0 100%);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 25px;
    background: #090a0b;
    border-top: 1px solid #282c30;
    color: var(--text-gray);
    font-size: 0.85rem;
}

#inventario {
    scroll-margin-top: 105px;
}

#inicio {
    scroll-margin-top: 105px;
}