/* ================================================
   featured.css - Tarjetas de Vehículos Destacados
   ================================================ */

.vehicles-section,
.section.featured {
    padding: 80px 0;
    background: #f8f9fa;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
}

.section.featured .section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1a252c;
}

.section.featured .section-subtitle {
    display: inline-block;
    text-align: center;
    width: fit-content;
    background: #E3F2FD;
    color: #1565C0;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

/* Grid de vehículos */
.vehicles-grid,
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    justify-items: center;
}

/* Tarjeta individual */
.vehicle-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vehicle-image-box {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-image-box img {
    width: 90%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image-box img {
    transform: scale(1.05);
}

.vehicle-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

/* Información */
.vehicle-info {
    padding: 25px;
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    grid-row-gap: 5px;
    flex-grow: 1;
}

.vehicle-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.vehicle-category {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
}

/* Características */
.vehicle-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.vehicle-feature-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    color: #64748b;
}

.vehicle-feature-span {
    font-size: 0.85rem;
    padding-left: 8px;
    font-family: var(--font-secondary);
}

.vehicle-features i {
    color: #1565C0;
    text-align: center;
}

/* Precio */
.vehicle-price {
    padding: 0 25px 20px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.vehicle-price-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
}

.vehicle-price-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0F172A;
}

.vehicle-price-unit {
    font-size: 0.95rem;
    color: #64748B;
}

.vehicle-card .btn {
    margin: 0 25px 25px;
    width: calc(100% - 50px);
}