/* ===============================
   GENERAL
================================ */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

/* ===============================
   HERO HEADER
================================ */
.hero-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.gradient-overlay {
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.85),
        rgba(118, 75, 162, 0.85)
    );
}

/* ===============================
   BOTONES
================================ */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ===============================
   FILTROS
================================ */
.filter-card {
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.input-group-modern {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.form-control-modern {
    padding-left: 45px;
    border-radius: 12px;
    border: 2px solid #e8ecf1;
    height: 50px;
}

.form-control-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* ===============================
   CARDS
================================ */
.car-card {
    position: relative; /* 🔑 CLAVE */
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

/* ===============================
   BADGE DESTACADO
================================ */
.badge-destacado {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 9999; /* 🔥 siempre arriba */
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #fff;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

/* ===============================
   IMAGEN
================================ */
.car-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image {
    transform: scale(1.08);
}

.no-image-placeholder {
    height: 240px;
    background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
}

/* ===============================
   OVERLAY
================================ */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
    z-index: 2; /* debajo del badge */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-card:hover .image-overlay {
    opacity: 1;
}

/* ===============================
   CONTENIDO CARD
================================ */
.card-body-modern {
    padding: 20px;
}

.car-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

.car-details {
    font-size: 0.95rem;
    color: #6b7280;
}

.detail-icon {
    margin-right: 6px;
}

/* ===============================
   PRECIO
================================ */
.price-tag {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.price-amount {
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
}

/* ===============================
   THUMBNAILS
================================ */
.thumbnails-container {
    display: flex;
    gap: 4px;
}

.thumbnail-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
}

.thumbnail-more {
    width: 42px;
    height: 42px;
    background: #667eea;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

/* ===============================
   BOTÓN VER
================================ */
.btn-view-car {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-view-car:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .car-title {
        font-size: 1.05rem;
    }

    .price-amount {
        font-size: 1.4rem;
    }
}
