/* Estilos adicionales y sobreescrituras para el catálogo de motos de segunda mano */

.badge-segunda-mano {
    position: absolute;
    top: 15px;
    left: -35px;
    background: linear-gradient(135deg, #43a047 0%, #1b5e20 100%);
    color: white;
    padding: 8px 40px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

.card-segunda {
    border: 1px solid #333;
    position: relative;
    padding: 20px;
    background: #151515;
}

.card-segunda:hover {
    border-color: #43a047;
    box-shadow: 0 0 20px rgba(67, 160, 71, 0.4);
}

.img-container-segunda {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #000;
}

.img-container-segunda img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.card-segunda:hover .img-container-segunda img {
    transform: scale(1.05);
}

.visitas-counter-segunda {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #333;
    transition: 0.3s;
}

.visitas-counter-segunda i {
    color: #43a047;
    font-size: 0.9rem;
}

.card-segunda:hover .visitas-counter-segunda {
    background: #43a047;
    color: white;
    border-color: #43a047;
}

.card-segunda:hover .visitas-counter-segunda i {
    color: white;
}

.moto-nombre-segunda {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-segunda:hover .moto-nombre-segunda {
    color: #43a047;
}

.moto-precio-segunda {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #43a047;
}

/* Modificamos el resplandor para que combine con el estilo verde de segunda mano */
.card-segunda::before {
    background: linear-gradient(
        115deg, 
        transparent 20%, 
        rgba(255, 255, 255, 0.05) 30%, 
        rgba(255, 255, 255, 0.3) 45%, 
        rgba(255, 255, 255, 0.05) 50%, 
        transparent 70%
    );
}

.card-segunda:hover::before {
    top: -50%;
    left: -50%;
    transition: all 0.6s ease-out;
}
