/* Estilos específicos para el catálogo */

.catalog-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darkLight) 100%);
    padding: 150px 8% 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.4em;
    color: var(--textColorHint);
}

.catalog-filters {
    background: var(--darkLight);
    padding: 40px 8%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-container {
    display: flex;
    gap: 30px;
    align-items: end;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    color: white;
    font-weight: 600;
    font-size: 1.1em;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid var(--dark);
    border-radius: 10px;
    background: var(--dark);
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.clear-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    height: fit-content;
}

.clear-btn:hover {
    background: var(--accent);
    color: white;
}

.catalog-grid {
    background: var(--dark);
    padding: 60px 8%;
    min-height: 60vh;
}

.vehicles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.vehicle-card {
    background: var(--darkLight);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--cardShadow);
}

.vehicle-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.badge.new {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.badge.featured {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.badge.premium {
    background: rgba(156, 39, 176, 0.9);
    color: white;
}

.badge.limited {
    background: rgba(255, 87, 34, 0.9);
    color: white;
}

.badge.popular {
    background: rgba(33, 150, 243, 0.9);
    color: white;
}

.badge.exclusive {
    background: rgba(255, 107, 53, 0.9);
    color: white;
}

.vehicle-info {
    padding: 25px;
}

.vehicle-info h3 {
    color: white;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 8px;
}

.vehicle-type {
    color: var(--textColorHint);
    font-size: 1em;
    margin-bottom: 15px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.vehicle-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--textColorHint);
    font-size: 0.9em;
}

.vehicle-specs ion-icon {
    color: var(--accent);
    font-size: 1.1em;
}

.vehicle-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--accent);
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--textColorHint);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
}

.vehicle-actions {
    display: flex;
    gap: 12px;
}

.btn-details,
.btn-contact {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-details {
    background: var(--gradient);
    color: white;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-contact {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-contact:hover {
    background: var(--accent);
    color: white;
}

/* Modal para detalles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--darkLight);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: var(--textColorHint);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent);
}

.vehicle-detail {
    color: white;
}

.vehicle-detail h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 2em;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.detail-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    color: var(--textColorHint);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.detail-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Estados de filtrado */
.vehicle-card.hidden {
    display: none;
}

.no-results {
    text-align: center;
    color: var(--textColorHint);
    font-size: 1.2em;
    grid-column: 1 / -1;
    padding: 60px 20px;
}

/* Media queries */
@media screen and (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .vehicles-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vehicle-specs {
        flex-direction: column;
        gap: 10px;
    }
    
    .vehicle-actions {
        flex-direction: column;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

@media screen and (max-width: 450px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .catalog-filters {
        padding: 30px 20px;
    }
    
    .catalog-grid {
        padding: 40px 20px;
    }
    
    .vehicle-info {
        padding: 20px;
    }
}
