:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --accent: #e63946;
    --accent-hover: #c62d3a;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f2f5;
    --border: #e1e4e8;
    --border-light: #eee;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --container: 1200px;
    --header-height: 140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

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

.header-contact, .header-address {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.header-contact a:hover {
    color: var(--accent);
}

.whatsapp-link {
    color: #25d366;
}

.header-main {
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo i {
    color: var(--accent);
    font-size: 34px;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.comprem-badge {
    --primary: #1a73e8;
    --secondary: #34a853;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: 700;
    margin-left: 22px;
    text-decoration: none;
    color: var(--primary);
}

.comprem-badge i {
    color: var(--primary);
    font-size: 32px;
}

.comprem-badge span span {
    color: var(--secondary);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    background: var(--white);
}

.language-switch:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.language-flag {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
    flex: 0 0 auto;
}

.flag-es {
    background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.flag-cat {
    background: repeating-linear-gradient(to bottom, #f1bf00 0 11.11%, #c60b1e 11.11% 22.22%);
}

@media (max-width: 768px) {
    .comprem-badge { display: none; }
}

.nav-main {
    display: flex;
    gap: 32px;
}

.nav-main a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-main a:hover, .nav-main a.active {
    color: var(--accent);
}

.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    padding: 12px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.main-content {
    min-height: calc(100vh - var(--header-height) - 300px);
}

.hero {
    position: relative;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero-title {
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.2;
}

.text-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.hero-search {
    background: var(--bg);
    padding: 8px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-select {
    flex: 1;
}

.search-select select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-light);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.search-form .btn {
    padding: 12px 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.section-link {
    color: var(--accent);
    font-weight: 500;
    transition: var(--transition);
}

.section-link:hover {
    text-decoration: underline;
}

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

.vehicle-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.vehicle-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vehicle-card-image {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-gray);
    display: block;
    overflow: hidden;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.vehicle-card-image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-featured {
    background: var(--accent);
    color: #fff;
}

.badge-available {
    background: #22c55e;
    color: #fff;
}

.badge-reserved {
    background: #f59e0b;
    color: #fff;
}

.badge-sold {
    background: var(--text-light);
    color: #fff;
}

.vehicle-reserved-stamp {
    position: absolute;
    top: 28px;
    left: -46px;
    z-index: 4;
    width: 190px;
    padding: 7px 0;
    transform: rotate(-35deg);
    background: #ffd84d;
    color: #111827;
    border: 2px solid #111827;
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-light);
}

.favorite-btn:hover, .favorite-btn.active {
    color: var(--accent);
}

.vehicle-card-content {
    padding: 16px;
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.vehicle-brand {
    font-weight: 600;
    color: var(--primary);
}

.vehicle-model {
    color: var(--text-light);
}

.vehicle-version {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.vehicle-spec {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-light);
}

.vehicle-spec svg,
.vehicle-spec i {
    width: 14px;
    font-size: 14px;
}

.vehicle-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.vehicle-card-meta {
    min-width: 0;
}

.vehicle-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.vehicle-card-image img.vehicle-card-env-label {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    width: 28px !important;
    height: auto !important;
    object-fit: contain !important;
    z-index: 3 !important;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.vehicle-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.35;
}

.vehicle-location i {
    width: 14px;
    flex-shrink: 0;
    color: var(--accent);
    text-align: center;
}

.vehicle-location-detail {
    justify-content: center;
    margin-top: 10px;
    font-size: 14px;
}

.price-label {
    font-size: 12px;
    font-weight: 400;
    display: block;
    color: var(--text-light);
}

.brands-section {
    background: var(--bg-gray);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.brand-card {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.brand-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.brand-count {
    font-size: 12px;
    color: var(--text-light);
}

.cta-section {
    background: var(--primary);
    color: #fff;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 20px;
    color: #fff;
}

.footer-social a:hover {
    background: var(--accent);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-contact li i {
    width: 16px;
    text-align: center;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    opacity: 0.6;
    font-size: 13px;
}

.footer-legal a:hover {
    opacity: 1;
}

.vehicles-page {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.page-subtitle {
    color: var(--text-light);
    margin-top: 8px;
}

.vehicles-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.filters-sidebar {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #3f3f3f;
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.filter-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.filter-tab[data-body="coche"],
.filter-tab[data-body="COCHE"] {
    background: transparent;
}

.filter-tab[data-body="coche"].active,
.filter-tab[data-body="coche"]:hover,
.filter-tab[data-body="COCHE"].active,
.filter-tab[data-body="COCHE"]:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}

.filter-tab[data-body="moto"],
.filter-tab[data-body="MOTO"] {
    background: transparent;
}

.filter-tab[data-body="moto"].active,
.filter-tab[data-body="moto"]:hover,
.filter-tab[data-body="MOTO"].active,
.filter-tab[data-body="MOTO"]:hover {
    background: linear-gradient(135deg, #e63946 0%, #c62d3a 100%);
    box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}

.filter-tab i {
    font-size: 30px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
}

.filters-reset {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

.filters-reset:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-range input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.filter-range span {
    color: var(--text-light);
}

.vehicles-content {
    min-width: 0;
}

.vehicles-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filters-toggle-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-weight: 500;
}

.vehicles-sort, .vehicles-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicles-sort label, .vehicles-per-page label {
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
}

.vehicles-sort .filter-select, .vehicles-per-page .filter-select {
    width: auto;
    min-width: 160px;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.category-cotxe {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
}

.category-moto {
    background: linear-gradient(135deg, #e63946 0%, #c62d3a 100%);
    color: #fff;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.category-count {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
}

.category-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.category-cta:hover {
    background: rgba(255,255,255,0.3);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.badge-body {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.badge-coche {
    background: #1a73e8;
    color: #fff;
}

.badge-moto {
    background: #e63946;
    color: #fff;
}

.empty-state, .empty-state-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state-empty svg {
    margin: 0 auto 16px;
    opacity: 0.3;
}

.empty-state-empty h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-item:hover, .pagination-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filters-overlay {
    display: none;
}

.vehicle-page {
    padding: 40px 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text);
}

.vehicle-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.vehicle-gallery {
    margin-bottom: 32px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 16/10;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.gallery-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.gallery-main .badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumb.active, .gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.vehicle-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.vehicle-version {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 4px;
}

.favorite-btn-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.favorite-btn-large:hover, .favorite-btn-large.active {
    border-color: var(--accent);
    color: var(--accent);
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.spec-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.spec-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.spec-item-env {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.environmental-label-image {
    display: block;
    height: auto;
}

.environmental-label-image-detail {
    width: 72px;
    margin-top: 4px;
}

.env-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.env-label-a { background: #22c55e; color: #fff; }
.env-label-b { background: #3b82f6; color: #fff; }
.env-label-c { background: #f59e0b; color: #fff; }
.env-label-d { background: #ef4444; color: #fff; }

.vehicle-section {
    margin-bottom: 32px;
}

.vehicle-section .section-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.vehicle-description {
    line-height: 1.8;
    color: var(--text-light);
}

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

.equipment-category-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--text-light);
}

.equipment-list {
    list-style: none;
}

.equipment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
}

.equipment-item svg {
    color: #22c55e;
    flex-shrink: 0;
}

.warranty-box, .maintenance-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.warranty-box svg, .maintenance-box svg {
    flex-shrink: 0;
    color: var(--accent);
}

.warranty-box strong, .maintenance-box strong {
    display: block;
    margin-bottom: 4px;
}

.warranty-box p, .maintenance-box p {
    color: var(--text-light);
    font-size: 14px;
}

.vehicle-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

.price-sticky {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.price-box {
    margin-bottom: 24px;
}

.price-main {
    display: flex;
    flex-direction: column;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.price-financed {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.financed-label {
    font-size: 13px;
    color: var(--text-light);
}

.financed-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

.finance-calculator {
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.finance-calculator h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calc-input label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.calc-input input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.calc-input span {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-top: 4px;
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.calc-result span {
    color: var(--text-light);
}

.calc-result strong {
    font-size: 20px;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.contact-item svg {
    flex-shrink: 0;
}

.similar-vehicles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    opacity: 0.7;
    transition: var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    opacity: 0.7;
    padding: 20px;
    transition: var(--transition);
}

.lightbox-nav:hover {
    opacity: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: var(--bg);
    padding: 0;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 28px 32px 24px;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header-accent i {
    font-size: 28px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.modal-header-accent .modal-title {
    color: #fff;
    margin-bottom: 4px;
}

.modal-header-accent .modal-subtitle {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #fff;
    opacity: 0.8;
    z-index: 2;
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 14px;
}

.modal-form {
    padding: 24px 32px 32px;
}

.vehicle-details-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.vehicle-details-banner i {
    font-size: 18px;
    color: var(--accent);
}

.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.modal-form input, .modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-light);
}

.modal-form input:focus, .modal-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230,57,70,0.08);
}

.modal-form input:hover, .modal-form textarea:hover {
    border-color: var(--text-muted);
}

.form-message {
    margin-top: 16px;
}

.form-success {
    padding: 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: var(--radius);
    font-size: 14px;
}

.form-error {
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: var(--radius);
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.header-contact i, .header-address i {
    font-size: 14px;
}

.header-contact a i {
    margin-right: 4px;
}

.nav-main a i {
    margin-right: 6px;
    font-size: 14px;
}

.mobile-nav a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.contact-page {
    padding: 60px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.contact-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card a, .contact-card p {
    color: var(--text-light);
}

.contact-form-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.contact-form-section h2 i {
    color: var(--accent);
    margin-right: 8px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-light);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230,57,70,0.08);
}

.contact-form input:hover, .contact-form textarea:hover {
    border-color: var(--text-muted);
}

.form-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #e63946;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

.alert {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    align-items: flex-start;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.map-section {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder p {
    margin-top: 8px;
}

.favorites-page {
    padding: 40px 0;
}

.favorites-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-weight: 500;
}

.summary-item i {
    font-size: 18px;
    color: var(--accent);
}

@media (max-width: 1024px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .vehicle-layout {
        grid-template-columns: 1fr;
    }
    
    .vehicle-sidebar {
        position: static;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 120px;
    }
    
    .header-contact, .header-address {
        display: none;
    }
    
    .nav-main {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-search {
        padding: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .vehicle-grid, .vehicle-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ctas-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        z-index: 200;
        border-radius: 0;
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .filters-toggle-mobile {
        display: flex;
    }
    
    .filters-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 199;
    }
    
    .filters-overlay.active {
        display: block;
    }
    
    .vehicles-sort, .vehicles-per-page {
        flex: 1;
    }
    
    .vehicle-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .vehicle-grid, .vehicle-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .vehicle-specs {
        flex-direction: column;
        gap: 8px;
    }
    
    .badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .cta-box {
        padding: 32px 20px;
    }
    
    .cta-title {
        font-size: 24px;
    }
}
