/*
 Theme Name:   BirdCom
 Theme URI:    https://birdcom.es
 Description:  BirdCom Comunicación y Diseño
 Author:       Dani Moreno
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

a {
  text-decoration: none;
}

/* ===================================
   ESTILOS CATÁLOGO DE VEHÍCULOS
   =================================== */

/* === FILTROS === */
.filtro-vehiculos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.filtro-vehiculos select,
.filtro-vehiculos input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.filtro-vehiculos select:focus,
.filtro-vehiculos input:focus {
    outline: none;
    border-color: #3498db;
}

.filtro-vehiculos button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.filtro-vehiculos button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52,152,219,0.3);
}

/* === GRID DE VEHÍCULOS === */
.vehiculos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* === TARJETA DE VEHÍCULO === */
.vehiculo {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vehiculo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Imagen */
.img-vehiculo {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: #000;
}

.img-vehiculo a {
    display: block;
    height: 100%;
}

.img-vehiculo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehiculo:hover .img-vehiculo img {
    transform: scale(1.08);
}

/* Badges */
.badge-descuento {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e63946;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}

.badge-financiacion {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(52, 152, 219, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    z-index: 2;
}

.badge-vendido {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Contenido */
.post-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.titulo-vehiculo {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    min-height: 52px;
}

.titulo-vehiculo a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.titulo-vehiculo a:hover {
    color: #3498db;
}

/* Precio */
.precio {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.precio-tachado {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.precio-actual {
    font-size: 28px;
    font-weight: 700;
    color: #e63946;
}

/* Especificaciones */
.info-extra {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-item svg {
    flex-shrink: 0;
    color: #3498db;
}

.info-item span {
    font-weight: 500;
}

/* Botón */
.btn-ver-mas {
    display: block;
    text-align: center;
    background: #3498db;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-ver-mas:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* === PAGINACIÓN === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* === SIN RESULTADOS === */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    font-size: 18px;
    color: #666;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .vehiculos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .filtro-vehiculos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .vehiculos-grid {
        grid-template-columns: 1fr;
    }
    
    .filtro-vehiculos {
        grid-template-columns: 1fr;
    }
    
    .info-extra {
        grid-template-columns: 1fr;
    }
}
